diff --git a/lib/swig/MANIFEST.in b/lib/swig/MANIFEST.in index 7749b2f7..1a486257 100644 --- a/lib/swig/MANIFEST.in +++ b/lib/swig/MANIFEST.in @@ -25,10 +25,8 @@ recursive-include gopath/src/github.com/skycoin/skycoin/include * recursive-exclude . *.orig exclude .github exclude .travis -exclude lib/skyapi exclude .pytest_cache recursive-exclude .github * recursive-exclude .travis * -recursive-exclude lib/skyapi * recursive-exclude .pytest_cache * diff --git a/lib/swig/swig/include/swig.h b/lib/swig/swig/include/swig.h new file mode 100644 index 00000000..cd3d3f38 --- /dev/null +++ b/lib/swig/swig/include/swig.h @@ -0,0 +1,56 @@ + +typedef struct{ + GoUint8 data[33]; +} cipher_PubKey; + +typedef struct{ + GoUint8 data[32]; +} cipher_SecKey; + +typedef struct{ + GoUint8 data[20]; +} cipher_Ripemd160; + +typedef struct{ + GoUint8 data[65]; +} cipher_Sig; + +typedef struct{ + GoUint8 data[32]; +} cipher_SHA256; + +typedef struct{ + GoUint8 data[4]; +} cipher_Checksum; + +typedef struct{ + cipher_SecKey* data; + int count; +} cipher_SecKeys; + +typedef struct{ + cipher_PubKey* data; + int count; +} cipher_PubKeys; + +typedef struct{ + cipher_SHA256* data; + int count; +} cipher_SHA256s; + +typedef struct{ + coin__UxOut* data; + int count; +} coin_UxOutArray; + +typedef struct{ + cipher__Address* data; + int count; +} cipher_Addresses; + +typedef GoUint32_ (*FeeCalcFunc)(Transaction__Handle handle, unsigned long long * pFee, void* context); + +typedef struct { + FeeCalcFunc callback; + void* context; +} Fee_Calculator ; \ No newline at end of file diff --git a/lib/swig/swig/pyskycoin_wrap.c b/lib/swig/swig/pyskycoin_wrap.c new file mode 100644 index 00000000..c2e98d4d --- /dev/null +++ b/lib/swig/swig/pyskycoin_wrap.c @@ -0,0 +1,30015 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 3.0.12 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIG_PYTHON_STRICT_BYTE_CHAR + + + +#ifndef SWIGPYTHON +#define SWIGPYTHON +#endif + +#define SWIG_PYTHON_DIRECTOR_NO_VTABLE + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if defined(__GNUC__) +# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif + + +#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) +/* Use debug wrappers with the Python release dll */ +# undef _DEBUG +# include +# define _DEBUG +#else +# include +#endif + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic C API SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the SWIG runtime code. + In 99.9% of the cases, SWIG just needs to declare them as 'static'. + + But only do this if strictly necessary, ie, if you have problems + with your compiler or suchlike. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The SWIG conversion methods, as ConvertPtr, return an integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old versions of SWIG, code such as the following was usually written: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + which is the same really, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + also requires SWIG_ConvertPtr to return new result values, such as + + int SWIG_ConvertPtr(obj, ptr,...) { + if () { + if () { + *ptr = ; + return SWIG_NEWOBJ; + } else { + *ptr = ; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + SWIG errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() +*/ + +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast(r) (r) +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class" == "Class", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like ||... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCmp(const char *nb, const char *tb) { + int equiv = 1; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (equiv != 0 && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = SWIG_TypeNameComp(nb, ne, tb, te); + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like ||... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; +} + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(iter->type->name, c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (iter->type == from) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + size_t l = 0; + size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + char d = *(c++); + unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = (unsigned char)((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = (unsigned char)((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (unsigned char)(d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (unsigned char)(d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + +/* Compatibility macros for Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + +#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) +#define PyInt_Check(x) PyLong_Check(x) +#define PyInt_AsLong(x) PyLong_AsLong(x) +#define PyInt_FromLong(x) PyLong_FromLong(x) +#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) +#define PyString_Check(name) PyBytes_Check(name) +#define PyString_FromString(x) PyUnicode_FromString(x) +#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) +#define PyString_AsString(str) PyBytes_AsString(str) +#define PyString_Size(str) PyBytes_Size(str) +#define PyString_InternFromString(key) PyUnicode_InternFromString(key) +#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE +#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) +#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) + +#endif + +#ifndef Py_TYPE +# define Py_TYPE(op) ((op)->ob_type) +#endif + +/* SWIG APIs for compatibility of both Python 2 & 3 */ + +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_Python_str_FromFormat PyUnicode_FromFormat +#else +# define SWIG_Python_str_FromFormat PyString_FromFormat +#endif + + +/* Warning: This function will allocate a new string in Python 3, + * so please call SWIG_Python_str_DelForPy3(x) to free the space. + */ +SWIGINTERN char* +SWIG_Python_str_AsChar(PyObject *str) +{ +#if PY_VERSION_HEX >= 0x03000000 + char *cstr; + char *newstr; + Py_ssize_t len; + str = PyUnicode_AsUTF8String(str); + PyBytes_AsStringAndSize(str, &cstr, &len); + newstr = (char *) malloc(len+1); + memcpy(newstr, cstr, len+1); + Py_XDECREF(str); + return newstr; +#else + return PyString_AsString(str); +#endif +} + +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) +#else +# define SWIG_Python_str_DelForPy3(x) +#endif + + +SWIGINTERN PyObject* +SWIG_Python_str_FromChar(const char *c) +{ +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_FromString(c); +#else + return PyString_FromString(c); +#endif +} + +/* Add PyOS_snprintf for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) +# define PyOS_snprintf _snprintf +# else +# define PyOS_snprintf snprintf +# endif +#endif + +/* A crude PyString_FromFormat implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 + +#ifndef SWIG_PYBUFFER_SIZE +# define SWIG_PYBUFFER_SIZE 1024 +#endif + +static PyObject * +PyString_FromFormat(const char *fmt, ...) { + va_list ap; + char buf[SWIG_PYBUFFER_SIZE * 2]; + int res; + va_start(ap, fmt); + res = vsnprintf(buf, sizeof(buf), fmt, ap); + va_end(ap); + return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); +} +#endif + +#ifndef PyObject_DEL +# define PyObject_DEL PyObject_Del +#endif + +/* A crude PyExc_StopIteration exception for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# ifndef PyExc_StopIteration +# define PyExc_StopIteration PyExc_RuntimeError +# endif +# ifndef PyObject_GenericGetAttr +# define PyObject_GenericGetAttr 0 +# endif +#endif + +/* Py_NotImplemented is defined in 2.1 and up. */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef Py_NotImplemented +# define Py_NotImplemented PyExc_RuntimeError +# endif +#endif + +/* A crude PyString_AsStringAndSize implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef PyString_AsStringAndSize +# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} +# endif +#endif + +/* PySequence_Size for old Pythons */ +#if PY_VERSION_HEX < 0x02000000 +# ifndef PySequence_Size +# define PySequence_Size PySequence_Length +# endif +#endif + +/* PyBool_FromLong for old Pythons */ +#if PY_VERSION_HEX < 0x02030000 +static +PyObject *PyBool_FromLong(long ok) +{ + PyObject *result = ok ? Py_True : Py_False; + Py_INCREF(result); + return result; +} +#endif + +/* Py_ssize_t for old Pythons */ +/* This code is as recommended by: */ +/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ +#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) +typedef int Py_ssize_t; +# define PY_SSIZE_T_MAX INT_MAX +# define PY_SSIZE_T_MIN INT_MIN +typedef inquiry lenfunc; +typedef intargfunc ssizeargfunc; +typedef intintargfunc ssizessizeargfunc; +typedef intobjargproc ssizeobjargproc; +typedef intintobjargproc ssizessizeobjargproc; +typedef getreadbufferproc readbufferproc; +typedef getwritebufferproc writebufferproc; +typedef getsegcountproc segcountproc; +typedef getcharbufferproc charbufferproc; +static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) +{ + long result = 0; + PyObject *i = PyNumber_Int(x); + if (i) { + result = PyInt_AsLong(i); + Py_DECREF(i); + } + return result; +} +#endif + +#if PY_VERSION_HEX < 0x02050000 +#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) +#endif + +#if PY_VERSION_HEX < 0x02040000 +#define Py_VISIT(op) \ + do { \ + if (op) { \ + int vret = visit((op), arg); \ + if (vret) \ + return vret; \ + } \ + } while (0) +#endif + +#if PY_VERSION_HEX < 0x02030000 +typedef struct { + PyTypeObject type; + PyNumberMethods as_number; + PyMappingMethods as_mapping; + PySequenceMethods as_sequence; + PyBufferProcs as_buffer; + PyObject *name, *slots; +} PyHeapTypeObject; +#endif + +#if PY_VERSION_HEX < 0x02030000 +typedef destructor freefunc; +#endif + +#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ + (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ + (PY_MAJOR_VERSION > 3)) +# define SWIGPY_USE_CAPSULE +# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) +#endif + +#if PY_VERSION_HEX < 0x03020000 +#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) +#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) +#define Py_hash_t long +#endif + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIME PyObject* +SWIG_Python_ErrorType(int code) { + PyObject* type = 0; + switch(code) { + case SWIG_MemoryError: + type = PyExc_MemoryError; + break; + case SWIG_IOError: + type = PyExc_IOError; + break; + case SWIG_RuntimeError: + type = PyExc_RuntimeError; + break; + case SWIG_IndexError: + type = PyExc_IndexError; + break; + case SWIG_TypeError: + type = PyExc_TypeError; + break; + case SWIG_DivisionByZero: + type = PyExc_ZeroDivisionError; + break; + case SWIG_OverflowError: + type = PyExc_OverflowError; + break; + case SWIG_SyntaxError: + type = PyExc_SyntaxError; + break; + case SWIG_ValueError: + type = PyExc_ValueError; + break; + case SWIG_SystemError: + type = PyExc_SystemError; + break; + case SWIG_AttributeError: + type = PyExc_AttributeError; + break; + default: + type = PyExc_RuntimeError; + } + return type; +} + + +SWIGRUNTIME void +SWIG_Python_AddErrorMsg(const char* mesg) +{ + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + + if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); + if (value) { + char *tmp; + PyObject *old_str = PyObject_Str(value); + PyErr_Clear(); + Py_XINCREF(type); + + PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(old_str); + Py_DECREF(value); + } else { + PyErr_SetString(PyExc_RuntimeError, mesg); + } +} + +#if defined(SWIG_PYTHON_NO_THREADS) +# if defined(SWIG_PYTHON_THREADS) +# undef SWIG_PYTHON_THREADS +# endif +#endif +#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ +# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) +# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ +# define SWIG_PYTHON_USE_GIL +# endif +# endif +# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ +# ifndef SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() +# endif +# ifdef __cplusplus /* C++ code */ + class SWIG_Python_Thread_Block { + bool status; + PyGILState_STATE state; + public: + void end() { if (status) { PyGILState_Release(state); status = false;} } + SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} + ~SWIG_Python_Thread_Block() { end(); } + }; + class SWIG_Python_Thread_Allow { + bool status; + PyThreadState *save; + public: + void end() { if (status) { PyEval_RestoreThread(save); status = false; }} + SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} + ~SWIG_Python_Thread_Allow() { end(); } + }; +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block +# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow +# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() +# else /* C code */ +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() +# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() +# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) +# endif +# else /* Old thread way, not implemented, user must provide it */ +# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) +# define SWIG_PYTHON_INITIALIZE_THREADS +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) +# define SWIG_PYTHON_THREAD_END_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# endif +# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) +# define SWIG_PYTHON_THREAD_END_ALLOW +# endif +# endif +#else /* No thread support */ +# define SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# define SWIG_PYTHON_THREAD_END_BLOCK +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# define SWIG_PYTHON_THREAD_END_ALLOW +#endif + +/* ----------------------------------------------------------------------------- + * Python API portion that goes into the runtime + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* ----------------------------------------------------------------------------- + * Constant declarations + * ----------------------------------------------------------------------------- */ + +/* Constant Types */ +#define SWIG_PY_POINTER 4 +#define SWIG_PY_BINARY 5 + +/* Constant information structure */ +typedef struct swig_const_info { + int type; + char *name; + long lvalue; + double dvalue; + void *pvalue; + swig_type_info **ptype; +} swig_const_info; + + +/* ----------------------------------------------------------------------------- + * Wrapper of PyInstanceMethod_New() used in Python 3 + * It is exported to the generated module, used for -fastproxy + * ----------------------------------------------------------------------------- */ +#if PY_VERSION_HEX >= 0x03000000 +SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) +{ + return PyInstanceMethod_New(func); +} +#else +SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) +{ + return NULL; +} +#endif + +#ifdef __cplusplus +} +#endif + + +/* ----------------------------------------------------------------------------- + * pyrun.swg + * + * This file contains the runtime support for Python modules + * and includes code for managing global variables and pointer + * type checking. + * + * ----------------------------------------------------------------------------- */ + +/* Common SWIG API */ + +/* for raw pointers */ +#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) +#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) +#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) + +#ifdef SWIGPYTHON_BUILTIN +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) +#else +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) +#endif + +#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) + +#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) +#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) +#define swig_owntype int + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) +#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) +#define SWIG_NewClientData(obj) SwigPyClientData_New(obj) + +#define SWIG_SetErrorObj SWIG_Python_SetErrorObj +#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg +#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) +#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) +#define SWIG_fail goto fail + + +/* Runtime API implementation */ + +/* Error manipulation */ + +SWIGINTERN void +SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetObject(errtype, obj); + Py_DECREF(obj); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +SWIGINTERN void +SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetString(errtype, msg); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) + +/* Set a constant value */ + +#if defined(SWIGPYTHON_BUILTIN) + +SWIGINTERN void +SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { + PyObject *s = PyString_InternFromString(key); + PyList_Append(seq, s); + Py_DECREF(s); +} + +SWIGINTERN void +SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { +#if PY_VERSION_HEX < 0x02030000 + PyDict_SetItemString(d, (char *)name, obj); +#else + PyDict_SetItemString(d, name, obj); +#endif + Py_DECREF(obj); + if (public_interface) + SwigPyBuiltin_AddPublicSymbol(public_interface, name); +} + +#else + +SWIGINTERN void +SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { +#if PY_VERSION_HEX < 0x02030000 + PyDict_SetItemString(d, (char *)name, obj); +#else + PyDict_SetItemString(d, name, obj); +#endif + Py_DECREF(obj); +} + +#endif + +/* Append a value to the result obj */ + +SWIGINTERN PyObject* +SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { +#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyList_Check(result)) { + PyObject *o2 = result; + result = PyList_New(1); + PyList_SetItem(result, 0, o2); + } + PyList_Append(result,obj); + Py_DECREF(obj); + } + return result; +#else + PyObject* o2; + PyObject* o3; + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyTuple_Check(result)) { + o2 = result; + result = PyTuple_New(1); + PyTuple_SET_ITEM(result, 0, o2); + } + o3 = PyTuple_New(1); + PyTuple_SET_ITEM(o3, 0, obj); + o2 = result; + result = PySequence_Concat(o2, o3); + Py_DECREF(o2); + Py_DECREF(o3); + } + return result; +#endif +} + +/* Unpack the argument tuple */ + +SWIGINTERN Py_ssize_t +SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) +{ + if (!args) { + if (!min && !max) { + return 1; + } else { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", + name, (min == max ? "" : "at least "), (int)min); + return 0; + } + } + if (!PyTuple_Check(args)) { + if (min <= 1 && max >= 1) { + Py_ssize_t i; + objs[0] = args; + for (i = 1; i < max; ++i) { + objs[i] = 0; + } + return 2; + } + PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); + return 0; + } else { + Py_ssize_t l = PyTuple_GET_SIZE(args); + if (l < min) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at least "), (int)min, (int)l); + return 0; + } else if (l > max) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at most "), (int)max, (int)l); + return 0; + } else { + Py_ssize_t i; + for (i = 0; i < l; ++i) { + objs[i] = PyTuple_GET_ITEM(args, i); + } + for (; l < max; ++l) { + objs[l] = 0; + } + return i + 1; + } + } +} + +/* A functor is a function object with one single object argument */ +#if PY_VERSION_HEX >= 0x02020000 +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); +#else +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); +#endif + +/* + Helper for static pointer initialization for both C and C++ code, for example + static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); +*/ +#ifdef __cplusplus +#define SWIG_STATIC_POINTER(var) var +#else +#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var +#endif + +/* ----------------------------------------------------------------------------- + * Pointer declarations + * ----------------------------------------------------------------------------- */ + +/* Flags for new pointer objects */ +#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) +#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) + +#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) + +#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) +#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) + +#ifdef __cplusplus +extern "C" { +#endif + +/* How to access Py_None */ +#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# ifndef SWIG_PYTHON_NO_BUILD_NONE +# ifndef SWIG_PYTHON_BUILD_NONE +# define SWIG_PYTHON_BUILD_NONE +# endif +# endif +#endif + +#ifdef SWIG_PYTHON_BUILD_NONE +# ifdef Py_None +# undef Py_None +# define Py_None SWIG_Py_None() +# endif +SWIGRUNTIMEINLINE PyObject * +_SWIG_Py_None(void) +{ + PyObject *none = Py_BuildValue((char*)""); + Py_DECREF(none); + return none; +} +SWIGRUNTIME PyObject * +SWIG_Py_None(void) +{ + static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); + return none; +} +#endif + +/* The python void return value */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Py_Void(void) +{ + PyObject *none = Py_None; + Py_INCREF(none); + return none; +} + +/* SwigPyClientData */ + +typedef struct { + PyObject *klass; + PyObject *newraw; + PyObject *newargs; + PyObject *destroy; + int delargs; + int implicitconv; + PyTypeObject *pytype; +} SwigPyClientData; + +SWIGRUNTIMEINLINE int +SWIG_Python_CheckImplicit(swig_type_info *ty) +{ + SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; + return data ? data->implicitconv : 0; +} + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_ExceptionType(swig_type_info *desc) { + SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; + PyObject *klass = data ? data->klass : 0; + return (klass ? klass : PyExc_RuntimeError); +} + + +SWIGRUNTIME SwigPyClientData * +SwigPyClientData_New(PyObject* obj) +{ + if (!obj) { + return 0; + } else { + SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); + /* the klass element */ + data->klass = obj; + Py_INCREF(data->klass); + /* the newraw method and newargs arguments used to create a new raw instance */ + if (PyClass_Check(obj)) { + data->newraw = 0; + data->newargs = obj; + Py_INCREF(obj); + } else { +#if (PY_VERSION_HEX < 0x02020000) + data->newraw = 0; +#else + data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); +#endif + if (data->newraw) { + Py_INCREF(data->newraw); + data->newargs = PyTuple_New(1); + PyTuple_SetItem(data->newargs, 0, obj); + } else { + data->newargs = obj; + } + Py_INCREF(data->newargs); + } + /* the destroy method, aka as the C++ delete method */ + data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); + if (PyErr_Occurred()) { + PyErr_Clear(); + data->destroy = 0; + } + if (data->destroy) { + int flags; + Py_INCREF(data->destroy); + flags = PyCFunction_GET_FLAGS(data->destroy); +#ifdef METH_O + data->delargs = !(flags & (METH_O)); +#else + data->delargs = 0; +#endif + } else { + data->delargs = 0; + } + data->implicitconv = 0; + data->pytype = 0; + return data; + } +} + +SWIGRUNTIME void +SwigPyClientData_Del(SwigPyClientData *data) { + Py_XDECREF(data->newraw); + Py_XDECREF(data->newargs); + Py_XDECREF(data->destroy); +} + +/* =============== SwigPyObject =====================*/ + +typedef struct { + PyObject_HEAD + void *ptr; + swig_type_info *ty; + int own; + PyObject *next; +#ifdef SWIGPYTHON_BUILTIN + PyObject *dict; +#endif +} SwigPyObject; + + +#ifdef SWIGPYTHON_BUILTIN + +SWIGRUNTIME PyObject * +SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) +{ + SwigPyObject *sobj = (SwigPyObject *)v; + + if (!sobj->dict) + sobj->dict = PyDict_New(); + + Py_INCREF(sobj->dict); + return sobj->dict; +} + +#endif + +SWIGRUNTIME PyObject * +SwigPyObject_long(SwigPyObject *v) +{ + return PyLong_FromVoidPtr(v->ptr); +} + +SWIGRUNTIME PyObject * +SwigPyObject_format(const char* fmt, SwigPyObject *v) +{ + PyObject *res = NULL; + PyObject *args = PyTuple_New(1); + if (args) { + if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { + PyObject *ofmt = SWIG_Python_str_FromChar(fmt); + if (ofmt) { +#if PY_VERSION_HEX >= 0x03000000 + res = PyUnicode_Format(ofmt,args); +#else + res = PyString_Format(ofmt,args); +#endif + Py_DECREF(ofmt); + } + Py_DECREF(args); + } + } + return res; +} + +SWIGRUNTIME PyObject * +SwigPyObject_oct(SwigPyObject *v) +{ + return SwigPyObject_format("%o",v); +} + +SWIGRUNTIME PyObject * +SwigPyObject_hex(SwigPyObject *v) +{ + return SwigPyObject_format("%x",v); +} + +SWIGRUNTIME PyObject * +#ifdef METH_NOARGS +SwigPyObject_repr(SwigPyObject *v) +#else +SwigPyObject_repr(SwigPyObject *v, PyObject *args) +#endif +{ + const char *name = SWIG_TypePrettyName(v->ty); + PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); + if (v->next) { +# ifdef METH_NOARGS + PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); +# else + PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); +# endif +# if PY_VERSION_HEX >= 0x03000000 + PyObject *joined = PyUnicode_Concat(repr, nrep); + Py_DecRef(repr); + Py_DecRef(nrep); + repr = joined; +# else + PyString_ConcatAndDel(&repr,nrep); +# endif + } + return repr; +} + +SWIGRUNTIME int +SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) +{ + void *i = v->ptr; + void *j = w->ptr; + return (i < j) ? -1 : ((i > j) ? 1 : 0); +} + +/* Added for Python 3.x, would it also be useful for Python 2.x? */ +SWIGRUNTIME PyObject* +SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) +{ + PyObject* res; + if( op != Py_EQ && op != Py_NE ) { + Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; + } + res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); + return res; +} + + +SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); + +#ifdef SWIGPYTHON_BUILTIN +static swig_type_info *SwigPyObject_stype = 0; +SWIGRUNTIME PyTypeObject* +SwigPyObject_type(void) { + SwigPyClientData *cd; + assert(SwigPyObject_stype); + cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; + assert(cd); + assert(cd->pytype); + return cd->pytype; +} +#else +SWIGRUNTIME PyTypeObject* +SwigPyObject_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); + return type; +} +#endif + +SWIGRUNTIMEINLINE int +SwigPyObject_Check(PyObject *op) { +#ifdef SWIGPYTHON_BUILTIN + PyTypeObject *target_tp = SwigPyObject_type(); + if (PyType_IsSubtype(op->ob_type, target_tp)) + return 1; + return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); +#else + return (Py_TYPE(op) == SwigPyObject_type()) + || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); +#endif +} + +SWIGRUNTIME PyObject * +SwigPyObject_New(void *ptr, swig_type_info *ty, int own); + +SWIGRUNTIME void +SwigPyObject_dealloc(PyObject *v) +{ + SwigPyObject *sobj = (SwigPyObject *) v; + PyObject *next = sobj->next; + if (sobj->own == SWIG_POINTER_OWN) { + swig_type_info *ty = sobj->ty; + SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; + PyObject *destroy = data ? data->destroy : 0; + if (destroy) { + /* destroy is always a VARARGS method */ + PyObject *res; + + /* PyObject_CallFunction() has the potential to silently drop + the active active exception. In cases of unnamed temporary + variable or where we just finished iterating over a generator + StopIteration will be active right now, and this needs to + remain true upon return from SwigPyObject_dealloc. So save + and restore. */ + + PyObject *val = NULL, *type = NULL, *tb = NULL; + PyErr_Fetch(&val, &type, &tb); + + if (data->delargs) { + /* we need to create a temporary object to carry the destroy operation */ + PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); + res = SWIG_Python_CallFunctor(destroy, tmp); + Py_DECREF(tmp); + } else { + PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); + PyObject *mself = PyCFunction_GET_SELF(destroy); + res = ((*meth)(mself, v)); + } + if (!res) + PyErr_WriteUnraisable(destroy); + + PyErr_Restore(val, type, tb); + + Py_XDECREF(res); + } +#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) + else { + const char *name = SWIG_TypePrettyName(ty); + printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); + } +#endif + } + Py_XDECREF(next); + PyObject_DEL(v); +} + +SWIGRUNTIME PyObject* +SwigPyObject_append(PyObject* v, PyObject* next) +{ + SwigPyObject *sobj = (SwigPyObject *) v; +#ifndef METH_O + PyObject *tmp = 0; + if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; + next = tmp; +#endif + if (!SwigPyObject_Check(next)) { + PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); + return NULL; + } + sobj->next = next; + Py_INCREF(next); + return SWIG_Py_Void(); +} + +SWIGRUNTIME PyObject* +#ifdef METH_NOARGS +SwigPyObject_next(PyObject* v) +#else +SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *) v; + if (sobj->next) { + Py_INCREF(sobj->next); + return sobj->next; + } else { + return SWIG_Py_Void(); + } +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +SwigPyObject_disown(PyObject *v) +#else +SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *)v; + sobj->own = 0; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +SwigPyObject_acquire(PyObject *v) +#else +SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *)v; + sobj->own = SWIG_POINTER_OWN; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +SwigPyObject_own(PyObject *v, PyObject *args) +{ + PyObject *val = 0; +#if (PY_VERSION_HEX < 0x02020000) + if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) +#elif (PY_VERSION_HEX < 0x02050000) + if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) +#else + if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) +#endif + { + return NULL; + } + else + { + SwigPyObject *sobj = (SwigPyObject *)v; + PyObject *obj = PyBool_FromLong(sobj->own); + if (val) { +#ifdef METH_NOARGS + if (PyObject_IsTrue(val)) { + SwigPyObject_acquire(v); + } else { + SwigPyObject_disown(v); + } +#else + if (PyObject_IsTrue(val)) { + SwigPyObject_acquire(v,args); + } else { + SwigPyObject_disown(v,args); + } +#endif + } + return obj; + } +} + +#ifdef METH_O +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#else +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#endif + +#if PY_VERSION_HEX < 0x02020000 +SWIGINTERN PyObject * +SwigPyObject_getattr(SwigPyObject *sobj,char *name) +{ + return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); +} +#endif + +SWIGRUNTIME PyTypeObject* +SwigPyObject_TypeOnce(void) { + static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; + + static PyNumberMethods SwigPyObject_as_number = { + (binaryfunc)0, /*nb_add*/ + (binaryfunc)0, /*nb_subtract*/ + (binaryfunc)0, /*nb_multiply*/ + /* nb_divide removed in Python 3 */ +#if PY_VERSION_HEX < 0x03000000 + (binaryfunc)0, /*nb_divide*/ +#endif + (binaryfunc)0, /*nb_remainder*/ + (binaryfunc)0, /*nb_divmod*/ + (ternaryfunc)0,/*nb_power*/ + (unaryfunc)0, /*nb_negative*/ + (unaryfunc)0, /*nb_positive*/ + (unaryfunc)0, /*nb_absolute*/ + (inquiry)0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ +#if PY_VERSION_HEX < 0x03000000 + 0, /*nb_coerce*/ +#endif + (unaryfunc)SwigPyObject_long, /*nb_int*/ +#if PY_VERSION_HEX < 0x03000000 + (unaryfunc)SwigPyObject_long, /*nb_long*/ +#else + 0, /*nb_reserved*/ +#endif + (unaryfunc)0, /*nb_float*/ +#if PY_VERSION_HEX < 0x03000000 + (unaryfunc)SwigPyObject_oct, /*nb_oct*/ + (unaryfunc)SwigPyObject_hex, /*nb_hex*/ +#endif +#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ +#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ +#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ +#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ +#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ + 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ +#endif + }; + + static PyTypeObject swigpyobject_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"SwigPyObject", /* tp_name */ + sizeof(SwigPyObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)SwigPyObject_dealloc, /* tp_dealloc */ + 0, /* tp_print */ +#if PY_VERSION_HEX < 0x02020000 + (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ +#else + (getattrfunc)0, /* tp_getattr */ +#endif + (setattrfunc)0, /* tp_setattr */ +#if PY_VERSION_HEX >= 0x03000000 + 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ +#else + (cmpfunc)SwigPyObject_compare, /* tp_compare */ +#endif + (reprfunc)SwigPyObject_repr, /* tp_repr */ + &SwigPyObject_as_number, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + 0, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigobject_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + swigobject_methods, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#if PY_VERSION_HEX >= 0x02060000 + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif +#ifdef COUNT_ALLOCS + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ +#endif + }; + swigpyobject_type = tmp; + type_init = 1; +#if PY_VERSION_HEX < 0x02020000 + swigpyobject_type.ob_type = &PyType_Type; +#else + if (PyType_Ready(&swigpyobject_type) < 0) + return NULL; +#endif + } + return &swigpyobject_type; +} + +SWIGRUNTIME PyObject * +SwigPyObject_New(void *ptr, swig_type_info *ty, int own) +{ + SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); + if (sobj) { + sobj->ptr = ptr; + sobj->ty = ty; + sobj->own = own; + sobj->next = 0; + } + return (PyObject *)sobj; +} + +/* ----------------------------------------------------------------------------- + * Implements a simple Swig Packed type, and use it instead of string + * ----------------------------------------------------------------------------- */ + +typedef struct { + PyObject_HEAD + void *pack; + swig_type_info *ty; + size_t size; +} SwigPyPacked; + +SWIGRUNTIME int +SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) +{ + char result[SWIG_BUFFER_SIZE]; + fputs("pack, v->size, 0, sizeof(result))) { + fputs("at ", fp); + fputs(result, fp); + } + fputs(v->ty->name,fp); + fputs(">", fp); + return 0; +} + +SWIGRUNTIME PyObject * +SwigPyPacked_repr(SwigPyPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { + return SWIG_Python_str_FromFormat("", result, v->ty->name); + } else { + return SWIG_Python_str_FromFormat("", v->ty->name); + } +} + +SWIGRUNTIME PyObject * +SwigPyPacked_str(SwigPyPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ + return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); + } else { + return SWIG_Python_str_FromChar(v->ty->name); + } +} + +SWIGRUNTIME int +SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) +{ + size_t i = v->size; + size_t j = w->size; + int s = (i < j) ? -1 : ((i > j) ? 1 : 0); + return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); +} + +SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); + +SWIGRUNTIME PyTypeObject* +SwigPyPacked_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); + return type; +} + +SWIGRUNTIMEINLINE int +SwigPyPacked_Check(PyObject *op) { + return ((op)->ob_type == SwigPyPacked_TypeOnce()) + || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); +} + +SWIGRUNTIME void +SwigPyPacked_dealloc(PyObject *v) +{ + if (SwigPyPacked_Check(v)) { + SwigPyPacked *sobj = (SwigPyPacked *) v; + free(sobj->pack); + } + PyObject_DEL(v); +} + +SWIGRUNTIME PyTypeObject* +SwigPyPacked_TypeOnce(void) { + static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; + static PyTypeObject swigpypacked_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { +#if PY_VERSION_HEX>=0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"SwigPyPacked", /* tp_name */ + sizeof(SwigPyPacked), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ + (printfunc)SwigPyPacked_print, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ +#if PY_VERSION_HEX>=0x03000000 + 0, /* tp_reserved in 3.0.1 */ +#else + (cmpfunc)SwigPyPacked_compare, /* tp_compare */ +#endif + (reprfunc)SwigPyPacked_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)SwigPyPacked_str, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigpacked_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + 0, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#if PY_VERSION_HEX >= 0x02060000 + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif +#ifdef COUNT_ALLOCS + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ +#endif + }; + swigpypacked_type = tmp; + type_init = 1; +#if PY_VERSION_HEX < 0x02020000 + swigpypacked_type.ob_type = &PyType_Type; +#else + if (PyType_Ready(&swigpypacked_type) < 0) + return NULL; +#endif + } + return &swigpypacked_type; +} + +SWIGRUNTIME PyObject * +SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) +{ + SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); + if (sobj) { + void *pack = malloc(size); + if (pack) { + memcpy(pack, ptr, size); + sobj->pack = pack; + sobj->ty = ty; + sobj->size = size; + } else { + PyObject_DEL((PyObject *) sobj); + sobj = 0; + } + } + return (PyObject *) sobj; +} + +SWIGRUNTIME swig_type_info * +SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) +{ + if (SwigPyPacked_Check(obj)) { + SwigPyPacked *sobj = (SwigPyPacked *)obj; + if (sobj->size != size) return 0; + memcpy(ptr, sobj->pack, size); + return sobj->ty; + } else { + return 0; + } +} + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIMEINLINE PyObject * +_SWIG_This(void) +{ + return SWIG_Python_str_FromChar("this"); +} + +static PyObject *swig_this = NULL; + +SWIGRUNTIME PyObject * +SWIG_This(void) +{ + if (swig_this == NULL) + swig_this = _SWIG_This(); + return swig_this; +} + +/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ + +/* TODO: I don't know how to implement the fast getset in Python 3 right now */ +#if PY_VERSION_HEX>=0x03000000 +#define SWIG_PYTHON_SLOW_GETSET_THIS +#endif + +SWIGRUNTIME SwigPyObject * +SWIG_Python_GetSwigThis(PyObject *pyobj) +{ + PyObject *obj; + + if (SwigPyObject_Check(pyobj)) + return (SwigPyObject *) pyobj; + +#ifdef SWIGPYTHON_BUILTIN + (void)obj; +# ifdef PyWeakref_CheckProxy + if (PyWeakref_CheckProxy(pyobj)) { + pyobj = PyWeakref_GET_OBJECT(pyobj); + if (pyobj && SwigPyObject_Check(pyobj)) + return (SwigPyObject*) pyobj; + } +# endif + return NULL; +#else + + obj = 0; + +#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) + if (PyInstance_Check(pyobj)) { + obj = _PyInstance_Lookup(pyobj, SWIG_This()); + } else { + PyObject **dictptr = _PyObject_GetDictPtr(pyobj); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; + } else { +#ifdef PyWeakref_CheckProxy + if (PyWeakref_CheckProxy(pyobj)) { + PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); + return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; + } +#endif + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } + } + } +#else + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } +#endif + if (obj && !SwigPyObject_Check(obj)) { + /* a PyObject is called 'this', try to get the 'real this' + SwigPyObject from it */ + return SWIG_Python_GetSwigThis(obj); + } + return (SwigPyObject *)obj; +#endif +} + +/* Acquire a pointer value */ + +SWIGRUNTIME int +SWIG_Python_AcquirePtr(PyObject *obj, int own) { + if (own == SWIG_POINTER_OWN) { + SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); + if (sobj) { + int oldown = sobj->own; + sobj->own = own; + return oldown; + } + } + return 0; +} + +/* Convert a pointer value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { + int res; + SwigPyObject *sobj; + int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; + + if (!obj) + return SWIG_ERROR; + if (obj == Py_None && !implicit_conv) { + if (ptr) + *ptr = 0; + return SWIG_OK; + } + + res = SWIG_ERROR; + + sobj = SWIG_Python_GetSwigThis(obj); + if (own) + *own = 0; + while (sobj) { + void *vptr = sobj->ptr; + if (ty) { + swig_type_info *to = sobj->ty; + if (to == ty) { + /* no type cast needed */ + if (ptr) *ptr = vptr; + break; + } else { + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) { + sobj = (SwigPyObject *)sobj->next; + } else { + if (ptr) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + if (newmemory == SWIG_CAST_NEW_MEMORY) { + assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ + if (own) + *own = *own | SWIG_CAST_NEW_MEMORY; + } + } + break; + } + } + } else { + if (ptr) *ptr = vptr; + break; + } + } + if (sobj) { + if (own) + *own = *own | sobj->own; + if (flags & SWIG_POINTER_DISOWN) { + sobj->own = 0; + } + res = SWIG_OK; + } else { + if (implicit_conv) { + SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; + if (data && !data->implicitconv) { + PyObject *klass = data->klass; + if (klass) { + PyObject *impconv; + data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ + impconv = SWIG_Python_CallFunctor(klass, obj); + data->implicitconv = 0; + if (PyErr_Occurred()) { + PyErr_Clear(); + impconv = 0; + } + if (impconv) { + SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); + if (iobj) { + void *vptr; + res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); + if (SWIG_IsOK(res)) { + if (ptr) { + *ptr = vptr; + /* transfer the ownership to 'ptr' */ + iobj->own = 0; + res = SWIG_AddCast(res); + res = SWIG_AddNewMask(res); + } else { + res = SWIG_AddCast(res); + } + } + } + Py_DECREF(impconv); + } + } + } + } + if (!SWIG_IsOK(res) && obj == Py_None) { + if (ptr) + *ptr = 0; + if (PyErr_Occurred()) + PyErr_Clear(); + res = SWIG_OK; + } + } + return res; +} + +/* Convert a function ptr value */ + +SWIGRUNTIME int +SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { + if (!PyCFunction_Check(obj)) { + return SWIG_ConvertPtr(obj, ptr, ty, 0); + } else { + void *vptr = 0; + + /* here we get the method pointer for callbacks */ + const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); + const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; + if (desc) + desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; + if (!desc) + return SWIG_ERROR; + if (ty) { + swig_cast_info *tc = SWIG_TypeCheck(desc,ty); + if (tc) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } else { + return SWIG_ERROR; + } + } else { + *ptr = vptr; + } + return SWIG_OK; + } +} + +/* Convert a packed value value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { + swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); + if (!to) return SWIG_ERROR; + if (ty) { + if (to != ty) { + /* check type cast? */ + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) return SWIG_ERROR; + } + } + return SWIG_OK; +} + +/* ----------------------------------------------------------------------------- + * Create a new pointer object + * ----------------------------------------------------------------------------- */ + +/* + Create a new instance object, without calling __init__, and set the + 'this' attribute. +*/ + +SWIGRUNTIME PyObject* +SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) +{ +#if (PY_VERSION_HEX >= 0x02020000) + PyObject *inst = 0; + PyObject *newraw = data->newraw; + if (newraw) { + inst = PyObject_Call(newraw, data->newargs, NULL); + if (inst) { +#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + PyDict_SetItem(dict, SWIG_This(), swig_this); + } + } +#else + PyObject *key = SWIG_This(); + PyObject_SetAttr(inst, key, swig_this); +#endif + } + } else { +#if PY_VERSION_HEX >= 0x03000000 + inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); + if (inst) { + PyObject_SetAttr(inst, SWIG_This(), swig_this); + Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + } +#else + PyObject *dict = PyDict_New(); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } +#endif + } + return inst; +#else +#if (PY_VERSION_HEX >= 0x02010000) + PyObject *inst = 0; + PyObject *dict = PyDict_New(); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } + return (PyObject *) inst; +#else + PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); + if (inst == NULL) { + return NULL; + } + inst->in_class = (PyClassObject *)data->newargs; + Py_INCREF(inst->in_class); + inst->in_dict = PyDict_New(); + if (inst->in_dict == NULL) { + Py_DECREF(inst); + return NULL; + } +#ifdef Py_TPFLAGS_HAVE_WEAKREFS + inst->in_weakreflist = NULL; +#endif +#ifdef Py_TPFLAGS_GC + PyObject_GC_Init(inst); +#endif + PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); + return (PyObject *) inst; +#endif +#endif +} + +SWIGRUNTIME void +SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) +{ + PyObject *dict; +#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + } + PyDict_SetItem(dict, SWIG_This(), swig_this); + return; + } +#endif + dict = PyObject_GetAttrString(inst, (char*)"__dict__"); + PyDict_SetItem(dict, SWIG_This(), swig_this); + Py_DECREF(dict); +} + + +SWIGINTERN PyObject * +SWIG_Python_InitShadowInstance(PyObject *args) { + PyObject *obj[2]; + if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { + return NULL; + } else { + SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); + if (sthis) { + SwigPyObject_append((PyObject*) sthis, obj[1]); + } else { + SWIG_Python_SetSwigThis(obj[0], obj[1]); + } + return SWIG_Py_Void(); + } +} + +/* Create a new pointer object */ + +SWIGRUNTIME PyObject * +SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { + SwigPyClientData *clientdata; + PyObject * robj; + int own; + + if (!ptr) + return SWIG_Py_Void(); + + clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; + own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; + if (clientdata && clientdata->pytype) { + SwigPyObject *newobj; + if (flags & SWIG_BUILTIN_TP_INIT) { + newobj = (SwigPyObject*) self; + if (newobj->ptr) { + PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); + while (newobj->next) + newobj = (SwigPyObject *) newobj->next; + newobj->next = next_self; + newobj = (SwigPyObject *)next_self; +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif + } + } else { + newobj = PyObject_New(SwigPyObject, clientdata->pytype); +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif + } + if (newobj) { + newobj->ptr = ptr; + newobj->ty = type; + newobj->own = own; + newobj->next = 0; + return (PyObject*) newobj; + } + return SWIG_Py_Void(); + } + + assert(!(flags & SWIG_BUILTIN_TP_INIT)); + + robj = SwigPyObject_New(ptr, type, own); + if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { + PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); + Py_DECREF(robj); + robj = inst; + } + return robj; +} + +/* Create a new packed object */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { + return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); +} + +/* -----------------------------------------------------------------------------* + * Get type list + * -----------------------------------------------------------------------------*/ + +#ifdef SWIG_LINK_RUNTIME +void *SWIG_ReturnGlobalTypeList(void *); +#endif + +SWIGRUNTIME swig_module_info * +SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { + static void *type_pointer = (void *)0; + /* first check if module already created */ + if (!type_pointer) { +#ifdef SWIG_LINK_RUNTIME + type_pointer = SWIG_ReturnGlobalTypeList((void *)0); +#else +# ifdef SWIGPY_USE_CAPSULE + type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); +# else + type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, + (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); +# endif + if (PyErr_Occurred()) { + PyErr_Clear(); + type_pointer = (void *)0; + } +#endif + } + return (swig_module_info *) type_pointer; +} + +#if PY_MAJOR_VERSION < 2 +/* PyModule_AddObject function was introduced in Python 2.0. The following function + is copied out of Python/modsupport.c in python version 2.3.4 */ +SWIGINTERN int +PyModule_AddObject(PyObject *m, char *name, PyObject *o) +{ + PyObject *dict; + if (!PyModule_Check(m)) { + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); + return SWIG_ERROR; + } + if (!o) { + PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); + return SWIG_ERROR; + } + + dict = PyModule_GetDict(m); + if (dict == NULL) { + /* Internal error -- modules must have a dict! */ + PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", + PyModule_GetName(m)); + return SWIG_ERROR; + } + if (PyDict_SetItemString(dict, name, o)) + return SWIG_ERROR; + Py_DECREF(o); + return SWIG_OK; +} +#endif + +SWIGRUNTIME void +#ifdef SWIGPY_USE_CAPSULE +SWIG_Python_DestroyModule(PyObject *obj) +#else +SWIG_Python_DestroyModule(void *vptr) +#endif +{ +#ifdef SWIGPY_USE_CAPSULE + swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); +#else + swig_module_info *swig_module = (swig_module_info *) vptr; +#endif + swig_type_info **types = swig_module->types; + size_t i; + for (i =0; i < swig_module->size; ++i) { + swig_type_info *ty = types[i]; + if (ty->owndata) { + SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; + if (data) SwigPyClientData_Del(data); + } + } + Py_DECREF(SWIG_This()); + swig_this = NULL; +} + +SWIGRUNTIME void +SWIG_Python_SetModule(swig_module_info *swig_module) { +#if PY_VERSION_HEX >= 0x03000000 + /* Add a dummy module object into sys.modules */ + PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); +#else + static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ + PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); +#endif +#ifdef SWIGPY_USE_CAPSULE + PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); + if (pointer && module) { + PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); + } else { + Py_XDECREF(pointer); + } +#else + PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); + if (pointer && module) { + PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); + } else { + Py_XDECREF(pointer); + } +#endif +} + +/* The python cached type query */ +SWIGRUNTIME PyObject * +SWIG_Python_TypeCache(void) { + static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); + return cache; +} + +SWIGRUNTIME swig_type_info * +SWIG_Python_TypeQuery(const char *type) +{ + PyObject *cache = SWIG_Python_TypeCache(); + PyObject *key = SWIG_Python_str_FromChar(type); + PyObject *obj = PyDict_GetItem(cache, key); + swig_type_info *descriptor; + if (obj) { +#ifdef SWIGPY_USE_CAPSULE + descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); +#else + descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); +#endif + } else { + swig_module_info *swig_module = SWIG_GetModule(0); + descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); + if (descriptor) { +#ifdef SWIGPY_USE_CAPSULE + obj = PyCapsule_New((void*) descriptor, NULL, NULL); +#else + obj = PyCObject_FromVoidPtr(descriptor, NULL); +#endif + PyDict_SetItem(cache, key, obj); + Py_DECREF(obj); + } + } + Py_DECREF(key); + return descriptor; +} + +/* + For backward compatibility only +*/ +#define SWIG_POINTER_EXCEPTION 0 +#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) +#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) + +SWIGRUNTIME int +SWIG_Python_AddErrMesg(const char* mesg, int infront) +{ + if (PyErr_Occurred()) { + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + PyErr_Fetch(&type, &value, &traceback); + if (value) { + char *tmp; + PyObject *old_str = PyObject_Str(value); + Py_XINCREF(type); + PyErr_Clear(); + if (infront) { + PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); + } else { + PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); + } + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(old_str); + } + return 1; + } else { + return 0; + } +} + +SWIGRUNTIME int +SWIG_Python_ArgFail(int argnum) +{ + if (PyErr_Occurred()) { + /* add information about failing argument */ + char mesg[256]; + PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); + return SWIG_Python_AddErrMesg(mesg, 1); + } else { + return 0; + } +} + +SWIGRUNTIMEINLINE const char * +SwigPyObject_GetDesc(PyObject *self) +{ + SwigPyObject *v = (SwigPyObject *)self; + swig_type_info *ty = v ? v->ty : 0; + return ty ? ty->str : ""; +} + +SWIGRUNTIME void +SWIG_Python_TypeError(const char *type, PyObject *obj) +{ + if (type) { +#if defined(SWIG_COBJECT_TYPES) + if (obj && SwigPyObject_Check(obj)) { + const char *otype = (const char *) SwigPyObject_GetDesc(obj); + if (otype) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", + type, otype); + return; + } + } else +#endif + { + const char *otype = (obj ? obj->ob_type->tp_name : 0); + if (otype) { + PyObject *str = PyObject_Str(obj); + const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; + if (cstr) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", + type, otype, cstr); + SWIG_Python_str_DelForPy3(cstr); + } else { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", + type, otype); + } + Py_XDECREF(str); + return; + } + } + PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); + } else { + PyErr_Format(PyExc_TypeError, "unexpected type is received"); + } +} + + +/* Convert a pointer value, signal an exception on a type mismatch */ +SWIGRUNTIME void * +SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { + void *result; + if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { + PyErr_Clear(); +#if SWIG_POINTER_EXCEPTION + if (flags) { + SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); + SWIG_Python_ArgFail(argnum); + } +#endif + } + return result; +} + +#ifdef SWIGPYTHON_BUILTIN +SWIGRUNTIME int +SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { + PyTypeObject *tp = obj->ob_type; + PyObject *descr; + PyObject *encoded_name; + descrsetfunc f; + int res = -1; + +# ifdef Py_USING_UNICODE + if (PyString_Check(name)) { + name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); + if (!name) + return -1; + } else if (!PyUnicode_Check(name)) +# else + if (!PyString_Check(name)) +# endif + { + PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); + return -1; + } else { + Py_INCREF(name); + } + + if (!tp->tp_dict) { + if (PyType_Ready(tp) < 0) + goto done; + } + + descr = _PyType_Lookup(tp, name); + f = NULL; + if (descr != NULL) + f = descr->ob_type->tp_descr_set; + if (!f) { + if (PyString_Check(name)) { + encoded_name = name; + Py_INCREF(name); + } else { + encoded_name = PyUnicode_AsUTF8String(name); + } + PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); + Py_DECREF(encoded_name); + } else { + res = f(descr, obj, value); + } + + done: + Py_DECREF(name); + return res; +} +#endif + + +#ifdef __cplusplus +} +#endif + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_AddressUxOuts_Handle swig_types[0] +#define SWIGTYPE_p_App__Handle swig_types[1] +#define SWIGTYPE_p_BalanceResult_Handle swig_types[2] +#define SWIGTYPE_p_BlockBody__Handle swig_types[3] +#define SWIGTYPE_p_Block__Handle swig_types[4] +#define SWIGTYPE_p_BuildInfo_Handle swig_types[5] +#define SWIGTYPE_p_Client__Handle swig_types[6] +#define SWIGTYPE_p_Config__Handle swig_types[7] +#define SWIGTYPE_p_Context__Handle swig_types[8] +#define SWIGTYPE_p_CreateTransactionResponse__Handle swig_types[9] +#define SWIGTYPE_p_CreatedTransactionInput__Handle swig_types[10] +#define SWIGTYPE_p_CreatedTransactionOutput__Handle swig_types[11] +#define SWIGTYPE_p_CreatedTransaction__Handle swig_types[12] +#define SWIGTYPE_p_FeeCalculator swig_types[13] +#define SWIGTYPE_p_Fee_Calculator swig_types[14] +#define SWIGTYPE_p_GoInterface swig_types[15] +#define SWIGTYPE_p_GoSlice swig_types[16] +#define SWIGTYPE_p_GoSlice_ swig_types[17] +#define SWIGTYPE_p_GoStringMap_ swig_types[18] +#define SWIGTYPE_p_GoString_ swig_types[19] +#define SWIGTYPE_p_Handle swig_types[20] +#define SWIGTYPE_p_Options__Handle swig_types[21] +#define SWIGTYPE_p_PasswordReader__Handle swig_types[22] +#define SWIGTYPE_p_ReadableEntry__Handle swig_types[23] +#define SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle swig_types[24] +#define SWIGTYPE_p_ReadableWallet__Handle swig_types[25] +#define SWIGTYPE_p_SortableTransactionResult_Handle swig_types[26] +#define SWIGTYPE_p_SpendResult_Handle swig_types[27] +#define SWIGTYPE_p_StatusResult_Handle swig_types[28] +#define SWIGTYPE_p_Strings__Handle swig_types[29] +#define SWIGTYPE_p_TransactionResult_Handle swig_types[30] +#define SWIGTYPE_p_Transaction__Handle swig_types[31] +#define SWIGTYPE_p_Transactions__Handle swig_types[32] +#define SWIGTYPE_p_WalletResponse__Handle swig_types[33] +#define SWIGTYPE_p_Wallet__Handle swig_types[34] +#define SWIGTYPE_p_Wallets__Handle swig_types[35] +#define SWIGTYPE_p_WebRpcClient__Handle swig_types[36] +#define SWIGTYPE_p__GoString_ swig_types[37] +#define SWIGTYPE_p___SIZE_TYPE__ swig_types[38] +#define SWIGTYPE_p_a_20__unsigned_char swig_types[39] +#define SWIGTYPE_p_a_32__unsigned_char swig_types[40] +#define SWIGTYPE_p_a_33__unsigned_char swig_types[41] +#define SWIGTYPE_p_a_4__unsigned_char swig_types[42] +#define SWIGTYPE_p_a_65__unsigned_char swig_types[43] +#define SWIGTYPE_p_a_sizeof_void_____64_8_1__1__char swig_types[44] +#define SWIGTYPE_p_api__NetworkConnectionsFilter swig_types[45] +#define SWIGTYPE_p_api__RichlistParams swig_types[46] +#define SWIGTYPE_p_char swig_types[47] +#define SWIGTYPE_p_cipher_Addresses swig_types[48] +#define SWIGTYPE_p_cipher_Checksum swig_types[49] +#define SWIGTYPE_p_cipher_PubKey swig_types[50] +#define SWIGTYPE_p_cipher_PubKeys swig_types[51] +#define SWIGTYPE_p_cipher_Ripemd160 swig_types[52] +#define SWIGTYPE_p_cipher_SHA256 swig_types[53] +#define SWIGTYPE_p_cipher_SHA256s swig_types[54] +#define SWIGTYPE_p_cipher_SecKey swig_types[55] +#define SWIGTYPE_p_cipher_SecKeys swig_types[56] +#define SWIGTYPE_p_cipher_Sig swig_types[57] +#define SWIGTYPE_p_cipher__Address swig_types[58] +#define SWIGTYPE_p_cipher__BitcoinAddress swig_types[59] +#define SWIGTYPE_p_cli__SendAmount swig_types[60] +#define SWIGTYPE_p_coin_UxOutArray swig_types[61] +#define SWIGTYPE_p_coin__Block swig_types[62] +#define SWIGTYPE_p_coin__BlockBody swig_types[63] +#define SWIGTYPE_p_coin__BlockHeader swig_types[64] +#define SWIGTYPE_p_coin__SignedBlock swig_types[65] +#define SWIGTYPE_p_coin__Transaction swig_types[66] +#define SWIGTYPE_p_coin__TransactionOutput swig_types[67] +#define SWIGTYPE_p_coin__UxBody swig_types[68] +#define SWIGTYPE_p_coin__UxHead swig_types[69] +#define SWIGTYPE_p_coin__UxOut swig_types[70] +#define SWIGTYPE_p_double swig_types[71] +#define SWIGTYPE_p_encrypt__ScryptChacha20poly1305 swig_types[72] +#define SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int swig_types[73] +#define SWIGTYPE_p_float swig_types[74] +#define SWIGTYPE_p_httphelper__Address swig_types[75] +#define SWIGTYPE_p_int swig_types[76] +#define SWIGTYPE_p_long_long swig_types[77] +#define SWIGTYPE_p_p_GoSlice_ swig_types[78] +#define SWIGTYPE_p_p_coin__Block swig_types[79] +#define SWIGTYPE_p_p_coin__Transaction swig_types[80] +#define SWIGTYPE_p_secp256k1go__Field swig_types[81] +#define SWIGTYPE_p_secp256k1go__XY swig_types[82] +#define SWIGTYPE_p_secp256k1go__XYZ swig_types[83] +#define SWIGTYPE_p_short swig_types[84] +#define SWIGTYPE_p_signed_char swig_types[85] +#define SWIGTYPE_p_unsigned_char swig_types[86] +#define SWIGTYPE_p_unsigned_int swig_types[87] +#define SWIGTYPE_p_unsigned_long_long swig_types[88] +#define SWIGTYPE_p_unsigned_short swig_types[89] +#define SWIGTYPE_p_void swig_types[90] +#define SWIGTYPE_p_wallet__Balance swig_types[91] +#define SWIGTYPE_p_wallet__BalancePair swig_types[92] +#define SWIGTYPE_p_wallet__Entry swig_types[93] +#define SWIGTYPE_p_wallet__Note swig_types[94] +#define SWIGTYPE_p_wallet__ReadableNote swig_types[95] +#define SWIGTYPE_p_wallet__UxBalance swig_types[96] +static swig_type_info *swig_types[98]; +static swig_module_info swig_module = {swig_types, 97, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#if (PY_VERSION_HEX <= 0x02000000) +# if !defined(SWIG_PYTHON_CLASSIC) +# error "This python version requires swig to be run with the '-classic' option" +# endif +#endif + +/*----------------------------------------------- + @(target):= _skycoin.so + ------------------------------------------------*/ +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_init PyInit__skycoin + +#else +# define SWIG_init init_skycoin + +#endif +#define SWIG_name "_skycoin" + +#define SWIGVERSION 0x030012 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) (void *)((const void *)(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) + + + #define SWIG_FILE_WITH_INIT + #include "libskycoin.h" + #include "swig.h" + // #include "base64.h" + + + int equalSlices(GoSlice* slice1, GoSlice* slice2, int elem_size){ + if(slice1->len != slice2->len) + return 0; + return memcmp(slice1->data, slice2->data, slice1->len * elem_size) == 0; + } + int equalTransactions(coin__Transaction* t1, coin__Transaction* t2){ + if( t1->Length != t2->Length || t1->Type != t2->Type ){ + return 0; + } + if( memcmp(&t1->InnerHash, &t2->InnerHash, sizeof(cipher__SHA256)) != 0 ) + return 0; + if(!equalSlices((GoSlice*)&t1->Sigs, (GoSlice*)&t2->Sigs, sizeof(cipher__Sig))) + return 0; + if(!equalSlices((GoSlice*)&t1->In, (GoSlice*)&t2->In, sizeof(cipher__SHA256))) + return 0; + if(!equalSlices((GoSlice*)&t1->Out, (GoSlice*)&t2->Out, sizeof(coin__TransactionOutput))) + return 0; + return 1; + } + int equalTransactionsArrays(coin__Transactions* pTxs1, coin__Transactions* pTxs2){ + if( pTxs1->len != pTxs2->len ) + return 0; + coin__Transaction* pTx1 = pTxs1->data; + coin__Transaction* pTx2 = pTxs2->data; + int i; + for(i = 0; i < pTxs1->len; i++){ + if(!equalTransactions(pTx1, pTx2)) + return 0; + pTx1++; + pTx2++; + } + return 1; + } + int equalBlockHeaders(coin__BlockHeader* bh1, coin__BlockHeader* bh2){ + if( bh1->Version != bh2->Version || bh1->Time != bh2->Time || + bh1->BkSeq != bh2->BkSeq || bh1->Fee != bh2->Fee) + return 0; + if( memcmp( &bh1->PrevHash, bh2->PrevHash, sizeof(bh2->PrevHash) ) != 0 ) + return 0; + if( memcmp( &bh1->BodyHash, bh2->PrevHash, sizeof(bh2->BodyHash) ) != 0 ) + return 0; + if( memcmp( &bh1->UxHash, bh2->PrevHash, sizeof(bh2->UxHash) ) != 0 ) + return 0; + return 1; + } + + +#include +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN int +SWIG_AsVal_double (PyObject *obj, double *val) +{ + int res = SWIG_TypeError; + if (PyFloat_Check(obj)) { + if (val) *val = PyFloat_AsDouble(obj); + return SWIG_OK; +#if PY_VERSION_HEX < 0x03000000 + } else if (PyInt_Check(obj)) { + if (val) *val = (double) PyInt_AsLong(obj); + return SWIG_OK; +#endif + } else if (PyLong_Check(obj)) { + double v = PyLong_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + double d = PyFloat_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = d; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); + } else { + PyErr_Clear(); + } + } + } +#endif + return res; +} + + +#include + + +#include + + +SWIGINTERNINLINE int +SWIG_CanCastAsInteger(double *d, double min, double max) { + double x = *d; + if ((min <= x && x <= max)) { + double fx = floor(x); + double cx = ceil(x); + double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + if ((errno == EDOM) || (errno == ERANGE)) { + errno = 0; + } else { + double summ, reps, diff; + if (rd < x) { + diff = x - rd; + } else if (rd > x) { + diff = rd - x; + } else { + return 1; + } + summ = rd + x; + reps = diff/summ; + if (reps < 8*DBL_EPSILON) { + *d = rd; + return 1; + } + } + } + return 0; +} + + +SWIGINTERN int +SWIG_AsVal_long (PyObject *obj, long* val) +{ +#if PY_VERSION_HEX < 0x03000000 + if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; + } else +#endif + if (PyLong_Check(obj)) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + return SWIG_OverflowError; + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + long v = PyInt_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { + if (val) *val = (long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_int (PyObject * obj, int *val) +{ + long v; + int res = SWIG_AsVal_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < INT_MIN || v > INT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = (int)(v); + } + } + return res; +} + + +SWIGINTERNINLINE PyObject* + SWIG_From_int (int value) +{ + return PyInt_FromLong((long) value); +} + + + void destroy_cipher_SecKeys(cipher_SecKeys* p){ + if( p != NULL ){ + if( p->data != NULL ){ + free( p->data ); + } + } + } + + + void destroy_cipher_PubKeys(cipher_PubKeys* p){ + if( p != NULL ){ + if( p->data != NULL ){ + free( p->data ); + } + } + } + + + +GoUint32_ _WrapperFeeCalculator(Transaction__Handle handle, GoUint64_* pFee, void* context){ + PyObject* feeCalc = (PyObject*)context; + PyObject *result = PyObject_CallFunctionObjArgs(feeCalc, PyLong_FromLong(handle), NULL); + GoUint32_ error = 0; + if(PyTuple_Check(result)){ + PyObject* objerror = PyTuple_GetItem(result, 0); + error = PyLong_AsLong(objerror); + result = PyTuple_GetItem(result, 1); + } + if(error != 0) + return error; + GoUint64_ ret = PyLong_AsLong(result); + Py_DECREF(result); + if(pFee){ + *pFee = ret; + return 0; + } + else + return 1; +} + + + GoUint32 wrap_SKY_coin_Transaction_SignInputs(Transaction__Handle handle, cipher_SecKeys* __in_secKeys){ + GoSlice data; + data.data = __in_secKeys->data; + data.len = __in_secKeys->count; + data.cap = __in_secKeys->count; + return SKY_coin_Transaction_SignInputs(handle, data); + } + + +SWIGINTERNINLINE PyObject* + SWIG_From_unsigned_SS_int (unsigned int value) +{ + return PyInt_FromSize_t((size_t) value); +} + + + GoUint32 wrap_SKY_cipher_GenerateDeterministicKeyPairs(GoSlice seed, GoInt n, cipher_SecKeys* __out_secKeys){ + __out_secKeys->data = NULL; + __out_secKeys->count = 0; + GoSlice_ data; + data.data = malloc(sizeof(cipher_SecKey) * n); + data.len = n; + data.cap = n; + GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairs(seed, n, &data); + if( result == 0){ + __out_secKeys->data = data.data; + __out_secKeys->count = data.len; + } + return result; + } + + +#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE) +# define SWIG_LONG_LONG_AVAILABLE +#endif + + +#ifdef SWIG_LONG_LONG_AVAILABLE +SWIGINTERN int +SWIG_AsVal_long_SS_long (PyObject *obj, long long *val) +{ + int res = SWIG_TypeError; + if (PyLong_Check(obj)) { + long long v = PyLong_AsLongLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + res = SWIG_OverflowError; + } + } else { + long v; + res = SWIG_AsVal_long (obj,&v); + if (SWIG_IsOK(res)) { + if (val) *val = v; + return res; + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + const double mant_max = 1LL << DBL_MANT_DIG; + const double mant_min = -mant_max; + double d; + res = SWIG_AsVal_double (obj,&d); + if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max)) + return SWIG_OverflowError; + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) { + if (val) *val = (long long)(d); + return SWIG_AddCast(res); + } + res = SWIG_TypeError; + } +#endif + return res; +} +#endif + + + GoUint32 wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice seed, GoInt n, coin__UxArray* newSeed, cipher_SecKeys* __out_secKeys){ + __out_secKeys->data = NULL; + __out_secKeys->count = 0; + GoSlice_ data; + data.data = malloc(sizeof(cipher_SecKey) * n); + data.len = n; + data.cap = n; + GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, n, newSeed, &data); + if( result == 0){ + __out_secKeys->data = data.data; + __out_secKeys->count = data.len; + } + return result; + } + + + GoUint32 wrap_SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxOut){ + GoSlice_ dataIn; + dataIn.data = __uxIn->data; + dataIn.len = __uxIn->count; + dataIn.cap = __uxIn->count; + GoSlice_ dataOut; + dataOut.data = __uxOut->data; + dataOut.len = __uxOut->count; + dataOut.cap = __uxOut->count; + GoUint32 result = SKY_coin_VerifyTransactionCoinsSpending(&dataIn, &dataOut); + return result; + }; + + + GoUint32 wrap_SKY_coin_VerifyTransactionHoursSpending(GoUint64 _headTime , coin_UxOutArray* __uxIn, coin_UxOutArray* __uxOut){ + GoSlice_ dataIn; + dataIn.data = __uxIn->data; + dataIn.len = __uxIn->count; + dataIn.cap = __uxIn->count; + GoSlice_ dataOut; + dataOut.data = __uxOut->data; + dataOut.len = __uxOut->count; + dataOut.cap = __uxOut->count; + GoUint32 result = SKY_coin_VerifyTransactionHoursSpending(_headTime, &dataIn, &dataOut); + return result; + }; + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) +{ +#if PY_VERSION_HEX < 0x03000000 + if (PyInt_Check(obj)) { + long v = PyInt_AsLong(obj); + if (v >= 0) { + if (val) *val = v; + return SWIG_OK; + } else { + return SWIG_OverflowError; + } + } else +#endif + if (PyLong_Check(obj)) { + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + return SWIG_OverflowError; + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + if (val) *val = (unsigned long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +#ifdef SWIG_LONG_LONG_AVAILABLE +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val) +{ + int res = SWIG_TypeError; + if (PyLong_Check(obj)) { + unsigned long long v = PyLong_AsUnsignedLongLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + res = SWIG_OverflowError; + } + } else { + unsigned long v; + res = SWIG_AsVal_unsigned_SS_long (obj,&v); + if (SWIG_IsOK(res)) { + if (val) *val = v; + return res; + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + const double mant_max = 1LL << DBL_MANT_DIG; + double d; + res = SWIG_AsVal_double (obj,&d); + if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max)) + return SWIG_OverflowError; + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { + if (val) *val = (unsigned long long)(d); + return SWIG_AddCast(res); + } + res = SWIG_TypeError; + } +#endif + return res; +} +#endif + + + GoUint32 wrap_SKY_coin_CreateUnspents(coin__BlockHeader* bh, Transaction__Handle t, coin_UxOutArray* __return_Ux){ + __return_Ux->data = NULL; + __return_Ux->count = 0; + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_CreateUnspents(bh, t, &data); + if( result == 0){ + __return_Ux->data = data.data; + __return_Ux->count = data.len; + } + return result; + } + + + GoUint32 wrap_SKY_coin_Transaction_VerifyInput(Transaction__Handle handle, coin_UxOutArray* __uxIn){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_Transaction_VerifyInput(handle, &data); + } + + + GoUint32 wrap_SKY_coin_UxArray_HasDupes(coin_UxOutArray* __uxIn, GoUint8* p1){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_HasDupes(&data, p1); + } + + + GoUint32 wrap_SKY_coin_UxArray_Coins(coin_UxOutArray* __uxIn, GoUint64* p1){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_Coins(&data, p1); + } + + + GoUint32 wrap_SKY_coin_UxArray_CoinHours(coin_UxOutArray* __uxIn, GoUint64 p1, GoUint64* p2){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_CoinHours(&data, p1, p2); + } + + + GoUint32 wrap_SKY_coin_UxArray_Less(coin_UxOutArray* __uxIn, GoInt p1, GoInt p2, GoUint8* p3){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_Less(&data, p1, p2, p3); + } + + + GoUint32 wrap_SKY_coin_UxArray_Swap(coin_UxOutArray* __uxIn, GoInt p1, GoInt p2){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_Swap(&data, p1, p2); + } + + + GoUint32 wrap_SKY_coin_UxArray_Sub(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxIn2, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + GoSlice_ data2; + data2.data = __uxIn2->data; + data2.len = __uxIn2->count; + data2.cap = __uxIn2->count; + GoSlice_ data3; + data3.data = NULL; + data3.len = 0; + data3.cap = 0; + GoUint32 result = SKY_coin_UxArray_Sub(&data, &data2, &data3); + if( result == 0){ + __return_Ux->data = data3.data; + __return_Ux->count = data3.len; + } + return result; + } + + + GoUint32 wrap_SKY_coin_UxArray_Add(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxIn2, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + GoSlice_ data2; + data2.data = __uxIn2->data; + data2.len = __uxIn2->count; + data2.cap = __uxIn2->count; + GoSlice_ data3; + data3.data = NULL; + data3.len = 0; + data3.cap = 0; + GoUint32 result = SKY_coin_UxArray_Add(&data, &data2, &data3); + if( result == 0){ + __return_Ux->data = data3.data; + __return_Ux->count = data3.len; + } + return result; + } + + + GoUint32 wrap_SKY_coin_NewAddressUxOuts(coin_UxOutArray* __uxIn, AddressUxOuts_Handle* p1){ + coin__UxArray data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_NewAddressUxOuts(&data, p1); + } + + + GoUint32 wrap_SKY_coin_UxArray_Hashes(coin_UxOutArray* __uxIn, cipher_SHA256s* __out_hashes){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + GoSlice_ dataOut; + dataOut.data = NULL; + dataOut.len = 0; + dataOut.cap = 0; + GoUint32 result = SKY_coin_UxArray_Hashes(&data, &dataOut); + if(result == 0){ + __out_hashes->data = dataOut.data; + __out_hashes->count = dataOut.len; + } + return result; + } + + + GoUint32 wrap_SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle p0, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_AddressUxOuts_Flatten(p0, &data); + if( result == 0 ){ + __return_Ux->data = data.data; + __return_Ux->count = data.len; + } + return result; + } + + + GoUint32 wrap_SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle p0, cipher__Address* p1, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_AddressUxOuts_Get(p0, p1, &data); + if( result == 0 ){ + __return_Ux->data = data.data; + __return_Ux->count = data.len; + } + return result; + } + + + GoUint32 wrap_SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin_UxOutArray* __uxIn){ + coin__UxArray data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_AddressUxOuts_Set(p0, p1, &data); + } + + + GoUint32 wrap_SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, cipher_Addresses* __out_addresses){ + coin__UxArray data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_AddressUxOuts_Keys(p0, &data); + if( result == 0){ + __out_addresses->data = data.data; + __out_addresses->count = data.len; + } + return result; + } + + + GoUint32 wrap_SKY_coin_Transactions_Hashes(Transactions__Handle p0, cipher_SHA256s* __out_hashes){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_Transactions_Hashes(p0, &data); + if( result == 0){ + __out_hashes->data = data.data; + __out_hashes->count = data.len; + } + return result; + } + + + GoUint32 wrap_SKY_fee_TransactionFee(Transaction__Handle __txn, GoUint64 __p1, coin_UxOutArray* __uxIn, GoUint64 *__return_fee ){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_fee_TransactionFee(__txn,__p1, &data,__return_fee); + } + + + void wrap_SKY_params_GetDistributionAddresses(coin__UxArray* __return_strings){ + SKY_params_GetDistributionAddresses(__return_strings); + } + + + void wrap_SKY_params_GetUnlockedDistributionAddresses(coin__UxArray* __return_strings){ + SKY_params_GetUnlockedDistributionAddresses(__return_strings); + } + + + void wrap_SKY_params_GetLockedDistributionAddresses(coin__UxArray* __return_strings){ + SKY_params_GetLockedDistributionAddresses(__return_strings); + } + +SWIGINTERN int cipher_PubKey___eq__(cipher_PubKey *self,cipher_PubKey *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN int cipher_PubKey_compareToString(cipher_PubKey *self,PyObject *str){ + char* s = SWIG_Python_str_AsChar(str); + int result = memcmp(s, self->data, sizeof(self->data)); + SWIG_Python_str_DelForPy3(s); + return result; + } +SWIGINTERN PyObject *cipher_PubKey_toStr(cipher_PubKey *self){ + return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); + } +SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_SecKey___eq__(cipher_SecKey *self,cipher_SecKey *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN int cipher_SecKey_compareToString(cipher_SecKey *self,PyObject *str){ + char* s = SWIG_Python_str_AsChar(str); + int result = memcmp(s, self->data, sizeof(self->data)); + SWIG_Python_str_DelForPy3(s); + return result; + } +SWIGINTERN PyObject *cipher_SecKey_toStr(cipher_SecKey *self){ + return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); + } +SWIGINTERN void cipher_SecKey_assignFrom(cipher_SecKey *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_SecKey_assignTo(cipher_SecKey *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Ripemd160___eq__(cipher_Ripemd160 *self,cipher_Ripemd160 *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN int cipher_Ripemd160_compareToString(cipher_Ripemd160 *self,PyObject *str){ + char* s = SWIG_Python_str_AsChar(str); + int result = memcmp(s, self->data, sizeof(self->data)); + SWIG_Python_str_DelForPy3(s); + return result; + } +SWIGINTERN PyObject *cipher_Ripemd160_toStr(cipher_Ripemd160 *self){ + return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); + } +SWIGINTERN void cipher_Ripemd160_assignFrom(cipher_Ripemd160 *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Ripemd160_assignTo(cipher_Ripemd160 *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Sig___eq__(cipher_Sig *self,cipher_Sig *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN int cipher_Sig_compareToString(cipher_Sig *self,PyObject *str){ + char* s = SWIG_Python_str_AsChar(str); + int result = memcmp(s, self->data, sizeof(self->data)); + SWIG_Python_str_DelForPy3(s); + return result; + } +SWIGINTERN PyObject *cipher_Sig_toStr(cipher_Sig *self){ + return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); + } +SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_SHA256___eq__(cipher_SHA256 *self,cipher_SHA256 *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN int cipher_SHA256_compareToString(cipher_SHA256 *self,PyObject *str){ + char* s = SWIG_Python_str_AsChar(str); + int result = memcmp(s, self->data, sizeof(self->data)); + SWIG_Python_str_DelForPy3(s); + return result; + } +SWIGINTERN PyObject *cipher_SHA256_toStr(cipher_SHA256 *self){ + return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); + } +SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Checksum___eq__(cipher_Checksum *self,cipher_Checksum *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN int cipher_Checksum_compareToString(cipher_Checksum *self,PyObject *str){ + char* s = SWIG_Python_str_AsChar(str); + int result = memcmp(s, self->data, sizeof(self->data)); + SWIG_Python_str_DelForPy3(s); + return result; + } +SWIGINTERN PyObject *cipher_Checksum_toStr(cipher_Checksum *self){ + return PyBytes_FromStringAndSize((const char*)self->data, sizeof(self->data)); + } +SWIGINTERN void cipher_Checksum_assignFrom(cipher_Checksum *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Checksum_assignTo(cipher_Checksum *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN cipher_SecKey *cipher_SecKeys_getAt(cipher_SecKeys *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_SecKeys_setAt(cipher_SecKeys *self,int i,cipher_SecKey *seckey){ + if( i < self->count){ + memcpy(&self->data[i], seckey, sizeof(*seckey)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_SecKeys___eq__(cipher_SecKeys *self,cipher_SecKeys *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SecKey) * self->count) == 0; + } +SWIGINTERN void cipher_SecKeys_allocate(cipher_SecKeys *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_SecKeys_release(cipher_SecKeys *self){ + destroy_cipher_SecKeys(self); + } +SWIGINTERN cipher_PubKey *cipher_PubKeys_getAt(cipher_PubKeys *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_PubKeys_setAt(cipher_PubKeys *self,int i,cipher_PubKey *pubkey){ + if( i < self->count){ + memcpy(&self->data[i], pubkey, sizeof(*pubkey)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_PubKeys___eq__(cipher_PubKeys *self,cipher_PubKeys *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_PubKey) * self->count) == 0; + } +SWIGINTERN void cipher_PubKeys_allocate(cipher_PubKeys *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_PubKeys_release(cipher_PubKeys *self){ + destroy_cipher_PubKeys(self); + } +SWIGINTERN cipher_SHA256 *cipher_SHA256s_getAt(cipher_SHA256s *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_SHA256s_setAt(cipher_SHA256s *self,int i,cipher_SHA256 *hash){ + if( i < self->count){ + memcpy(&self->data[i], hash, sizeof(*hash)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_SHA256s___eq__(cipher_SHA256s *self,cipher_SHA256s *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SHA256) * self->count) == 0; + } +SWIGINTERN void cipher_SHA256s_allocate(cipher_SHA256s *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_SHA256s_release(cipher_SHA256s *self){ + if(self->data != NULL) free(self->data); + } + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) +{ +#if PY_VERSION_HEX>=0x03000000 +#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) + if (PyBytes_Check(obj)) +#else + if (PyUnicode_Check(obj)) +#endif +#else + if (PyString_Check(obj)) +#endif + { + char *cstr; Py_ssize_t len; +#if PY_VERSION_HEX>=0x03000000 +#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) + if (!alloc && cptr) { + /* We can't allow converting without allocation, since the internal + representation of string in Python 3 is UCS-2/UCS-4 but we require + a UTF-8 representation. + TODO(bhy) More detailed explanation */ + return SWIG_RuntimeError; + } + obj = PyUnicode_AsUTF8String(obj); + if(alloc) *alloc = SWIG_NEWOBJ; +#endif + PyBytes_AsStringAndSize(obj, &cstr, &len); +#else + PyString_AsStringAndSize(obj, &cstr, &len); +#endif + if (cptr) { + if (alloc) { + /* + In python the user should not be able to modify the inner + string representation. To warranty that, if you define + SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string + buffer is always returned. + + The default behavior is just to return the pointer value, + so, be careful. + */ +#if defined(SWIG_PYTHON_SAFE_CSTRINGS) + if (*alloc != SWIG_OLDOBJ) +#else + if (*alloc == SWIG_NEWOBJ) +#endif + { + *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); + *alloc = SWIG_NEWOBJ; + } else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } else { +#if PY_VERSION_HEX>=0x03000000 +#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) + *cptr = PyBytes_AsString(obj); +#else + assert(0); /* Should never reach here with Unicode strings in Python 3 */ +#endif +#else + *cptr = SWIG_Python_str_AsChar(obj); +#endif + } + } + if (psize) *psize = len + 1; +#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) + Py_XDECREF(obj); +#endif + return SWIG_OK; + } else { +#if defined(SWIG_PYTHON_2_UNICODE) +#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) +#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once" +#endif +#if PY_VERSION_HEX<0x03000000 + if (PyUnicode_Check(obj)) { + char *cstr; Py_ssize_t len; + if (!alloc && cptr) { + return SWIG_RuntimeError; + } + obj = PyUnicode_AsUTF8String(obj); + if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) { + if (cptr) { + if (alloc) *alloc = SWIG_NEWOBJ; + *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); + } + if (psize) *psize = len + 1; + + Py_XDECREF(obj); + return SWIG_OK; + } else { + Py_XDECREF(obj); + } + } +#endif +#endif + + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + void* vptr = 0; + if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = (char *) vptr; + if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + if (carray) { + if (size > INT_MAX) { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + return pchar_descriptor ? + SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void(); + } else { +#if PY_VERSION_HEX >= 0x03000000 +#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) + return PyBytes_FromStringAndSize(carray, (Py_ssize_t)(size)); +#else +#if PY_VERSION_HEX >= 0x03010000 + return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size), "surrogateescape"); +#else + return PyUnicode_FromStringAndSize(carray, (Py_ssize_t)(size)); +#endif +#endif +#else + return PyString_FromStringAndSize(carray, (Py_ssize_t)(size)); +#endif + } + } else { + return SWIG_Py_Void(); + } +} + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + + #define SWIG_From_long PyInt_FromLong + + +#ifdef SWIG_LONG_LONG_AVAILABLE +SWIGINTERNINLINE PyObject* +SWIG_From_long_SS_long (long long value) +{ + return ((value < LONG_MIN) || (value > LONG_MAX)) ? + PyLong_FromLongLong(value) : PyInt_FromLong((long)(value)); +} +#endif + + +SWIGINTERNINLINE PyObject* +SWIG_From_unsigned_SS_long (unsigned long value) +{ + return (value > LONG_MAX) ? + PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)(value)); +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_unsigned_SS_char (unsigned char value) +{ + return SWIG_From_unsigned_SS_long (value); +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = (unsigned int)(v); + } + } + return res; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UCHAR_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = (unsigned char)(v); + } + } + return res; +} + +SWIGINTERN int cipher__Address___eq__(cipher__Address *self,cipher__Address *a){ + if( self->Version == a->Version ){ + return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; + } + return 0; + } +SWIGINTERN PyObject *cipher__Address_toStr(cipher__Address *self){ + return PyBytes_FromStringAndSize((const char*)self->Key, sizeof(self->Key)); + } +SWIGINTERN int cipher__BitcoinAddress___eq__(cipher__BitcoinAddress *self,cipher__BitcoinAddress *a){ + if( self->Version == a->Version ){ + return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; + } + return 0; + } +SWIGINTERN PyObject *cipher__BitcoinAddress_toStr(cipher__BitcoinAddress *self){ + return PyBytes_FromStringAndSize((const char*)self->Key, sizeof(self->Key)); + } +SWIGINTERN int coin__Transaction___eq__(coin__Transaction *self,coin__Transaction *t){ + return equalTransactions(self, t); + } + +SWIGINTERN int +SWIG_AsVal_signed_SS_char (PyObject * obj, signed char *val) +{ + long v; + int res = SWIG_AsVal_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < SCHAR_MIN || v > SCHAR_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = (signed char)(v); + } + } + return res; +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_signed_SS_char (signed char value) +{ + return SWIG_From_long (value); +} + +SWIGINTERN int coin__TransactionOutput___eq__(coin__TransactionOutput *self,coin__TransactionOutput *t){ + if( self->Coins != t->Coins || + self->Hours != t->Hours ){ + return 0; + } + + if(memcmp(&self->Address, &t->Address, sizeof(cipher__Address)) != 0) + return 0; + return 1; + } + +#ifdef SWIG_LONG_LONG_AVAILABLE +SWIGINTERNINLINE PyObject* +SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) +{ + return (value > LONG_MAX) ? + PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)(value)); +} +#endif + +SWIGINTERN int coin__BlockHeader___eq__(coin__BlockHeader *self,coin__BlockHeader *bh){ + return equalBlockHeaders(self, bh); + } +SWIGINTERN int coin__BlockBody___eq__(coin__BlockBody *self,coin__BlockBody *b){ + return equalTransactionsArrays(&self->Transactions, &b->Transactions); + } +SWIGINTERN PyObject *coin__UxBody_GetSrcTransaction(coin__UxBody *self){ + return SWIG_NewPointerObj(SWIG_as_voidptr(&self->SrcTransaction), SWIGTYPE_p_cipher_SHA256, 0 ); + } +SWIGINTERN void coin__UxBody_SetSrcTransaction(coin__UxBody *self,PyObject *o){ + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (SWIG_IsOK(res)){ + cipher_SHA256* p = (cipher_SHA256*)argp; + memcpy( &self->SrcTransaction, &p->data, sizeof(cipher__SHA256)); + } + } +SWIGINTERN int coin__UxOut___eq__(coin__UxOut *self,coin__UxOut *u){ + return memcmp(self, u, sizeof(coin__UxOut)) == 0; + } +#ifdef __cplusplus +extern "C" { +#endif +SWIGINTERN PyObject *_wrap_equalSlices(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice *arg2 = (GoSlice *) 0 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:equalSlices",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "equalSlices" "', argument " "1"" of type '" "GoSlice *""'"); + } + arg1 = (GoSlice *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GoSlice, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "equalSlices" "', argument " "2"" of type '" "GoSlice *""'"); + } + arg2 = (GoSlice *)(argp2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "equalSlices" "', argument " "3"" of type '" "int""'"); + } + arg3 = (int)(val3); + result = (int)equalSlices(arg1,arg2,arg3); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_equalTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:equalTransactions",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "equalTransactions" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "equalTransactions" "', argument " "2"" of type '" "coin__Transaction *""'"); + } + arg2 = (coin__Transaction *)(argp2); + result = (int)equalTransactions(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_equalTransactionsArrays(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transactions *arg1 = (coin__Transactions *) 0 ; + coin__Transactions *arg2 = (coin__Transactions *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:equalTransactionsArrays",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice_, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "equalTransactionsArrays" "', argument " "1"" of type '" "coin__Transactions *""'"); + } + arg1 = (coin__Transactions *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GoSlice_, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "equalTransactionsArrays" "', argument " "2"" of type '" "coin__Transactions *""'"); + } + arg2 = (coin__Transactions *)(argp2); + result = (int)equalTransactionsArrays(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_equalBlockHeaders(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:equalBlockHeaders",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "equalBlockHeaders" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "equalBlockHeaders" "', argument " "2"" of type '" "coin__BlockHeader *""'"); + } + arg2 = (coin__BlockHeader *)(argp2); + result = (int)equalBlockHeaders(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_destroy_cipher_SecKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:destroy_cipher_SecKeys",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroy_cipher_SecKeys" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + destroy_cipher_SecKeys(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_destroy_cipher_PubKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:destroy_cipher_PubKeys",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "destroy_cipher_PubKeys" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + destroy_cipher_PubKeys(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; + cipher_SecKeys temp2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SignInputs",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + int i; + arg2 = &temp2; + arg2->count = PyList_Size(obj1); + arg2->data = malloc(sizeof(cipher_SecKey) * arg2->count); + cipher_SecKey* pdata = arg2->data; + for(i = 0; i < arg2->count; i++){ + PyObject *o = PyList_GetItem(obj1, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + memcpy(pdata, p, sizeof(cipher_SecKey)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_Transaction_SignInputs(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + if (arg2->data) free(arg2->data); + } + return resultobj; +fail: + { + if (arg2->data) free(arg2->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoInt arg2 ; + cipher_SecKeys *arg3 = (cipher_SecKeys *) 0 ; + long long val2 ; + int ecode2 = 0 ; + cipher_SecKeys temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.count = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairs",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPairs', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairs" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)wrap_SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg3->count; i++) { + cipher_SecKey* key = &(arg3->data[i]); + cipher_SecKey* newKey = malloc(sizeof(cipher_SecKey)); + memcpy(newKey, key, sizeof(cipher_SecKey)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg3->data != NULL) + free( (void*)arg3->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + cipher_SecKeys *arg4 = (cipher_SecKeys *) 0 ; + long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; + cipher_SecKeys temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + { + temp4.data = NULL; + temp4.count = 0; + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OO:wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg4->count; i++) { + cipher_SecKey* key = &(arg4->data[i]); + cipher_SecKey* newKey = malloc(sizeof(cipher_SecKey)); + memcpy(newKey, key, sizeof(cipher_SecKey)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg4->data != NULL) + free( (void*)arg4->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + coin_UxOutArray temp1 ; + coin_UxOutArray temp2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_VerifyTransactionCoinsSpending",&obj0,&obj1)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + { + int i; + arg2 = &temp2; + arg2->count = PyList_Size(obj1); + arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); + coin__UxOut* pdata = arg2->data; + for(i = 0; i < arg2->count; i++){ + PyObject *o = PyList_GetItem(obj1, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + if (arg1->data) free(arg1->data); + } + { + if (arg2->data) free(arg2->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + { + if (arg2->data) free(arg2->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + coin_UxOutArray temp2 ; + coin_UxOutArray temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_VerifyTransactionHoursSpending",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_VerifyTransactionHoursSpending" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + { + int i; + arg2 = &temp2; + arg2->count = PyList_Size(obj1); + arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); + coin__UxOut* pdata = arg2->data; + for(i = 0; i < arg2->count; i++){ + PyObject *o = PyList_GetItem(obj1, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + { + int i; + arg3 = &temp3; + arg3->count = PyList_Size(obj2); + arg3->data = malloc(sizeof(coin__UxOut) * arg3->count); + coin__UxOut* pdata = arg3->data; + for(i = 0; i < arg3->count; i++){ + PyObject *o = PyList_GetItem(obj2, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + if (arg2->data) free(arg2->data); + } + { + if (arg3->data) free(arg3->data); + } + return resultobj; +fail: + { + if (arg2->data) free(arg2->data); + } + { + if (arg3->data) free(arg3->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + coin_UxOutArray temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.count = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_CreateUnspents",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_CreateUnspents" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)wrap_SKY_coin_CreateUnspents(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg3->count; i++) { + coin__UxOut* key = &(arg3->data[i]); + coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); + memcpy(newKey, key, sizeof(coin__UxOut)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg3->data != NULL) + free( (void*)arg3->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + coin_UxOutArray temp2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_VerifyInput",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + int i; + arg2 = &temp2; + arg2->count = PyList_Size(obj1); + arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); + coin__UxOut* pdata = arg2->data; + for(i = 0; i < arg2->count; i++){ + PyObject *o = PyList_GetItem(obj1, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_Transaction_VerifyInput(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + if (arg2->data) free(arg2->data); + } + return resultobj; +fail: + { + if (arg2->data) free(arg2->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + coin_UxOutArray temp1 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_HasDupes",&obj0)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_UxArray_HasDupes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } + { + if (arg1->data) free(arg1->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + coin_UxOutArray temp1 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_Coins",&obj0)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_UxArray_Coins(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + { + if (arg1->data) free(arg1->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + coin_UxOutArray temp1 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3 = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_CoinHours",&obj0,&obj1)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)wrap_SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + } + { + if (arg1->data) free(arg1->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + coin_UxOutArray temp1 ; + long long val2 ; + int ecode2 = 0 ; + long long val3 ; + int ecode3 = 0 ; + GoUint8 temp4 ; + int res4 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_UxArray_Less",&obj0,&obj1,&obj2)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Less" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Less" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + result = (GoUint32)wrap_SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); + } + { + if (arg1->data) free(arg1->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + coin_UxOutArray temp1 ; + long long val2 ; + int ecode2 = 0 ; + long long val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_UxArray_Swap",&obj0,&obj1,&obj2)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Swap" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Swap" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + result = (GoUint32)wrap_SKY_coin_UxArray_Swap(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + if (arg1->data) free(arg1->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + coin_UxOutArray temp1 ; + coin_UxOutArray temp2 ; + coin_UxOutArray temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.count = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Sub",&obj0,&obj1)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + { + int i; + arg2 = &temp2; + arg2->count = PyList_Size(obj1); + arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); + coin__UxOut* pdata = arg2->data; + for(i = 0; i < arg2->count; i++){ + PyObject *o = PyList_GetItem(obj1, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_UxArray_Sub(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg3->count; i++) { + coin__UxOut* key = &(arg3->data[i]); + coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); + memcpy(newKey, key, sizeof(coin__UxOut)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg3->data != NULL) + free( (void*)arg3->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + { + if (arg1->data) free(arg1->data); + } + { + if (arg2->data) free(arg2->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + { + if (arg2->data) free(arg2->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + coin_UxOutArray temp1 ; + coin_UxOutArray temp2 ; + coin_UxOutArray temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.count = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Add",&obj0,&obj1)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + { + int i; + arg2 = &temp2; + arg2->count = PyList_Size(obj1); + arg2->data = malloc(sizeof(coin__UxOut) * arg2->count); + coin__UxOut* pdata = arg2->data; + for(i = 0; i < arg2->count; i++){ + PyObject *o = PyList_GetItem(obj1, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_UxArray_Add(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg3->count; i++) { + coin__UxOut* key = &(arg3->data[i]); + coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); + memcpy(newKey, key, sizeof(coin__UxOut)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg3->data != NULL) + free( (void*)arg3->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + { + if (arg1->data) free(arg1->data); + } + { + if (arg2->data) free(arg2->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + { + if (arg2->data) free(arg2->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_NewAddressUxOuts__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; + coin_UxOutArray temp1 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_NewAddressUxOuts",&obj0)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_NewAddressUxOuts(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + { + if (arg1->data) free(arg1->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; + coin_UxOutArray temp1 ; + cipher_SHA256s temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.count = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_Hashes",&obj0)) SWIG_fail; + { + int i; + arg1 = &temp1; + arg1->count = PyList_Size(obj0); + arg1->data = malloc(sizeof(coin__UxOut) * arg1->count); + coin__UxOut* pdata = arg1->data; + for(i = 0; i < arg1->count; i++){ + PyObject *o = PyList_GetItem(obj0, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_UxArray_Hashes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg2->count; i++) { + cipher_SHA256* key = &(arg2->data[i]); + cipher_SHA256* newKey = malloc(sizeof(cipher_SHA256)); + memcpy(newKey, key, sizeof(cipher_SHA256)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg2->data != NULL) + free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + { + if (arg1->data) free(arg1->data); + } + return resultobj; +fail: + { + if (arg1->data) free(arg1->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + coin_UxOutArray temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.count = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Flatten",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)wrap_SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg2->count; i++) { + coin__UxOut* key = &(arg2->data[i]); + coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); + memcpy(newKey, key, sizeof(coin__UxOut)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg2->data != NULL) + free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Get__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + coin_UxOutArray temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.count = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Get",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Get" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)wrap_SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg3->count; i++) { + coin__UxOut* key = &(arg3->data[i]); + coin__UxOut* newKey = malloc(sizeof(coin__UxOut)); + memcpy(newKey, key, sizeof(coin__UxOut)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg3->data != NULL) + free( (void*)arg3->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + coin_UxOutArray temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_AddressUxOuts_Set",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Set" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + { + int i; + arg3 = &temp3; + arg3->count = PyList_Size(obj2); + arg3->data = malloc(sizeof(coin__UxOut) * arg3->count); + coin__UxOut* pdata = arg3->data; + for(i = 0; i < arg3->count; i++){ + PyObject *o = PyList_GetItem(obj2, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + if (arg3->data) free(arg3->data); + } + return resultobj; +fail: + { + if (arg3->data) free(arg3->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + cipher_Addresses *arg2 = (cipher_Addresses *) 0 ; + cipher_Addresses temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.count = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Keys",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)wrap_SKY_coin_AddressUxOuts_Keys(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg2->count; i++) { + cipher__Address* key = &(arg2->data[i]); + cipher__Address* newKey = malloc(sizeof(cipher__Address)); + memcpy(newKey, key, sizeof(cipher__Address)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher__Address, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg2->data != NULL) + free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; + cipher_SHA256s temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.count = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Hashes",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)wrap_SKY_coin_Transactions_Hashes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + int i; + PyObject *list = PyList_New(0); + for (i = 0; i < arg2->count; i++) { + cipher_SHA256* key = &(arg2->data[i]); + cipher_SHA256* newKey = malloc(sizeof(cipher_SHA256)); + memcpy(newKey, key, sizeof(cipher_SHA256)); + PyObject *o = SWIG_NewPointerObj(SWIG_as_voidptr(newKey), SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_OWN ); + PyList_Append(list, o); + Py_DECREF(o); + } + if( arg2->data != NULL) + free( (void*)arg2->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + coin_UxOutArray temp3 ; + GoUint64 temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4 = 0; + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_fee_TransactionFee",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_TransactionFee" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + { + int i; + arg3 = &temp3; + arg3->count = PyList_Size(obj2); + arg3->data = malloc(sizeof(coin__UxOut) * arg3->count); + coin__UxOut* pdata = arg3->data; + for(i = 0; i < arg3->count; i++){ + PyObject *o = PyList_GetItem(obj2, i); + void *argp = 0; + int res = SWIG_ConvertPtr(o, &argp, SWIGTYPE_p_coin__UxOut, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type UxOut"); + coin__UxOut* p = (coin__UxOut*)argp; + memcpy(pdata, p, sizeof(coin__UxOut)); + pdata++; + } + } + result = (GoUint32)wrap_SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); + } + { + if (arg3->data) free(arg3->data); + } + return resultobj; +fail: + { + if (arg3->data) free(arg3->data); + } + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_params_GetDistributionAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray temp1 ; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_params_GetDistributionAddresses")) SWIG_fail; + wrap_SKY_params_GetDistributionAddresses(arg1); + resultobj = SWIG_Py_Void(); + { + int itoken; + PyObject *list = PyList_New(0); + GoString *iStr; + int ntokens = arg1->len; + PyObject *py_string_tmp; + int py_err; + for (itoken = 0, iStr = (GoString *) arg1->data; itoken< ntokens; ++itoken, ++iStr) { + if (iStr == NULL) break; + + /* convert C string to Python string */ + py_string_tmp = SWIG_FromCharPtrAndSize((const char *) iStr->p,iStr->n ); + if (! py_string_tmp) return NULL; + + /* put Python string into the list */ + PyList_Append(list, py_string_tmp); + if (py_err == -1) return NULL; + } + if( arg1->data != NULL) + free( (void*)arg1->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_params_GetUnlockedDistributionAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray temp1 ; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_params_GetUnlockedDistributionAddresses")) SWIG_fail; + wrap_SKY_params_GetUnlockedDistributionAddresses(arg1); + resultobj = SWIG_Py_Void(); + { + int itoken; + PyObject *list = PyList_New(0); + GoString *iStr; + int ntokens = arg1->len; + PyObject *py_string_tmp; + int py_err; + for (itoken = 0, iStr = (GoString *) arg1->data; itoken< ntokens; ++itoken, ++iStr) { + if (iStr == NULL) break; + + /* convert C string to Python string */ + py_string_tmp = SWIG_FromCharPtrAndSize((const char *) iStr->p,iStr->n ); + if (! py_string_tmp) return NULL; + + /* put Python string into the list */ + PyList_Append(list, py_string_tmp); + if (py_err == -1) return NULL; + } + if( arg1->data != NULL) + free( (void*)arg1->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_params_GetLockedDistributionAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray temp1 ; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_params_GetLockedDistributionAddresses")) SWIG_fail; + wrap_SKY_params_GetLockedDistributionAddresses(arg1); + resultobj = SWIG_Py_Void(); + { + int itoken; + PyObject *list = PyList_New(0); + GoString *iStr; + int ntokens = arg1->len; + PyObject *py_string_tmp; + int py_err; + for (itoken = 0, iStr = (GoString *) arg1->data; itoken< ntokens; ++itoken, ++iStr) { + if (iStr == NULL) break; + + /* convert C string to Python string */ + py_string_tmp = SWIG_FromCharPtrAndSize((const char *) iStr->p,iStr->n ); + if (! py_string_tmp) return NULL; + + /* put Python string into the list */ + PyList_Append(list, py_string_tmp); + if (py_err == -1) return NULL; + } + if( arg1->data != NULL) + free( (void*)arg1->data ); + resultobj = SWIG_Python_AppendOutput(resultobj, list); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKey___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey___eq__" "', argument " "1"" of type '" "cipher_PubKey *""'"); + } + arg1 = (cipher_PubKey *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKey___eq__" "', argument " "2"" of type '" "cipher_PubKey *""'"); + } + arg2 = (cipher_PubKey *)(argp2); + result = (int)cipher_PubKey___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKey_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey_compareToString",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_compareToString" "', argument " "1"" of type '" "cipher_PubKey *""'"); + } + arg1 = (cipher_PubKey *)(argp1); + arg2 = obj1; + result = (int)cipher_PubKey_compareToString(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKey_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKey_toStr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_toStr" "', argument " "1"" of type '" "cipher_PubKey *""'"); + } + arg1 = (cipher_PubKey *)(argp1); + result = (PyObject *)cipher_PubKey_toStr(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKey_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey_assignFrom",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_assignFrom" "', argument " "1"" of type '" "cipher_PubKey *""'"); + } + arg1 = (cipher_PubKey *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKey_assignFrom" "', argument " "2"" of type '" "void *""'"); + } + cipher_PubKey_assignFrom(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKey_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey_assignTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_assignTo" "', argument " "1"" of type '" "cipher_PubKey *""'"); + } + arg1 = (cipher_PubKey *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKey_assignTo" "', argument " "2"" of type '" "void *""'"); + } + cipher_PubKey_assignTo(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKey_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + GoUint8 *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKey_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_data_set" "', argument " "1"" of type '" "cipher_PubKey *""'"); + } + arg1 = (cipher_PubKey *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKey_data_set" "', argument " "2"" of type '" "GoUint8 [33]""'"); + } + arg2 = (GoUint8 *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)33; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [33]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKey_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKey_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKey_data_get" "', argument " "1"" of type '" "cipher_PubKey *""'"); + } + arg1 = (cipher_PubKey *)(argp1); + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_PubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKey *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_PubKey")) SWIG_fail; + result = (cipher_PubKey *)calloc(1, sizeof(cipher_PubKey)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKey, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_PubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_PubKey",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKey, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_PubKey" "', argument " "1"" of type '" "cipher_PubKey *""'"); + } + arg1 = (cipher_PubKey *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_PubKey_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_PubKey, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher_SecKey___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey___eq__" "', argument " "1"" of type '" "cipher_SecKey *""'"); + } + arg1 = (cipher_SecKey *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKey___eq__" "', argument " "2"" of type '" "cipher_SecKey *""'"); + } + arg2 = (cipher_SecKey *)(argp2); + result = (int)cipher_SecKey___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKey_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey_compareToString",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_compareToString" "', argument " "1"" of type '" "cipher_SecKey *""'"); + } + arg1 = (cipher_SecKey *)(argp1); + arg2 = obj1; + result = (int)cipher_SecKey_compareToString(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKey_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKey_toStr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_toStr" "', argument " "1"" of type '" "cipher_SecKey *""'"); + } + arg1 = (cipher_SecKey *)(argp1); + result = (PyObject *)cipher_SecKey_toStr(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKey_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey_assignFrom",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_assignFrom" "', argument " "1"" of type '" "cipher_SecKey *""'"); + } + arg1 = (cipher_SecKey *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKey_assignFrom" "', argument " "2"" of type '" "void *""'"); + } + cipher_SecKey_assignFrom(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKey_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey_assignTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_assignTo" "', argument " "1"" of type '" "cipher_SecKey *""'"); + } + arg1 = (cipher_SecKey *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKey_assignTo" "', argument " "2"" of type '" "void *""'"); + } + cipher_SecKey_assignTo(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKey_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + GoUint8 *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKey_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_data_set" "', argument " "1"" of type '" "cipher_SecKey *""'"); + } + arg1 = (cipher_SecKey *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKey_data_set" "', argument " "2"" of type '" "GoUint8 [32]""'"); + } + arg2 = (GoUint8 *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)32; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [32]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKey_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKey_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKey_data_get" "', argument " "1"" of type '" "cipher_SecKey *""'"); + } + arg1 = (cipher_SecKey *)(argp1); + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_SecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKey *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_SecKey")) SWIG_fail; + result = (cipher_SecKey *)calloc(1, sizeof(cipher_SecKey)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_SecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SecKey",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SecKey" "', argument " "1"" of type '" "cipher_SecKey *""'"); + } + arg1 = (cipher_SecKey *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_SecKey_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SecKey, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher_Ripemd160___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + cipher_Ripemd160 *arg2 = (cipher_Ripemd160 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160___eq__" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); + } + arg1 = (cipher_Ripemd160 *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Ripemd160___eq__" "', argument " "2"" of type '" "cipher_Ripemd160 *""'"); + } + arg2 = (cipher_Ripemd160 *)(argp2); + result = (int)cipher_Ripemd160___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Ripemd160_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160_compareToString",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_compareToString" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); + } + arg1 = (cipher_Ripemd160 *)(argp1); + arg2 = obj1; + result = (int)cipher_Ripemd160_compareToString(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Ripemd160_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_Ripemd160_toStr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_toStr" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); + } + arg1 = (cipher_Ripemd160 *)(argp1); + result = (PyObject *)cipher_Ripemd160_toStr(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Ripemd160_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160_assignFrom",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_assignFrom" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); + } + arg1 = (cipher_Ripemd160 *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Ripemd160_assignFrom" "', argument " "2"" of type '" "void *""'"); + } + cipher_Ripemd160_assignFrom(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Ripemd160_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160_assignTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_assignTo" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); + } + arg1 = (cipher_Ripemd160 *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Ripemd160_assignTo" "', argument " "2"" of type '" "void *""'"); + } + cipher_Ripemd160_assignTo(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Ripemd160_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + GoUint8 *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Ripemd160_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_data_set" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); + } + arg1 = (cipher_Ripemd160 *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Ripemd160_data_set" "', argument " "2"" of type '" "GoUint8 [20]""'"); + } + arg2 = (GoUint8 *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)20; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [20]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Ripemd160_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_Ripemd160_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Ripemd160_data_get" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); + } + arg1 = (cipher_Ripemd160 *)(argp1); + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_Ripemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Ripemd160 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_Ripemd160")) SWIG_fail; + result = (cipher_Ripemd160 *)calloc(1, sizeof(cipher_Ripemd160)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Ripemd160, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_Ripemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Ripemd160",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Ripemd160, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Ripemd160" "', argument " "1"" of type '" "cipher_Ripemd160 *""'"); + } + arg1 = (cipher_Ripemd160 *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_Ripemd160_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Ripemd160, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher_Sig___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + cipher_Sig *arg2 = (cipher_Sig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig___eq__" "', argument " "1"" of type '" "cipher_Sig *""'"); + } + arg1 = (cipher_Sig *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_Sig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Sig___eq__" "', argument " "2"" of type '" "cipher_Sig *""'"); + } + arg2 = (cipher_Sig *)(argp2); + result = (int)cipher_Sig___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Sig_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig_compareToString",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_compareToString" "', argument " "1"" of type '" "cipher_Sig *""'"); + } + arg1 = (cipher_Sig *)(argp1); + arg2 = obj1; + result = (int)cipher_Sig_compareToString(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Sig_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_Sig_toStr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_toStr" "', argument " "1"" of type '" "cipher_Sig *""'"); + } + arg1 = (cipher_Sig *)(argp1); + result = (PyObject *)cipher_Sig_toStr(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Sig_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig_assignFrom",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_assignFrom" "', argument " "1"" of type '" "cipher_Sig *""'"); + } + arg1 = (cipher_Sig *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Sig_assignFrom" "', argument " "2"" of type '" "void *""'"); + } + cipher_Sig_assignFrom(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Sig_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig_assignTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_assignTo" "', argument " "1"" of type '" "cipher_Sig *""'"); + } + arg1 = (cipher_Sig *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Sig_assignTo" "', argument " "2"" of type '" "void *""'"); + } + cipher_Sig_assignTo(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Sig_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + GoUint8 *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Sig_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_data_set" "', argument " "1"" of type '" "cipher_Sig *""'"); + } + arg1 = (cipher_Sig *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Sig_data_set" "', argument " "2"" of type '" "GoUint8 [65]""'"); + } + arg2 = (GoUint8 *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)65; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [65]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Sig_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_Sig_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Sig_data_get" "', argument " "1"" of type '" "cipher_Sig *""'"); + } + arg1 = (cipher_Sig *)(argp1); + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_Sig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Sig *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_Sig")) SWIG_fail; + result = (cipher_Sig *)calloc(1, sizeof(cipher_Sig)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Sig, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_Sig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Sig",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Sig, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Sig" "', argument " "1"" of type '" "cipher_Sig *""'"); + } + arg1 = (cipher_Sig *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_Sig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Sig, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher_SHA256___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256___eq__" "', argument " "1"" of type '" "cipher_SHA256 *""'"); + } + arg1 = (cipher_SHA256 *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256___eq__" "', argument " "2"" of type '" "cipher_SHA256 *""'"); + } + arg2 = (cipher_SHA256 *)(argp2); + result = (int)cipher_SHA256___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256_compareToString",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_compareToString" "', argument " "1"" of type '" "cipher_SHA256 *""'"); + } + arg1 = (cipher_SHA256 *)(argp1); + arg2 = obj1; + result = (int)cipher_SHA256_compareToString(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256_toStr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_toStr" "', argument " "1"" of type '" "cipher_SHA256 *""'"); + } + arg1 = (cipher_SHA256 *)(argp1); + result = (PyObject *)cipher_SHA256_toStr(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256_assignFrom",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_assignFrom" "', argument " "1"" of type '" "cipher_SHA256 *""'"); + } + arg1 = (cipher_SHA256 *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256_assignFrom" "', argument " "2"" of type '" "void *""'"); + } + cipher_SHA256_assignFrom(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256_assignTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_assignTo" "', argument " "1"" of type '" "cipher_SHA256 *""'"); + } + arg1 = (cipher_SHA256 *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256_assignTo" "', argument " "2"" of type '" "void *""'"); + } + cipher_SHA256_assignTo(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoUint8 *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_data_set" "', argument " "1"" of type '" "cipher_SHA256 *""'"); + } + arg1 = (cipher_SHA256 *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256_data_set" "', argument " "2"" of type '" "GoUint8 [32]""'"); + } + arg2 = (GoUint8 *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)32; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [32]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256_data_get" "', argument " "1"" of type '" "cipher_SHA256 *""'"); + } + arg1 = (cipher_SHA256 *)(argp1); + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_SHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_SHA256")) SWIG_fail; + result = (cipher_SHA256 *)calloc(1, sizeof(cipher_SHA256)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_SHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SHA256",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SHA256" "', argument " "1"" of type '" "cipher_SHA256 *""'"); + } + arg1 = (cipher_SHA256 *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_SHA256_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SHA256, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher_Checksum___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + cipher_Checksum *arg2 = (cipher_Checksum *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum___eq__" "', argument " "1"" of type '" "cipher_Checksum *""'"); + } + arg1 = (cipher_Checksum *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Checksum___eq__" "', argument " "2"" of type '" "cipher_Checksum *""'"); + } + arg2 = (cipher_Checksum *)(argp2); + result = (int)cipher_Checksum___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Checksum_compareToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum_compareToString",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_compareToString" "', argument " "1"" of type '" "cipher_Checksum *""'"); + } + arg1 = (cipher_Checksum *)(argp1); + arg2 = obj1; + result = (int)cipher_Checksum_compareToString(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Checksum_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_Checksum_toStr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_toStr" "', argument " "1"" of type '" "cipher_Checksum *""'"); + } + arg1 = (cipher_Checksum *)(argp1); + result = (PyObject *)cipher_Checksum_toStr(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Checksum_assignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum_assignFrom",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_assignFrom" "', argument " "1"" of type '" "cipher_Checksum *""'"); + } + arg1 = (cipher_Checksum *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Checksum_assignFrom" "', argument " "2"" of type '" "void *""'"); + } + cipher_Checksum_assignFrom(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Checksum_assignTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum_assignTo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_assignTo" "', argument " "1"" of type '" "cipher_Checksum *""'"); + } + arg1 = (cipher_Checksum *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Checksum_assignTo" "', argument " "2"" of type '" "void *""'"); + } + cipher_Checksum_assignTo(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Checksum_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + GoUint8 *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Checksum_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_data_set" "', argument " "1"" of type '" "cipher_Checksum *""'"); + } + arg1 = (cipher_Checksum *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Checksum_data_set" "', argument " "2"" of type '" "GoUint8 [4]""'"); + } + arg2 = (GoUint8 *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)4; ++ii) *(GoUint8 *)&arg1->data[ii] = *((GoUint8 *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""data""' of type '""GoUint8 [4]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Checksum_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_Checksum_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Checksum_data_get" "', argument " "1"" of type '" "cipher_Checksum *""'"); + } + arg1 = (cipher_Checksum *)(argp1); + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Checksum *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_Checksum")) SWIG_fail; + result = (cipher_Checksum *)calloc(1, sizeof(cipher_Checksum)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Checksum, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Checksum",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Checksum, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Checksum" "', argument " "1"" of type '" "cipher_Checksum *""'"); + } + arg1 = (cipher_Checksum *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_Checksum_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Checksum, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher_SecKeys_getAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cipher_SecKey *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_getAt",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_getAt" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_getAt" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + result = (cipher_SecKey *)cipher_SecKeys_getAt(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKeys_setAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + cipher_SecKey *arg3 = (cipher_SecKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cipher_SecKeys_setAt",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_setAt" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_setAt" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cipher_SecKeys_setAt" "', argument " "3"" of type '" "cipher_SecKey *""'"); + } + arg3 = (cipher_SecKey *)(argp3); + result = (int)cipher_SecKeys_setAt(arg1,arg2,arg3); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKeys___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys___eq__" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKeys___eq__" "', argument " "2"" of type '" "cipher_SecKeys *""'"); + } + arg2 = (cipher_SecKeys *)(argp2); + result = (int)cipher_SecKeys___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKeys_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_allocate" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_allocate" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + cipher_SecKeys_allocate(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKeys_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKeys_release",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_release" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + cipher_SecKeys_release(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKeys_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_data_set" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SecKey, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SecKeys_data_set" "', argument " "2"" of type '" "cipher_SecKey *""'"); + } + arg2 = (cipher_SecKey *)(argp2); + if (arg1) (arg1)->data = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKeys_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cipher_SecKey *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKeys_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_data_get" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + result = (cipher_SecKey *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKey, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKeys_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SecKeys_count_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_count_set" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SecKeys_count_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + if (arg1) (arg1)->count = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SecKeys_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SecKeys_count_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SecKeys_count_get" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + result = (int) ((arg1)->count); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_SecKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_SecKeys")) SWIG_fail; + result = (cipher_SecKeys *)calloc(1, sizeof(cipher_SecKeys)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SecKeys, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_SecKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SecKeys",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SecKeys, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SecKeys" "', argument " "1"" of type '" "cipher_SecKeys *""'"); + } + arg1 = (cipher_SecKeys *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_SecKeys_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SecKeys, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher_PubKeys_getAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cipher_PubKey *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_getAt",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_getAt" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_getAt" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + result = (cipher_PubKey *)cipher_PubKeys_getAt(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKeys_setAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cipher_PubKeys_setAt",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_setAt" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_setAt" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cipher_PubKeys_setAt" "', argument " "3"" of type '" "cipher_PubKey *""'"); + } + arg3 = (cipher_PubKey *)(argp3); + result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKeys___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKeys *arg2 = (cipher_PubKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys___eq__" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKeys___eq__" "', argument " "2"" of type '" "cipher_PubKeys *""'"); + } + arg2 = (cipher_PubKeys *)(argp2); + result = (int)cipher_PubKeys___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKeys_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_allocate" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_allocate" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + cipher_PubKeys_allocate(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKeys_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKeys_release",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_release" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + cipher_PubKeys_release(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKeys_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_data_set" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_PubKey, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_PubKeys_data_set" "', argument " "2"" of type '" "cipher_PubKey *""'"); + } + arg2 = (cipher_PubKey *)(argp2); + if (arg1) (arg1)->data = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKeys_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cipher_PubKey *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKeys_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_data_get" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + result = (cipher_PubKey *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKey, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKeys_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_PubKeys_count_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_count_set" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_PubKeys_count_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + if (arg1) (arg1)->count = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_PubKeys_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_PubKeys_count_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_PubKeys_count_get" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + result = (int) ((arg1)->count); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_PubKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_PubKeys")) SWIG_fail; + result = (cipher_PubKeys *)calloc(1, sizeof(cipher_PubKeys)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_PubKeys, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_PubKeys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_PubKeys",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_PubKeys, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_PubKeys" "', argument " "1"" of type '" "cipher_PubKeys *""'"); + } + arg1 = (cipher_PubKeys *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_PubKeys_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_PubKeys, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher_SHA256s_getAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cipher_SHA256 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s_getAt",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_getAt" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SHA256s_getAt" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + result = (cipher_SHA256 *)cipher_SHA256s_getAt(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256s_setAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cipher_SHA256s_setAt",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_setAt" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SHA256s_setAt" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cipher_SHA256s_setAt" "', argument " "3"" of type '" "cipher_SHA256 *""'"); + } + arg3 = (cipher_SHA256 *)(argp3); + result = (int)cipher_SHA256s_setAt(arg1,arg2,arg3); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256s___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s___eq__" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256s___eq__" "', argument " "2"" of type '" "cipher_SHA256s *""'"); + } + arg2 = (cipher_SHA256s *)(argp2); + result = (int)cipher_SHA256s___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256s_allocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s_allocate",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_allocate" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SHA256s_allocate" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + cipher_SHA256s_allocate(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256s_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256s_release",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_release" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + cipher_SHA256s_release(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256s_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_data_set" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher_SHA256, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_SHA256s_data_set" "', argument " "2"" of type '" "cipher_SHA256 *""'"); + } + arg2 = (cipher_SHA256 *)(argp2); + if (arg1) (arg1)->data = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256s_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cipher_SHA256 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256s_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_data_get" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + result = (cipher_SHA256 *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SHA256, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256s_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_SHA256s_count_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_count_set" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_SHA256s_count_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + if (arg1) (arg1)->count = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_SHA256s_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_SHA256s_count_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_SHA256s_count_get" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + result = (int) ((arg1)->count); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_SHA256s(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_SHA256s")) SWIG_fail; + result = (cipher_SHA256s *)calloc(1, sizeof(cipher_SHA256s)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_SHA256s, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_SHA256s(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_SHA256s",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_SHA256s, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_SHA256s" "', argument " "1"" of type '" "cipher_SHA256s *""'"); + } + arg1 = (cipher_SHA256s *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_SHA256s_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_SHA256s, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin_UxOutArray_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin_UxOutArray_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin_UxOutArray_data_set" "', argument " "1"" of type '" "coin_UxOutArray *""'"); + } + arg1 = (coin_UxOutArray *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin_UxOutArray_data_set" "', argument " "2"" of type '" "coin__UxOut *""'"); + } + arg2 = (coin__UxOut *)(argp2); + if (arg1) (arg1)->data = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin_UxOutArray_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + coin__UxOut *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin_UxOutArray_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin_UxOutArray_data_get" "', argument " "1"" of type '" "coin_UxOutArray *""'"); + } + arg1 = (coin_UxOutArray *)(argp1); + result = (coin__UxOut *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxOut, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin_UxOutArray_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin_UxOutArray_count_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin_UxOutArray_count_set" "', argument " "1"" of type '" "coin_UxOutArray *""'"); + } + arg1 = (coin_UxOutArray *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin_UxOutArray_count_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + if (arg1) (arg1)->count = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin_UxOutArray_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin_UxOutArray_count_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin_UxOutArray_count_get" "', argument " "1"" of type '" "coin_UxOutArray *""'"); + } + arg1 = (coin_UxOutArray *)(argp1); + result = (int) ((arg1)->count); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin_UxOutArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin_UxOutArray")) SWIG_fail; + result = (coin_UxOutArray *)calloc(1, sizeof(coin_UxOutArray)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin_UxOutArray, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin_UxOutArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin_UxOutArray",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin_UxOutArray, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin_UxOutArray" "', argument " "1"" of type '" "coin_UxOutArray *""'"); + } + arg1 = (coin_UxOutArray *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin_UxOutArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin_UxOutArray, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher_Addresses_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Addresses_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Addresses_data_set" "', argument " "1"" of type '" "cipher_Addresses *""'"); + } + arg1 = (cipher_Addresses *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher_Addresses_data_set" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + if (arg1) (arg1)->data = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Addresses_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cipher__Address *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_Addresses_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Addresses_data_get" "', argument " "1"" of type '" "cipher_Addresses *""'"); + } + arg1 = (cipher_Addresses *)(argp1); + result = (cipher__Address *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Addresses_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher_Addresses_count_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Addresses_count_set" "', argument " "1"" of type '" "cipher_Addresses *""'"); + } + arg1 = (cipher_Addresses *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher_Addresses_count_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + if (arg1) (arg1)->count = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher_Addresses_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher_Addresses_count_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher_Addresses_count_get" "', argument " "1"" of type '" "cipher_Addresses *""'"); + } + arg1 = (cipher_Addresses *)(argp1); + result = (int) ((arg1)->count); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher_Addresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Addresses *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher_Addresses")) SWIG_fail; + result = (cipher_Addresses *)calloc(1, sizeof(cipher_Addresses)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher_Addresses, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher_Addresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher_Addresses",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher_Addresses, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher_Addresses" "', argument " "1"" of type '" "cipher_Addresses *""'"); + } + arg1 = (cipher_Addresses *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher_Addresses_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher_Addresses, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_Fee_Calculator_callback_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + FeeCalcFunc arg2 = (FeeCalcFunc) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:Fee_Calculator_callback_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Fee_Calculator_callback_set" "', argument " "1"" of type '" "Fee_Calculator *""'"); + } + arg1 = (Fee_Calculator *)(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "Fee_Calculator_callback_set" "', argument " "2"" of type '" "FeeCalcFunc""'"); + } + } + if (arg1) (arg1)->callback = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Fee_Calculator_callback_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + FeeCalcFunc result; + + if (!PyArg_ParseTuple(args,(char *)"O:Fee_Calculator_callback_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Fee_Calculator_callback_get" "', argument " "1"" of type '" "Fee_Calculator *""'"); + } + arg1 = (Fee_Calculator *)(argp1); + result = (FeeCalcFunc) ((arg1)->callback); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Fee_Calculator_context_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:Fee_Calculator_context_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Fee_Calculator_context_set" "', argument " "1"" of type '" "Fee_Calculator *""'"); + } + arg1 = (Fee_Calculator *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Fee_Calculator_context_set" "', argument " "2"" of type '" "void *""'"); + } + if (arg1) (arg1)->context = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Fee_Calculator_context_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + void *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:Fee_Calculator_context_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Fee_Calculator_context_get" "', argument " "1"" of type '" "Fee_Calculator *""'"); + } + arg1 = (Fee_Calculator *)(argp1); + result = (void *) ((arg1)->context); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_Fee_Calculator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fee_Calculator *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_Fee_Calculator")) SWIG_fail; + result = (Fee_Calculator *)calloc(1, sizeof(Fee_Calculator)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Fee_Calculator, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_Fee_Calculator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_Fee_Calculator",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Fee_Calculator, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Fee_Calculator" "', argument " "1"" of type '" "Fee_Calculator *""'"); + } + arg1 = (Fee_Calculator *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *Fee_Calculator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_Fee_Calculator, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap__GoString__p_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _GoString_ *arg1 = (_GoString_ *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_GoString__p_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__p_set" "', argument " "1"" of type '" "_GoString_ *""'"); + } + arg1 = (_GoString_ *)(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_GoString__p_set" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = (char *)(buf2); + if (arg2) { + size_t size = strlen((const char *)((const char *)(arg2))) + 1; + arg1->p = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); + } else { + arg1->p = 0; + } + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return NULL; +} + + +SWIGINTERN PyObject *_wrap__GoString__p_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _GoString_ *arg1 = (_GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_GoString__p_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__p_get" "', argument " "1"" of type '" "_GoString_ *""'"); + } + arg1 = (_GoString_ *)(argp1); + result = (char *) ((arg1)->p); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__GoString__n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _GoString_ *arg1 = (_GoString_ *) 0 ; + ptrdiff_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_GoString__n_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__n_set" "', argument " "1"" of type '" "_GoString_ *""'"); + } + arg1 = (_GoString_ *)(argp1); + ecode2 = SWIG_AsVal_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_GoString__n_set" "', argument " "2"" of type '" "ptrdiff_t""'"); + } + arg2 = (ptrdiff_t)(val2); + if (arg1) (arg1)->n = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__GoString__n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _GoString_ *arg1 = (_GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + ptrdiff_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:_GoString__n_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_GoString__n_get" "', argument " "1"" of type '" "_GoString_ *""'"); + } + arg1 = (_GoString_ *)(argp1); + result = ((arg1)->n); + resultobj = SWIG_From_long((long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new__GoString_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _GoString_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new__GoString_")) SWIG_fail; + result = (_GoString_ *)calloc(1, sizeof(_GoString_)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__GoString_, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete__GoString_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _GoString_ *arg1 = (_GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete__GoString_",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__GoString_, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__GoString_" "', argument " "1"" of type '" "_GoString_ *""'"); + } + arg1 = (_GoString_ *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_GoString__swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p__GoString_, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_GoInterface_t_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInterface *arg1 = (GoInterface *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:GoInterface_t_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_t_set" "', argument " "1"" of type '" "GoInterface *""'"); + } + arg1 = (GoInterface *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GoInterface_t_set" "', argument " "2"" of type '" "void *""'"); + } + if (arg1) (arg1)->t = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GoInterface_t_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInterface *arg1 = (GoInterface *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + void *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:GoInterface_t_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_t_get" "', argument " "1"" of type '" "GoInterface *""'"); + } + arg1 = (GoInterface *)(argp1); + result = (void *) ((arg1)->t); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GoInterface_v_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInterface *arg1 = (GoInterface *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:GoInterface_v_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_v_set" "', argument " "1"" of type '" "GoInterface *""'"); + } + arg1 = (GoInterface *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GoInterface_v_set" "', argument " "2"" of type '" "void *""'"); + } + if (arg1) (arg1)->v = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GoInterface_v_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInterface *arg1 = (GoInterface *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + void *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:GoInterface_v_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoInterface_v_get" "', argument " "1"" of type '" "GoInterface *""'"); + } + arg1 = (GoInterface *)(argp1); + result = (void *) ((arg1)->v); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_GoInterface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInterface *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_GoInterface")) SWIG_fail; + result = (GoInterface *)calloc(1, sizeof(GoInterface)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GoInterface, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_GoInterface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInterface *arg1 = (GoInterface *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_GoInterface",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoInterface, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GoInterface" "', argument " "1"" of type '" "GoInterface *""'"); + } + arg1 = (GoInterface *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *GoInterface_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_GoInterface, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_GoSlice_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *arg1 = (GoSlice *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:GoSlice_data_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_data_set" "', argument " "1"" of type '" "GoSlice *""'"); + } + arg1 = (GoSlice *)(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GoSlice_data_set" "', argument " "2"" of type '" "void *""'"); + } + if (arg1) (arg1)->data = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GoSlice_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *arg1 = (GoSlice *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + void *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:GoSlice_data_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_data_get" "', argument " "1"" of type '" "GoSlice *""'"); + } + arg1 = (GoSlice *)(argp1); + result = (void *) ((arg1)->data); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GoSlice_len_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:GoSlice_len_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_len_set" "', argument " "1"" of type '" "GoSlice *""'"); + } + arg1 = (GoSlice *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GoSlice_len_set" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + if (arg1) (arg1)->len = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GoSlice_len_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *arg1 = (GoSlice *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt result; + + if (!PyArg_ParseTuple(args,(char *)"O:GoSlice_len_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_len_get" "', argument " "1"" of type '" "GoSlice *""'"); + } + arg1 = (GoSlice *)(argp1); + result = (GoInt) ((arg1)->len); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GoSlice_cap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:GoSlice_cap_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_cap_set" "', argument " "1"" of type '" "GoSlice *""'"); + } + arg1 = (GoSlice *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GoSlice_cap_set" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + if (arg1) (arg1)->cap = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GoSlice_cap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *arg1 = (GoSlice *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt result; + + if (!PyArg_ParseTuple(args,(char *)"O:GoSlice_cap_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GoSlice_cap_get" "', argument " "1"" of type '" "GoSlice *""'"); + } + arg1 = (GoSlice *)(argp1); + result = (GoInt) ((arg1)->cap); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_GoSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_GoSlice")) SWIG_fail; + result = (GoSlice *)calloc(1, sizeof(GoSlice)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GoSlice, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_GoSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *arg1 = (GoSlice *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_GoSlice",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GoSlice" "', argument " "1"" of type '" "GoSlice *""'"); + } + arg1 = (GoSlice *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *GoSlice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_GoSlice, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_SKY_cli_GenerateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + Options__Handle *arg2 = (Options__Handle *) 0 ; + GoUint64 arg3 ; + Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; + Handle temp2 ; + unsigned long long val3 ; + int ecode3 = 0 ; + Handle temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GenerateWallet",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GenerateWallet', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_cli_GenerateWallet" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_MakeAlphanumericSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; + GoUint32 result; + + { + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_cli_MakeAlphanumericSeed")) SWIG_fail; + result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + Client__Handle *arg2 = (Client__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewClient",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_NewClient', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_api_NewClient(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CSRF",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Version",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Version(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Outputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Outputs",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_OutputsForAddresses",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_OutputsForAddresses', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_OutputsForHashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_OutputsForHashes",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_OutputsForHashes', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_CoinSupply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CoinSupply",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockByHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockByHash",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_BlockByHash', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_BlockBySeq",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_BlockBySeq" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Blocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Blocks",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Blocks', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_LastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_LastBlocks",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_LastBlocks" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainMetadata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainMetadata",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_BlockchainProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_BlockchainProgress",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoSlice arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_Balance",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Balance', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Client_Balance" "', argument " "3"" of type '" "wallet__BalancePair *""'"); + } + arg3 = (wallet__BalancePair *)(argp3); + result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UxOut",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UxOut', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressUxOuts",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_AddressUxOuts', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Wallet",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Wallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Wallets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Wallets",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateUnencryptedWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoInt arg4 ; + WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; + long long val4 ; + int ecode4 = 0 ; + Handle temp5 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + GoUint32 result; + + { + arg5 = &temp5; + } + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_CreateUnencryptedWallet",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateUnencryptedWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateUnencryptedWallet', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + ecode4 = SWIG_AsVal_long_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_api_Client_CreateUnencryptedWallet" "', argument " "4"" of type '" "GoInt""'"); + } + arg4 = (GoInt)(val4); + result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateEncryptedWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoInt arg5 ; + WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; + long long val5 ; + int ecode5 = 0 ; + Handle temp6 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + GoUint32 result; + + { + arg6 = &temp6; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_api_Client_CreateEncryptedWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateEncryptedWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateEncryptedWallet', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_CreateEncryptedWallet', expecting string"); + } + (&arg4)->p = buffer; + (&arg4)->n = size - 1; + } + ecode5 = SWIG_AsVal_long_SS_long(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SKY_api_Client_CreateEncryptedWallet" "', argument " "5"" of type '" "GoInt""'"); + } + arg5 = (GoInt)(val5); + result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_NewWalletAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoString arg4 ; + Strings__Handle *arg5 = (Strings__Handle *) 0 ; + long long val3 ; + int ecode3 = 0 ; + Handle temp5 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + GoUint32 result; + + { + arg5 = &temp5; + } + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Client_NewWalletAddress",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NewWalletAddress', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_api_Client_NewWalletAddress" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NewWalletAddress', expecting string"); + } + (&arg4)->p = buffer; + (&arg4)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg5)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_WalletBalance",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_WalletBalance', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Client_WalletBalance" "', argument " "3"" of type '" "wallet__BalancePair *""'"); + } + arg3 = (wallet__BalancePair *)(argp3); + result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Spend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint64 arg4 ; + GoString arg5 ; + SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; + unsigned long long val4 ; + int ecode4 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_api_Client_Spend",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Spend', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Spend', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_api_Client_Spend" "', argument " "4"" of type '" "GoUint64""'"); + } + arg4 = (GoUint64)(val4); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Spend', expecting string"); + } + (&arg5)->p = buffer; + (&arg5)->n = size - 1; + } + res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_SpendResult_Handle, 0 | 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_api_Client_Spend" "', argument " "6"" of type '" "SpendResult_Handle *""'"); + } + arg6 = (SpendResult_Handle *)(argp6); + result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_CreateTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Handle temp2 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_CreateTransaction",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_UpdateWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_UpdateWallet",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UpdateWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UpdateWallet', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletFolderName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_WalletFolderName",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_NewSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + long long val2 ; + int ecode2 = 0 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NewSeed",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Client_NewSeed" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_WalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4.p = NULL; + temp4.n = 0; + arg4 = (GoString_ *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_WalletSeed",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_WalletSeed', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_WalletSeed', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_WalletSeed(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); + free( (void*)arg4->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnection",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_NetworkConnection', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkConnections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + api__NetworkConnectionsFilter *arg2 = (api__NetworkConnectionsFilter *) 0 ; + Handle *arg3 = (Handle *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_NetworkConnections",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_api_Client_NetworkConnections" "', argument " "2"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg2 = (api__NetworkConnectionsFilter *)(argp2); + result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkDefaultPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkDefaultPeers",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkDefaultPeers(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkTrustedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkTrustedPeers",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkTrustedPeers(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_NetworkExchangedPeers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_NetworkExchangedPeers",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkExchangedPeers(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_PendingTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_PendingTransactions",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transaction",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Transaction', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Transactions",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_Transactions', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_ConfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_ConfirmedTransactions",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_ConfirmedTransactions', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_UnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnconfirmedTransactions",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UnconfirmedTransactions', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_ResendUnconfirmedTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_ResendUnconfirmedTransactions",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_RawTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_RawTransaction",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_RawTransaction', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_AddressTransactions",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_AddressTransactions', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Richlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; + Handle *arg3 = (Handle *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_Richlist",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_api_Client_Richlist" "', argument " "2"" of type '" "api__RichlistParams *""'"); + } + arg2 = (api__RichlistParams *)(argp2); + result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_AddressCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_AddressCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_UnloadWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Client_UnloadWallet",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_UnloadWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_Health(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Client_Health",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Health(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_EncryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Handle temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_EncryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_EncryptWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_EncryptWallet', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Client_DecryptWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Handle temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_api_Client_DecryptWallet",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_DecryptWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_Client_DecryptWallet', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_NewCreateTransactionResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreateTransactionResponse",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_NewCreateTransactionResponse', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreatedTransaction",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_api_NewCreatedTransaction', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_CreatedTransaction_ToTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CreatedTransaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_CreatedTransaction_ToTransaction",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_NewCreatedTransactionOutput",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_api_NewCreatedTransactionOutput" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(unsigned char (*)[32])arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_NewCreatedTransactionInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewCreatedTransactionInput",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_api_NewCreatedTransactionInput" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_NewWalletResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_NewWalletResponse",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_webrpc_NewClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_NewClient",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_NewClient', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_CSRF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_webrpc_Client_CSRF",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_InjectTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_InjectTransaction",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetStatus",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_StatusResult_Handle, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_webrpc_Client_GetStatus" "', argument " "2"" of type '" "StatusResult_Handle *""'"); + } + arg2 = (StatusResult_Handle *)(argp2); + result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetTransactionByID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetTransactionByID",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_Client_GetTransactionByID', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_TransactionResult_Handle, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_webrpc_Client_GetTransactionByID" "', argument " "3"" of type '" "TransactionResult_Handle *""'"); + } + arg3 = (TransactionResult_Handle *)(argp3); + result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetAddressUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetAddressUxOuts",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_Client_GetAddressUxOuts', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned long long val3 ; + int ecode3 = 0 ; + GoSlice_ temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_webrpc_Client_GetBlocksInRange",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_webrpc_Client_GetBlocksInRange" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_webrpc_Client_GetBlocksInRange" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + result = (GoUint32)SKY_webrpc_Client_GetBlocksInRange(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetBlocksBySeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetBlocksBySeq",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_webrpc_Client_GetBlocksBySeq', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_webrpc_Client_GetLastBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_webrpc_Client_GetLastBlocks",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_webrpc_Client_GetLastBlocks" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DecodeBase58Address",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DecodeBase58Address', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_DecodeBase58Address" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromBytes",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_AddressFromBytes', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromBytes" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromPubKey",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromPubKey" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_AddressFromPubKey((unsigned char (*)[33])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_AddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_AddressFromSecKey",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg1 = &p->data; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_AddressFromSecKey" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_cipher_AddressFromSecKey((unsigned char (*)[32])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_Null",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Null" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_Bytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Bytes" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Address_Verify",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Verify" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_Address_Verify(arg1,(unsigned char (*)[33])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Address_String",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_String" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_Address_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Address_Checksum",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Address_Checksum" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Checksum, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Checksum"); + cipher_Checksum* p = (cipher_Checksum*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(unsigned char (*)[4])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_String2Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_String2Hex",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_String2Hex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_ToInt",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_ToInt', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_ToHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_ToHex",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_ToHex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_Base582Int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_Base582Int",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_Base582Int', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_Base582Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base582Hex",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base582Hex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_Base58_BitHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Base58_BitHex",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Base58_BitHex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_Int2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInt arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Int2Base58",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_base58_Int2Base58" "', argument " "1"" of type '" "GoInt""'"); + } + arg1 = (GoInt)(val1); + result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58String",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58String', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_base58_Hex2Base58Str(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_base58_Hex2Base58Str",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_base58_Hex2Base58Str', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_DecodeBase58BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DecodeBase58BitcoinAddress",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DecodeBase58BitcoinAddress', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_DecodeBase58BitcoinAddress" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + } + arg2 = (cipher__BitcoinAddress *)(argp2); + result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromPubKey",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_BitcoinAddressFromPubKey" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + } + arg2 = (cipher__BitcoinAddress *)(argp2); + SKY_cipher_BitcoinAddressFromPubKey((unsigned char (*)[33])arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromSecKey",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg1 = &p->data; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_BitcoinAddressFromSecKey" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + } + arg2 = (cipher__BitcoinAddress *)(argp2); + result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((unsigned char (*)[32])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinWalletImportFormatFromSeckey",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg1 = &p->data; + } + SKY_cipher_BitcoinWalletImportFormatFromSeckey((unsigned char (*)[32])arg1,arg2); + resultobj = SWIG_Py_Void(); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddressFromBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddressFromBytes",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_BitcoinAddressFromBytes', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_cipher_BitcoinAddressFromBytes" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + } + arg2 = (cipher__BitcoinAddress *)(argp2); + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromBitcoinWalletImportFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromBitcoinWalletImportFormat",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SecKeyFromBitcoinWalletImportFormat', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_SecKeyFromBitcoinWalletImportFormat(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinAddress_Null",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Null" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + result = (GoUint8)SKY_cipher_BitcoinAddress_Null(arg1); + resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinAddress_Bytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Bytes" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + SKY_cipher_BitcoinAddress_Bytes(arg1,arg2); + resultobj = SWIG_Py_Void(); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddress_Verify",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Verify" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_BitcoinAddress_Verify(arg1,(unsigned char (*)[33])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_BitcoinAddress_String",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_String" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + SKY_cipher_BitcoinAddress_String(arg1,arg2); + resultobj = SWIG_Py_Void(); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_BitcoinAddress_Checksum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_BitcoinAddress_Checksum",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_BitcoinAddress_Checksum" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Checksum, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Checksum"); + cipher_Checksum* p = (cipher_Checksum*)argp; + arg2 = &p->data; + } + SKY_cipher_BitcoinAddress_Checksum(arg1,(unsigned char (*)[4])arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_RandByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_RandByte",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_cipher_RandByte" "', argument " "1"" of type '" "GoInt""'"); + } + arg1 = (GoInt)(val1); + result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_NewPubKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewPubKey",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewPubKey', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_NewPubKey(arg1,(unsigned char (*)[33])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyFromHex",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_PubKeyFromHex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(unsigned char (*)[33])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyFromSecKey",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_PubKeyFromSecKey((unsigned char (*)[32])arg1,(unsigned char (*)[33])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyFromSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_PubKeyFromSig",&obj0,&obj1,&obj2)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_cipher_PubKeyFromSig((unsigned char (*)[65])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[33])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKey_Verify",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_PubKey_Verify((unsigned char (*)[33])arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_PubKey_Hex",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_PubKey_Hex((unsigned char (*)[33])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_PubKeyRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_PubKeyRipemd160",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Ripemd160, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Ripemd160"); + cipher_Ripemd160* p = (cipher_Ripemd160*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_PubKeyRipemd160((unsigned char (*)[33])arg1,(unsigned char (*)[20])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_NewSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewSecKey",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSecKey', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_NewSecKey(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKeyFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SecKeyFromHex",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SecKeyFromHex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Verify",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_SecKey_Verify((unsigned char (*)[32])arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SecKey_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SecKey_Hex",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_SecKey_Hex((unsigned char (*)[32])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_ECDH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_ECDH",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_ECDH((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_NewSig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_NewSig",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_NewSig', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_NewSig(arg1,(unsigned char (*)[65])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SigFromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SigFromHex",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SigFromHex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_SigFromHex(arg1,(unsigned char (*)[65])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_Sig_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_Sig_Hex",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_Sig_Hex((unsigned char (*)[65])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SignHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_SignHash",&obj0,&obj1,&obj2)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_cipher_SignHash((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[65])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyAddressSignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_VerifyAddressSignedHash",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_VerifyAddressSignedHash" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_cipher_VerifyAddressSignedHash(arg1,(unsigned char (*)[65])arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_VerifySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_VerifySignedHash",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_VerifySignedHash((unsigned char (*)[65])arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_VerifyPubKeySignedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_VerifyPubKeySignedHash",&obj0,&obj1,&obj2)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_cipher_VerifyPubKeySignedHash((unsigned char (*)[33])arg1,(unsigned char (*)[65])arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateKeyPair",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_GenerateKeyPair((unsigned char (*)[33])arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_GenerateDeterministicKeyPair",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPair', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(unsigned char (*)[33])arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_DeterministicKeyPairIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_DeterministicKeyPairIterator",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DeterministicKeyPairIterator', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg3 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg4 = &p->data; + } + result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(unsigned char (*)[33])arg3,(unsigned char (*)[32])arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairs",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPairs', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairs" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairs(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( argv[0], &buffer, &size, 0 ); + _v = SWIG_IsOK(res) ? 1 : 0; + } + if (_v) { + { + int res = SWIG_AsVal_long_SS_long(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(self, args); + } + } + } + if (argc == 2) { + int _v; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( argv[0], &buffer, &size, 0 ); + _v = SWIG_IsOK(res) ? 1 : 0; + } + if (_v) { + { + int res = SWIG_AsVal_long_SS_long(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_cipher_GenerateDeterministicKeyPairs'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_cipher_GenerateDeterministicKeyPairs(GoSlice,GoInt,cipher_SecKeys *)\n" + " SKY_cipher_GenerateDeterministicKeyPairs(GoSlice,GoInt,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; + GoSlice_ temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_GenerateDeterministicKeyPairsSeed",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_GenerateDeterministicKeyPairsSeed', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cipher_GenerateDeterministicKeyPairsSeed" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_CheckSecKey",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_CheckSecKey((unsigned char (*)[32])arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_CheckSecKeyHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_CheckSecKeyHash",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SecKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SecKey"); + cipher_SecKey* p = (cipher_SecKey*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_CheckSecKeyHash((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoSlice_ temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_encrypt_ScryptChacha20poly1305_Encrypt",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Encrypt" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Encrypt', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Encrypt', expecting string"); + } + (&arg3)->data = buffer; + (&arg3)->len = size - 1; + (&arg3)->cap = size; + } + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_encrypt_ScryptChacha20poly1305_Decrypt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoSlice_ temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_encrypt_ScryptChacha20poly1305_Decrypt",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_encrypt_ScryptChacha20poly1305_Decrypt" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Decrypt', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_encrypt_ScryptChacha20poly1305_Decrypt', expecting string"); + } + (&arg3)->data = buffer; + (&arg3)->len = size - 1; + (&arg3)->cap = size; + } + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_bip39_NewDefaultMnemomic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; + GoUint32 result; + + { + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_bip39_NewDefaultMnemomic")) SWIG_fail; + result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_bip39_NewEntropy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_NewEntropy",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_bip39_NewEntropy" "', argument " "1"" of type '" "GoInt""'"); + } + arg1 = (GoInt)(val1); + result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_bip39_NewMnemonic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_NewMnemonic",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_bip39_NewMnemonic', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_bip39_MnemonicToByteArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_MnemonicToByteArray",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_bip39_MnemonicToByteArray', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_bip39_IsMnemonicValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_bip39_IsMnemonicValid",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_bip39_IsMnemonicValid', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_Ripemd160_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; + GoSlice arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Ripemd160_Set",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_Ripemd160, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Ripemd160"); + cipher_Ripemd160* p = (cipher_Ripemd160*)argp; + arg1 = &p->data; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_Ripemd160_Set', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_cipher_Ripemd160_Set((unsigned char (*)[20])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_HashRipemd160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_HashRipemd160",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_HashRipemd160', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Ripemd160, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Ripemd160"); + cipher_Ripemd160* p = (cipher_Ripemd160*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(unsigned char (*)[20])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoSlice arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SHA256_Set",&obj0,&obj1)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg1 = &p->data; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SHA256_Set', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_cipher_SHA256_Set((unsigned char (*)[32])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Hex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SHA256_Hex",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_SHA256_Hex((unsigned char (*)[32])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_SHA256_Xor",&obj0,&obj1,&obj2)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_cipher_SHA256_Xor((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SumSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SumSHA256",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SumSHA256', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_SumSHA256(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256FromHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_SHA256FromHex",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_SHA256FromHex', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_DoubleSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_DoubleSHA256",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cipher_DoubleSHA256', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_AddSHA256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cipher_AddSHA256",&obj0,&obj1,&obj2)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg1 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_cipher_AddSHA256((unsigned char (*)[32])arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_Merkle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice *arg1 = (GoSlice *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cipher_Merkle",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GoSlice, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_cipher_Merkle" "', argument " "1"" of type '" "GoSlice *""'"); + } + arg1 = (GoSlice *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_cipher_Merkle(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cipher_SHA256_Null(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cipher_SHA256_Null",&obj0)) SWIG_fail; + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj0, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg1 = &p->data; + } + result = (GoUint32)SKY_cipher_SHA256_Null((unsigned char (*)[32])arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_AddPrivateKey",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddPrivateKey', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_AddPrivateKeyToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString arg2 ; + PasswordReader__Handle arg3 ; + void *argp3 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_AddPrivateKeyToFile",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddPrivateKeyToFile', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddPrivateKeyToFile', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_PasswordReader__Handle, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_AddPrivateKeyToFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_AddPrivateKeyToFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); + } else { + arg3 = *((PasswordReader__Handle *)(argp3)); + } + } + result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_CheckWalletBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_CheckWalletBalance",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CheckWalletBalance', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BalanceResult_Handle, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_CheckWalletBalance" "', argument " "3"" of type '" "BalanceResult_Handle *""'"); + } + arg3 = (BalanceResult_Handle *)(argp3); + result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_GetBalanceOfAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GetBalanceOfAddresses",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GetBalanceOfAddresses', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BalanceResult_Handle, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetBalanceOfAddresses" "', argument " "3"" of type '" "BalanceResult_Handle *""'"); + } + arg3 = (BalanceResult_Handle *)(argp3); + result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_LoadConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Config__Handle *arg1 = (Config__Handle *) 0 ; + Handle temp1 ; + GoUint32 result; + + { + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_cli_LoadConfig")) SWIG_fail; + result = (GoUint32)SKY_cli_LoadConfig(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullWalletPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullWalletPath",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_Config_FullDBPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_FullDBPath",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_NewApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Config__Handle arg1 ; + App__Handle *arg2 = (App__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_NewApp",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_cli_NewApp(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Context__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromContext",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_ConfigFromContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Context__Handle arg1 ; + Config__Handle *arg2 = (Config__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_ConfigFromContext",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromBytes_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoSlice_ temp2 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_cli_PasswordFromBytes_Password")) SWIG_fail; + result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_PasswordFromTerm_Password(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_cli_PasswordFromTerm_Password")) SWIG_fail; + result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoSlice arg4 ; + PasswordReader__Handle arg5 ; + Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; + void *argp5 ; + int res5 = 0 ; + Handle temp6 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + GoUint32 result; + + { + arg6 = &temp6; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_cli_CreateRawTxFromWallet",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromWallet', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromWallet', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromWallet', expecting string"); + } + (&arg4)->data = buffer; + (&arg4)->len = size - 1; + (&arg4)->cap = size; + } + { + res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_PasswordReader__Handle, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "5"" of type '" "PasswordReader__Handle""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_CreateRawTxFromWallet" "', argument " "5"" of type '" "PasswordReader__Handle""'"); + } else { + arg5 = *((PasswordReader__Handle *)(argp5)); + } + } + result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTxFromAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoSlice arg5 ; + PasswordReader__Handle arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + void *argp6 ; + int res6 = 0 ; + Handle temp7 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + GoUint32 result; + + { + arg7 = &temp7; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTxFromAddress",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); + } + (&arg4)->p = buffer; + (&arg4)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTxFromAddress', expecting string"); + } + (&arg5)->data = buffer; + (&arg5)->len = size - 1; + (&arg5)->cap = size; + } + { + res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_PasswordReader__Handle, 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "6"" of type '" "PasswordReader__Handle""'"); + } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_CreateRawTxFromAddress" "', argument " "6"" of type '" "PasswordReader__Handle""'"); + } else { + arg6 = *((PasswordReader__Handle *)(argp6)); + } + } + result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_CreateRawTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + Wallet__Handle arg2 ; + GoSlice arg3 ; + GoString arg4 ; + GoSlice arg5 ; + GoSlice arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + Handle temp7 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + GoUint32 result; + + { + arg7 = &temp7; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_cli_CreateRawTx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); + } + (&arg3)->data = buffer; + (&arg3)->len = size - 1; + (&arg3)->cap = size; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj3, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); + } + (&arg4)->p = buffer; + (&arg4)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); + } + (&arg5)->data = buffer; + (&arg5)->len = size - 1; + (&arg5)->cap = size; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj5, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_CreateRawTx', expecting string"); + } + (&arg6)->data = buffer; + (&arg6)->len = size - 1; + (&arg6)->cap = size; + } + result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg7)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_NewTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; + Handle temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_NewTransaction",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_NewTransaction', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_NewTransaction', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_NewTransaction', expecting string"); + } + (&arg3)->data = buffer; + (&arg3)->len = size - 1; + (&arg3)->cap = size; + } + result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_GenerateAddressesInFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoUint64 arg2 ; + PasswordReader__Handle arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + void *argp3 ; + int res3 = 0 ; + GoSlice_ temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GenerateAddressesInFile",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GenerateAddressesInFile', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_PasswordReader__Handle, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_cli_GenerateAddressesInFile" "', argument " "3"" of type '" "PasswordReader__Handle""'"); + } else { + arg3 = *((PasswordReader__Handle *)(argp3)); + } + } + result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJSON",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_FormatAddressesAsJSON', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_FormatAddressesAsJoinedArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_FormatAddressesAsJoinedArray",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_FormatAddressesAsJoinedArray', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_AddressesToStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_AddressesToStrings",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_AddressesToStrings', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputsFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_cli_GetWalletOutputsFromFile",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_GetWalletOutputsFromFile', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetWalletOutputsFromFile" "', argument " "3"" of type '" "ReadableUnspentOutputsSummary_Handle *""'"); + } + arg3 = (ReadableUnspentOutputsSummary_Handle *)(argp3); + result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_GetWalletOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WebRpcClient__Handle arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; + Handle temp2 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_GetWalletOutputs",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res3 = SWIG_ConvertPtr(obj1, &argp3,SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_cli_GetWalletOutputs" "', argument " "3"" of type '" "ReadableUnspentOutputsSummary_Handle *""'"); + } + arg3 = (ReadableUnspentOutputsSummary_Handle *)(argp3); + result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_App_Run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + App__Handle arg1 ; + GoString arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_App_Run",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_App_Run', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_cli_App_Run(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetCoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetCoin",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_Config_GetRPCAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Config_GetRPCAddress",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_RPCClientFromApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + App__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_RPCClientFromApp",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_Getenv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_cli_Getenv",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Getenv', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_cli_Getenv(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_cli_Setenv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_cli_Setenv",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Setenv', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_cli_Setenv', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_cli_Setenv(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_NewBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + GoUint64 arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transactions__Handle arg4 ; + FeeCalculator *arg5 = (FeeCalculator *) 0 ; + Block__Handle *arg6 = (Block__Handle *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + FeeCalculator temp5 ; + Handle temp6 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + GoUint32 result; + + { + arg6 = &temp6; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SKY_coin_NewBlock",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_NewBlock" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + { + SWIG_AsVal_long(obj3, (long*)&arg4); + } + { + if (!PyCallable_Check(obj4)) SWIG_fail; + temp5.callback = _WrapperFeeCalculator; + temp5.context = obj4; + arg5 = &temp5; + } + result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(unsigned char (*)[32])arg3,arg4,arg5,arg6); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg6)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_SignedBlock_VerifySignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_SignedBlock_VerifySignature",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SignedBlock_VerifySignature" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + } + arg1 = (coin__SignedBlock *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(unsigned char (*)[33])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_NewGenesisBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + Block__Handle *arg4 = (Block__Handle *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned long long val3 ; + int ecode3 = 0 ; + Handle temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_NewGenesisBlock",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_NewGenesisBlock" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg4)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashHeader",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Block_PreHashHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_PreHashHeader",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Block_Time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Time",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Block_Seq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Seq",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Block_HashBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_HashBody",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_Block_HashBody(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Block_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_Size",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Block_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Block_String",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Block_String(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Block_GetTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Handle temp3 ; + GoUint8 temp4 ; + int res4 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Block_GetTransaction",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(unsigned char (*)[32])arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_NewBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + BlockBody__Handle arg5 ; + coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val3 ; + int ecode3 = 0 ; + unsigned long long val4 ; + int ecode4 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SKY_coin_NewBlockHeader",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_NewBlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_NewBlockHeader" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_coin_NewBlockHeader" "', argument " "4"" of type '" "GoUint64""'"); + } + arg4 = (GoUint64)(val4); + { + SWIG_AsVal_long(obj4, (long*)&arg5); + } + res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SKY_coin_NewBlockHeader" "', argument " "6"" of type '" "coin__BlockHeader *""'"); + } + arg6 = (coin__BlockHeader *)(argp6); + result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(unsigned char (*)[32])arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockHeader_Hash",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_Hash" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockHeader_Bytes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_Bytes" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_BlockHeader_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockHeader_String",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_BlockHeader_String" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + BlockBody__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_BlockBody_Hash",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Handle temp1 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + GoUint32 result; + + { + arg1 = &temp1; + } + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_BlockBody_Size")) SWIG_fail; + result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + } + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_BlockBody_Bytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + BlockBody__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_BlockBody_Bytes",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_CreateUnspents",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_CreateUnspents" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspents(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_coin__BlockHeader, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + _v = PyInt_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_CreateUnspents__SWIG_0(self, args); + } + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_coin__BlockHeader, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + _v = PyInt_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_CreateUnspents__SWIG_1(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_CreateUnspents'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_CreateUnspents(coin__BlockHeader *,Transaction__Handle,coin_UxOutArray *)\n" + " SKY_coin_CreateUnspents(coin__BlockHeader *,Transaction__Handle,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_CreateUnspent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + GoInt arg3 ; + coin__UxOut *arg4 = (coin__UxOut *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_coin_CreateUnspent",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_CreateUnspent" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_CreateUnspent" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SKY_coin_CreateUnspent" "', argument " "4"" of type '" "coin__UxOut *""'"); + } + arg4 = (coin__UxOut *)(argp4); + result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + coin__Block **arg2 = (coin__Block **) 0 ; + coin__Block *temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = NULL; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockObject",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Block, 0 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_GetBlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Block__Handle arg1 ; + BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetBlockBody",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_NewEmptyBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + Block__Handle *arg2 = (Block__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_NewEmptyBlock",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3 = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddUint64",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_AddUint64" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_AddUint64" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Uint64ToInt64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + GoInt64 *arg2 = (GoInt64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + GoInt64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Uint64ToInt64",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_Uint64ToInt64" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Int64ToUint64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInt64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Int64ToUint64",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_Int64ToUint64" "', argument " "1"" of type '" "GoInt64""'"); + } + arg1 = (GoInt64)(val1); + result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_IntToUint32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInt arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + long long val1 ; + int ecode1 = 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_IntToUint32",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_IntToUint32" "', argument " "1"" of type '" "GoInt""'"); + } + arg1 = (GoInt)(val1); + result = (GoUint32)SKY_coin_IntToUint32(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_Hash",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_Hash" "', argument " "1"" of type '" "coin__UxOut *""'"); + } + arg1 = (coin__UxOut *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_SnapshotHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_SnapshotHash",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_SnapshotHash" "', argument " "1"" of type '" "coin__UxOut *""'"); + } + arg1 = (coin__UxOut *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxBody_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxBody_Hash",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxBody_Hash" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxOut_CoinHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3 = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxOut_CoinHours",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_UxOut_CoinHours" "', argument " "1"" of type '" "coin__UxOut *""'"); + } + arg1 = (coin__UxOut *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxOut_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoSlice_ temp2 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Hashes")) SWIG_fail; + result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Hashes(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_SKY_coin_UxArray_Hashes__SWIG_1(self, args); + } + if (argc == 1) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_UxArray_Hashes__SWIG_0(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Hashes'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_Hashes(coin_UxOutArray *,cipher_SHA256s *)\n" + " SKY_coin_UxArray_Hashes(coin__UxArray *,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoSlice_ temp1 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_HasDupes")) SWIG_fail; + result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_HasDupes(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_SKY_coin_UxArray_HasDupes__SWIG_1(self, args); + } + if (argc == 1) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_UxArray_HasDupes__SWIG_0(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_HasDupes'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_HasDupes(coin_UxOutArray *,GoUint8 *)\n" + " SKY_coin_UxArray_HasDupes(coin__UxArray *,GoUint8 *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Sort")) SWIG_fail; + result = (GoUint32)SKY_coin_UxArray_Sort(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice_ temp1 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Len")) SWIG_fail; + result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoSlice_ temp1 ; + long long val2 ; + int ecode2 = 0 ; + long long val3 ; + int ecode3 = 0 ; + GoUint8 temp4 ; + int res4 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Less",&obj0,&obj1)) SWIG_fail; + ecode2 = SWIG_AsVal_long_SS_long(obj0, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Less" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + ecode3 = SWIG_AsVal_long_SS_long(obj1, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Less" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Less(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + { + int res = SWIG_AsVal_long_SS_long(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_long_SS_long(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_coin_UxArray_Less__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + int res = SWIG_AsVal_long_SS_long(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_long_SS_long(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_coin_UxArray_Less__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Less'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_Less(coin_UxOutArray *,GoInt,GoInt,GoUint8 *)\n" + " SKY_coin_UxArray_Less(coin__UxArray *,GoInt,GoInt,GoUint8 *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoSlice_ temp1 ; + long long val2 ; + int ecode2 = 0 ; + long long val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_UxArray_Swap",&obj0,&obj1)) SWIG_fail; + ecode2 = SWIG_AsVal_long_SS_long(obj0, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_Swap" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + ecode3 = SWIG_AsVal_long_SS_long(obj1, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_UxArray_Swap" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Swap(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + { + int res = SWIG_AsVal_long_SS_long(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_long_SS_long(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_coin_UxArray_Swap__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + int res = SWIG_AsVal_long_SS_long(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_long_SS_long(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_coin_UxArray_Swap__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Swap'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_Swap(coin_UxOutArray *,GoInt,GoInt)\n" + " SKY_coin_UxArray_Swap(coin__UxArray *,GoInt,GoInt)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoSlice_ temp1 ; + GoUint64 temp2 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Coins")) SWIG_fail; + result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Coins(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_SKY_coin_UxArray_Coins__SWIG_1(self, args); + } + if (argc == 1) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_UxArray_Coins__SWIG_0(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Coins'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_Coins(coin_UxOutArray *,GoUint64 *)\n" + " SKY_coin_UxArray_Coins(coin__UxArray *,GoUint64 *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + GoSlice_ temp1 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + { + temp3 = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_UxArray_CoinHours",&obj0)) SWIG_fail; + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_UxArray_CoinHours" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_CoinHours(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + { + int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_coin_UxArray_CoinHours__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_coin_UxArray_CoinHours__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_CoinHours'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_CoinHours(coin_UxOutArray *,GoUint64,GoUint64 *)\n" + " SKY_coin_UxArray_CoinHours(coin__UxArray *,GoUint64,GoUint64 *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoSlice_ temp2 ; + GoSlice_ temp3 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Sub")) SWIG_fail; + result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Sub(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_SKY_coin_UxArray_Sub__SWIG_1(self, args); + } + if (argc == 2) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + _v = PyList_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_UxArray_Sub__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Sub'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_Sub(coin_UxOutArray *,coin_UxOutArray *,coin_UxOutArray *)\n" + " SKY_coin_UxArray_Sub(coin__UxArray *,coin__UxArray *,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoSlice_ temp2 ; + GoSlice_ temp3 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_UxArray_Add")) SWIG_fail; + result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_UxArray_Add(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_SKY_coin_UxArray_Add__SWIG_1(self, args); + } + if (argc == 2) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + _v = PyList_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_UxArray_Add__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_UxArray_Add'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_UxArray_Add(coin_UxOutArray *,coin_UxOutArray *,coin_UxOutArray *)\n" + " SKY_coin_UxArray_Add(coin__UxArray *,coin__UxArray *,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_NewAddressUxOuts__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; + GoSlice_ temp1 ; + Handle temp2 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_NewAddressUxOuts")) SWIG_fail; + result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_NewAddressUxOuts(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_SKY_coin_NewAddressUxOuts__SWIG_1(self, args); + } + if (argc == 1) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_NewAddressUxOuts__SWIG_0(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_NewAddressUxOuts'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_NewAddressUxOuts(coin_UxOutArray *,AddressUxOuts_Handle *)\n" + " SKY_coin_NewAddressUxOuts(coin__UxArray *,AddressUxOuts_Handle *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Keys",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Keys(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Keys__SWIG_0(self, args); + } + } + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Keys__SWIG_1(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_AddressUxOuts_Keys'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle,cipher_Addresses *)\n" + " SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Flatten",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Flatten(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_0(self, args); + } + } + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Flatten__SWIG_1(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_AddressUxOuts_Flatten'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle,coin_UxOutArray *)\n" + " SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Sub",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Add",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Get__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Get",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Get" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Get(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_cipher__Address, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Get__SWIG_0(self, args); + } + } + } + if (argc == 2) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_cipher__Address, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Get__SWIG_1(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_AddressUxOuts_Get'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle,cipher__Address *,coin_UxOutArray *)\n" + " SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle,cipher__Address *,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_HasKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + GoUint8 temp3 ; + int res3 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_HasKey",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_HasKey" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_GetOutputLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoInt *arg3 = (GoInt *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + GoInt temp3 ; + int res3 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_GetOutputLength",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_GetOutputLength" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_AddressUxOuts_Length",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_AddressUxOuts_Set",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_AddressUxOuts_Set" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_AddressUxOuts_Set(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_cipher__Address, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Set__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_cipher__Address, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + _v = PyList_Check(argv[2]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_AddressUxOuts_Set__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_AddressUxOuts_Set'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle,cipher__Address *,coin_UxOutArray *)\n" + " SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle,cipher__Address *,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Handle temp1 ; + GoUint32 result; + + { + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_Create_Transaction")) SWIG_fail; + result = (GoUint32)SKY_coin_Create_Transaction(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Copy",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + coin__Transaction **arg2 = (coin__Transaction **) 0 ; + coin__Transaction *temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = NULL; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_GetTransactionObject",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(SWIG_as_voidptr(*arg2), SWIGTYPE_p_coin__Transaction, 0 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetInputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt arg2 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetInputs",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_ResetInputs" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetInputsCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_GetInputAt" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetInputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetInputAt",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_SetInputAt" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetOutputsCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + long long val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetOutputAt",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_GetOutputAt" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_coin_Transaction_GetOutputAt" "', argument " "3"" of type '" "coin__TransactionOutput *""'"); + } + arg3 = (coin__TransactionOutput *)(argp3); + result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetOutputAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + long long val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetOutputAt",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_SetOutputAt" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_coin_Transaction_SetOutputAt" "', argument " "3"" of type '" "coin__TransactionOutput *""'"); + } + arg3 = (coin__TransactionOutput *)(argp3); + result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignaturesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_GetSignaturesCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_GetSignatureAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_GetSignatureAt",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_GetSignatureAt" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SetSignatureAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_Transaction_SetSignatureAt",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_SetSignatureAt" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(unsigned char (*)[65])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushSignature",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_Sig, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type Sig"); + cipher_Sig* p = (cipher_Sig*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(unsigned char (*)[65])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt arg2 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetOutputs",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_ResetOutputs" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_ResetSignatures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoInt arg2 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_ResetSignatures",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transaction_ResetSignatures" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Verify",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_Verify(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_VerifyInput",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_VerifyInput(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_Transaction_VerifyInput__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + _v = PyList_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_Transaction_VerifyInput__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_Transaction_VerifyInput'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_Transaction_VerifyInput(Transaction__Handle,coin_UxOutArray *)\n" + " SKY_coin_Transaction_VerifyInput(Transaction__Handle,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoUint16 temp3 ; + int res3 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_PushInput",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(unsigned char (*)[32])arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_TransactionOutput_UxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_TransactionOutput_UxID",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_TransactionOutput_UxID" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj2, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(unsigned char (*)[32])arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_PushOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned long long val3 ; + int ecode3 = 0 ; + unsigned long long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_coin_Transaction_PushOutput",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + ecode4 = SWIG_AsVal_unsigned_SS_long_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_coin_Transaction_PushOutput" "', argument " "4"" of type '" "GoUint64""'"); + } + arg4 = (GoUint64)(val4); + result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoSlice arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SignInputs",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_coin_Transaction_SignInputs', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SignInputs(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( argv[1], &buffer, &size, 0 ); + _v = SWIG_IsOK(res) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_Transaction_SignInputs__SWIG_1(self, args); + } + } + } + if (argc == 2) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + _v = PyList_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_Transaction_SignInputs__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_Transaction_SignInputs'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_Transaction_SignInputs(Transaction__Handle,cipher_SecKeys *)\n" + " SKY_coin_Transaction_SignInputs(Transaction__Handle,GoSlice)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Size",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_Hash",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_SizeHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_SizeHash",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg3 = &p->data; + } + result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(unsigned char (*)[32])arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxID",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_TxIDHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_TxIDHex",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_UpdateHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_UpdateHeader",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_HashInner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transaction_HashInner",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj1, &argp, SWIGTYPE_p_cipher_SHA256, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type SHA256"); + cipher_SHA256* p = (cipher_SHA256*)argp; + arg2 = &p->data; + } + result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(unsigned char (*)[32])arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_Serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_Serialize",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_TransactionDeserialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_TransactionDeserialize",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_coin_TransactionDeserialize', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transaction_OutputHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transaction_OutputHours",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Create_Transactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Handle temp1 ; + GoUint32 result; + + { + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_Create_Transactions")) SWIG_fail; + result = (GoUint32)SKY_coin_Create_Transactions(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_GetTransactionsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + coin__UxArray **arg2 = (coin__UxArray **) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_GetTransactionsObject",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_GoSlice_, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_coin_GetTransactionsObject" "', argument " "2"" of type '" "coin__UxArray **""'"); + } + arg2 = (coin__UxArray **)(argp2); + result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Length",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + Transaction__Handle arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_Add",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Fees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + FeeCalculator temp2 ; + GoUint64 temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3 = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_Fees",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + if (!PyCallable_Check(obj1)) SWIG_fail; + temp2.callback = _WrapperFeeCalculator; + temp2.context = obj1; + arg2 = &temp2; + } + result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + long long val2 ; + int ecode2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_GetAt",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transactions_GetAt" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Hashes",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Hashes(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_Transactions_Hashes__SWIG_0(self, args); + } + } + if (argc == 1) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_Transactions_Hashes__SWIG_1(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_Transactions_Hashes'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_Transactions_Hashes(Transactions__Handle,cipher_SHA256s *)\n" + " SKY_coin_Transactions_Hashes(Transactions__Handle,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_Transactions_Size",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_Transactions_TruncateBytesTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + GoUint32 arg2 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_Transactions_TruncateBytesTo",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_Transactions_TruncateBytesTo" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_SortTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + FeeCalculator temp2 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_coin_SortTransactions",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + if (!PyCallable_Check(obj1)) SWIG_fail; + temp2.callback = _WrapperFeeCalculator; + temp2.context = obj1; + arg2 = &temp2; + } + result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_NewSortableTransactions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; + FeeCalculator temp2 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_NewSortableTransactions",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + if (!PyCallable_Check(obj1)) SWIG_fail; + temp2.callback = _WrapperFeeCalculator; + temp2.context = obj1; + arg2 = &temp2; + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_SortableTransactionResult_Handle, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_coin_NewSortableTransactions" "', argument " "3"" of type '" "SortableTransactionResult_Handle *""'"); + } + arg3 = (SortableTransactionResult_Handle *)(argp3); + result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SortableTransactionResult_Handle arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Sort",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Sort" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Sort" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); + } else { + arg1 = *((SortableTransactionResult_Handle *)(argp1)); + } + } + result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Len(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SortableTransactionResult_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + void *argp1 ; + int res1 = 0 ; + GoInt temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_SortableTransactions_Len",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Len" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Len" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); + } else { + arg1 = *((SortableTransactionResult_Handle *)(argp1)); + } + } + result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Less(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + void *argp1 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + long long val3 ; + int ecode3 = 0 ; + GoUint8 temp4 ; + int res4 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_SortableTransactions_Less",&obj0,&obj1,&obj2)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); + } else { + arg1 = *((SortableTransactionResult_Handle *)(argp1)); + } + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_SortableTransactions_Less" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_SortableTransactions_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + void *argp1 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + long long val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_coin_SortableTransactions_Swap",&obj0,&obj1,&obj2)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SortableTransactionResult_Handle, 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "1"" of type '" "SortableTransactionResult_Handle""'"); + } else { + arg1 = *((SortableTransactionResult_Handle *)(argp1)); + } + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + ecode3 = SWIG_AsVal_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_coin_SortableTransactions_Swap" "', argument " "3"" of type '" "GoInt""'"); + } + arg3 = (GoInt)(val3); + result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp1 ; + GoSlice_ temp2 ; + GoUint32 result; + + { + temp1.data = NULL; + temp1.len = 0; + temp1.cap = 0; + arg1 = (coin__UxArray *)&temp1; + } + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_coin_VerifyTransactionCoinsSpending")) SWIG_fail; + result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->data, arg1->len )); + free( (void*)arg1->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionCoinsSpending(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(self, args); + } + if (argc == 2) { + int _v; + { + _v = PyList_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + _v = PyList_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_VerifyTransactionCoinsSpending'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray *,coin_UxOutArray *)\n" + " SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray *,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + GoSlice_ temp2 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_coin_VerifyTransactionHoursSpending",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_coin_VerifyTransactionHoursSpending" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_coin_VerifyTransactionHoursSpending(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + { + int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(self, args); + } + } + if (argc == 3) { + int _v; + { + int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + _v = PyList_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + _v = PyList_Check(argv[2]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_coin_VerifyTransactionHoursSpending__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_coin_VerifyTransactionHoursSpending'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_coin_VerifyTransactionHoursSpending(GoUint64,coin_UxOutArray *,coin_UxOutArray *)\n" + " SKY_coin_VerifyTransactionHoursSpending(GoUint64,coin__UxArray *,coin__UxArray *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_handle_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_close",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + SKY_handle_close(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_handle_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_handle_copy",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_handle_copy(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_JsonEncode_Handle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_JsonEncode_Handle",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Progress_GetCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Progress_GetCurrent",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadSeq",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetHeadHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetHeadHash",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Block_GetPreviousBlockHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Block_GetPreviousBlockHash",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Blocks_GetAt",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_Handle_Blocks_GetAt" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Blocks_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Blocks_GetCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Connections_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Connections_GetCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Strings__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_GetCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_Sort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Strings__Handle arg1 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_Handle_Strings_Sort",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_Handle_Strings_Sort(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_Handle_Strings_GetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Strings__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + long long val2 ; + int ecode2 = 0 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_Handle_Strings_GetAt",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_Handle_Strings_GetAt" "', argument " "2"" of type '" "GoInt""'"); + } + arg2 = (GoInt)(val2); + result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletDir",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletFileName",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletLabel",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletFullPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_Client_GetWalletFullPath",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletMeta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletMeta",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletEntriesCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WalletResponse__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_Client_GetWalletResponseEntriesCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoUint32 arg2 ; + cipher__Address *arg3 = (cipher__Address *) 0 ; + cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SKY_api_Handle_WalletGetEntry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletGetEntry" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_api_Handle_WalletGetEntry" "', argument " "3"" of type '" "cipher__Address *""'"); + } + arg3 = (cipher__Address *)(argp3); + { + void *argp = 0; + int res = SWIG_ConvertPtr(obj3, &argp, SWIGTYPE_p_cipher_PubKey, 0 | 0); + if (!SWIG_IsOK(res)) + SWIG_exception_fail(SWIG_TypeError, "expecting type PubKey"); + cipher_PubKey* p = (cipher_PubKey*)argp; + arg4 = &p->data; + } + result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(unsigned char (*)[33])arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WalletResponse__Handle arg1 ; + GoUint32 arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + GoString temp3 ; + GoString temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + { + temp4.p = NULL; + temp4.n = 0; + arg4 = (GoString_ *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletResponseGetEntry",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletResponseGetEntry" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); + free( (void*)arg4->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseIsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WalletResponse__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseIsEncrypted",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletResponseGetCryptoType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletResponseGetCryptoType",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallets__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_WalletsResponseGetCount",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_WalletsResponseGetAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallets__Handle arg1 ; + GoUint32 arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_api_Handle_WalletsResponseGetAt",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_api_Handle_WalletsResponseGetAt" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletFolderAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletFolderAddress",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletSeed",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetWalletLastSeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetWalletLastSeed",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_api_Handle_GetBuildInfoData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + BuildInfo_Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString temp2 ; + GoString temp3 ; + GoString temp4 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + { + temp4.p = NULL; + temp4.n = 0; + arg4 = (GoString_ *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_api_Handle_GetBuildInfoData",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); + free( (void*)arg4->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_map_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Handle temp1 ; + GoString temp3 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg1 = &temp1; + } + { + temp3.p = NULL; + temp3.n = 0; + arg3 = (GoString_ *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_map_Get",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_map_Get', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->p, arg3->n )); + free( (void*)arg3->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_map_HasKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + Handle temp1 ; + PyObject * obj0 = 0 ; + GoUint8 result; + + { + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_map_HasKey",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_map_HasKey', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint8)SKY_map_HasKey(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_map_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + Handle temp1 ; + GoUint32 result; + + { + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_map_Close")) SWIG_fail; + result = (GoUint32)SKY_map_Close(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg1)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_testutil_MakeAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_testutil_MakeAddress",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_testutil_MakeAddress" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + result = (GoUint32)SKY_testutil_MakeAddress(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_apputil_CatchInterruptPanic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchInterruptPanic")) SWIG_fail; + result = (GoUint32)SKY_apputil_CatchInterruptPanic(); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_apputil_CatchDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_CatchDebug")) SWIG_fail; + result = (GoUint32)SKY_apputil_CatchDebug(); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_apputil_PrintProgramStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)":SKY_apputil_PrintProgramStatus")) SWIG_fail; + result = (GoUint32)SKY_apputil_PrintProgramStatus(); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_certutil_NewTLSCertPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoSlice_ temp4 ; + GoSlice_ temp5 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + { + temp5.data = NULL; + temp5.len = 0; + temp5.cap = 0; + arg5 = (coin__UxArray *)&temp5; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_certutil_NewTLSCertPair",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_certutil_NewTLSCertPair', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_certutil_NewTLSCertPair', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_certutil_NewTLSCertPair', expecting string"); + } + (&arg3)->data = buffer; + (&arg3)->len = size - 1; + (&arg3)->cap = size; + } + result = (GoUint32)SKY_certutil_NewTLSCertPair(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg5->data, arg5->len )); + free( (void*)arg5->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_droplet_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_droplet_FromString",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_droplet_FromString', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_droplet_FromString(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_droplet_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_droplet_ToString",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_droplet_ToString" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + result = (GoUint32)SKY_droplet_ToString(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + GoUint32 arg3 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_fee_VerifyTransactionFee",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_VerifyTransactionFee" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_fee_VerifyTransactionFee" "', argument " "3"" of type '" "GoUint32""'"); + } + arg3 = (GoUint32)(val3); + result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_fee_VerifyTransactionFeeForHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint32 arg3 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_fee_VerifyTransactionFeeForHours",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_fee_VerifyTransactionFeeForHours" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_VerifyTransactionFeeForHours" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_fee_VerifyTransactionFeeForHours" "', argument " "3"" of type '" "GoUint32""'"); + } + arg3 = (GoUint32)(val3); + result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_fee_RequiredFee(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + GoUint32 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3 = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_RequiredFee",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_fee_RequiredFee" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_RequiredFee" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_fee_RemainingHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + GoUint32 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + GoUint64 temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3 = 0; + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_RemainingHours",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_fee_RemainingHours" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_RemainingHours" "', argument " "2"" of type '" "GoUint32""'"); + } + arg2 = (GoUint32)(val2); + result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg3 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; + GoUint64 temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + { + temp4 = 0; + arg4 = &temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_fee_TransactionFee",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_fee_TransactionFee" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_fee_TransactionFee(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + Py_ssize_t ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SKY_fee_TransactionFee__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + _v = PyInt_Check(argv[0]) ? 1 : 0; + } + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + _v = PyList_Check(argv[2]) ? 1 : 0; + } + if (_v) { + return _wrap_SKY_fee_TransactionFee__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SKY_fee_TransactionFee'.\n" + " Possible C/C++ prototypes are:\n" + " wrap_SKY_fee_TransactionFee(Transaction__Handle,GoUint64,coin_UxOutArray *,GoUint64 *)\n" + " SKY_fee_TransactionFee(Transaction__Handle,GoUint64,coin__UxArray *,GoUint64 *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SKY_file_InitDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_InitDataDir",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_InitDataDir', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_file_UserHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; + GoUint32 result; + + { + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_file_UserHome")) SWIG_fail; + result = (GoUint32)SKY_file_UserHome(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_file_ResolveResourceDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_file_ResolveResourceDirectory",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_ResolveResourceDirectory', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_file_DetermineResourcePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4.p = NULL; + temp4.n = 0; + arg4 = (GoString_ *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_file_DetermineResourcePath",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_DetermineResourcePath', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_DetermineResourcePath', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_file_DetermineResourcePath', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->p, arg4->n )); + free( (void*)arg4->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + GoSlice arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_httphelper_Address_UnmarshalJSON",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_httphelper_Address_UnmarshalJSON" "', argument " "1"" of type '" "httphelper__Address *""'"); + } + arg1 = (httphelper__Address *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_httphelper_Address_UnmarshalJSON', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_httphelper_Address_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Address_MarshalJSON",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_httphelper_Address_MarshalJSON" "', argument " "1"" of type '" "httphelper__Address *""'"); + } + arg1 = (httphelper__Address *)(argp1); + result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoSlice arg2 ; + GoUint64 temp1 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp1 = 0; + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Coins_UnmarshalJSON",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_httphelper_Coins_UnmarshalJSON', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint64 temp1 ; + GoSlice_ temp2 ; + GoUint32 result; + + { + temp1 = 0; + arg1 = &temp1; + } + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Coins_MarshalJSON")) SWIG_fail; + result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_httphelper_Coins_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp1 ; + GoUint64 temp2 ; + GoUint32 result; + + { + temp1 = 0; + arg1 = &temp1; + } + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Coins_Value")) SWIG_fail; + result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_UnmarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoSlice arg2 ; + GoUint64 temp1 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp1 = 0; + arg1 = &temp1; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_httphelper_Hours_UnmarshalJSON",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_httphelper_Hours_UnmarshalJSON', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_MarshalJSON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint64 temp1 ; + GoSlice_ temp2 ; + GoUint32 result; + + { + temp1 = 0; + arg1 = &temp1; + } + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Hours_MarshalJSON")) SWIG_fail; + result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_httphelper_Hours_Value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint64 temp1 ; + GoUint64 temp2 ; + GoUint32 result; + + { + temp1 = 0; + arg1 = &temp1; + } + { + temp2 = 0; + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_httphelper_Hours_Value")) SWIG_fail; + result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg1 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg2 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_iputil_LocalhostIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString temp1 ; + GoUint32 result; + + { + temp1.p = NULL; + temp1.n = 0; + arg1 = (GoString_ *)&temp1; + } + if (!PyArg_ParseTuple(args,(char *)":SKY_iputil_LocalhostIP")) SWIG_fail; + result = (GoUint32)SKY_iputil_LocalhostIP(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg1->p, arg1->n )); + free( (void*)arg1->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_iputil_IsLocalhost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_IsLocalhost",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_iputil_IsLocalhost', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_iputil_SplitAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoString temp2 ; + GoUint16 temp3 ; + int res3 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_iputil_SplitAddr",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_iputil_SplitAddr', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_logging_EnableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)":SKY_logging_EnableColors")) SWIG_fail; + result = (GoUint32)SKY_logging_EnableColors(); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_logging_DisableColors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)":SKY_logging_DisableColors")) SWIG_fail; + result = (GoUint32)SKY_logging_DisableColors(); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_logging_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)":SKY_logging_Disable")) SWIG_fail; + result = (GoUint32)SKY_logging_Disable(); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + GoUint64 arg2 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewBalance",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewBalance" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_NewBalance" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewBalance" "', argument " "3"" of type '" "wallet__Balance *""'"); + } + arg3 = (wallet__Balance *)(argp3); + result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_NewBalanceFromUxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewBalanceFromUxOut",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "2"" of type '" "coin__UxOut *""'"); + } + arg2 = (coin__UxOut *)(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewBalanceFromUxOut" "', argument " "3"" of type '" "wallet__Balance *""'"); + } + arg3 = (wallet__Balance *)(argp3); + result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Balance_Add",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Add" "', argument " "1"" of type '" "wallet__Balance *""'"); + } + arg1 = (wallet__Balance *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Add" "', argument " "2"" of type '" "wallet__Balance *""'"); + } + arg2 = (wallet__Balance *)(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Balance_Add" "', argument " "3"" of type '" "wallet__Balance *""'"); + } + arg3 = (wallet__Balance *)(argp3); + result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Sub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Balance_Sub",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Sub" "', argument " "1"" of type '" "wallet__Balance *""'"); + } + arg1 = (wallet__Balance *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Sub" "', argument " "2"" of type '" "wallet__Balance *""'"); + } + arg2 = (wallet__Balance *)(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Balance_Sub" "', argument " "3"" of type '" "wallet__Balance *""'"); + } + arg3 = (wallet__Balance *)(argp3); + result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_Equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + GoUint8 temp3 ; + int res3 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Balance_Equals",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_Equals" "', argument " "1"" of type '" "wallet__Balance *""'"); + } + arg1 = (wallet__Balance *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Balance_Equals" "', argument " "2"" of type '" "wallet__Balance *""'"); + } + arg2 = (wallet__Balance *)(argp2); + result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Balance_IsZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Balance_IsZero",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Balance_IsZero" "', argument " "1"" of type '" "wallet__Balance *""'"); + } + arg1 = (wallet__Balance *)(argp1); + result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_CryptoTypeFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_CryptoTypeFromString",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CryptoTypeFromString', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_Verify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Entry_Verify",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Entry_Verify" "', argument " "1"" of type '" "wallet__Entry *""'"); + } + arg1 = (wallet__Entry *)(argp1); + result = (GoUint32)SKY_wallet_Entry_Verify(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Entry_VerifyPublic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Entry_VerifyPublic",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_Entry_VerifyPublic" "', argument " "1"" of type '" "wallet__Entry *""'"); + } + arg1 = (wallet__Entry *)(argp1); + result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_NewReadableEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewReadableEntry",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_NewReadableEntry', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewReadableEntry" "', argument " "2"" of type '" "wallet__Entry *""'"); + } + arg2 = (wallet__Entry *)(argp2); + result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_LoadReadableWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_LoadReadableWallet",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_LoadReadableWallet', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableWallet_Save",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Save', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_ReadableWallet_Load",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ReadableWallet_Load', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_ReadableWallet_Erase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ReadableWallet__Handle arg1 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_ReadableWallet_Erase",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_NewError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoInterface arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewError",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GoInterface, 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SKY_wallet_NewError" "', argument " "1"" of type '" "GoInterface""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SKY_wallet_NewError" "', argument " "1"" of type '" "GoInterface""'"); + } else { + arg1 = *((GoInterface *)(argp1)); + } + } + result = (GoUint32)SKY_wallet_NewError(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_NewWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + Options__Handle arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_NewWallet",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_NewWallet', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + SWIG_AsVal_long(obj1, (long*)&arg2); + } + result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoSlice arg2 ; + GoString arg3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_Lock",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Lock', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Lock', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Unlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoSlice arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + Handle temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + arg3 = &temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Unlock",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Unlock', expecting string"); + } + (&arg2)->data = buffer; + (&arg2)->len = size - 1; + (&arg2)->cap = size; + } + result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg3)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + Handle temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + arg2 = &temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Load",&obj0)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Load', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + result = (GoUint32)SKY_wallet_Load(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg2)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_Save",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_Wallet_Save', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Validate",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Type",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Version",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Filename",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_Label(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString_ *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_Label",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->p, arg2->n )); + free( (void*)arg2->p ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_IsEncrypted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint8 temp2 ; + int res2 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + GoUint32 result; + + arg2 = &temp2; + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_IsEncrypted",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GenerateAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_GenerateAddresses",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_Wallet_GenerateAddresses" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetAddresses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice_ temp2 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_Wallet_GetAddresses",&obj0)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_GetEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + wallet__Entry *arg3 = (wallet__Entry *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + GoUint8 temp4 ; + int res4 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_Wallet_GetEntry",&obj0,&obj1,&obj2)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Wallet_GetEntry" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_Wallet_GetEntry" "', argument " "3"" of type '" "wallet__Entry *""'"); + } + arg3 = (wallet__Entry *)(argp3); + result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_Wallet_AddEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Wallet__Handle arg1 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_Wallet_AddEntry",&obj0,&obj1)) SWIG_fail; + { + SWIG_AsVal_long(obj0, (long*)&arg1); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_Wallet_AddEntry" "', argument " "2"" of type '" "wallet__Entry *""'"); + } + arg2 = (wallet__Entry *)(argp2); + result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeSpendHours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint8 arg3 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoUint64 *arg6 = (GoUint64 *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned char val3 ; + int ecode3 = 0 ; + GoUint64 temp4 ; + GoSlice_ temp5 ; + GoUint64 temp6 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4 = 0; + arg4 = &temp4; + } + { + temp5.data = NULL; + temp5.len = 0; + temp5.cap = 0; + arg5 = (coin__UxArray *)&temp5; + } + { + temp6 = 0; + arg6 = &temp6; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_DistributeSpendHours",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_DistributeSpendHours" "', argument " "3"" of type '" "GoUint8""'"); + } + arg3 = (GoUint8)(val3); + result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg4 )); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg5->data, arg5->len )); + free( (void*)arg5->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long( *arg6 )); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_DistributeCoinHoursProportional(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GoUint32 result; + + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"OO:SKY_wallet_DistributeCoinHoursProportional",&obj0,&obj1)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_DistributeCoinHoursProportional', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_DistributeCoinHoursProportional" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalances(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + GoSlice_ temp2 ; + GoSlice_ temp3 ; + PyObject * obj0 = 0 ; + GoUint32 result; + + { + temp2.data = NULL; + temp2.len = 0; + temp2.cap = 0; + arg2 = (coin__UxArray *)&temp2; + } + { + temp3.data = NULL; + temp3.len = 0; + temp3.cap = 0; + arg3 = (coin__UxArray *)&temp3; + } + if (!PyArg_ParseTuple(args,(char *)"O:SKY_wallet_NewUxBalances",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewUxBalances" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg2->data, arg2->len )); + free( (void*)arg2->data ); + } + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg3->data, arg3->len )); + free( (void*)arg3->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_NewUxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; + unsigned long long val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_NewUxBalance",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SKY_wallet_NewUxBalance" "', argument " "1"" of type '" "GoUint64""'"); + } + arg1 = (GoUint64)(val1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SKY_wallet_NewUxBalance" "', argument " "2"" of type '" "coin__UxOut *""'"); + } + arg2 = (coin__UxOut *)(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SKY_wallet_NewUxBalance" "', argument " "3"" of type '" "wallet__UxBalance *""'"); + } + arg3 = (wallet__UxBalance *)(argp3); + result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMinimizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned long long val3 ; + int ecode3 = 0 ; + GoSlice_ temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMinimizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ChooseSpendsMinimizeUxOuts', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_ChooseSpendsMinimizeUxOuts" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_ChooseSpendsMinimizeUxOuts" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + unsigned long long val3 ; + int ecode3 = 0 ; + GoSlice_ temp4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + GoUint32 result; + + { + temp4.data = NULL; + temp4.len = 0; + temp4.cap = 0; + arg4 = (coin__UxArray *)&temp4; + } + if (!PyArg_ParseTuple(args,(char *)"OOO:SKY_wallet_ChooseSpendsMaximizeUxOuts",&obj0,&obj1,&obj2)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_ChooseSpendsMaximizeUxOuts', expecting string"); + } + (&arg1)->data = buffer; + (&arg1)->len = size - 1; + (&arg1)->cap = size; + } + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "2"" of type '" "GoUint64""'"); + } + arg2 = (GoUint64)(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SKY_wallet_ChooseSpendsMaximizeUxOuts" "', argument " "3"" of type '" "GoUint64""'"); + } + arg3 = (GoUint64)(val3); + result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_FromCharPtrAndSize( arg4->data, arg4->len )); + free( (void*)arg4->data ); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SKY_wallet_CreateOptionsHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint8 arg4 ; + GoString arg5 ; + GoString arg6 ; + GoUint64 arg7 ; + Options__Handle *arg8 = (Options__Handle *) 0 ; + unsigned char val4 ; + int ecode4 = 0 ; + unsigned long long val7 ; + int ecode7 = 0 ; + Handle temp8 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + GoUint32 result; + + { + arg8 = &temp8; + } + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:SKY_wallet_CreateOptionsHandle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj0, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg1)->p = buffer; + (&arg1)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj2, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg3)->p = buffer; + (&arg3)->n = size - 1; + } + ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "4"" of type '" "GoUint8""'"); + } + arg4 = (GoUint8)(val4); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj4, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg5)->p = buffer; + (&arg5)->n = size - 1; + } + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj5, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'SKY_wallet_CreateOptionsHandle', expecting string"); + } + (&arg6)->p = buffer; + (&arg6)->n = size - 1; + } + ecode7 = SWIG_AsVal_unsigned_SS_long_SS_long(obj6, &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SKY_wallet_CreateOptionsHandle" "', argument " "7"" of type '" "GoUint64""'"); + } + arg7 = (GoUint64)(val7); + result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long(*arg8)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__RichlistParams_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + GoInt_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:api__RichlistParams_N_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); + } + arg1 = (api__RichlistParams *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__RichlistParams_N_set" "', argument " "2"" of type '" "GoInt_""'"); + } + arg2 = (GoInt_)(val2); + if (arg1) (arg1)->N = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__RichlistParams_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:api__RichlistParams_N_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_N_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); + } + arg1 = (api__RichlistParams *)(argp1); + result = (GoInt_) ((arg1)->N); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:api__RichlistParams_IncludeDistribution_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "1"" of type '" "api__RichlistParams *""'"); + } + arg1 = (api__RichlistParams *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "api__RichlistParams_IncludeDistribution_set" "', argument " "2"" of type '" "BOOL""'"); + } + arg2 = (BOOL)(val2); + if (arg1) (arg1)->IncludeDistribution = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__RichlistParams_IncludeDistribution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + BOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:api__RichlistParams_IncludeDistribution_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__RichlistParams_IncludeDistribution_get" "', argument " "1"" of type '" "api__RichlistParams *""'"); + } + arg1 = (api__RichlistParams *)(argp1); + result = ((arg1)->IncludeDistribution); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__RichlistParams *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_api__RichlistParams")) SWIG_fail; + result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__RichlistParams, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_api__RichlistParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_api__RichlistParams",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__RichlistParams, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__RichlistParams" "', argument " "1"" of type '" "api__RichlistParams *""'"); + } + arg1 = (api__RichlistParams *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *api__RichlistParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_api__RichlistParams, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_States_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:api__NetworkConnectionsFilter_States_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_States_set" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg1 = (api__NetworkConnectionsFilter *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'api__NetworkConnectionsFilter_States_set', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + if (arg1) (arg1)->States = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_States_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoString_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:api__NetworkConnectionsFilter_States_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_States_get" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg1 = (api__NetworkConnectionsFilter *)(argp1); + result = ((arg1)->States); + resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_Direction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:api__NetworkConnectionsFilter_Direction_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_Direction_set" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg1 = (api__NetworkConnectionsFilter *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'api__NetworkConnectionsFilter_Direction_set', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + if (arg1) (arg1)->Direction = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_api__NetworkConnectionsFilter_Direction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoString_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:api__NetworkConnectionsFilter_Direction_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "api__NetworkConnectionsFilter_Direction_get" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg1 = (api__NetworkConnectionsFilter *)(argp1); + result = ((arg1)->Direction); + resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_api__NetworkConnectionsFilter")) SWIG_fail; + result = (api__NetworkConnectionsFilter *)calloc(1, sizeof(api__NetworkConnectionsFilter)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_api__NetworkConnectionsFilter, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_api__NetworkConnectionsFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_api__NetworkConnectionsFilter",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_api__NetworkConnectionsFilter, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_api__NetworkConnectionsFilter" "', argument " "1"" of type '" "api__NetworkConnectionsFilter *""'"); + } + arg1 = (api__NetworkConnectionsFilter *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *api__NetworkConnectionsFilter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_api__NetworkConnectionsFilter, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher__Address___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address___eq__" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__Address___eq__" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + result = (int)cipher__Address___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__Address_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher__Address_toStr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_toStr" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + result = (PyObject *)cipher__Address_toStr(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__Address_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address_Version_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Version_set" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher__Address_Version_set" "', argument " "2"" of type '" "GoUint8_""'"); + } + arg2 = (GoUint8_)(val2); + if (arg1) (arg1)->Version = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__Address_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher__Address_Version_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Version_get" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + result = (GoUint8_) ((arg1)->Version); + resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__Address_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__Address_Key_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_set" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__Address_Key_set" "', argument " "2"" of type '" "unsigned char [20]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)20; ++ii) *(unsigned char *)&arg1->Key[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Key""' of type '""unsigned char [20]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__Address_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher__Address_Key_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__Address_Key_get" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + result = (GoUint8_ *) ((arg1)->Key); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher__Address")) SWIG_fail; + result = (cipher__Address *)calloc(1, sizeof(cipher__Address)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__Address *arg1 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher__Address",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__Address, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__Address" "', argument " "1"" of type '" "cipher__Address *""'"); + } + arg1 = (cipher__Address *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher__Address_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher__Address, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress___eq__" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__BitcoinAddress___eq__" "', argument " "2"" of type '" "cipher__BitcoinAddress *""'"); + } + arg2 = (cipher__BitcoinAddress *)(argp2); + result = (int)cipher__BitcoinAddress___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_toStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_toStr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_toStr" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + result = (PyObject *)cipher__BitcoinAddress_toStr(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress_Version_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Version_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cipher__BitcoinAddress_Version_set" "', argument " "2"" of type '" "GoUint8_""'"); + } + arg2 = (GoUint8_)(val2); + if (arg1) (arg1)->Version = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_Version_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Version_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + result = (GoUint8_) ((arg1)->Version); + resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cipher__BitcoinAddress_Key_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Key_set" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cipher__BitcoinAddress_Key_set" "', argument " "2"" of type '" "unsigned char [20]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)20; ++ii) *(unsigned char *)&arg1->Key[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Key""' of type '""unsigned char [20]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cipher__BitcoinAddress_Key_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cipher__BitcoinAddress_Key_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cipher__BitcoinAddress_Key_get" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + result = (GoUint8_ *) ((arg1)->Key); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cipher__BitcoinAddress")) SWIG_fail; + result = (cipher__BitcoinAddress *)calloc(1, sizeof(cipher__BitcoinAddress)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__BitcoinAddress, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cipher__BitcoinAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cipher__BitcoinAddress",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cipher__BitcoinAddress, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cipher__BitcoinAddress" "', argument " "1"" of type '" "cipher__BitcoinAddress *""'"); + } + arg1 = (cipher__BitcoinAddress *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cipher__BitcoinAddress_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cipher__BitcoinAddress, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_N_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_N_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_N_set" "', argument " "2"" of type '" "GoInt_""'"); + } + arg2 = (GoInt_)(val2); + if (arg1) (arg1)->N = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_N_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_N_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_N_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + result = (GoInt_) ((arg1)->N); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_R_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_R_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_R_set" "', argument " "2"" of type '" "GoInt_""'"); + } + arg2 = (GoInt_)(val2); + if (arg1) (arg1)->R = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_R_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_R_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_R_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + result = (GoInt_) ((arg1)->R); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_P_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_P_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_P_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_P_set" "', argument " "2"" of type '" "GoInt_""'"); + } + arg2 = (GoInt_)(val2); + if (arg1) (arg1)->P = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_P_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_P_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_P_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + result = (GoInt_) ((arg1)->P); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_KeyLen_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:encrypt__ScryptChacha20poly1305_KeyLen_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_set" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_set" "', argument " "2"" of type '" "GoInt_""'"); + } + arg2 = (GoInt_)(val2); + if (arg1) (arg1)->KeyLen = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_encrypt__ScryptChacha20poly1305_KeyLen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:encrypt__ScryptChacha20poly1305_KeyLen_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encrypt__ScryptChacha20poly1305_KeyLen_get" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + result = (GoInt_) ((arg1)->KeyLen); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_encrypt__ScryptChacha20poly1305")) SWIG_fail; + result = (encrypt__ScryptChacha20poly1305 *)calloc(1, sizeof(encrypt__ScryptChacha20poly1305)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_encrypt__ScryptChacha20poly1305(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_encrypt__ScryptChacha20poly1305",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_encrypt__ScryptChacha20poly1305" "', argument " "1"" of type '" "encrypt__ScryptChacha20poly1305 *""'"); + } + arg1 = (encrypt__ScryptChacha20poly1305 *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *encrypt__ScryptChacha20poly1305_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_encrypt__ScryptChacha20poly1305, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__Field_n_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__Field_n_set" "', argument " "1"" of type '" "secp256k1go__Field *""'"); + } + arg1 = (secp256k1go__Field *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__Field_n_set" "', argument " "2"" of type '" "GoUint32_ [10]""'"); + } + arg2 = (GoUint32_ *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)10; ++ii) *(GoUint32_ *)&arg1->n[ii] = *((GoUint32_ *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""n""' of type '""GoUint32_ [10]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__Field_n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint32_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__Field_n_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__Field_n_get" "', argument " "1"" of type '" "secp256k1go__Field *""'"); + } + arg1 = (secp256k1go__Field *)(argp1); + result = (GoUint32_ *)(GoUint32_ *) ((arg1)->n); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__Field *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_secp256k1go__Field")) SWIG_fail; + result = (secp256k1go__Field *)calloc(1, sizeof(secp256k1go__Field)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_secp256k1go__Field(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_secp256k1go__Field",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__Field, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__Field" "', argument " "1"" of type '" "secp256k1go__Field *""'"); + } + arg1 = (secp256k1go__Field *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *secp256k1go__Field_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_secp256k1go__Field, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_secp256k1go__XY_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XY_X_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_X_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + } + arg1 = (secp256k1go__XY *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XY_X_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); + } + arg2 = (secp256k1go__Field *)(argp2); + if (arg1) (arg1)->X = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XY_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + secp256k1go__Field *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XY_X_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_X_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + } + arg1 = (secp256k1go__XY *)(argp1); + result = (secp256k1go__Field *)& ((arg1)->X); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XY_Y_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Y_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + } + arg1 = (secp256k1go__XY *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XY_Y_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); + } + arg2 = (secp256k1go__Field *)(argp2); + if (arg1) (arg1)->Y = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XY_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + secp256k1go__Field *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XY_Y_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Y_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + } + arg1 = (secp256k1go__XY *)(argp1); + result = (secp256k1go__Field *)& ((arg1)->Y); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + BOOL arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XY_Infinity_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Infinity_set" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + } + arg1 = (secp256k1go__XY *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "secp256k1go__XY_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); + } + arg2 = (BOOL)(val2); + if (arg1) (arg1)->Infinity = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XY_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + BOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XY_Infinity_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XY_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + } + arg1 = (secp256k1go__XY *)(argp1); + result = ((arg1)->Infinity); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XY *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_secp256k1go__XY")) SWIG_fail; + result = (secp256k1go__XY *)calloc(1, sizeof(secp256k1go__XY)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__XY, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_secp256k1go__XY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_secp256k1go__XY",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XY, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__XY" "', argument " "1"" of type '" "secp256k1go__XY *""'"); + } + arg1 = (secp256k1go__XY *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *secp256k1go__XY_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_secp256k1go__XY, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_X_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_X_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + } + arg1 = (secp256k1go__XYZ *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_X_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); + } + arg2 = (secp256k1go__Field *)(argp2); + if (arg1) (arg1)->X = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + secp256k1go__Field *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_X_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_X_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + } + arg1 = (secp256k1go__XYZ *)(argp1); + result = (secp256k1go__Field *)& ((arg1)->X); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_Y_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Y_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + } + arg1 = (secp256k1go__XYZ *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_Y_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); + } + arg2 = (secp256k1go__Field *)(argp2); + if (arg1) (arg1)->Y = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + secp256k1go__Field *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_Y_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Y_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + } + arg1 = (secp256k1go__XYZ *)(argp1); + result = (secp256k1go__Field *)& ((arg1)->Y); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_Z_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Z_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + } + arg1 = (secp256k1go__XYZ *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "secp256k1go__XYZ_Z_set" "', argument " "2"" of type '" "secp256k1go__Field *""'"); + } + arg2 = (secp256k1go__Field *)(argp2); + if (arg1) (arg1)->Z = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + secp256k1go__Field *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_Z_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Z_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + } + arg1 = (secp256k1go__XYZ *)(argp1); + result = (secp256k1go__Field *)& ((arg1)->Z); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__Field, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + BOOL arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:secp256k1go__XYZ_Infinity_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Infinity_set" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + } + arg1 = (secp256k1go__XYZ *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "secp256k1go__XYZ_Infinity_set" "', argument " "2"" of type '" "BOOL""'"); + } + arg2 = (BOOL)(val2); + if (arg1) (arg1)->Infinity = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_secp256k1go__XYZ_Infinity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + BOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:secp256k1go__XYZ_Infinity_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "secp256k1go__XYZ_Infinity_get" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + } + arg1 = (secp256k1go__XYZ *)(argp1); + result = ((arg1)->Infinity); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_secp256k1go__XYZ")) SWIG_fail; + result = (secp256k1go__XYZ *)calloc(1, sizeof(secp256k1go__XYZ)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_secp256k1go__XYZ, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_secp256k1go__XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_secp256k1go__XYZ",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_secp256k1go__XYZ, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_secp256k1go__XYZ" "', argument " "1"" of type '" "secp256k1go__XYZ *""'"); + } + arg1 = (secp256k1go__XYZ *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *secp256k1go__XYZ_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_secp256k1go__XYZ, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cli__SendAmount_Addr_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Addr_set" "', argument " "1"" of type '" "cli__SendAmount *""'"); + } + arg1 = (cli__SendAmount *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'cli__SendAmount_Addr_set', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + if (arg1) (arg1)->Addr = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cli__SendAmount_Addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoString_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:cli__SendAmount_Addr_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Addr_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); + } + arg1 = (cli__SendAmount *)(argp1); + result = ((arg1)->Addr); + resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cli__SendAmount_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cli__SendAmount_Coins_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Coins_set" "', argument " "1"" of type '" "cli__SendAmount *""'"); + } + arg1 = (cli__SendAmount *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cli__SendAmount_Coins_set" "', argument " "2"" of type '" "GoInt64_""'"); + } + arg2 = (GoInt64_)(val2); + if (arg1) (arg1)->Coins = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cli__SendAmount_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:cli__SendAmount_Coins_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cli__SendAmount_Coins_get" "', argument " "1"" of type '" "cli__SendAmount *""'"); + } + arg1 = (cli__SendAmount *)(argp1); + result = (GoInt64_) ((arg1)->Coins); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cli__SendAmount *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cli__SendAmount")) SWIG_fail; + result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli__SendAmount, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cli__SendAmount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cli__SendAmount",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cli__SendAmount, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cli__SendAmount" "', argument " "1"" of type '" "cli__SendAmount *""'"); + } + arg1 = (cli__SendAmount *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cli__SendAmount_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cli__SendAmount, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin__Transaction___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction___eq__" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction___eq__" "', argument " "2"" of type '" "coin__Transaction *""'"); + } + arg2 = (coin__Transaction *)(argp2); + result = (int)coin__Transaction___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_Length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt32_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Length_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Length_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__Transaction_Length_set" "', argument " "2"" of type '" "GoInt32_""'"); + } + arg2 = (GoInt32_)(val2); + if (arg1) (arg1)->Length = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_Length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt32_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Length_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Length_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + result = (GoInt32_) ((arg1)->Length); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt8_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + signed char val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Type_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Type_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + ecode2 = SWIG_AsVal_signed_SS_char(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__Transaction_Type_set" "', argument " "2"" of type '" "GoInt8_""'"); + } + arg2 = (GoInt8_)(val2); + if (arg1) (arg1)->Type = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt8_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Type_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Type_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + result = (GoInt8_) ((arg1)->Type); + resultobj = SWIG_From_signed_SS_char((signed char)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_InnerHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_InnerHash_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_InnerHash_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_InnerHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->InnerHash[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""InnerHash""' of type '""unsigned char [32]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_InnerHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_InnerHash_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_InnerHash_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + result = (GoUint8_ *) ((arg1)->InnerHash); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Sigs_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Sigs_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__Transaction_Sigs_set" "', argument " "2"" of type '" "GoSlice_""'"); + } else { + arg2 = *((GoSlice_ *)(argp2)); + } + } + if (arg1) (arg1)->Sigs = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_Sigs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoSlice_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Sigs_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Sigs_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + result = ((arg1)->Sigs); + resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_In_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_In_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_In_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__Transaction_In_set" "', argument " "2"" of type '" "GoSlice_""'"); + } else { + arg2 = *((GoSlice_ *)(argp2)); + } + } + if (arg1) (arg1)->In = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_In_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoSlice_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_In_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_In_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + result = ((arg1)->In); + resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_Out_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__Transaction_Out_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Out_set" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Transaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__Transaction_Out_set" "', argument " "2"" of type '" "GoSlice_""'"); + } else { + arg2 = *((GoSlice_ *)(argp2)); + } + } + if (arg1) (arg1)->Out = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Transaction_Out_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoSlice_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__Transaction_Out_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Transaction_Out_get" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + result = ((arg1)->Out); + resultobj = SWIG_NewPointerObj((GoSlice_ *)memcpy((GoSlice_ *)calloc(1,sizeof(GoSlice_)),&result,sizeof(GoSlice_)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin__Transaction")) SWIG_fail; + result = (coin__Transaction *)calloc(1, sizeof(coin__Transaction)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Transaction, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin__Transaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__Transaction",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Transaction, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__Transaction" "', argument " "1"" of type '" "coin__Transaction *""'"); + } + arg1 = (coin__Transaction *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin__Transaction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin__Transaction, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin__TransactionOutput___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + coin__TransactionOutput *arg2 = (coin__TransactionOutput *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput___eq__" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__TransactionOutput___eq__" "', argument " "2"" of type '" "coin__TransactionOutput *""'"); + } + arg2 = (coin__TransactionOutput *)(argp2); + result = (int)coin__TransactionOutput___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput_Address_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Address_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__TransactionOutput_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + if (arg1) (arg1)->Address = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cipher__Address *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__TransactionOutput_Address_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Address_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + result = (cipher__Address *)& ((arg1)->Address); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput_Coins_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Coins_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__TransactionOutput_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Coins = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__TransactionOutput_Coins_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Coins_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + result = (GoUint64_) ((arg1)->Coins); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__TransactionOutput_Hours_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Hours_set" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__TransactionOutput_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Hours = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__TransactionOutput_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__TransactionOutput_Hours_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__TransactionOutput_Hours_get" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + result = (GoUint64_) ((arg1)->Hours); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin__TransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin__TransactionOutput")) SWIG_fail; + result = (coin__TransactionOutput *)calloc(1, sizeof(coin__TransactionOutput)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__TransactionOutput, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin__TransactionOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__TransactionOutput",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__TransactionOutput, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__TransactionOutput" "', argument " "1"" of type '" "coin__TransactionOutput *""'"); + } + arg1 = (coin__TransactionOutput *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin__TransactionOutput_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin__TransactionOutput, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin__BlockHeader___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader___eq__" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader___eq__" "', argument " "2"" of type '" "coin__BlockHeader *""'"); + } + arg2 = (coin__BlockHeader *)(argp2); + result = (int)coin__BlockHeader___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint32_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_Version_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Version_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Version_set" "', argument " "2"" of type '" "GoUint32_""'"); + } + arg2 = (GoUint32_)(val2); + if (arg1) (arg1)->Version = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint32_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_Version_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Version_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint32_) ((arg1)->Version); + resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_Time_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Time_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Time = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_Time_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Time_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint64_) ((arg1)->Time); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_BkSeq_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BkSeq_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->BkSeq = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_BkSeq_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BkSeq_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint64_) ((arg1)->BkSeq); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_Fee_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Fee_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__BlockHeader_Fee_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Fee = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_Fee_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_Fee_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_Fee_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint64_) ((arg1)->Fee); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_PrevHash_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_PrevHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader_PrevHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->PrevHash[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""PrevHash""' of type '""unsigned char [32]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_PrevHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_PrevHash_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_PrevHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint8_ *) ((arg1)->PrevHash); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_BodyHash_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BodyHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader_BodyHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->BodyHash[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""BodyHash""' of type '""unsigned char [32]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_BodyHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_BodyHash_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_BodyHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint8_ *) ((arg1)->BodyHash); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_UxHash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockHeader_UxHash_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_UxHash_set" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockHeader_UxHash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->UxHash[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""UxHash""' of type '""unsigned char [32]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockHeader_UxHash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockHeader_UxHash_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockHeader_UxHash_get" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + result = (GoUint8_ *) ((arg1)->UxHash); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin__BlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin__BlockHeader")) SWIG_fail; + result = (coin__BlockHeader *)calloc(1, sizeof(coin__BlockHeader)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockHeader, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin__BlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__BlockHeader",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockHeader, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__BlockHeader" "', argument " "1"" of type '" "coin__BlockHeader *""'"); + } + arg1 = (coin__BlockHeader *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin__BlockHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin__BlockHeader, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin__BlockBody___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockBody___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody___eq__" "', argument " "1"" of type '" "coin__BlockBody *""'"); + } + arg1 = (coin__BlockBody *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockBody___eq__" "', argument " "2"" of type '" "coin__BlockBody *""'"); + } + arg2 = (coin__BlockBody *)(argp2); + result = (int)coin__BlockBody___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__Transactions arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__BlockBody_Transactions_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody_Transactions_set" "', argument " "1"" of type '" "coin__BlockBody *""'"); + } + arg1 = (coin__BlockBody *)(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GoSlice_, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__BlockBody_Transactions_set" "', argument " "2"" of type '" "coin__Transactions""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "coin__BlockBody_Transactions_set" "', argument " "2"" of type '" "coin__Transactions""'"); + } else { + arg2 = *((coin__Transactions *)(argp2)); + } + } + if (arg1) (arg1)->Transactions = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__BlockBody_Transactions_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + coin__Transactions result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__BlockBody_Transactions_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__BlockBody_Transactions_get" "', argument " "1"" of type '" "coin__BlockBody *""'"); + } + arg1 = (coin__BlockBody *)(argp1); + result = ((arg1)->Transactions); + resultobj = SWIG_NewPointerObj((coin__Transactions *)memcpy((coin__Transactions *)calloc(1,sizeof(coin__Transactions)),&result,sizeof(coin__Transactions)), SWIGTYPE_p_GoSlice_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockBody *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin__BlockBody")) SWIG_fail; + result = (coin__BlockBody *)calloc(1, sizeof(coin__BlockBody)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockBody, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin__BlockBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__BlockBody",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__BlockBody, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__BlockBody" "', argument " "1"" of type '" "coin__BlockBody *""'"); + } + arg1 = (coin__BlockBody *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin__BlockBody_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin__BlockBody, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin__Block_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__Block_Head_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Head_set" "', argument " "1"" of type '" "coin__Block *""'"); + } + arg1 = (coin__Block *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Block_Head_set" "', argument " "2"" of type '" "coin__BlockHeader *""'"); + } + arg2 = (coin__BlockHeader *)(argp2); + if (arg1) (arg1)->Head = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Block_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Block *arg1 = (coin__Block *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + coin__BlockHeader *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__Block_Head_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Head_get" "', argument " "1"" of type '" "coin__Block *""'"); + } + arg1 = (coin__Block *)(argp1); + result = (coin__BlockHeader *)& ((arg1)->Head); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockHeader, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Block_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__Block_Body_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Body_set" "', argument " "1"" of type '" "coin__Block *""'"); + } + arg1 = (coin__Block *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__BlockBody, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__Block_Body_set" "', argument " "2"" of type '" "coin__BlockBody *""'"); + } + arg2 = (coin__BlockBody *)(argp2); + if (arg1) (arg1)->Body = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__Block_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Block *arg1 = (coin__Block *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + coin__BlockBody *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__Block_Body_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__Block_Body_get" "', argument " "1"" of type '" "coin__Block *""'"); + } + arg1 = (coin__Block *)(argp1); + result = (coin__BlockBody *)& ((arg1)->Body); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__BlockBody, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin__Block(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Block *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin__Block")) SWIG_fail; + result = (coin__Block *)calloc(1, sizeof(coin__Block)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Block, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin__Block(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__Block *arg1 = (coin__Block *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__Block",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__Block, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__Block" "', argument " "1"" of type '" "coin__Block *""'"); + } + arg1 = (coin__Block *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin__Block_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin__Block, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin__SignedBlock__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__Block *arg2 = (coin__Block *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__SignedBlock__unnamed_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock__unnamed_set" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + } + arg1 = (coin__SignedBlock *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__Block, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SignedBlock__unnamed_set" "', argument " "2"" of type '" "coin__Block *""'"); + } + arg2 = (coin__Block *)(argp2); + if (arg1) (arg1)->_unnamed = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__SignedBlock__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + coin__Block *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__SignedBlock__unnamed_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock__unnamed_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + } + arg1 = (coin__SignedBlock *)(argp1); + result = (coin__Block *)& ((arg1)->_unnamed); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__Block, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__SignedBlock_Sig_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__SignedBlock_Sig_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock_Sig_set" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + } + arg1 = (coin__SignedBlock *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__SignedBlock_Sig_set" "', argument " "2"" of type '" "unsigned char [65]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)65; ++ii) *(unsigned char *)&arg1->Sig[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Sig""' of type '""unsigned char [65]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__SignedBlock_Sig_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__SignedBlock_Sig_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__SignedBlock_Sig_get" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + } + arg1 = (coin__SignedBlock *)(argp1); + result = (GoUint8_ *) ((arg1)->Sig); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin__SignedBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__SignedBlock *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin__SignedBlock")) SWIG_fail; + result = (coin__SignedBlock *)calloc(1, sizeof(coin__SignedBlock)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__SignedBlock, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin__SignedBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__SignedBlock",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__SignedBlock, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__SignedBlock" "', argument " "1"" of type '" "coin__SignedBlock *""'"); + } + arg1 = (coin__SignedBlock *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin__SignedBlock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin__SignedBlock, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin__UxHead_Time_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxHead_Time_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_Time_set" "', argument " "1"" of type '" "coin__UxHead *""'"); + } + arg1 = (coin__UxHead *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxHead_Time_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Time = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxHead_Time_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__UxHead_Time_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_Time_get" "', argument " "1"" of type '" "coin__UxHead *""'"); + } + arg1 = (coin__UxHead *)(argp1); + result = (GoUint64_) ((arg1)->Time); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxHead_BkSeq_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_BkSeq_set" "', argument " "1"" of type '" "coin__UxHead *""'"); + } + arg1 = (coin__UxHead *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxHead_BkSeq_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->BkSeq = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxHead_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__UxHead_BkSeq_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxHead_BkSeq_get" "', argument " "1"" of type '" "coin__UxHead *""'"); + } + arg1 = (coin__UxHead *)(argp1); + result = (GoUint64_) ((arg1)->BkSeq); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin__UxHead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxHead *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin__UxHead")) SWIG_fail; + result = (coin__UxHead *)calloc(1, sizeof(coin__UxHead)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxHead, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin__UxHead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__UxHead",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxHead, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxHead" "', argument " "1"" of type '" "coin__UxHead *""'"); + } + arg1 = (coin__UxHead *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin__UxHead_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxHead, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin__UxBody_GetSrcTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_GetSrcTransaction",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_GetSrcTransaction" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + result = (PyObject *)coin__UxBody_GetSrcTransaction(arg1); + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxBody_SetSrcTransaction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_SetSrcTransaction",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SetSrcTransaction" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + arg2 = obj1; + coin__UxBody_SetSrcTransaction(arg1,arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_SrcTransaction_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SrcTransaction_set" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxBody_SrcTransaction_set" "', argument " "2"" of type '" "unsigned char [32]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->SrcTransaction[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""SrcTransaction""' of type '""unsigned char [32]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxBody_SrcTransaction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_SrcTransaction_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_SrcTransaction_get" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + result = (GoUint8_ *) ((arg1)->SrcTransaction); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxBody_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_Address_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Address_set" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxBody_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + if (arg1) (arg1)->Address = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxBody_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cipher__Address *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_Address_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Address_get" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + result = (cipher__Address *)& ((arg1)->Address); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxBody_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_Coins_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Coins_set" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxBody_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Coins = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxBody_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_Coins_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Coins_get" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + result = (GoUint64_) ((arg1)->Coins); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxBody_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxBody_Hours_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Hours_set" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coin__UxBody_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Hours = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxBody_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__UxBody_Hours_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxBody_Hours_get" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + result = (GoUint64_) ((arg1)->Hours); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin__UxBody")) SWIG_fail; + result = (coin__UxBody *)calloc(1, sizeof(coin__UxBody)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxBody, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin__UxBody(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__UxBody",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxBody, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxBody" "', argument " "1"" of type '" "coin__UxBody *""'"); + } + arg1 = (coin__UxBody *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin__UxBody_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxBody, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_coin__UxOut___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxOut___eq__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut___eq__" "', argument " "1"" of type '" "coin__UxOut *""'"); + } + arg1 = (coin__UxOut *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxOut___eq__" "', argument " "2"" of type '" "coin__UxOut *""'"); + } + arg2 = (coin__UxOut *)(argp2); + result = (int)coin__UxOut___eq__(arg1,arg2); + resultobj = SWIG_From_int((int)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxOut_Head_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxHead *arg2 = (coin__UxHead *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxOut_Head_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Head_set" "', argument " "1"" of type '" "coin__UxOut *""'"); + } + arg1 = (coin__UxOut *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxHead, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxOut_Head_set" "', argument " "2"" of type '" "coin__UxHead *""'"); + } + arg2 = (coin__UxHead *)(argp2); + if (arg1) (arg1)->Head = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxOut_Head_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + coin__UxHead *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__UxOut_Head_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Head_get" "', argument " "1"" of type '" "coin__UxOut *""'"); + } + arg1 = (coin__UxOut *)(argp1); + result = (coin__UxHead *)& ((arg1)->Head); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxHead, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxOut_Body_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxBody *arg2 = (coin__UxBody *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:coin__UxOut_Body_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Body_set" "', argument " "1"" of type '" "coin__UxOut *""'"); + } + arg1 = (coin__UxOut *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_coin__UxBody, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "coin__UxOut_Body_set" "', argument " "2"" of type '" "coin__UxBody *""'"); + } + arg2 = (coin__UxBody *)(argp2); + if (arg1) (arg1)->Body = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_coin__UxOut_Body_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + coin__UxBody *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:coin__UxOut_Body_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coin__UxOut_Body_get" "', argument " "1"" of type '" "coin__UxOut *""'"); + } + arg1 = (coin__UxOut *)(argp1); + result = (coin__UxBody *)& ((arg1)->Body); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxBody, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_coin__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_coin__UxOut")) SWIG_fail; + result = (coin__UxOut *)calloc(1, sizeof(coin__UxOut)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_coin__UxOut, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_coin__UxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_coin__UxOut",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_coin__UxOut, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_coin__UxOut" "', argument " "1"" of type '" "coin__UxOut *""'"); + } + arg1 = (coin__UxOut *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *coin__UxOut_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_coin__UxOut, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:httphelper__Address__unnamed_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "httphelper__Address__unnamed_set" "', argument " "1"" of type '" "httphelper__Address *""'"); + } + arg1 = (httphelper__Address *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "httphelper__Address__unnamed_set" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + if (arg1) (arg1)->_unnamed = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_httphelper__Address__unnamed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cipher__Address *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:httphelper__Address__unnamed_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "httphelper__Address__unnamed_get" "', argument " "1"" of type '" "httphelper__Address *""'"); + } + arg1 = (httphelper__Address *)(argp1); + result = (cipher__Address *)& ((arg1)->_unnamed); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Address *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_httphelper__Address")) SWIG_fail; + result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_httphelper__Address, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_httphelper__Address(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_httphelper__Address",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_httphelper__Address, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_httphelper__Address" "', argument " "1"" of type '" "httphelper__Address *""'"); + } + arg1 = (httphelper__Address *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *httphelper__Address_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_httphelper__Address, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Balance_Coins_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Coins_set" "', argument " "1"" of type '" "wallet__Balance *""'"); + } + arg1 = (wallet__Balance *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__Balance_Coins_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Coins = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Balance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__Balance_Coins_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Coins_get" "', argument " "1"" of type '" "wallet__Balance *""'"); + } + arg1 = (wallet__Balance *)(argp1); + result = (GoUint64_) ((arg1)->Coins); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Balance_Hours_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Hours_set" "', argument " "1"" of type '" "wallet__Balance *""'"); + } + arg1 = (wallet__Balance *)(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__Balance_Hours_set" "', argument " "2"" of type '" "GoUint64_""'"); + } + arg2 = (GoUint64_)(val2); + if (arg1) (arg1)->Hours = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Balance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__Balance_Hours_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Balance_Hours_get" "', argument " "1"" of type '" "wallet__Balance *""'"); + } + arg1 = (wallet__Balance *)(argp1); + result = (GoUint64_) ((arg1)->Hours); + resultobj = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_wallet__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_wallet__Balance")) SWIG_fail; + result = (wallet__Balance *)calloc(1, sizeof(wallet__Balance)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_wallet__Balance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Balance",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Balance, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Balance" "', argument " "1"" of type '" "wallet__Balance *""'"); + } + arg1 = (wallet__Balance *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *wallet__Balance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Balance, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_wallet__BalancePair_Confirmed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__BalancePair_Confirmed_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Confirmed_set" "', argument " "1"" of type '" "wallet__BalancePair *""'"); + } + arg1 = (wallet__BalancePair *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__BalancePair_Confirmed_set" "', argument " "2"" of type '" "wallet__Balance *""'"); + } + arg2 = (wallet__Balance *)(argp2); + if (arg1) (arg1)->Confirmed = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__BalancePair_Confirmed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + wallet__Balance *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__BalancePair_Confirmed_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Confirmed_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); + } + arg1 = (wallet__BalancePair *)(argp1); + result = (wallet__Balance *)& ((arg1)->Confirmed); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__BalancePair_Predicted_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Predicted_set" "', argument " "1"" of type '" "wallet__BalancePair *""'"); + } + arg1 = (wallet__BalancePair *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wallet__Balance, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__BalancePair_Predicted_set" "', argument " "2"" of type '" "wallet__Balance *""'"); + } + arg2 = (wallet__Balance *)(argp2); + if (arg1) (arg1)->Predicted = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__BalancePair_Predicted_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + wallet__Balance *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__BalancePair_Predicted_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__BalancePair_Predicted_get" "', argument " "1"" of type '" "wallet__BalancePair *""'"); + } + arg1 = (wallet__BalancePair *)(argp1); + result = (wallet__Balance *)& ((arg1)->Predicted); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Balance, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_wallet__BalancePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__BalancePair *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_wallet__BalancePair")) SWIG_fail; + result = (wallet__BalancePair *)calloc(1, sizeof(wallet__BalancePair)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__BalancePair, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_wallet__BalancePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__BalancePair",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__BalancePair, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__BalancePair" "', argument " "1"" of type '" "wallet__BalancePair *""'"); + } + arg1 = (wallet__BalancePair *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *wallet__BalancePair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_wallet__BalancePair, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_wallet__Entry_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Entry_Address_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Address_set" "', argument " "1"" of type '" "wallet__Entry *""'"); + } + arg1 = (wallet__Entry *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Entry_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + if (arg1) (arg1)->Address = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Entry_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cipher__Address *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__Entry_Address_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Address_get" "', argument " "1"" of type '" "wallet__Entry *""'"); + } + arg1 = (wallet__Entry *)(argp1); + result = (cipher__Address *)& ((arg1)->Address); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Entry_Public_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Entry_Public_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Public_set" "', argument " "1"" of type '" "wallet__Entry *""'"); + } + arg1 = (wallet__Entry *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Entry_Public_set" "', argument " "2"" of type '" "unsigned char [33]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)33; ++ii) *(unsigned char *)&arg1->Public[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Public""' of type '""unsigned char [33]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Entry_Public_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__Entry_Public_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Public_get" "', argument " "1"" of type '" "wallet__Entry *""'"); + } + arg1 = (wallet__Entry *)(argp1); + result = (GoUint8_ *) ((arg1)->Public); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Entry_Secret_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Entry_Secret_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Secret_set" "', argument " "1"" of type '" "wallet__Entry *""'"); + } + arg1 = (wallet__Entry *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__Entry_Secret_set" "', argument " "2"" of type '" "unsigned char [32]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->Secret[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Secret""' of type '""unsigned char [32]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Entry_Secret_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__Entry_Secret_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Entry_Secret_get" "', argument " "1"" of type '" "wallet__Entry *""'"); + } + arg1 = (wallet__Entry *)(argp1); + result = (GoUint8_ *) ((arg1)->Secret); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_wallet__Entry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_wallet__Entry")) SWIG_fail; + result = (wallet__Entry *)calloc(1, sizeof(wallet__Entry)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Entry, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_wallet__Entry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Entry",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Entry, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Entry" "', argument " "1"" of type '" "wallet__Entry *""'"); + } + arg1 = (wallet__Entry *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *wallet__Entry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Entry, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_wallet__Note_TxID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Note_TxID_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_TxID_set" "', argument " "1"" of type '" "wallet__Note *""'"); + } + arg1 = (wallet__Note *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'wallet__Note_TxID_set', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + if (arg1) (arg1)->TxID = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Note_TxID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Note *arg1 = (wallet__Note *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoString_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__Note_TxID_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_TxID_get" "', argument " "1"" of type '" "wallet__Note *""'"); + } + arg1 = (wallet__Note *)(argp1); + result = ((arg1)->TxID); + resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Note_Value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__Note_Value_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_Value_set" "', argument " "1"" of type '" "wallet__Note *""'"); + } + arg1 = (wallet__Note *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'wallet__Note_Value_set', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + if (arg1) (arg1)->Value = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__Note_Value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Note *arg1 = (wallet__Note *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoString_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__Note_Value_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__Note_Value_get" "', argument " "1"" of type '" "wallet__Note *""'"); + } + arg1 = (wallet__Note *)(argp1); + result = ((arg1)->Value); + resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_wallet__Note(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Note *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_wallet__Note")) SWIG_fail; + result = (wallet__Note *)calloc(1, sizeof(wallet__Note)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__Note, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_wallet__Note(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__Note *arg1 = (wallet__Note *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__Note",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__Note, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__Note" "', argument " "1"" of type '" "wallet__Note *""'"); + } + arg1 = (wallet__Note *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *wallet__Note_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_wallet__Note, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_wallet__ReadableNote_TransactionID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__ReadableNote_TransactionID_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_TransactionID_set" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); + } + arg1 = (wallet__ReadableNote *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'wallet__ReadableNote_TransactionID_set', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + if (arg1) (arg1)->TransactionID = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__ReadableNote_TransactionID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoString_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__ReadableNote_TransactionID_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_TransactionID_get" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); + } + arg1 = (wallet__ReadableNote *)(argp1); + result = ((arg1)->TransactionID); + resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__ReadableNote_ActualNote_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__ReadableNote_ActualNote_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_ActualNote_set" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); + } + arg1 = (wallet__ReadableNote *)(argp1); + { + char* buffer = 0; + size_t size = 0; + int res = SWIG_AsCharPtrAndSize( obj1, &buffer, &size, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_TypeError, "in method 'wallet__ReadableNote_ActualNote_set', expecting string"); + } + (&arg2)->p = buffer; + (&arg2)->n = size - 1; + } + if (arg1) (arg1)->ActualNote = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__ReadableNote_ActualNote_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoString_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__ReadableNote_ActualNote_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__ReadableNote_ActualNote_get" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); + } + arg1 = (wallet__ReadableNote *)(argp1); + result = ((arg1)->ActualNote); + resultobj = SWIG_NewPointerObj((GoString_ *)memcpy((GoString_ *)calloc(1,sizeof(GoString_)),&result,sizeof(GoString_)), SWIGTYPE_p_GoString_, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_wallet__ReadableNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__ReadableNote *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_wallet__ReadableNote")) SWIG_fail; + result = (wallet__ReadableNote *)calloc(1, sizeof(wallet__ReadableNote)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__ReadableNote, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_wallet__ReadableNote(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__ReadableNote",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__ReadableNote, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__ReadableNote" "', argument " "1"" of type '" "wallet__ReadableNote *""'"); + } + arg1 = (wallet__ReadableNote *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *wallet__ReadableNote_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_wallet__ReadableNote, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hash_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoUint8_ *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Hash_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hash_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__UxBalance_Hash_set" "', argument " "2"" of type '" "unsigned char [32]""'"); + } + arg2 = (unsigned char *)(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)32; ++ii) *(unsigned char *)&arg1->Hash[ii] = *((unsigned char *)arg2 + ii); + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Hash""' of type '""unsigned char [32]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoUint8_ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Hash_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hash_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + result = (GoUint8_ *) ((arg1)->Hash); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_BkSeq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_BkSeq_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_BkSeq_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__UxBalance_BkSeq_set" "', argument " "2"" of type '" "GoInt64_""'"); + } + arg2 = (GoInt64_)(val2); + if (arg1) (arg1)->BkSeq = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_BkSeq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_BkSeq_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_BkSeq_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + result = (GoInt64_) ((arg1)->BkSeq); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_Address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Address_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Address_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cipher__Address, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wallet__UxBalance_Address_set" "', argument " "2"" of type '" "cipher__Address *""'"); + } + arg2 = (cipher__Address *)(argp2); + if (arg1) (arg1)->Address = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_Address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cipher__Address *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Address_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Address_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + result = (cipher__Address *)& ((arg1)->Address); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cipher__Address, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_Coins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Coins_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Coins_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__UxBalance_Coins_set" "', argument " "2"" of type '" "GoInt64_""'"); + } + arg2 = (GoInt64_)(val2); + if (arg1) (arg1)->Coins = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_Coins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Coins_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Coins_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + result = (GoInt64_) ((arg1)->Coins); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hours_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:wallet__UxBalance_Hours_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hours_set" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "wallet__UxBalance_Hours_set" "', argument " "2"" of type '" "GoInt64_""'"); + } + arg2 = (GoInt64_)(val2); + if (arg1) (arg1)->Hours = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_wallet__UxBalance_Hours_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + GoInt64_ result; + + if (!PyArg_ParseTuple(args,(char *)"O:wallet__UxBalance_Hours_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wallet__UxBalance_Hours_get" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + result = (GoInt64_) ((arg1)->Hours); + resultobj = SWIG_From_long_SS_long((long long)(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_wallet__UxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_wallet__UxBalance")) SWIG_fail; + result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wallet__UxBalance, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_wallet__UxBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_wallet__UxBalance",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wallet__UxBalance, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_wallet__UxBalance" "', argument " "1"" of type '" "wallet__UxBalance *""'"); + } + arg1 = (wallet__UxBalance *)(argp1); + free((char *) arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *wallet__UxBalance_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char *)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_wallet__UxBalance, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +static PyMethodDef SwigMethods[] = { + { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, + { (char *)"equalSlices", _wrap_equalSlices, METH_VARARGS, NULL}, + { (char *)"equalTransactions", _wrap_equalTransactions, METH_VARARGS, NULL}, + { (char *)"equalTransactionsArrays", _wrap_equalTransactionsArrays, METH_VARARGS, NULL}, + { (char *)"equalBlockHeaders", _wrap_equalBlockHeaders, METH_VARARGS, NULL}, + { (char *)"destroy_cipher_SecKeys", _wrap_destroy_cipher_SecKeys, METH_VARARGS, NULL}, + { (char *)"destroy_cipher_PubKeys", _wrap_destroy_cipher_PubKeys, METH_VARARGS, NULL}, + { (char *)"wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed", _wrap_wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed, METH_VARARGS, NULL}, + { (char *)"SKY_params_GetDistributionAddresses", _wrap_SKY_params_GetDistributionAddresses, METH_VARARGS, NULL}, + { (char *)"SKY_params_GetUnlockedDistributionAddresses", _wrap_SKY_params_GetUnlockedDistributionAddresses, METH_VARARGS, NULL}, + { (char *)"SKY_params_GetLockedDistributionAddresses", _wrap_SKY_params_GetLockedDistributionAddresses, METH_VARARGS, NULL}, + { (char *)"cipher_PubKey___eq__", _wrap_cipher_PubKey___eq__, METH_VARARGS, NULL}, + { (char *)"cipher_PubKey_compareToString", _wrap_cipher_PubKey_compareToString, METH_VARARGS, NULL}, + { (char *)"cipher_PubKey_toStr", _wrap_cipher_PubKey_toStr, METH_VARARGS, NULL}, + { (char *)"cipher_PubKey_assignFrom", _wrap_cipher_PubKey_assignFrom, METH_VARARGS, NULL}, + { (char *)"cipher_PubKey_assignTo", _wrap_cipher_PubKey_assignTo, METH_VARARGS, NULL}, + { (char *)"cipher_PubKey_data_set", _wrap_cipher_PubKey_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_PubKey_data_get", _wrap_cipher_PubKey_data_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_PubKey", _wrap_new_cipher_PubKey, METH_VARARGS, NULL}, + { (char *)"delete_cipher_PubKey", _wrap_delete_cipher_PubKey, METH_VARARGS, NULL}, + { (char *)"cipher_PubKey_swigregister", cipher_PubKey_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher_SecKey___eq__", _wrap_cipher_SecKey___eq__, METH_VARARGS, NULL}, + { (char *)"cipher_SecKey_compareToString", _wrap_cipher_SecKey_compareToString, METH_VARARGS, NULL}, + { (char *)"cipher_SecKey_toStr", _wrap_cipher_SecKey_toStr, METH_VARARGS, NULL}, + { (char *)"cipher_SecKey_assignFrom", _wrap_cipher_SecKey_assignFrom, METH_VARARGS, NULL}, + { (char *)"cipher_SecKey_assignTo", _wrap_cipher_SecKey_assignTo, METH_VARARGS, NULL}, + { (char *)"cipher_SecKey_data_set", _wrap_cipher_SecKey_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_SecKey_data_get", _wrap_cipher_SecKey_data_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_SecKey", _wrap_new_cipher_SecKey, METH_VARARGS, NULL}, + { (char *)"delete_cipher_SecKey", _wrap_delete_cipher_SecKey, METH_VARARGS, NULL}, + { (char *)"cipher_SecKey_swigregister", cipher_SecKey_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher_Ripemd160___eq__", _wrap_cipher_Ripemd160___eq__, METH_VARARGS, NULL}, + { (char *)"cipher_Ripemd160_compareToString", _wrap_cipher_Ripemd160_compareToString, METH_VARARGS, NULL}, + { (char *)"cipher_Ripemd160_toStr", _wrap_cipher_Ripemd160_toStr, METH_VARARGS, NULL}, + { (char *)"cipher_Ripemd160_assignFrom", _wrap_cipher_Ripemd160_assignFrom, METH_VARARGS, NULL}, + { (char *)"cipher_Ripemd160_assignTo", _wrap_cipher_Ripemd160_assignTo, METH_VARARGS, NULL}, + { (char *)"cipher_Ripemd160_data_set", _wrap_cipher_Ripemd160_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_Ripemd160_data_get", _wrap_cipher_Ripemd160_data_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_Ripemd160", _wrap_new_cipher_Ripemd160, METH_VARARGS, NULL}, + { (char *)"delete_cipher_Ripemd160", _wrap_delete_cipher_Ripemd160, METH_VARARGS, NULL}, + { (char *)"cipher_Ripemd160_swigregister", cipher_Ripemd160_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher_Sig___eq__", _wrap_cipher_Sig___eq__, METH_VARARGS, NULL}, + { (char *)"cipher_Sig_compareToString", _wrap_cipher_Sig_compareToString, METH_VARARGS, NULL}, + { (char *)"cipher_Sig_toStr", _wrap_cipher_Sig_toStr, METH_VARARGS, NULL}, + { (char *)"cipher_Sig_assignFrom", _wrap_cipher_Sig_assignFrom, METH_VARARGS, NULL}, + { (char *)"cipher_Sig_assignTo", _wrap_cipher_Sig_assignTo, METH_VARARGS, NULL}, + { (char *)"cipher_Sig_data_set", _wrap_cipher_Sig_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_Sig_data_get", _wrap_cipher_Sig_data_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_Sig", _wrap_new_cipher_Sig, METH_VARARGS, NULL}, + { (char *)"delete_cipher_Sig", _wrap_delete_cipher_Sig, METH_VARARGS, NULL}, + { (char *)"cipher_Sig_swigregister", cipher_Sig_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256___eq__", _wrap_cipher_SHA256___eq__, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256_compareToString", _wrap_cipher_SHA256_compareToString, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256_toStr", _wrap_cipher_SHA256_toStr, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256_assignFrom", _wrap_cipher_SHA256_assignFrom, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256_assignTo", _wrap_cipher_SHA256_assignTo, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256_data_set", _wrap_cipher_SHA256_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256_data_get", _wrap_cipher_SHA256_data_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_SHA256", _wrap_new_cipher_SHA256, METH_VARARGS, NULL}, + { (char *)"delete_cipher_SHA256", _wrap_delete_cipher_SHA256, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256_swigregister", cipher_SHA256_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher_Checksum___eq__", _wrap_cipher_Checksum___eq__, METH_VARARGS, NULL}, + { (char *)"cipher_Checksum_compareToString", _wrap_cipher_Checksum_compareToString, METH_VARARGS, NULL}, + { (char *)"cipher_Checksum_toStr", _wrap_cipher_Checksum_toStr, METH_VARARGS, NULL}, + { (char *)"cipher_Checksum_assignFrom", _wrap_cipher_Checksum_assignFrom, METH_VARARGS, NULL}, + { (char *)"cipher_Checksum_assignTo", _wrap_cipher_Checksum_assignTo, METH_VARARGS, NULL}, + { (char *)"cipher_Checksum_data_set", _wrap_cipher_Checksum_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_Checksum_data_get", _wrap_cipher_Checksum_data_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_Checksum", _wrap_new_cipher_Checksum, METH_VARARGS, NULL}, + { (char *)"delete_cipher_Checksum", _wrap_delete_cipher_Checksum, METH_VARARGS, NULL}, + { (char *)"cipher_Checksum_swigregister", cipher_Checksum_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys_getAt", _wrap_cipher_SecKeys_getAt, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys_setAt", _wrap_cipher_SecKeys_setAt, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys___eq__", _wrap_cipher_SecKeys___eq__, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys_allocate", _wrap_cipher_SecKeys_allocate, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys_release", _wrap_cipher_SecKeys_release, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys_data_set", _wrap_cipher_SecKeys_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys_data_get", _wrap_cipher_SecKeys_data_get, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys_count_set", _wrap_cipher_SecKeys_count_set, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys_count_get", _wrap_cipher_SecKeys_count_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_SecKeys", _wrap_new_cipher_SecKeys, METH_VARARGS, NULL}, + { (char *)"delete_cipher_SecKeys", _wrap_delete_cipher_SecKeys, METH_VARARGS, NULL}, + { (char *)"cipher_SecKeys_swigregister", cipher_SecKeys_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys_getAt", _wrap_cipher_PubKeys_getAt, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys_setAt", _wrap_cipher_PubKeys_setAt, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys___eq__", _wrap_cipher_PubKeys___eq__, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys_allocate", _wrap_cipher_PubKeys_allocate, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys_release", _wrap_cipher_PubKeys_release, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys_data_set", _wrap_cipher_PubKeys_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys_data_get", _wrap_cipher_PubKeys_data_get, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys_count_set", _wrap_cipher_PubKeys_count_set, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys_count_get", _wrap_cipher_PubKeys_count_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_PubKeys", _wrap_new_cipher_PubKeys, METH_VARARGS, NULL}, + { (char *)"delete_cipher_PubKeys", _wrap_delete_cipher_PubKeys, METH_VARARGS, NULL}, + { (char *)"cipher_PubKeys_swigregister", cipher_PubKeys_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s_getAt", _wrap_cipher_SHA256s_getAt, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s_setAt", _wrap_cipher_SHA256s_setAt, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s___eq__", _wrap_cipher_SHA256s___eq__, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s_allocate", _wrap_cipher_SHA256s_allocate, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s_release", _wrap_cipher_SHA256s_release, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s_data_set", _wrap_cipher_SHA256s_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s_data_get", _wrap_cipher_SHA256s_data_get, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s_count_set", _wrap_cipher_SHA256s_count_set, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s_count_get", _wrap_cipher_SHA256s_count_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_SHA256s", _wrap_new_cipher_SHA256s, METH_VARARGS, NULL}, + { (char *)"delete_cipher_SHA256s", _wrap_delete_cipher_SHA256s, METH_VARARGS, NULL}, + { (char *)"cipher_SHA256s_swigregister", cipher_SHA256s_swigregister, METH_VARARGS, NULL}, + { (char *)"coin_UxOutArray_data_set", _wrap_coin_UxOutArray_data_set, METH_VARARGS, NULL}, + { (char *)"coin_UxOutArray_data_get", _wrap_coin_UxOutArray_data_get, METH_VARARGS, NULL}, + { (char *)"coin_UxOutArray_count_set", _wrap_coin_UxOutArray_count_set, METH_VARARGS, NULL}, + { (char *)"coin_UxOutArray_count_get", _wrap_coin_UxOutArray_count_get, METH_VARARGS, NULL}, + { (char *)"new_coin_UxOutArray", _wrap_new_coin_UxOutArray, METH_VARARGS, NULL}, + { (char *)"delete_coin_UxOutArray", _wrap_delete_coin_UxOutArray, METH_VARARGS, NULL}, + { (char *)"coin_UxOutArray_swigregister", coin_UxOutArray_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher_Addresses_data_set", _wrap_cipher_Addresses_data_set, METH_VARARGS, NULL}, + { (char *)"cipher_Addresses_data_get", _wrap_cipher_Addresses_data_get, METH_VARARGS, NULL}, + { (char *)"cipher_Addresses_count_set", _wrap_cipher_Addresses_count_set, METH_VARARGS, NULL}, + { (char *)"cipher_Addresses_count_get", _wrap_cipher_Addresses_count_get, METH_VARARGS, NULL}, + { (char *)"new_cipher_Addresses", _wrap_new_cipher_Addresses, METH_VARARGS, NULL}, + { (char *)"delete_cipher_Addresses", _wrap_delete_cipher_Addresses, METH_VARARGS, NULL}, + { (char *)"cipher_Addresses_swigregister", cipher_Addresses_swigregister, METH_VARARGS, NULL}, + { (char *)"Fee_Calculator_callback_set", _wrap_Fee_Calculator_callback_set, METH_VARARGS, NULL}, + { (char *)"Fee_Calculator_callback_get", _wrap_Fee_Calculator_callback_get, METH_VARARGS, NULL}, + { (char *)"Fee_Calculator_context_set", _wrap_Fee_Calculator_context_set, METH_VARARGS, NULL}, + { (char *)"Fee_Calculator_context_get", _wrap_Fee_Calculator_context_get, METH_VARARGS, NULL}, + { (char *)"new_Fee_Calculator", _wrap_new_Fee_Calculator, METH_VARARGS, NULL}, + { (char *)"delete_Fee_Calculator", _wrap_delete_Fee_Calculator, METH_VARARGS, NULL}, + { (char *)"Fee_Calculator_swigregister", Fee_Calculator_swigregister, METH_VARARGS, NULL}, + { (char *)"_GoString__p_set", _wrap__GoString__p_set, METH_VARARGS, NULL}, + { (char *)"_GoString__p_get", _wrap__GoString__p_get, METH_VARARGS, NULL}, + { (char *)"_GoString__n_set", _wrap__GoString__n_set, METH_VARARGS, NULL}, + { (char *)"_GoString__n_get", _wrap__GoString__n_get, METH_VARARGS, NULL}, + { (char *)"new__GoString_", _wrap_new__GoString_, METH_VARARGS, NULL}, + { (char *)"delete__GoString_", _wrap_delete__GoString_, METH_VARARGS, NULL}, + { (char *)"_GoString__swigregister", _GoString__swigregister, METH_VARARGS, NULL}, + { (char *)"GoInterface_t_set", _wrap_GoInterface_t_set, METH_VARARGS, NULL}, + { (char *)"GoInterface_t_get", _wrap_GoInterface_t_get, METH_VARARGS, NULL}, + { (char *)"GoInterface_v_set", _wrap_GoInterface_v_set, METH_VARARGS, NULL}, + { (char *)"GoInterface_v_get", _wrap_GoInterface_v_get, METH_VARARGS, NULL}, + { (char *)"new_GoInterface", _wrap_new_GoInterface, METH_VARARGS, NULL}, + { (char *)"delete_GoInterface", _wrap_delete_GoInterface, METH_VARARGS, NULL}, + { (char *)"GoInterface_swigregister", GoInterface_swigregister, METH_VARARGS, NULL}, + { (char *)"GoSlice_data_set", _wrap_GoSlice_data_set, METH_VARARGS, NULL}, + { (char *)"GoSlice_data_get", _wrap_GoSlice_data_get, METH_VARARGS, NULL}, + { (char *)"GoSlice_len_set", _wrap_GoSlice_len_set, METH_VARARGS, NULL}, + { (char *)"GoSlice_len_get", _wrap_GoSlice_len_get, METH_VARARGS, NULL}, + { (char *)"GoSlice_cap_set", _wrap_GoSlice_cap_set, METH_VARARGS, NULL}, + { (char *)"GoSlice_cap_get", _wrap_GoSlice_cap_get, METH_VARARGS, NULL}, + { (char *)"new_GoSlice", _wrap_new_GoSlice, METH_VARARGS, NULL}, + { (char *)"delete_GoSlice", _wrap_delete_GoSlice, METH_VARARGS, NULL}, + { (char *)"GoSlice_swigregister", GoSlice_swigregister, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GenerateWallet", _wrap_SKY_cli_GenerateWallet, METH_VARARGS, NULL}, + { (char *)"SKY_cli_MakeAlphanumericSeed", _wrap_SKY_cli_MakeAlphanumericSeed, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewClient", _wrap_SKY_api_NewClient, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CSRF", _wrap_SKY_api_Client_CSRF, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Version", _wrap_SKY_api_Client_Version, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Outputs", _wrap_SKY_api_Client_Outputs, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_OutputsForAddresses", _wrap_SKY_api_Client_OutputsForAddresses, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_OutputsForHashes", _wrap_SKY_api_Client_OutputsForHashes, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CoinSupply", _wrap_SKY_api_Client_CoinSupply, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_BlockByHash", _wrap_SKY_api_Client_BlockByHash, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_BlockBySeq", _wrap_SKY_api_Client_BlockBySeq, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Blocks", _wrap_SKY_api_Client_Blocks, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_LastBlocks", _wrap_SKY_api_Client_LastBlocks, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_BlockchainMetadata", _wrap_SKY_api_Client_BlockchainMetadata, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_BlockchainProgress", _wrap_SKY_api_Client_BlockchainProgress, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Balance", _wrap_SKY_api_Client_Balance, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_UxOut", _wrap_SKY_api_Client_UxOut, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_AddressUxOuts", _wrap_SKY_api_Client_AddressUxOuts, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Wallet", _wrap_SKY_api_Client_Wallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Wallets", _wrap_SKY_api_Client_Wallets, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CreateUnencryptedWallet", _wrap_SKY_api_Client_CreateUnencryptedWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CreateEncryptedWallet", _wrap_SKY_api_Client_CreateEncryptedWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NewWalletAddress", _wrap_SKY_api_Client_NewWalletAddress, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_WalletBalance", _wrap_SKY_api_Client_WalletBalance, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Spend", _wrap_SKY_api_Client_Spend, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_CreateTransaction", _wrap_SKY_api_Client_CreateTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_UpdateWallet", _wrap_SKY_api_Client_UpdateWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_WalletFolderName", _wrap_SKY_api_Client_WalletFolderName, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NewSeed", _wrap_SKY_api_Client_NewSeed, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_WalletSeed", _wrap_SKY_api_Client_WalletSeed, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkConnection", _wrap_SKY_api_Client_NetworkConnection, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkConnections", _wrap_SKY_api_Client_NetworkConnections, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkDefaultPeers", _wrap_SKY_api_Client_NetworkDefaultPeers, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkTrustedPeers", _wrap_SKY_api_Client_NetworkTrustedPeers, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_NetworkExchangedPeers", _wrap_SKY_api_Client_NetworkExchangedPeers, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_PendingTransactions", _wrap_SKY_api_Client_PendingTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Transaction", _wrap_SKY_api_Client_Transaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Transactions", _wrap_SKY_api_Client_Transactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_ConfirmedTransactions", _wrap_SKY_api_Client_ConfirmedTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_UnconfirmedTransactions", _wrap_SKY_api_Client_UnconfirmedTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_InjectTransaction", _wrap_SKY_api_Client_InjectTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_ResendUnconfirmedTransactions", _wrap_SKY_api_Client_ResendUnconfirmedTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_RawTransaction", _wrap_SKY_api_Client_RawTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_AddressTransactions", _wrap_SKY_api_Client_AddressTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Richlist", _wrap_SKY_api_Client_Richlist, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_AddressCount", _wrap_SKY_api_Client_AddressCount, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_UnloadWallet", _wrap_SKY_api_Client_UnloadWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_Health", _wrap_SKY_api_Client_Health, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_EncryptWallet", _wrap_SKY_api_Client_EncryptWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_Client_DecryptWallet", _wrap_SKY_api_Client_DecryptWallet, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewCreateTransactionResponse", _wrap_SKY_api_NewCreateTransactionResponse, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewCreatedTransaction", _wrap_SKY_api_NewCreatedTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_CreatedTransaction_ToTransaction", _wrap_SKY_api_CreatedTransaction_ToTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewCreatedTransactionOutput", _wrap_SKY_api_NewCreatedTransactionOutput, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewCreatedTransactionInput", _wrap_SKY_api_NewCreatedTransactionInput, METH_VARARGS, NULL}, + { (char *)"SKY_api_NewWalletResponse", _wrap_SKY_api_NewWalletResponse, METH_VARARGS, NULL}, + { (char *)"SKY_webrpc_NewClient", _wrap_SKY_webrpc_NewClient, METH_VARARGS, NULL}, + { (char *)"SKY_webrpc_Client_CSRF", _wrap_SKY_webrpc_Client_CSRF, METH_VARARGS, NULL}, + { (char *)"SKY_webrpc_Client_InjectTransaction", _wrap_SKY_webrpc_Client_InjectTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_webrpc_Client_GetStatus", _wrap_SKY_webrpc_Client_GetStatus, METH_VARARGS, NULL}, + { (char *)"SKY_webrpc_Client_GetTransactionByID", _wrap_SKY_webrpc_Client_GetTransactionByID, METH_VARARGS, NULL}, + { (char *)"SKY_webrpc_Client_GetAddressUxOuts", _wrap_SKY_webrpc_Client_GetAddressUxOuts, METH_VARARGS, NULL}, + { (char *)"SKY_webrpc_Client_GetBlocksInRange", _wrap_SKY_webrpc_Client_GetBlocksInRange, METH_VARARGS, NULL}, + { (char *)"SKY_webrpc_Client_GetBlocksBySeq", _wrap_SKY_webrpc_Client_GetBlocksBySeq, METH_VARARGS, NULL}, + { (char *)"SKY_webrpc_Client_GetLastBlocks", _wrap_SKY_webrpc_Client_GetLastBlocks, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_DecodeBase58Address", _wrap_SKY_cipher_DecodeBase58Address, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_AddressFromBytes", _wrap_SKY_cipher_AddressFromBytes, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_AddressFromPubKey", _wrap_SKY_cipher_AddressFromPubKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_AddressFromSecKey", _wrap_SKY_cipher_AddressFromSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_Null", _wrap_SKY_cipher_Address_Null, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_Bytes", _wrap_SKY_cipher_Address_Bytes, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_Verify", _wrap_SKY_cipher_Address_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_String", _wrap_SKY_cipher_Address_String, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Address_Checksum", _wrap_SKY_cipher_Address_Checksum, METH_VARARGS, NULL}, + { (char *)"SKY_base58_String2Hex", _wrap_SKY_base58_String2Hex, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base58_ToInt", _wrap_SKY_base58_Base58_ToInt, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base58_ToHex", _wrap_SKY_base58_Base58_ToHex, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base58_Base582Int", _wrap_SKY_base58_Base58_Base582Int, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base582Hex", _wrap_SKY_base58_Base582Hex, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Base58_BitHex", _wrap_SKY_base58_Base58_BitHex, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Int2Base58", _wrap_SKY_base58_Int2Base58, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Hex2Base58", _wrap_SKY_base58_Hex2Base58, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Hex2Base58String", _wrap_SKY_base58_Hex2Base58String, METH_VARARGS, NULL}, + { (char *)"SKY_base58_Hex2Base58Str", _wrap_SKY_base58_Hex2Base58Str, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_DecodeBase58BitcoinAddress", _wrap_SKY_cipher_DecodeBase58BitcoinAddress, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddressFromPubKey", _wrap_SKY_cipher_BitcoinAddressFromPubKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddressFromSecKey", _wrap_SKY_cipher_BitcoinAddressFromSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinWalletImportFormatFromSeckey", _wrap_SKY_cipher_BitcoinWalletImportFormatFromSeckey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddressFromBytes", _wrap_SKY_cipher_BitcoinAddressFromBytes, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SecKeyFromBitcoinWalletImportFormat", _wrap_SKY_cipher_SecKeyFromBitcoinWalletImportFormat, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_Null", _wrap_SKY_cipher_BitcoinAddress_Null, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_Bytes", _wrap_SKY_cipher_BitcoinAddress_Bytes, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_Verify", _wrap_SKY_cipher_BitcoinAddress_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_String", _wrap_SKY_cipher_BitcoinAddress_String, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_BitcoinAddress_Checksum", _wrap_SKY_cipher_BitcoinAddress_Checksum, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_RandByte", _wrap_SKY_cipher_RandByte, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_NewPubKey", _wrap_SKY_cipher_NewPubKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKeyFromHex", _wrap_SKY_cipher_PubKeyFromHex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKeyFromSecKey", _wrap_SKY_cipher_PubKeyFromSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKeyFromSig", _wrap_SKY_cipher_PubKeyFromSig, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKey_Verify", _wrap_SKY_cipher_PubKey_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKey_Hex", _wrap_SKY_cipher_PubKey_Hex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_PubKeyRipemd160", _wrap_SKY_cipher_PubKeyRipemd160, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_NewSecKey", _wrap_SKY_cipher_NewSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SecKeyFromHex", _wrap_SKY_cipher_SecKeyFromHex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SecKey_Verify", _wrap_SKY_cipher_SecKey_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SecKey_Hex", _wrap_SKY_cipher_SecKey_Hex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_ECDH", _wrap_SKY_cipher_ECDH, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_NewSig", _wrap_SKY_cipher_NewSig, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SigFromHex", _wrap_SKY_cipher_SigFromHex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Sig_Hex", _wrap_SKY_cipher_Sig_Hex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SignHash", _wrap_SKY_cipher_SignHash, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_VerifyAddressSignedHash", _wrap_SKY_cipher_VerifyAddressSignedHash, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_VerifySignedHash", _wrap_SKY_cipher_VerifySignedHash, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_VerifyPubKeySignedHash", _wrap_SKY_cipher_VerifyPubKeySignedHash, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_GenerateKeyPair", _wrap_SKY_cipher_GenerateKeyPair, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_GenerateDeterministicKeyPair", _wrap_SKY_cipher_GenerateDeterministicKeyPair, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_DeterministicKeyPairIterator", _wrap_SKY_cipher_DeterministicKeyPairIterator, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_GenerateDeterministicKeyPairs", _wrap_SKY_cipher_GenerateDeterministicKeyPairs, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_GenerateDeterministicKeyPairsSeed", _wrap_SKY_cipher_GenerateDeterministicKeyPairsSeed, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_CheckSecKey", _wrap_SKY_cipher_CheckSecKey, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_CheckSecKeyHash", _wrap_SKY_cipher_CheckSecKeyHash, METH_VARARGS, NULL}, + { (char *)"SKY_encrypt_ScryptChacha20poly1305_Encrypt", _wrap_SKY_encrypt_ScryptChacha20poly1305_Encrypt, METH_VARARGS, NULL}, + { (char *)"SKY_encrypt_ScryptChacha20poly1305_Decrypt", _wrap_SKY_encrypt_ScryptChacha20poly1305_Decrypt, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_NewDefaultMnemomic", _wrap_SKY_bip39_NewDefaultMnemomic, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_NewEntropy", _wrap_SKY_bip39_NewEntropy, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_NewMnemonic", _wrap_SKY_bip39_NewMnemonic, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_MnemonicToByteArray", _wrap_SKY_bip39_MnemonicToByteArray, METH_VARARGS, NULL}, + { (char *)"SKY_bip39_IsMnemonicValid", _wrap_SKY_bip39_IsMnemonicValid, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Ripemd160_Set", _wrap_SKY_cipher_Ripemd160_Set, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_HashRipemd160", _wrap_SKY_cipher_HashRipemd160, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256_Set", _wrap_SKY_cipher_SHA256_Set, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256_Hex", _wrap_SKY_cipher_SHA256_Hex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256_Xor", _wrap_SKY_cipher_SHA256_Xor, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SumSHA256", _wrap_SKY_cipher_SumSHA256, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256FromHex", _wrap_SKY_cipher_SHA256FromHex, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_DoubleSHA256", _wrap_SKY_cipher_DoubleSHA256, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_AddSHA256", _wrap_SKY_cipher_AddSHA256, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_Merkle", _wrap_SKY_cipher_Merkle, METH_VARARGS, NULL}, + { (char *)"SKY_cipher_SHA256_Null", _wrap_SKY_cipher_SHA256_Null, METH_VARARGS, NULL}, + { (char *)"SKY_cli_AddPrivateKey", _wrap_SKY_cli_AddPrivateKey, METH_VARARGS, NULL}, + { (char *)"SKY_cli_AddPrivateKeyToFile", _wrap_SKY_cli_AddPrivateKeyToFile, METH_VARARGS, NULL}, + { (char *)"SKY_cli_CheckWalletBalance", _wrap_SKY_cli_CheckWalletBalance, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GetBalanceOfAddresses", _wrap_SKY_cli_GetBalanceOfAddresses, METH_VARARGS, NULL}, + { (char *)"SKY_cli_LoadConfig", _wrap_SKY_cli_LoadConfig, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Config_FullWalletPath", _wrap_SKY_cli_Config_FullWalletPath, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Config_FullDBPath", _wrap_SKY_cli_Config_FullDBPath, METH_VARARGS, NULL}, + { (char *)"SKY_cli_NewApp", _wrap_SKY_cli_NewApp, METH_VARARGS, NULL}, + { (char *)"SKY_cli_RPCClientFromContext", _wrap_SKY_cli_RPCClientFromContext, METH_VARARGS, NULL}, + { (char *)"SKY_cli_ConfigFromContext", _wrap_SKY_cli_ConfigFromContext, METH_VARARGS, NULL}, + { (char *)"SKY_cli_PasswordFromBytes_Password", _wrap_SKY_cli_PasswordFromBytes_Password, METH_VARARGS, NULL}, + { (char *)"SKY_cli_PasswordFromTerm_Password", _wrap_SKY_cli_PasswordFromTerm_Password, METH_VARARGS, NULL}, + { (char *)"SKY_cli_CreateRawTxFromWallet", _wrap_SKY_cli_CreateRawTxFromWallet, METH_VARARGS, NULL}, + { (char *)"SKY_cli_CreateRawTxFromAddress", _wrap_SKY_cli_CreateRawTxFromAddress, METH_VARARGS, NULL}, + { (char *)"SKY_cli_CreateRawTx", _wrap_SKY_cli_CreateRawTx, METH_VARARGS, NULL}, + { (char *)"SKY_cli_NewTransaction", _wrap_SKY_cli_NewTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GenerateAddressesInFile", _wrap_SKY_cli_GenerateAddressesInFile, METH_VARARGS, NULL}, + { (char *)"SKY_cli_FormatAddressesAsJSON", _wrap_SKY_cli_FormatAddressesAsJSON, METH_VARARGS, NULL}, + { (char *)"SKY_cli_FormatAddressesAsJoinedArray", _wrap_SKY_cli_FormatAddressesAsJoinedArray, METH_VARARGS, NULL}, + { (char *)"SKY_cli_AddressesToStrings", _wrap_SKY_cli_AddressesToStrings, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GetWalletOutputsFromFile", _wrap_SKY_cli_GetWalletOutputsFromFile, METH_VARARGS, NULL}, + { (char *)"SKY_cli_GetWalletOutputs", _wrap_SKY_cli_GetWalletOutputs, METH_VARARGS, NULL}, + { (char *)"SKY_cli_App_Run", _wrap_SKY_cli_App_Run, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Config_GetCoin", _wrap_SKY_cli_Config_GetCoin, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Config_GetRPCAddress", _wrap_SKY_cli_Config_GetRPCAddress, METH_VARARGS, NULL}, + { (char *)"SKY_cli_RPCClientFromApp", _wrap_SKY_cli_RPCClientFromApp, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Getenv", _wrap_SKY_cli_Getenv, METH_VARARGS, NULL}, + { (char *)"SKY_cli_Setenv", _wrap_SKY_cli_Setenv, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewBlock", _wrap_SKY_coin_NewBlock, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SignedBlock_VerifySignature", _wrap_SKY_coin_SignedBlock_VerifySignature, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewGenesisBlock", _wrap_SKY_coin_NewGenesisBlock, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_HashHeader", _wrap_SKY_coin_Block_HashHeader, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_PreHashHeader", _wrap_SKY_coin_Block_PreHashHeader, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_Time", _wrap_SKY_coin_Block_Time, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_Seq", _wrap_SKY_coin_Block_Seq, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_HashBody", _wrap_SKY_coin_Block_HashBody, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_Size", _wrap_SKY_coin_Block_Size, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_String", _wrap_SKY_coin_Block_String, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Block_GetTransaction", _wrap_SKY_coin_Block_GetTransaction, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewBlockHeader", _wrap_SKY_coin_NewBlockHeader, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockHeader_Hash", _wrap_SKY_coin_BlockHeader_Hash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockHeader_Bytes", _wrap_SKY_coin_BlockHeader_Bytes, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockHeader_String", _wrap_SKY_coin_BlockHeader_String, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockBody_Hash", _wrap_SKY_coin_BlockBody_Hash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockBody_Size", _wrap_SKY_coin_BlockBody_Size, METH_VARARGS, NULL}, + { (char *)"SKY_coin_BlockBody_Bytes", _wrap_SKY_coin_BlockBody_Bytes, METH_VARARGS, NULL}, + { (char *)"SKY_coin_CreateUnspents", _wrap_SKY_coin_CreateUnspents, METH_VARARGS, NULL}, + { (char *)"SKY_coin_CreateUnspent", _wrap_SKY_coin_CreateUnspent, METH_VARARGS, NULL}, + { (char *)"SKY_coin_GetBlockObject", _wrap_SKY_coin_GetBlockObject, METH_VARARGS, NULL}, + { (char *)"SKY_coin_GetBlockBody", _wrap_SKY_coin_GetBlockBody, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewEmptyBlock", _wrap_SKY_coin_NewEmptyBlock, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddUint64", _wrap_SKY_coin_AddUint64, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Uint64ToInt64", _wrap_SKY_coin_Uint64ToInt64, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Int64ToUint64", _wrap_SKY_coin_Int64ToUint64, METH_VARARGS, NULL}, + { (char *)"SKY_coin_IntToUint32", _wrap_SKY_coin_IntToUint32, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxOut_Hash", _wrap_SKY_coin_UxOut_Hash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxOut_SnapshotHash", _wrap_SKY_coin_UxOut_SnapshotHash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxBody_Hash", _wrap_SKY_coin_UxBody_Hash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxOut_CoinHours", _wrap_SKY_coin_UxOut_CoinHours, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_Hashes", _wrap_SKY_coin_UxArray_Hashes, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_HasDupes", _wrap_SKY_coin_UxArray_HasDupes, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_Sort", _wrap_SKY_coin_UxArray_Sort, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_Len", _wrap_SKY_coin_UxArray_Len, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_Less", _wrap_SKY_coin_UxArray_Less, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_Swap", _wrap_SKY_coin_UxArray_Swap, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_Coins", _wrap_SKY_coin_UxArray_Coins, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_CoinHours", _wrap_SKY_coin_UxArray_CoinHours, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_Sub", _wrap_SKY_coin_UxArray_Sub, METH_VARARGS, NULL}, + { (char *)"SKY_coin_UxArray_Add", _wrap_SKY_coin_UxArray_Add, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewAddressUxOuts", _wrap_SKY_coin_NewAddressUxOuts, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddressUxOuts_Keys", _wrap_SKY_coin_AddressUxOuts_Keys, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddressUxOuts_Flatten", _wrap_SKY_coin_AddressUxOuts_Flatten, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddressUxOuts_Sub", _wrap_SKY_coin_AddressUxOuts_Sub, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddressUxOuts_Add", _wrap_SKY_coin_AddressUxOuts_Add, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddressUxOuts_Get", _wrap_SKY_coin_AddressUxOuts_Get, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddressUxOuts_HasKey", _wrap_SKY_coin_AddressUxOuts_HasKey, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddressUxOuts_GetOutputLength", _wrap_SKY_coin_AddressUxOuts_GetOutputLength, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddressUxOuts_Length", _wrap_SKY_coin_AddressUxOuts_Length, METH_VARARGS, NULL}, + { (char *)"SKY_coin_AddressUxOuts_Set", _wrap_SKY_coin_AddressUxOuts_Set, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Create_Transaction", _wrap_SKY_coin_Create_Transaction, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Copy", _wrap_SKY_coin_Transaction_Copy, METH_VARARGS, NULL}, + { (char *)"SKY_coin_GetTransactionObject", _wrap_SKY_coin_GetTransactionObject, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_ResetInputs", _wrap_SKY_coin_Transaction_ResetInputs, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetInputsCount", _wrap_SKY_coin_Transaction_GetInputsCount, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetInputAt", _wrap_SKY_coin_Transaction_GetInputAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SetInputAt", _wrap_SKY_coin_Transaction_SetInputAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetOutputsCount", _wrap_SKY_coin_Transaction_GetOutputsCount, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetOutputAt", _wrap_SKY_coin_Transaction_GetOutputAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SetOutputAt", _wrap_SKY_coin_Transaction_SetOutputAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetSignaturesCount", _wrap_SKY_coin_Transaction_GetSignaturesCount, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_GetSignatureAt", _wrap_SKY_coin_Transaction_GetSignatureAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SetSignatureAt", _wrap_SKY_coin_Transaction_SetSignatureAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_PushSignature", _wrap_SKY_coin_Transaction_PushSignature, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_ResetOutputs", _wrap_SKY_coin_Transaction_ResetOutputs, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_ResetSignatures", _wrap_SKY_coin_Transaction_ResetSignatures, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Verify", _wrap_SKY_coin_Transaction_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_VerifyInput", _wrap_SKY_coin_Transaction_VerifyInput, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_PushInput", _wrap_SKY_coin_Transaction_PushInput, METH_VARARGS, NULL}, + { (char *)"SKY_coin_TransactionOutput_UxID", _wrap_SKY_coin_TransactionOutput_UxID, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_PushOutput", _wrap_SKY_coin_Transaction_PushOutput, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SignInputs", _wrap_SKY_coin_Transaction_SignInputs, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Size", _wrap_SKY_coin_Transaction_Size, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Hash", _wrap_SKY_coin_Transaction_Hash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_SizeHash", _wrap_SKY_coin_Transaction_SizeHash, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_TxID", _wrap_SKY_coin_Transaction_TxID, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_TxIDHex", _wrap_SKY_coin_Transaction_TxIDHex, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_UpdateHeader", _wrap_SKY_coin_Transaction_UpdateHeader, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_HashInner", _wrap_SKY_coin_Transaction_HashInner, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_Serialize", _wrap_SKY_coin_Transaction_Serialize, METH_VARARGS, NULL}, + { (char *)"SKY_coin_TransactionDeserialize", _wrap_SKY_coin_TransactionDeserialize, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transaction_OutputHours", _wrap_SKY_coin_Transaction_OutputHours, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Create_Transactions", _wrap_SKY_coin_Create_Transactions, METH_VARARGS, NULL}, + { (char *)"SKY_coin_GetTransactionsObject", _wrap_SKY_coin_GetTransactionsObject, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Length", _wrap_SKY_coin_Transactions_Length, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Add", _wrap_SKY_coin_Transactions_Add, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Fees", _wrap_SKY_coin_Transactions_Fees, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_GetAt", _wrap_SKY_coin_Transactions_GetAt, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Hashes", _wrap_SKY_coin_Transactions_Hashes, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_Size", _wrap_SKY_coin_Transactions_Size, METH_VARARGS, NULL}, + { (char *)"SKY_coin_Transactions_TruncateBytesTo", _wrap_SKY_coin_Transactions_TruncateBytesTo, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortTransactions", _wrap_SKY_coin_SortTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_coin_NewSortableTransactions", _wrap_SKY_coin_NewSortableTransactions, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortableTransactions_Sort", _wrap_SKY_coin_SortableTransactions_Sort, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortableTransactions_Len", _wrap_SKY_coin_SortableTransactions_Len, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortableTransactions_Less", _wrap_SKY_coin_SortableTransactions_Less, METH_VARARGS, NULL}, + { (char *)"SKY_coin_SortableTransactions_Swap", _wrap_SKY_coin_SortableTransactions_Swap, METH_VARARGS, NULL}, + { (char *)"SKY_coin_VerifyTransactionCoinsSpending", _wrap_SKY_coin_VerifyTransactionCoinsSpending, METH_VARARGS, NULL}, + { (char *)"SKY_coin_VerifyTransactionHoursSpending", _wrap_SKY_coin_VerifyTransactionHoursSpending, METH_VARARGS, NULL}, + { (char *)"SKY_handle_close", _wrap_SKY_handle_close, METH_VARARGS, NULL}, + { (char *)"SKY_handle_copy", _wrap_SKY_handle_copy, METH_VARARGS, NULL}, + { (char *)"SKY_JsonEncode_Handle", _wrap_SKY_JsonEncode_Handle, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Progress_GetCurrent", _wrap_SKY_Handle_Progress_GetCurrent, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Block_GetHeadSeq", _wrap_SKY_Handle_Block_GetHeadSeq, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Block_GetHeadHash", _wrap_SKY_Handle_Block_GetHeadHash, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Block_GetPreviousBlockHash", _wrap_SKY_Handle_Block_GetPreviousBlockHash, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Blocks_GetAt", _wrap_SKY_Handle_Blocks_GetAt, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Blocks_GetCount", _wrap_SKY_Handle_Blocks_GetCount, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Connections_GetCount", _wrap_SKY_Handle_Connections_GetCount, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Strings_GetCount", _wrap_SKY_Handle_Strings_GetCount, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Strings_Sort", _wrap_SKY_Handle_Strings_Sort, METH_VARARGS, NULL}, + { (char *)"SKY_Handle_Strings_GetAt", _wrap_SKY_Handle_Strings_GetAt, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_Client_GetWalletDir", _wrap_SKY_api_Handle_Client_GetWalletDir, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_Client_GetWalletFileName", _wrap_SKY_api_Handle_Client_GetWalletFileName, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_Client_GetWalletLabel", _wrap_SKY_api_Handle_Client_GetWalletLabel, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_Client_GetWalletFullPath", _wrap_SKY_api_Handle_Client_GetWalletFullPath, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_GetWalletMeta", _wrap_SKY_api_Handle_GetWalletMeta, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_GetWalletEntriesCount", _wrap_SKY_api_Handle_GetWalletEntriesCount, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_Client_GetWalletResponseEntriesCount", _wrap_SKY_api_Handle_Client_GetWalletResponseEntriesCount, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_WalletGetEntry", _wrap_SKY_api_Handle_WalletGetEntry, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_WalletResponseGetEntry", _wrap_SKY_api_Handle_WalletResponseGetEntry, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_WalletResponseIsEncrypted", _wrap_SKY_api_Handle_WalletResponseIsEncrypted, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_WalletResponseGetCryptoType", _wrap_SKY_api_Handle_WalletResponseGetCryptoType, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_WalletsResponseGetCount", _wrap_SKY_api_Handle_WalletsResponseGetCount, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_WalletsResponseGetAt", _wrap_SKY_api_Handle_WalletsResponseGetAt, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_GetWalletFolderAddress", _wrap_SKY_api_Handle_GetWalletFolderAddress, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_GetWalletSeed", _wrap_SKY_api_Handle_GetWalletSeed, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_GetWalletLastSeed", _wrap_SKY_api_Handle_GetWalletLastSeed, METH_VARARGS, NULL}, + { (char *)"SKY_api_Handle_GetBuildInfoData", _wrap_SKY_api_Handle_GetBuildInfoData, METH_VARARGS, NULL}, + { (char *)"SKY_map_Get", _wrap_SKY_map_Get, METH_VARARGS, NULL}, + { (char *)"SKY_map_HasKey", _wrap_SKY_map_HasKey, METH_VARARGS, NULL}, + { (char *)"SKY_map_Close", _wrap_SKY_map_Close, METH_VARARGS, NULL}, + { (char *)"SKY_testutil_MakeAddress", _wrap_SKY_testutil_MakeAddress, METH_VARARGS, NULL}, + { (char *)"SKY_apputil_CatchInterruptPanic", _wrap_SKY_apputil_CatchInterruptPanic, METH_VARARGS, NULL}, + { (char *)"SKY_apputil_CatchDebug", _wrap_SKY_apputil_CatchDebug, METH_VARARGS, NULL}, + { (char *)"SKY_apputil_PrintProgramStatus", _wrap_SKY_apputil_PrintProgramStatus, METH_VARARGS, NULL}, + { (char *)"SKY_certutil_NewTLSCertPair", _wrap_SKY_certutil_NewTLSCertPair, METH_VARARGS, NULL}, + { (char *)"SKY_droplet_FromString", _wrap_SKY_droplet_FromString, METH_VARARGS, NULL}, + { (char *)"SKY_droplet_ToString", _wrap_SKY_droplet_ToString, METH_VARARGS, NULL}, + { (char *)"SKY_fee_VerifyTransactionFee", _wrap_SKY_fee_VerifyTransactionFee, METH_VARARGS, NULL}, + { (char *)"SKY_fee_VerifyTransactionFeeForHours", _wrap_SKY_fee_VerifyTransactionFeeForHours, METH_VARARGS, NULL}, + { (char *)"SKY_fee_RequiredFee", _wrap_SKY_fee_RequiredFee, METH_VARARGS, NULL}, + { (char *)"SKY_fee_RemainingHours", _wrap_SKY_fee_RemainingHours, METH_VARARGS, NULL}, + { (char *)"SKY_fee_TransactionFee", _wrap_SKY_fee_TransactionFee, METH_VARARGS, NULL}, + { (char *)"SKY_file_InitDataDir", _wrap_SKY_file_InitDataDir, METH_VARARGS, NULL}, + { (char *)"SKY_file_UserHome", _wrap_SKY_file_UserHome, METH_VARARGS, NULL}, + { (char *)"SKY_file_ResolveResourceDirectory", _wrap_SKY_file_ResolveResourceDirectory, METH_VARARGS, NULL}, + { (char *)"SKY_file_DetermineResourcePath", _wrap_SKY_file_DetermineResourcePath, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Address_UnmarshalJSON", _wrap_SKY_httphelper_Address_UnmarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Address_MarshalJSON", _wrap_SKY_httphelper_Address_MarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Coins_UnmarshalJSON", _wrap_SKY_httphelper_Coins_UnmarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Coins_MarshalJSON", _wrap_SKY_httphelper_Coins_MarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Coins_Value", _wrap_SKY_httphelper_Coins_Value, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Hours_UnmarshalJSON", _wrap_SKY_httphelper_Hours_UnmarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Hours_MarshalJSON", _wrap_SKY_httphelper_Hours_MarshalJSON, METH_VARARGS, NULL}, + { (char *)"SKY_httphelper_Hours_Value", _wrap_SKY_httphelper_Hours_Value, METH_VARARGS, NULL}, + { (char *)"SKY_iputil_LocalhostIP", _wrap_SKY_iputil_LocalhostIP, METH_VARARGS, NULL}, + { (char *)"SKY_iputil_IsLocalhost", _wrap_SKY_iputil_IsLocalhost, METH_VARARGS, NULL}, + { (char *)"SKY_iputil_SplitAddr", _wrap_SKY_iputil_SplitAddr, METH_VARARGS, NULL}, + { (char *)"SKY_logging_EnableColors", _wrap_SKY_logging_EnableColors, METH_VARARGS, NULL}, + { (char *)"SKY_logging_DisableColors", _wrap_SKY_logging_DisableColors, METH_VARARGS, NULL}, + { (char *)"SKY_logging_Disable", _wrap_SKY_logging_Disable, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewBalance", _wrap_SKY_wallet_NewBalance, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewBalanceFromUxOut", _wrap_SKY_wallet_NewBalanceFromUxOut, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Balance_Add", _wrap_SKY_wallet_Balance_Add, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Balance_Sub", _wrap_SKY_wallet_Balance_Sub, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Balance_Equals", _wrap_SKY_wallet_Balance_Equals, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Balance_IsZero", _wrap_SKY_wallet_Balance_IsZero, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_CryptoTypeFromString", _wrap_SKY_wallet_CryptoTypeFromString, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Entry_Verify", _wrap_SKY_wallet_Entry_Verify, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Entry_VerifyPublic", _wrap_SKY_wallet_Entry_VerifyPublic, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewReadableEntry", _wrap_SKY_wallet_NewReadableEntry, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_LoadReadableWallet", _wrap_SKY_wallet_LoadReadableWallet, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ReadableWallet_Save", _wrap_SKY_wallet_ReadableWallet_Save, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ReadableWallet_Load", _wrap_SKY_wallet_ReadableWallet_Load, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ReadableWallet_Erase", _wrap_SKY_wallet_ReadableWallet_Erase, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewError", _wrap_SKY_wallet_NewError, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewWallet", _wrap_SKY_wallet_NewWallet, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Lock", _wrap_SKY_wallet_Wallet_Lock, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Unlock", _wrap_SKY_wallet_Wallet_Unlock, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Load", _wrap_SKY_wallet_Load, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Save", _wrap_SKY_wallet_Wallet_Save, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Validate", _wrap_SKY_wallet_Wallet_Validate, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Type", _wrap_SKY_wallet_Wallet_Type, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Version", _wrap_SKY_wallet_Wallet_Version, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Filename", _wrap_SKY_wallet_Wallet_Filename, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_Label", _wrap_SKY_wallet_Wallet_Label, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_IsEncrypted", _wrap_SKY_wallet_Wallet_IsEncrypted, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_GenerateAddresses", _wrap_SKY_wallet_Wallet_GenerateAddresses, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_GetAddresses", _wrap_SKY_wallet_Wallet_GetAddresses, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_GetEntry", _wrap_SKY_wallet_Wallet_GetEntry, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_Wallet_AddEntry", _wrap_SKY_wallet_Wallet_AddEntry, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_DistributeSpendHours", _wrap_SKY_wallet_DistributeSpendHours, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_DistributeCoinHoursProportional", _wrap_SKY_wallet_DistributeCoinHoursProportional, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewUxBalances", _wrap_SKY_wallet_NewUxBalances, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_NewUxBalance", _wrap_SKY_wallet_NewUxBalance, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ChooseSpendsMinimizeUxOuts", _wrap_SKY_wallet_ChooseSpendsMinimizeUxOuts, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_ChooseSpendsMaximizeUxOuts", _wrap_SKY_wallet_ChooseSpendsMaximizeUxOuts, METH_VARARGS, NULL}, + { (char *)"SKY_wallet_CreateOptionsHandle", _wrap_SKY_wallet_CreateOptionsHandle, METH_VARARGS, NULL}, + { (char *)"api__RichlistParams_N_set", _wrap_api__RichlistParams_N_set, METH_VARARGS, NULL}, + { (char *)"api__RichlistParams_N_get", _wrap_api__RichlistParams_N_get, METH_VARARGS, NULL}, + { (char *)"api__RichlistParams_IncludeDistribution_set", _wrap_api__RichlistParams_IncludeDistribution_set, METH_VARARGS, NULL}, + { (char *)"api__RichlistParams_IncludeDistribution_get", _wrap_api__RichlistParams_IncludeDistribution_get, METH_VARARGS, NULL}, + { (char *)"new_api__RichlistParams", _wrap_new_api__RichlistParams, METH_VARARGS, NULL}, + { (char *)"delete_api__RichlistParams", _wrap_delete_api__RichlistParams, METH_VARARGS, NULL}, + { (char *)"api__RichlistParams_swigregister", api__RichlistParams_swigregister, METH_VARARGS, NULL}, + { (char *)"api__NetworkConnectionsFilter_States_set", _wrap_api__NetworkConnectionsFilter_States_set, METH_VARARGS, NULL}, + { (char *)"api__NetworkConnectionsFilter_States_get", _wrap_api__NetworkConnectionsFilter_States_get, METH_VARARGS, NULL}, + { (char *)"api__NetworkConnectionsFilter_Direction_set", _wrap_api__NetworkConnectionsFilter_Direction_set, METH_VARARGS, NULL}, + { (char *)"api__NetworkConnectionsFilter_Direction_get", _wrap_api__NetworkConnectionsFilter_Direction_get, METH_VARARGS, NULL}, + { (char *)"new_api__NetworkConnectionsFilter", _wrap_new_api__NetworkConnectionsFilter, METH_VARARGS, NULL}, + { (char *)"delete_api__NetworkConnectionsFilter", _wrap_delete_api__NetworkConnectionsFilter, METH_VARARGS, NULL}, + { (char *)"api__NetworkConnectionsFilter_swigregister", api__NetworkConnectionsFilter_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher__Address___eq__", _wrap_cipher__Address___eq__, METH_VARARGS, NULL}, + { (char *)"cipher__Address_toStr", _wrap_cipher__Address_toStr, METH_VARARGS, NULL}, + { (char *)"cipher__Address_Version_set", _wrap_cipher__Address_Version_set, METH_VARARGS, NULL}, + { (char *)"cipher__Address_Version_get", _wrap_cipher__Address_Version_get, METH_VARARGS, NULL}, + { (char *)"cipher__Address_Key_set", _wrap_cipher__Address_Key_set, METH_VARARGS, NULL}, + { (char *)"cipher__Address_Key_get", _wrap_cipher__Address_Key_get, METH_VARARGS, NULL}, + { (char *)"new_cipher__Address", _wrap_new_cipher__Address, METH_VARARGS, NULL}, + { (char *)"delete_cipher__Address", _wrap_delete_cipher__Address, METH_VARARGS, NULL}, + { (char *)"cipher__Address_swigregister", cipher__Address_swigregister, METH_VARARGS, NULL}, + { (char *)"cipher__BitcoinAddress___eq__", _wrap_cipher__BitcoinAddress___eq__, METH_VARARGS, NULL}, + { (char *)"cipher__BitcoinAddress_toStr", _wrap_cipher__BitcoinAddress_toStr, METH_VARARGS, NULL}, + { (char *)"cipher__BitcoinAddress_Version_set", _wrap_cipher__BitcoinAddress_Version_set, METH_VARARGS, NULL}, + { (char *)"cipher__BitcoinAddress_Version_get", _wrap_cipher__BitcoinAddress_Version_get, METH_VARARGS, NULL}, + { (char *)"cipher__BitcoinAddress_Key_set", _wrap_cipher__BitcoinAddress_Key_set, METH_VARARGS, NULL}, + { (char *)"cipher__BitcoinAddress_Key_get", _wrap_cipher__BitcoinAddress_Key_get, METH_VARARGS, NULL}, + { (char *)"new_cipher__BitcoinAddress", _wrap_new_cipher__BitcoinAddress, METH_VARARGS, NULL}, + { (char *)"delete_cipher__BitcoinAddress", _wrap_delete_cipher__BitcoinAddress, METH_VARARGS, NULL}, + { (char *)"cipher__BitcoinAddress_swigregister", cipher__BitcoinAddress_swigregister, METH_VARARGS, NULL}, + { (char *)"encrypt__ScryptChacha20poly1305_N_set", _wrap_encrypt__ScryptChacha20poly1305_N_set, METH_VARARGS, NULL}, + { (char *)"encrypt__ScryptChacha20poly1305_N_get", _wrap_encrypt__ScryptChacha20poly1305_N_get, METH_VARARGS, NULL}, + { (char *)"encrypt__ScryptChacha20poly1305_R_set", _wrap_encrypt__ScryptChacha20poly1305_R_set, METH_VARARGS, NULL}, + { (char *)"encrypt__ScryptChacha20poly1305_R_get", _wrap_encrypt__ScryptChacha20poly1305_R_get, METH_VARARGS, NULL}, + { (char *)"encrypt__ScryptChacha20poly1305_P_set", _wrap_encrypt__ScryptChacha20poly1305_P_set, METH_VARARGS, NULL}, + { (char *)"encrypt__ScryptChacha20poly1305_P_get", _wrap_encrypt__ScryptChacha20poly1305_P_get, METH_VARARGS, NULL}, + { (char *)"encrypt__ScryptChacha20poly1305_KeyLen_set", _wrap_encrypt__ScryptChacha20poly1305_KeyLen_set, METH_VARARGS, NULL}, + { (char *)"encrypt__ScryptChacha20poly1305_KeyLen_get", _wrap_encrypt__ScryptChacha20poly1305_KeyLen_get, METH_VARARGS, NULL}, + { (char *)"new_encrypt__ScryptChacha20poly1305", _wrap_new_encrypt__ScryptChacha20poly1305, METH_VARARGS, NULL}, + { (char *)"delete_encrypt__ScryptChacha20poly1305", _wrap_delete_encrypt__ScryptChacha20poly1305, METH_VARARGS, NULL}, + { (char *)"encrypt__ScryptChacha20poly1305_swigregister", encrypt__ScryptChacha20poly1305_swigregister, METH_VARARGS, NULL}, + { (char *)"secp256k1go__Field_n_set", _wrap_secp256k1go__Field_n_set, METH_VARARGS, NULL}, + { (char *)"secp256k1go__Field_n_get", _wrap_secp256k1go__Field_n_get, METH_VARARGS, NULL}, + { (char *)"new_secp256k1go__Field", _wrap_new_secp256k1go__Field, METH_VARARGS, NULL}, + { (char *)"delete_secp256k1go__Field", _wrap_delete_secp256k1go__Field, METH_VARARGS, NULL}, + { (char *)"secp256k1go__Field_swigregister", secp256k1go__Field_swigregister, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XY_X_set", _wrap_secp256k1go__XY_X_set, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XY_X_get", _wrap_secp256k1go__XY_X_get, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XY_Y_set", _wrap_secp256k1go__XY_Y_set, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XY_Y_get", _wrap_secp256k1go__XY_Y_get, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XY_Infinity_set", _wrap_secp256k1go__XY_Infinity_set, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XY_Infinity_get", _wrap_secp256k1go__XY_Infinity_get, METH_VARARGS, NULL}, + { (char *)"new_secp256k1go__XY", _wrap_new_secp256k1go__XY, METH_VARARGS, NULL}, + { (char *)"delete_secp256k1go__XY", _wrap_delete_secp256k1go__XY, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XY_swigregister", secp256k1go__XY_swigregister, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XYZ_X_set", _wrap_secp256k1go__XYZ_X_set, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XYZ_X_get", _wrap_secp256k1go__XYZ_X_get, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XYZ_Y_set", _wrap_secp256k1go__XYZ_Y_set, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XYZ_Y_get", _wrap_secp256k1go__XYZ_Y_get, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XYZ_Z_set", _wrap_secp256k1go__XYZ_Z_set, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XYZ_Z_get", _wrap_secp256k1go__XYZ_Z_get, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XYZ_Infinity_set", _wrap_secp256k1go__XYZ_Infinity_set, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XYZ_Infinity_get", _wrap_secp256k1go__XYZ_Infinity_get, METH_VARARGS, NULL}, + { (char *)"new_secp256k1go__XYZ", _wrap_new_secp256k1go__XYZ, METH_VARARGS, NULL}, + { (char *)"delete_secp256k1go__XYZ", _wrap_delete_secp256k1go__XYZ, METH_VARARGS, NULL}, + { (char *)"secp256k1go__XYZ_swigregister", secp256k1go__XYZ_swigregister, METH_VARARGS, NULL}, + { (char *)"cli__SendAmount_Addr_set", _wrap_cli__SendAmount_Addr_set, METH_VARARGS, NULL}, + { (char *)"cli__SendAmount_Addr_get", _wrap_cli__SendAmount_Addr_get, METH_VARARGS, NULL}, + { (char *)"cli__SendAmount_Coins_set", _wrap_cli__SendAmount_Coins_set, METH_VARARGS, NULL}, + { (char *)"cli__SendAmount_Coins_get", _wrap_cli__SendAmount_Coins_get, METH_VARARGS, NULL}, + { (char *)"new_cli__SendAmount", _wrap_new_cli__SendAmount, METH_VARARGS, NULL}, + { (char *)"delete_cli__SendAmount", _wrap_delete_cli__SendAmount, METH_VARARGS, NULL}, + { (char *)"cli__SendAmount_swigregister", cli__SendAmount_swigregister, METH_VARARGS, NULL}, + { (char *)"coin__Transaction___eq__", _wrap_coin__Transaction___eq__, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_Length_set", _wrap_coin__Transaction_Length_set, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_Length_get", _wrap_coin__Transaction_Length_get, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_Type_set", _wrap_coin__Transaction_Type_set, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_Type_get", _wrap_coin__Transaction_Type_get, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_InnerHash_set", _wrap_coin__Transaction_InnerHash_set, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_InnerHash_get", _wrap_coin__Transaction_InnerHash_get, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_Sigs_set", _wrap_coin__Transaction_Sigs_set, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_Sigs_get", _wrap_coin__Transaction_Sigs_get, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_In_set", _wrap_coin__Transaction_In_set, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_In_get", _wrap_coin__Transaction_In_get, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_Out_set", _wrap_coin__Transaction_Out_set, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_Out_get", _wrap_coin__Transaction_Out_get, METH_VARARGS, NULL}, + { (char *)"new_coin__Transaction", _wrap_new_coin__Transaction, METH_VARARGS, NULL}, + { (char *)"delete_coin__Transaction", _wrap_delete_coin__Transaction, METH_VARARGS, NULL}, + { (char *)"coin__Transaction_swigregister", coin__Transaction_swigregister, METH_VARARGS, NULL}, + { (char *)"coin__TransactionOutput___eq__", _wrap_coin__TransactionOutput___eq__, METH_VARARGS, NULL}, + { (char *)"coin__TransactionOutput_Address_set", _wrap_coin__TransactionOutput_Address_set, METH_VARARGS, NULL}, + { (char *)"coin__TransactionOutput_Address_get", _wrap_coin__TransactionOutput_Address_get, METH_VARARGS, NULL}, + { (char *)"coin__TransactionOutput_Coins_set", _wrap_coin__TransactionOutput_Coins_set, METH_VARARGS, NULL}, + { (char *)"coin__TransactionOutput_Coins_get", _wrap_coin__TransactionOutput_Coins_get, METH_VARARGS, NULL}, + { (char *)"coin__TransactionOutput_Hours_set", _wrap_coin__TransactionOutput_Hours_set, METH_VARARGS, NULL}, + { (char *)"coin__TransactionOutput_Hours_get", _wrap_coin__TransactionOutput_Hours_get, METH_VARARGS, NULL}, + { (char *)"new_coin__TransactionOutput", _wrap_new_coin__TransactionOutput, METH_VARARGS, NULL}, + { (char *)"delete_coin__TransactionOutput", _wrap_delete_coin__TransactionOutput, METH_VARARGS, NULL}, + { (char *)"coin__TransactionOutput_swigregister", coin__TransactionOutput_swigregister, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader___eq__", _wrap_coin__BlockHeader___eq__, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_Version_set", _wrap_coin__BlockHeader_Version_set, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_Version_get", _wrap_coin__BlockHeader_Version_get, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_Time_set", _wrap_coin__BlockHeader_Time_set, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_Time_get", _wrap_coin__BlockHeader_Time_get, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_BkSeq_set", _wrap_coin__BlockHeader_BkSeq_set, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_BkSeq_get", _wrap_coin__BlockHeader_BkSeq_get, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_Fee_set", _wrap_coin__BlockHeader_Fee_set, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_Fee_get", _wrap_coin__BlockHeader_Fee_get, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_PrevHash_set", _wrap_coin__BlockHeader_PrevHash_set, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_PrevHash_get", _wrap_coin__BlockHeader_PrevHash_get, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_BodyHash_set", _wrap_coin__BlockHeader_BodyHash_set, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_BodyHash_get", _wrap_coin__BlockHeader_BodyHash_get, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_UxHash_set", _wrap_coin__BlockHeader_UxHash_set, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_UxHash_get", _wrap_coin__BlockHeader_UxHash_get, METH_VARARGS, NULL}, + { (char *)"new_coin__BlockHeader", _wrap_new_coin__BlockHeader, METH_VARARGS, NULL}, + { (char *)"delete_coin__BlockHeader", _wrap_delete_coin__BlockHeader, METH_VARARGS, NULL}, + { (char *)"coin__BlockHeader_swigregister", coin__BlockHeader_swigregister, METH_VARARGS, NULL}, + { (char *)"coin__BlockBody___eq__", _wrap_coin__BlockBody___eq__, METH_VARARGS, NULL}, + { (char *)"coin__BlockBody_Transactions_set", _wrap_coin__BlockBody_Transactions_set, METH_VARARGS, NULL}, + { (char *)"coin__BlockBody_Transactions_get", _wrap_coin__BlockBody_Transactions_get, METH_VARARGS, NULL}, + { (char *)"new_coin__BlockBody", _wrap_new_coin__BlockBody, METH_VARARGS, NULL}, + { (char *)"delete_coin__BlockBody", _wrap_delete_coin__BlockBody, METH_VARARGS, NULL}, + { (char *)"coin__BlockBody_swigregister", coin__BlockBody_swigregister, METH_VARARGS, NULL}, + { (char *)"coin__Block_Head_set", _wrap_coin__Block_Head_set, METH_VARARGS, NULL}, + { (char *)"coin__Block_Head_get", _wrap_coin__Block_Head_get, METH_VARARGS, NULL}, + { (char *)"coin__Block_Body_set", _wrap_coin__Block_Body_set, METH_VARARGS, NULL}, + { (char *)"coin__Block_Body_get", _wrap_coin__Block_Body_get, METH_VARARGS, NULL}, + { (char *)"new_coin__Block", _wrap_new_coin__Block, METH_VARARGS, NULL}, + { (char *)"delete_coin__Block", _wrap_delete_coin__Block, METH_VARARGS, NULL}, + { (char *)"coin__Block_swigregister", coin__Block_swigregister, METH_VARARGS, NULL}, + { (char *)"coin__SignedBlock__unnamed_set", _wrap_coin__SignedBlock__unnamed_set, METH_VARARGS, NULL}, + { (char *)"coin__SignedBlock__unnamed_get", _wrap_coin__SignedBlock__unnamed_get, METH_VARARGS, NULL}, + { (char *)"coin__SignedBlock_Sig_set", _wrap_coin__SignedBlock_Sig_set, METH_VARARGS, NULL}, + { (char *)"coin__SignedBlock_Sig_get", _wrap_coin__SignedBlock_Sig_get, METH_VARARGS, NULL}, + { (char *)"new_coin__SignedBlock", _wrap_new_coin__SignedBlock, METH_VARARGS, NULL}, + { (char *)"delete_coin__SignedBlock", _wrap_delete_coin__SignedBlock, METH_VARARGS, NULL}, + { (char *)"coin__SignedBlock_swigregister", coin__SignedBlock_swigregister, METH_VARARGS, NULL}, + { (char *)"coin__UxHead_Time_set", _wrap_coin__UxHead_Time_set, METH_VARARGS, NULL}, + { (char *)"coin__UxHead_Time_get", _wrap_coin__UxHead_Time_get, METH_VARARGS, NULL}, + { (char *)"coin__UxHead_BkSeq_set", _wrap_coin__UxHead_BkSeq_set, METH_VARARGS, NULL}, + { (char *)"coin__UxHead_BkSeq_get", _wrap_coin__UxHead_BkSeq_get, METH_VARARGS, NULL}, + { (char *)"new_coin__UxHead", _wrap_new_coin__UxHead, METH_VARARGS, NULL}, + { (char *)"delete_coin__UxHead", _wrap_delete_coin__UxHead, METH_VARARGS, NULL}, + { (char *)"coin__UxHead_swigregister", coin__UxHead_swigregister, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_GetSrcTransaction", _wrap_coin__UxBody_GetSrcTransaction, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_SetSrcTransaction", _wrap_coin__UxBody_SetSrcTransaction, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_SrcTransaction_set", _wrap_coin__UxBody_SrcTransaction_set, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_SrcTransaction_get", _wrap_coin__UxBody_SrcTransaction_get, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_Address_set", _wrap_coin__UxBody_Address_set, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_Address_get", _wrap_coin__UxBody_Address_get, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_Coins_set", _wrap_coin__UxBody_Coins_set, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_Coins_get", _wrap_coin__UxBody_Coins_get, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_Hours_set", _wrap_coin__UxBody_Hours_set, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_Hours_get", _wrap_coin__UxBody_Hours_get, METH_VARARGS, NULL}, + { (char *)"new_coin__UxBody", _wrap_new_coin__UxBody, METH_VARARGS, NULL}, + { (char *)"delete_coin__UxBody", _wrap_delete_coin__UxBody, METH_VARARGS, NULL}, + { (char *)"coin__UxBody_swigregister", coin__UxBody_swigregister, METH_VARARGS, NULL}, + { (char *)"coin__UxOut___eq__", _wrap_coin__UxOut___eq__, METH_VARARGS, NULL}, + { (char *)"coin__UxOut_Head_set", _wrap_coin__UxOut_Head_set, METH_VARARGS, NULL}, + { (char *)"coin__UxOut_Head_get", _wrap_coin__UxOut_Head_get, METH_VARARGS, NULL}, + { (char *)"coin__UxOut_Body_set", _wrap_coin__UxOut_Body_set, METH_VARARGS, NULL}, + { (char *)"coin__UxOut_Body_get", _wrap_coin__UxOut_Body_get, METH_VARARGS, NULL}, + { (char *)"new_coin__UxOut", _wrap_new_coin__UxOut, METH_VARARGS, NULL}, + { (char *)"delete_coin__UxOut", _wrap_delete_coin__UxOut, METH_VARARGS, NULL}, + { (char *)"coin__UxOut_swigregister", coin__UxOut_swigregister, METH_VARARGS, NULL}, + { (char *)"httphelper__Address__unnamed_set", _wrap_httphelper__Address__unnamed_set, METH_VARARGS, NULL}, + { (char *)"httphelper__Address__unnamed_get", _wrap_httphelper__Address__unnamed_get, METH_VARARGS, NULL}, + { (char *)"new_httphelper__Address", _wrap_new_httphelper__Address, METH_VARARGS, NULL}, + { (char *)"delete_httphelper__Address", _wrap_delete_httphelper__Address, METH_VARARGS, NULL}, + { (char *)"httphelper__Address_swigregister", httphelper__Address_swigregister, METH_VARARGS, NULL}, + { (char *)"wallet__Balance_Coins_set", _wrap_wallet__Balance_Coins_set, METH_VARARGS, NULL}, + { (char *)"wallet__Balance_Coins_get", _wrap_wallet__Balance_Coins_get, METH_VARARGS, NULL}, + { (char *)"wallet__Balance_Hours_set", _wrap_wallet__Balance_Hours_set, METH_VARARGS, NULL}, + { (char *)"wallet__Balance_Hours_get", _wrap_wallet__Balance_Hours_get, METH_VARARGS, NULL}, + { (char *)"new_wallet__Balance", _wrap_new_wallet__Balance, METH_VARARGS, NULL}, + { (char *)"delete_wallet__Balance", _wrap_delete_wallet__Balance, METH_VARARGS, NULL}, + { (char *)"wallet__Balance_swigregister", wallet__Balance_swigregister, METH_VARARGS, NULL}, + { (char *)"wallet__BalancePair_Confirmed_set", _wrap_wallet__BalancePair_Confirmed_set, METH_VARARGS, NULL}, + { (char *)"wallet__BalancePair_Confirmed_get", _wrap_wallet__BalancePair_Confirmed_get, METH_VARARGS, NULL}, + { (char *)"wallet__BalancePair_Predicted_set", _wrap_wallet__BalancePair_Predicted_set, METH_VARARGS, NULL}, + { (char *)"wallet__BalancePair_Predicted_get", _wrap_wallet__BalancePair_Predicted_get, METH_VARARGS, NULL}, + { (char *)"new_wallet__BalancePair", _wrap_new_wallet__BalancePair, METH_VARARGS, NULL}, + { (char *)"delete_wallet__BalancePair", _wrap_delete_wallet__BalancePair, METH_VARARGS, NULL}, + { (char *)"wallet__BalancePair_swigregister", wallet__BalancePair_swigregister, METH_VARARGS, NULL}, + { (char *)"wallet__Entry_Address_set", _wrap_wallet__Entry_Address_set, METH_VARARGS, NULL}, + { (char *)"wallet__Entry_Address_get", _wrap_wallet__Entry_Address_get, METH_VARARGS, NULL}, + { (char *)"wallet__Entry_Public_set", _wrap_wallet__Entry_Public_set, METH_VARARGS, NULL}, + { (char *)"wallet__Entry_Public_get", _wrap_wallet__Entry_Public_get, METH_VARARGS, NULL}, + { (char *)"wallet__Entry_Secret_set", _wrap_wallet__Entry_Secret_set, METH_VARARGS, NULL}, + { (char *)"wallet__Entry_Secret_get", _wrap_wallet__Entry_Secret_get, METH_VARARGS, NULL}, + { (char *)"new_wallet__Entry", _wrap_new_wallet__Entry, METH_VARARGS, NULL}, + { (char *)"delete_wallet__Entry", _wrap_delete_wallet__Entry, METH_VARARGS, NULL}, + { (char *)"wallet__Entry_swigregister", wallet__Entry_swigregister, METH_VARARGS, NULL}, + { (char *)"wallet__Note_TxID_set", _wrap_wallet__Note_TxID_set, METH_VARARGS, NULL}, + { (char *)"wallet__Note_TxID_get", _wrap_wallet__Note_TxID_get, METH_VARARGS, NULL}, + { (char *)"wallet__Note_Value_set", _wrap_wallet__Note_Value_set, METH_VARARGS, NULL}, + { (char *)"wallet__Note_Value_get", _wrap_wallet__Note_Value_get, METH_VARARGS, NULL}, + { (char *)"new_wallet__Note", _wrap_new_wallet__Note, METH_VARARGS, NULL}, + { (char *)"delete_wallet__Note", _wrap_delete_wallet__Note, METH_VARARGS, NULL}, + { (char *)"wallet__Note_swigregister", wallet__Note_swigregister, METH_VARARGS, NULL}, + { (char *)"wallet__ReadableNote_TransactionID_set", _wrap_wallet__ReadableNote_TransactionID_set, METH_VARARGS, NULL}, + { (char *)"wallet__ReadableNote_TransactionID_get", _wrap_wallet__ReadableNote_TransactionID_get, METH_VARARGS, NULL}, + { (char *)"wallet__ReadableNote_ActualNote_set", _wrap_wallet__ReadableNote_ActualNote_set, METH_VARARGS, NULL}, + { (char *)"wallet__ReadableNote_ActualNote_get", _wrap_wallet__ReadableNote_ActualNote_get, METH_VARARGS, NULL}, + { (char *)"new_wallet__ReadableNote", _wrap_new_wallet__ReadableNote, METH_VARARGS, NULL}, + { (char *)"delete_wallet__ReadableNote", _wrap_delete_wallet__ReadableNote, METH_VARARGS, NULL}, + { (char *)"wallet__ReadableNote_swigregister", wallet__ReadableNote_swigregister, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_Hash_set", _wrap_wallet__UxBalance_Hash_set, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_Hash_get", _wrap_wallet__UxBalance_Hash_get, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_BkSeq_set", _wrap_wallet__UxBalance_BkSeq_set, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_BkSeq_get", _wrap_wallet__UxBalance_BkSeq_get, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_Address_set", _wrap_wallet__UxBalance_Address_set, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_Address_get", _wrap_wallet__UxBalance_Address_get, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_Coins_set", _wrap_wallet__UxBalance_Coins_set, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_Coins_get", _wrap_wallet__UxBalance_Coins_get, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_Hours_set", _wrap_wallet__UxBalance_Hours_set, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_Hours_get", _wrap_wallet__UxBalance_Hours_get, METH_VARARGS, NULL}, + { (char *)"new_wallet__UxBalance", _wrap_new_wallet__UxBalance, METH_VARARGS, NULL}, + { (char *)"delete_wallet__UxBalance", _wrap_delete_wallet__UxBalance, METH_VARARGS, NULL}, + { (char *)"wallet__UxBalance_swigregister", wallet__UxBalance_swigregister, METH_VARARGS, NULL}, + { NULL, NULL, 0, NULL } +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static swig_type_info _swigt__p_AddressUxOuts_Handle = {"_p_AddressUxOuts_Handle", "AddressUxOuts_Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_App__Handle = {"_p_App__Handle", "App__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_BalanceResult_Handle = {"_p_BalanceResult_Handle", "BalanceResult_Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_BlockBody__Handle = {"_p_BlockBody__Handle", "BlockBody__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Block__Handle = {"_p_Block__Handle", "Block__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_BuildInfo_Handle = {"_p_BuildInfo_Handle", "BuildInfo_Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Client__Handle = {"_p_Client__Handle", "Client__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Config__Handle = {"_p_Config__Handle", "Config__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Context__Handle = {"_p_Context__Handle", "Context__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_CreateTransactionResponse__Handle = {"_p_CreateTransactionResponse__Handle", "CreateTransactionResponse__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_CreatedTransactionInput__Handle = {"_p_CreatedTransactionInput__Handle", "CreatedTransactionInput__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_CreatedTransactionOutput__Handle = {"_p_CreatedTransactionOutput__Handle", "CreatedTransactionOutput__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_CreatedTransaction__Handle = {"_p_CreatedTransaction__Handle", "CreatedTransaction__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_FeeCalculator = {"_p_FeeCalculator", "FeeCalculator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Fee_Calculator = {"_p_Fee_Calculator", "Fee_Calculator *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_GoInterface = {"_p_GoInterface", "GoInterface *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_GoSlice = {"_p_GoSlice", "GoSlice *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_GoSlice_ = {"_p_GoSlice_", "coin__Transactions *|coin__UxArray *|GoSlice_ *|cli__PasswordFromBytes *|visor__ReadableOutputs *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_GoStringMap_ = {"_p_GoStringMap_", "GoStringMap_ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_GoString_ = {"_p_GoString_", "GoString_ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Handle = {"_p_Handle", "Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Options__Handle = {"_p_Options__Handle", "Options__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_PasswordReader__Handle = {"_p_PasswordReader__Handle", "PasswordReader__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ReadableEntry__Handle = {"_p_ReadableEntry__Handle", "ReadableEntry__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ReadableUnspentOutputsSummary_Handle = {"_p_ReadableUnspentOutputsSummary_Handle", "ReadableUnspentOutputsSummary_Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ReadableWallet__Handle = {"_p_ReadableWallet__Handle", "ReadableWallet__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SortableTransactionResult_Handle = {"_p_SortableTransactionResult_Handle", "SortableTransactionResult_Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SpendResult_Handle = {"_p_SpendResult_Handle", "SpendResult_Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_StatusResult_Handle = {"_p_StatusResult_Handle", "StatusResult_Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Strings__Handle = {"_p_Strings__Handle", "Strings__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_TransactionResult_Handle = {"_p_TransactionResult_Handle", "TransactionResult_Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Transaction__Handle = {"_p_Transaction__Handle", "Transaction__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Transactions__Handle = {"_p_Transactions__Handle", "Transactions__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_WalletResponse__Handle = {"_p_WalletResponse__Handle", "WalletResponse__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Wallet__Handle = {"_p_Wallet__Handle", "Wallet__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Wallets__Handle = {"_p_Wallets__Handle", "Wallets__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_WebRpcClient__Handle = {"_p_WebRpcClient__Handle", "WebRpcClient__Handle *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p__GoString_ = {"_p__GoString_", "_GoString_ *|GoString *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p___SIZE_TYPE__ = {"_p___SIZE_TYPE__", "__SIZE_TYPE__ *|GoUintptr *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_a_20__unsigned_char = {"_p_a_20__unsigned_char", "unsigned char (*)[20]|cipher__Ripemd160 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_a_32__unsigned_char = {"_p_a_32__unsigned_char", "cipher__SecKey *|cipher__SHA256 *|unsigned char (*)[32]", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_a_33__unsigned_char = {"_p_a_33__unsigned_char", "unsigned char (*)[33]|cipher__PubKey *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_a_4__unsigned_char = {"_p_a_4__unsigned_char", "cipher__Checksum *|unsigned char (*)[4]", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_a_65__unsigned_char = {"_p_a_65__unsigned_char", "unsigned char (*)[65]|cipher__Sig *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_a_sizeof_void_____64_8_1__1__char = {"_p_a_sizeof_void_____64_8_1__1__char", "char (*)[sizeof(void *)==64/8?1:-1]|_check_for_64_bit_pointer_matching_GoInt *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_api__NetworkConnectionsFilter = {"_p_api__NetworkConnectionsFilter", "api__NetworkConnectionsFilter *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_api__RichlistParams = {"_p_api__RichlistParams", "api__RichlistParams *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_Addresses = {"_p_cipher_Addresses", "cipher_Addresses *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_Checksum = {"_p_cipher_Checksum", "cipher_Checksum *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_PubKey = {"_p_cipher_PubKey", "cipher_PubKey *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_PubKeys = {"_p_cipher_PubKeys", "cipher_PubKeys *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_Ripemd160 = {"_p_cipher_Ripemd160", "cipher_Ripemd160 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_SHA256 = {"_p_cipher_SHA256", "cipher_SHA256 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_SHA256s = {"_p_cipher_SHA256s", "cipher_SHA256s *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_SecKey = {"_p_cipher_SecKey", "cipher_SecKey *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_SecKeys = {"_p_cipher_SecKeys", "cipher_SecKeys *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher_Sig = {"_p_cipher_Sig", "cipher_Sig *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher__Address = {"_p_cipher__Address", "cipher__Address *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cipher__BitcoinAddress = {"_p_cipher__BitcoinAddress", "cipher__BitcoinAddress *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cli__SendAmount = {"_p_cli__SendAmount", "cli__SendAmount *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin_UxOutArray = {"_p_coin_UxOutArray", "coin_UxOutArray *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin__Block = {"_p_coin__Block", "coin__Block *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin__BlockBody = {"_p_coin__BlockBody", "coin__BlockBody *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin__BlockHeader = {"_p_coin__BlockHeader", "coin__BlockHeader *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin__SignedBlock = {"_p_coin__SignedBlock", "coin__SignedBlock *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin__Transaction = {"_p_coin__Transaction", "coin__Transaction *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin__TransactionOutput = {"_p_coin__TransactionOutput", "coin__TransactionOutput *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin__UxBody = {"_p_coin__UxBody", "coin__UxBody *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin__UxHead = {"_p_coin__UxHead", "coin__UxHead *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_coin__UxOut = {"_p_coin__UxOut", "coin__UxOut *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_double = {"_p_double", "GoFloat64 *|double *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_encrypt__ScryptChacha20poly1305 = {"_p_encrypt__ScryptChacha20poly1305", "encrypt__ScryptChacha20poly1305 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int = {"_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int", "unsigned int (*)(Transaction__Handle,unsigned long long *,void *)|FeeCalcFunc", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_float = {"_p_float", "float *|GoFloat32 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_httphelper__Address = {"_p_httphelper__Address", "httphelper__Address *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_int = {"_p_int", "int *|GoInt32 *|GoInt32_ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_long_long = {"_p_long_long", "GoInt64 *|GoInt *|long long *|GoInt_ *|GoInt64_ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_GoSlice_ = {"_p_p_GoSlice_", "coin__UxArray **|GoSlice_ **", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_coin__Block = {"_p_p_coin__Block", "coin__Block **", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_coin__Transaction = {"_p_p_coin__Transaction", "coin__Transaction **", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_secp256k1go__Field = {"_p_secp256k1go__Field", "secp256k1go__Field *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_secp256k1go__XY = {"_p_secp256k1go__XY", "secp256k1go__XY *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_secp256k1go__XYZ = {"_p_secp256k1go__XYZ", "secp256k1go__XYZ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_short = {"_p_short", "GoInt16_ *|GoInt16 *|short *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|GoInt8 *|GoInt8_ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|GoUint8 *|GoUint8_ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "GoUint32 *|unsigned int *|GoUint32_ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "httphelper__Coins *|GoUint64 *|GoUint *|unsigned long long *|GoUint_ *|GoUint64_ *|httphelper__Hours *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "GoUint16_ *|GoUint16 *|unsigned short *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_wallet__Balance = {"_p_wallet__Balance", "wallet__Balance *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_wallet__BalancePair = {"_p_wallet__BalancePair", "wallet__BalancePair *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_wallet__Entry = {"_p_wallet__Entry", "wallet__Entry *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_wallet__Note = {"_p_wallet__Note", "wallet__Note *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_wallet__ReadableNote = {"_p_wallet__ReadableNote", "wallet__ReadableNote *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_wallet__UxBalance = {"_p_wallet__UxBalance", "wallet__UxBalance *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_AddressUxOuts_Handle, + &_swigt__p_App__Handle, + &_swigt__p_BalanceResult_Handle, + &_swigt__p_BlockBody__Handle, + &_swigt__p_Block__Handle, + &_swigt__p_BuildInfo_Handle, + &_swigt__p_Client__Handle, + &_swigt__p_Config__Handle, + &_swigt__p_Context__Handle, + &_swigt__p_CreateTransactionResponse__Handle, + &_swigt__p_CreatedTransactionInput__Handle, + &_swigt__p_CreatedTransactionOutput__Handle, + &_swigt__p_CreatedTransaction__Handle, + &_swigt__p_FeeCalculator, + &_swigt__p_Fee_Calculator, + &_swigt__p_GoInterface, + &_swigt__p_GoSlice, + &_swigt__p_GoSlice_, + &_swigt__p_GoStringMap_, + &_swigt__p_GoString_, + &_swigt__p_Handle, + &_swigt__p_Options__Handle, + &_swigt__p_PasswordReader__Handle, + &_swigt__p_ReadableEntry__Handle, + &_swigt__p_ReadableUnspentOutputsSummary_Handle, + &_swigt__p_ReadableWallet__Handle, + &_swigt__p_SortableTransactionResult_Handle, + &_swigt__p_SpendResult_Handle, + &_swigt__p_StatusResult_Handle, + &_swigt__p_Strings__Handle, + &_swigt__p_TransactionResult_Handle, + &_swigt__p_Transaction__Handle, + &_swigt__p_Transactions__Handle, + &_swigt__p_WalletResponse__Handle, + &_swigt__p_Wallet__Handle, + &_swigt__p_Wallets__Handle, + &_swigt__p_WebRpcClient__Handle, + &_swigt__p__GoString_, + &_swigt__p___SIZE_TYPE__, + &_swigt__p_a_20__unsigned_char, + &_swigt__p_a_32__unsigned_char, + &_swigt__p_a_33__unsigned_char, + &_swigt__p_a_4__unsigned_char, + &_swigt__p_a_65__unsigned_char, + &_swigt__p_a_sizeof_void_____64_8_1__1__char, + &_swigt__p_api__NetworkConnectionsFilter, + &_swigt__p_api__RichlistParams, + &_swigt__p_char, + &_swigt__p_cipher_Addresses, + &_swigt__p_cipher_Checksum, + &_swigt__p_cipher_PubKey, + &_swigt__p_cipher_PubKeys, + &_swigt__p_cipher_Ripemd160, + &_swigt__p_cipher_SHA256, + &_swigt__p_cipher_SHA256s, + &_swigt__p_cipher_SecKey, + &_swigt__p_cipher_SecKeys, + &_swigt__p_cipher_Sig, + &_swigt__p_cipher__Address, + &_swigt__p_cipher__BitcoinAddress, + &_swigt__p_cli__SendAmount, + &_swigt__p_coin_UxOutArray, + &_swigt__p_coin__Block, + &_swigt__p_coin__BlockBody, + &_swigt__p_coin__BlockHeader, + &_swigt__p_coin__SignedBlock, + &_swigt__p_coin__Transaction, + &_swigt__p_coin__TransactionOutput, + &_swigt__p_coin__UxBody, + &_swigt__p_coin__UxHead, + &_swigt__p_coin__UxOut, + &_swigt__p_double, + &_swigt__p_encrypt__ScryptChacha20poly1305, + &_swigt__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int, + &_swigt__p_float, + &_swigt__p_httphelper__Address, + &_swigt__p_int, + &_swigt__p_long_long, + &_swigt__p_p_GoSlice_, + &_swigt__p_p_coin__Block, + &_swigt__p_p_coin__Transaction, + &_swigt__p_secp256k1go__Field, + &_swigt__p_secp256k1go__XY, + &_swigt__p_secp256k1go__XYZ, + &_swigt__p_short, + &_swigt__p_signed_char, + &_swigt__p_unsigned_char, + &_swigt__p_unsigned_int, + &_swigt__p_unsigned_long_long, + &_swigt__p_unsigned_short, + &_swigt__p_void, + &_swigt__p_wallet__Balance, + &_swigt__p_wallet__BalancePair, + &_swigt__p_wallet__Entry, + &_swigt__p_wallet__Note, + &_swigt__p_wallet__ReadableNote, + &_swigt__p_wallet__UxBalance, +}; + +static swig_cast_info _swigc__p_AddressUxOuts_Handle[] = { {&_swigt__p_AddressUxOuts_Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_App__Handle[] = { {&_swigt__p_App__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_BalanceResult_Handle[] = { {&_swigt__p_BalanceResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_BlockBody__Handle[] = { {&_swigt__p_BlockBody__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Block__Handle[] = { {&_swigt__p_Block__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_BuildInfo_Handle[] = { {&_swigt__p_BuildInfo_Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Client__Handle[] = { {&_swigt__p_Client__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Config__Handle[] = { {&_swigt__p_Config__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Context__Handle[] = { {&_swigt__p_Context__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_CreateTransactionResponse__Handle[] = { {&_swigt__p_CreateTransactionResponse__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_CreatedTransactionInput__Handle[] = { {&_swigt__p_CreatedTransactionInput__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_CreatedTransactionOutput__Handle[] = { {&_swigt__p_CreatedTransactionOutput__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_CreatedTransaction__Handle[] = { {&_swigt__p_CreatedTransaction__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_FeeCalculator[] = { {&_swigt__p_FeeCalculator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Fee_Calculator[] = { {&_swigt__p_Fee_Calculator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_GoInterface[] = { {&_swigt__p_GoInterface, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_GoSlice[] = { {&_swigt__p_GoSlice, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_GoSlice_[] = { {&_swigt__p_GoSlice_, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_GoStringMap_[] = { {&_swigt__p_GoStringMap_, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_GoString_[] = { {&_swigt__p_GoString_, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Handle[] = { {&_swigt__p_Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Options__Handle[] = { {&_swigt__p_Options__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_PasswordReader__Handle[] = { {&_swigt__p_PasswordReader__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ReadableEntry__Handle[] = { {&_swigt__p_ReadableEntry__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ReadableUnspentOutputsSummary_Handle[] = { {&_swigt__p_ReadableUnspentOutputsSummary_Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ReadableWallet__Handle[] = { {&_swigt__p_ReadableWallet__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SortableTransactionResult_Handle[] = { {&_swigt__p_SortableTransactionResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SpendResult_Handle[] = { {&_swigt__p_SpendResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_StatusResult_Handle[] = { {&_swigt__p_StatusResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Strings__Handle[] = { {&_swigt__p_Strings__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_TransactionResult_Handle[] = { {&_swigt__p_TransactionResult_Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Transaction__Handle[] = { {&_swigt__p_Transaction__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Transactions__Handle[] = { {&_swigt__p_Transactions__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_WalletResponse__Handle[] = { {&_swigt__p_WalletResponse__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Wallet__Handle[] = { {&_swigt__p_Wallet__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Wallets__Handle[] = { {&_swigt__p_Wallets__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_WebRpcClient__Handle[] = { {&_swigt__p_WebRpcClient__Handle, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p__GoString_[] = { {&_swigt__p__GoString_, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p___SIZE_TYPE__[] = { {&_swigt__p___SIZE_TYPE__, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_a_20__unsigned_char[] = { {&_swigt__p_a_20__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_a_32__unsigned_char[] = { {&_swigt__p_a_32__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_a_33__unsigned_char[] = { {&_swigt__p_a_33__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_a_4__unsigned_char[] = { {&_swigt__p_a_4__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_a_65__unsigned_char[] = { {&_swigt__p_a_65__unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_a_sizeof_void_____64_8_1__1__char[] = { {&_swigt__p_a_sizeof_void_____64_8_1__1__char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_api__NetworkConnectionsFilter[] = { {&_swigt__p_api__NetworkConnectionsFilter, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_api__RichlistParams[] = { {&_swigt__p_api__RichlistParams, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_Addresses[] = { {&_swigt__p_cipher_Addresses, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_Checksum[] = { {&_swigt__p_cipher_Checksum, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_PubKey[] = { {&_swigt__p_cipher_PubKey, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_PubKeys[] = { {&_swigt__p_cipher_PubKeys, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_Ripemd160[] = { {&_swigt__p_cipher_Ripemd160, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_SHA256[] = { {&_swigt__p_cipher_SHA256, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_SHA256s[] = { {&_swigt__p_cipher_SHA256s, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_SecKey[] = { {&_swigt__p_cipher_SecKey, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_SecKeys[] = { {&_swigt__p_cipher_SecKeys, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher_Sig[] = { {&_swigt__p_cipher_Sig, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher__Address[] = { {&_swigt__p_cipher__Address, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cipher__BitcoinAddress[] = { {&_swigt__p_cipher__BitcoinAddress, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cli__SendAmount[] = { {&_swigt__p_cli__SendAmount, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin_UxOutArray[] = { {&_swigt__p_coin_UxOutArray, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin__Block[] = { {&_swigt__p_coin__Block, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin__BlockBody[] = { {&_swigt__p_coin__BlockBody, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin__BlockHeader[] = { {&_swigt__p_coin__BlockHeader, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin__SignedBlock[] = { {&_swigt__p_coin__SignedBlock, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin__Transaction[] = { {&_swigt__p_coin__Transaction, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin__TransactionOutput[] = { {&_swigt__p_coin__TransactionOutput, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin__UxBody[] = { {&_swigt__p_coin__UxBody, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin__UxHead[] = { {&_swigt__p_coin__UxHead, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_coin__UxOut[] = { {&_swigt__p_coin__UxOut, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_encrypt__ScryptChacha20poly1305[] = { {&_swigt__p_encrypt__ScryptChacha20poly1305, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int[] = { {&_swigt__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_httphelper__Address[] = { {&_swigt__p_httphelper__Address, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_GoSlice_[] = { {&_swigt__p_p_GoSlice_, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_coin__Block[] = { {&_swigt__p_p_coin__Block, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_coin__Transaction[] = { {&_swigt__p_p_coin__Transaction, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_secp256k1go__Field[] = { {&_swigt__p_secp256k1go__Field, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_secp256k1go__XY[] = { {&_swigt__p_secp256k1go__XY, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_secp256k1go__XYZ[] = { {&_swigt__p_secp256k1go__XYZ, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_wallet__Balance[] = { {&_swigt__p_wallet__Balance, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_wallet__BalancePair[] = { {&_swigt__p_wallet__BalancePair, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_wallet__Entry[] = { {&_swigt__p_wallet__Entry, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_wallet__Note[] = { {&_swigt__p_wallet__Note, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_wallet__ReadableNote[] = { {&_swigt__p_wallet__ReadableNote, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_wallet__UxBalance[] = { {&_swigt__p_wallet__UxBalance, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_AddressUxOuts_Handle, + _swigc__p_App__Handle, + _swigc__p_BalanceResult_Handle, + _swigc__p_BlockBody__Handle, + _swigc__p_Block__Handle, + _swigc__p_BuildInfo_Handle, + _swigc__p_Client__Handle, + _swigc__p_Config__Handle, + _swigc__p_Context__Handle, + _swigc__p_CreateTransactionResponse__Handle, + _swigc__p_CreatedTransactionInput__Handle, + _swigc__p_CreatedTransactionOutput__Handle, + _swigc__p_CreatedTransaction__Handle, + _swigc__p_FeeCalculator, + _swigc__p_Fee_Calculator, + _swigc__p_GoInterface, + _swigc__p_GoSlice, + _swigc__p_GoSlice_, + _swigc__p_GoStringMap_, + _swigc__p_GoString_, + _swigc__p_Handle, + _swigc__p_Options__Handle, + _swigc__p_PasswordReader__Handle, + _swigc__p_ReadableEntry__Handle, + _swigc__p_ReadableUnspentOutputsSummary_Handle, + _swigc__p_ReadableWallet__Handle, + _swigc__p_SortableTransactionResult_Handle, + _swigc__p_SpendResult_Handle, + _swigc__p_StatusResult_Handle, + _swigc__p_Strings__Handle, + _swigc__p_TransactionResult_Handle, + _swigc__p_Transaction__Handle, + _swigc__p_Transactions__Handle, + _swigc__p_WalletResponse__Handle, + _swigc__p_Wallet__Handle, + _swigc__p_Wallets__Handle, + _swigc__p_WebRpcClient__Handle, + _swigc__p__GoString_, + _swigc__p___SIZE_TYPE__, + _swigc__p_a_20__unsigned_char, + _swigc__p_a_32__unsigned_char, + _swigc__p_a_33__unsigned_char, + _swigc__p_a_4__unsigned_char, + _swigc__p_a_65__unsigned_char, + _swigc__p_a_sizeof_void_____64_8_1__1__char, + _swigc__p_api__NetworkConnectionsFilter, + _swigc__p_api__RichlistParams, + _swigc__p_char, + _swigc__p_cipher_Addresses, + _swigc__p_cipher_Checksum, + _swigc__p_cipher_PubKey, + _swigc__p_cipher_PubKeys, + _swigc__p_cipher_Ripemd160, + _swigc__p_cipher_SHA256, + _swigc__p_cipher_SHA256s, + _swigc__p_cipher_SecKey, + _swigc__p_cipher_SecKeys, + _swigc__p_cipher_Sig, + _swigc__p_cipher__Address, + _swigc__p_cipher__BitcoinAddress, + _swigc__p_cli__SendAmount, + _swigc__p_coin_UxOutArray, + _swigc__p_coin__Block, + _swigc__p_coin__BlockBody, + _swigc__p_coin__BlockHeader, + _swigc__p_coin__SignedBlock, + _swigc__p_coin__Transaction, + _swigc__p_coin__TransactionOutput, + _swigc__p_coin__UxBody, + _swigc__p_coin__UxHead, + _swigc__p_coin__UxOut, + _swigc__p_double, + _swigc__p_encrypt__ScryptChacha20poly1305, + _swigc__p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int, + _swigc__p_float, + _swigc__p_httphelper__Address, + _swigc__p_int, + _swigc__p_long_long, + _swigc__p_p_GoSlice_, + _swigc__p_p_coin__Block, + _swigc__p_p_coin__Transaction, + _swigc__p_secp256k1go__Field, + _swigc__p_secp256k1go__XY, + _swigc__p_secp256k1go__XYZ, + _swigc__p_short, + _swigc__p_signed_char, + _swigc__p_unsigned_char, + _swigc__p_unsigned_int, + _swigc__p_unsigned_long_long, + _swigc__p_unsigned_short, + _swigc__p_void, + _swigc__p_wallet__Balance, + _swigc__p_wallet__BalancePair, + _swigc__p_wallet__Entry, + _swigc__p_wallet__Note, + _swigc__p_wallet__ReadableNote, + _swigc__p_wallet__UxBalance, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_const_info swig_const_table[] = { +{0, 0, 0, 0.0, 0, 0}}; + +#ifdef __cplusplus +} +#endif +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned statically to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int init; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + iter=module_head; + do { + if (iter==&swig_module) { + /* Our module is already in the list, so there's nothing more to do. */ + return; + } + iter=iter->next; + } while (iter!= module_head); + + /* otherwise we must add our module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpreters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ + /* c-mode */ +#endif +} +#endif + + + +#ifdef __cplusplus +extern "C" { +#endif + + /* Python-specific SWIG API */ +#define SWIG_newvarlink() SWIG_Python_newvarlink() +#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) +#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) + + /* ----------------------------------------------------------------------------- + * global variable support code. + * ----------------------------------------------------------------------------- */ + + typedef struct swig_globalvar { + char *name; /* Name of global variable */ + PyObject *(*get_attr)(void); /* Return the current value */ + int (*set_attr)(PyObject *); /* Set the value */ + struct swig_globalvar *next; + } swig_globalvar; + + typedef struct swig_varlinkobject { + PyObject_HEAD + swig_globalvar *vars; + } swig_varlinkobject; + + SWIGINTERN PyObject * + swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_InternFromString(""); +#else + return PyString_FromString(""); +#endif + } + + SWIGINTERN PyObject * + swig_varlink_str(swig_varlinkobject *v) { +#if PY_VERSION_HEX >= 0x03000000 + PyObject *str = PyUnicode_InternFromString("("); + PyObject *tail; + PyObject *joined; + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + tail = PyUnicode_FromString(var->name); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + if (var->next) { + tail = PyUnicode_InternFromString(", "); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + } + } + tail = PyUnicode_InternFromString(")"); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; +#else + PyObject *str = PyString_FromString("("); + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + PyString_ConcatAndDel(&str,PyString_FromString(var->name)); + if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); + } + PyString_ConcatAndDel(&str,PyString_FromString(")")); +#endif + return str; + } + + SWIGINTERN int + swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { + char *tmp; + PyObject *str = swig_varlink_str(v); + fprintf(fp,"Swig global variables "); + fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(str); + return 0; + } + + SWIGINTERN void + swig_varlink_dealloc(swig_varlinkobject *v) { + swig_globalvar *var = v->vars; + while (var) { + swig_globalvar *n = var->next; + free(var->name); + free(var); + var = n; + } + } + + SWIGINTERN PyObject * + swig_varlink_getattr(swig_varlinkobject *v, char *n) { + PyObject *res = NULL; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->get_attr)(); + break; + } + var = var->next; + } + if (res == NULL && !PyErr_Occurred()) { + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); + } + return res; + } + + SWIGINTERN int + swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { + int res = 1; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->set_attr)(p); + break; + } + var = var->next; + } + if (res == 1 && !PyErr_Occurred()) { + PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); + } + return res; + } + + SWIGINTERN PyTypeObject* + swig_varlink_type(void) { + static char varlink__doc__[] = "Swig var link object"; + static PyTypeObject varlink_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"swigvarlink", /* tp_name */ + sizeof(swig_varlinkobject), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor) swig_varlink_dealloc, /* tp_dealloc */ + (printfunc) swig_varlink_print, /* tp_print */ + (getattrfunc) swig_varlink_getattr, /* tp_getattr */ + (setattrfunc) swig_varlink_setattr, /* tp_setattr */ + 0, /* tp_compare */ + (reprfunc) swig_varlink_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + 0, /* tp_hash */ + 0, /* tp_call */ + (reprfunc) swig_varlink_str, /* tp_str */ + 0, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + 0, /* tp_flags */ + varlink__doc__, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#if PY_VERSION_HEX >= 0x02060000 + 0, /* tp_version_tag */ +#endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif +#ifdef COUNT_ALLOCS + 0, /* tp_allocs */ + 0, /* tp_frees */ + 0, /* tp_maxalloc */ +#if PY_VERSION_HEX >= 0x02050000 + 0, /* tp_prev */ +#endif + 0 /* tp_next */ +#endif + }; + varlink_type = tmp; + type_init = 1; +#if PY_VERSION_HEX < 0x02020000 + varlink_type.ob_type = &PyType_Type; +#else + if (PyType_Ready(&varlink_type) < 0) + return NULL; +#endif + } + return &varlink_type; + } + + /* Create a variable linking object for use later */ + SWIGINTERN PyObject * + SWIG_Python_newvarlink(void) { + swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); + if (result) { + result->vars = 0; + } + return ((PyObject*) result); + } + + SWIGINTERN void + SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { + swig_varlinkobject *v = (swig_varlinkobject *) p; + swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); + if (gv) { + size_t size = strlen(name)+1; + gv->name = (char *)malloc(size); + if (gv->name) { + strncpy(gv->name,name,size); + gv->get_attr = get_attr; + gv->set_attr = set_attr; + gv->next = v->vars; + } + } + v->vars = gv; + } + + SWIGINTERN PyObject * + SWIG_globals(void) { + static PyObject *_SWIG_globals = 0; + if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); + return _SWIG_globals; + } + + /* ----------------------------------------------------------------------------- + * constants/methods manipulation + * ----------------------------------------------------------------------------- */ + + /* Install Constants */ + SWIGINTERN void + SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { + PyObject *obj = 0; + size_t i; + for (i = 0; constants[i].type; ++i) { + switch(constants[i].type) { + case SWIG_PY_POINTER: + obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); + break; + case SWIG_PY_BINARY: + obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); + break; + default: + obj = 0; + break; + } + if (obj) { + PyDict_SetItemString(d, constants[i].name, obj); + Py_DECREF(obj); + } + } + } + + /* -----------------------------------------------------------------------------*/ + /* Fix SwigMethods to carry the callback ptrs when needed */ + /* -----------------------------------------------------------------------------*/ + + SWIGINTERN void + SWIG_Python_FixMethods(PyMethodDef *methods, + swig_const_info *const_table, + swig_type_info **types, + swig_type_info **types_initial) { + size_t i; + for (i = 0; methods[i].ml_name; ++i) { + const char *c = methods[i].ml_doc; + if (!c) continue; + c = strstr(c, "swig_ptr: "); + if (c) { + int j; + swig_const_info *ci = 0; + const char *name = c + 10; + for (j = 0; const_table[j].type; ++j) { + if (strncmp(const_table[j].name, name, + strlen(const_table[j].name)) == 0) { + ci = &(const_table[j]); + break; + } + } + if (ci) { + void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; + if (ptr) { + size_t shift = (ci->ptype) - types; + swig_type_info *ty = types_initial[shift]; + size_t ldoc = (c - methods[i].ml_doc); + size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; + char *ndoc = (char*)malloc(ldoc + lptr + 10); + if (ndoc) { + char *buff = ndoc; + strncpy(buff, methods[i].ml_doc, ldoc); + buff += ldoc; + strncpy(buff, "swig_ptr: ", 10); + buff += 10; + SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); + methods[i].ml_doc = ndoc; + } + } + } + } + } + } + +#ifdef __cplusplus +} +#endif + +/* -----------------------------------------------------------------------------* + * Partial Init method + * -----------------------------------------------------------------------------*/ + +#ifdef __cplusplus +extern "C" +#endif + +SWIGEXPORT +#if PY_VERSION_HEX >= 0x03000000 +PyObject* +#else +void +#endif +SWIG_init(void) { + PyObject *m, *d, *md; +#if PY_VERSION_HEX >= 0x03000000 + static struct PyModuleDef SWIG_module = { +# if PY_VERSION_HEX >= 0x03020000 + PyModuleDef_HEAD_INIT, +# else + { + PyObject_HEAD_INIT(NULL) + NULL, /* m_init */ + 0, /* m_index */ + NULL, /* m_copy */ + }, +# endif + (char *) SWIG_name, + NULL, + -1, + SwigMethods, + NULL, + NULL, + NULL, + NULL + }; +#endif + +#if defined(SWIGPYTHON_BUILTIN) + static SwigPyClientData SwigPyObject_clientdata = { + 0, 0, 0, 0, 0, 0, 0 + }; + static PyGetSetDef this_getset_def = { + (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL + }; + static SwigPyGetSet thisown_getset_closure = { + (PyCFunction) SwigPyObject_own, + (PyCFunction) SwigPyObject_own + }; + static PyGetSetDef thisown_getset_def = { + (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure + }; + PyTypeObject *builtin_pytype; + int builtin_base_count; + swig_type_info *builtin_basetype; + PyObject *tuple; + PyGetSetDescrObject *static_getset; + PyTypeObject *metatype; + PyTypeObject *swigpyobject; + SwigPyClientData *cd; + PyObject *public_interface, *public_symbol; + PyObject *this_descr; + PyObject *thisown_descr; + PyObject *self = 0; + int i; + + (void)builtin_pytype; + (void)builtin_base_count; + (void)builtin_basetype; + (void)tuple; + (void)static_getset; + (void)self; + + /* Metaclass is used to implement static member variables */ + metatype = SwigPyObjectType(); + assert(metatype); +#endif + + /* Fix SwigMethods to carry the callback ptrs when needed */ + SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); + +#if PY_VERSION_HEX >= 0x03000000 + m = PyModule_Create(&SWIG_module); +#else + m = Py_InitModule((char *) SWIG_name, SwigMethods); +#endif + + md = d = PyModule_GetDict(m); + (void)md; + + SWIG_InitializeModule(0); + +#ifdef SWIGPYTHON_BUILTIN + swigpyobject = SwigPyObject_TypeOnce(); + + SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); + assert(SwigPyObject_stype); + cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; + if (!cd) { + SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; + SwigPyObject_clientdata.pytype = swigpyobject; + } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) { + PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); +# if PY_VERSION_HEX >= 0x03000000 + return NULL; +# else + return; +# endif + } + + /* All objects have a 'this' attribute */ + this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); + (void)this_descr; + + /* All objects have a 'thisown' attribute */ + thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); + (void)thisown_descr; + + public_interface = PyList_New(0); + public_symbol = 0; + (void)public_symbol; + + PyDict_SetItemString(md, "__all__", public_interface); + Py_DECREF(public_interface); + for (i = 0; SwigMethods[i].ml_name != NULL; ++i) + SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); + for (i = 0; swig_const_table[i].name != 0; ++i) + SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); +#endif + + SWIG_InstallConstants(d,swig_const_table); + + SWIG_Python_SetConstant(d, "SKY_OK",SWIG_From_int((int)(0))); + SWIG_Python_SetConstant(d, "SKY_ERROR",SWIG_From_int((int)(0x7FFFFFFF))); + SWIG_Python_SetConstant(d, "SKY_BAD_HANDLE",SWIG_From_int((int)(0x7F000001))); + SWIG_Python_SetConstant(d, "SKY_INVALID_TIMESTRING",SWIG_From_int((int)(0x7F000002))); + SWIG_Python_SetConstant(d, "SKY_PKG_API",SWIG_From_int((int)(0x01000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_CIPHER",SWIG_From_int((int)(0x02000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_CLI",SWIG_From_int((int)(0x03000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_COIN",SWIG_From_int((int)(0x04000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_CONSENSUS",SWIG_From_int((int)(0x05000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_DAEMON",SWIG_From_int((int)(0x06000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_GUI",SWIG_From_int((int)(0x07000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_SKYCOIN",SWIG_From_int((int)(0x08000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_UTIL",SWIG_From_int((int)(0x09000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_VISOR",SWIG_From_int((int)(0x0A000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_WALLET",SWIG_From_int((int)(0x0B000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_PARAMS",SWIG_From_int((int)(0x0C000000))); + SWIG_Python_SetConstant(d, "SKY_PKG_LIBCGO",SWIG_From_int((int)(0x7F000000))); + SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidLength",SWIG_From_int((int)(0x02000000))); + SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidChecksum",SWIG_From_int((int)(0x02000001))); + SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidVersion",SWIG_From_int((int)(0x02000002))); + SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidPubKey",SWIG_From_int((int)(0x02000003))); + SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidFirstByte",SWIG_From_int((int)(0x02000004))); + SWIG_Python_SetConstant(d, "SKY_ErrAddressInvalidLastByte",SWIG_From_int((int)(0x02000005))); + SWIG_Python_SetConstant(d, "SKY_ErrBufferUnderflow",SWIG_From_int((int)(0x02000006))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidOmitEmpty",SWIG_From_int((int)(0x02000007))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthPubKey",SWIG_From_int((int)(0x02000008))); + SWIG_Python_SetConstant(d, "SKY_ErrPubKeyFromNullSecKey",SWIG_From_int((int)(0x02000009))); + SWIG_Python_SetConstant(d, "SKY_ErrPubKeyFromBadSecKey",SWIG_From_int((int)(0x0200000A))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthSecKey",SWIG_From_int((int)(0x0200000B))); + SWIG_Python_SetConstant(d, "SKY_ErrECHDInvalidPubKey",SWIG_From_int((int)(0x0200000C))); + SWIG_Python_SetConstant(d, "SKY_ErrECHDInvalidSecKey",SWIG_From_int((int)(0x0200000D))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthSig",SWIG_From_int((int)(0x0200000E))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthRipemd160",SWIG_From_int((int)(0x0200000F))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidLengthSHA256",SWIG_From_int((int)(0x02000010))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidBase58Char",SWIG_From_int((int)(0x02000011))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidBase58String",SWIG_From_int((int)(0x02000012))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidBase58Length",SWIG_From_int((int)(0x02000013))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidHexLength",SWIG_From_int((int)(0x02000014))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidBytesLength",SWIG_From_int((int)(0x02000015))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidPubKey",SWIG_From_int((int)(0x02000016))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidSecKey",SWIG_From_int((int)(0x02000017))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidSigPubKeyRecovery",SWIG_From_int((int)(0x02000018))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidSecKeyHex",SWIG_From_int((int)(0x02000019))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidAddressForSig",SWIG_From_int((int)(0x0200001A))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidHashForSig",SWIG_From_int((int)(0x0200001B))); + SWIG_Python_SetConstant(d, "SKY_ErrPubKeyRecoverMismatch",SWIG_From_int((int)(0x0200001C))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidSigInvalidPubKey",SWIG_From_int((int)(0x0200001D))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidSigValidity",SWIG_From_int((int)(0x0200001E))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidSigForMessage",SWIG_From_int((int)(0x0200001F))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidSecKyVerification",SWIG_From_int((int)(0x02000020))); + SWIG_Python_SetConstant(d, "SKY_ErrNullPubKeyFromSecKey",SWIG_From_int((int)(0x02000021))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidDerivedPubKeyFromSecKey",SWIG_From_int((int)(0x02000022))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidPubKeyFromHash",SWIG_From_int((int)(0x02000023))); + SWIG_Python_SetConstant(d, "SKY_ErrPubKeyFromSecKeyMismatch",SWIG_From_int((int)(0x02000024))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidLength",SWIG_From_int((int)(0x02000025))); + SWIG_Python_SetConstant(d, "SKY_ErrBitcoinWIFInvalidFirstByte",SWIG_From_int((int)(0x02000026))); + SWIG_Python_SetConstant(d, "SKY_ErrBitcoinWIFInvalidSuffix",SWIG_From_int((int)(0x02000027))); + SWIG_Python_SetConstant(d, "SKY_ErrBitcoinWIFInvalidChecksum",SWIG_From_int((int)(0x02000028))); + SWIG_Python_SetConstant(d, "SKY_ErrEmptySeed",SWIG_From_int((int)(0x02000029))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidSig",SWIG_From_int((int)(0x0200002A))); + SWIG_Python_SetConstant(d, "SKY_ErrMissingPassword",SWIG_From_int((int)(0x0200002B))); + SWIG_Python_SetConstant(d, "SKY_ErrDataTooLarge",SWIG_From_int((int)(0x0200002C))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidChecksumLength",SWIG_From_int((int)(0x0200002D))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidChecksum",SWIG_From_int((int)(0x0200002E))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidNonceLength",SWIG_From_int((int)(0x0200002F))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidBlockSize",SWIG_From_int((int)(0x02000030))); + SWIG_Python_SetConstant(d, "SKY_ErrReadDataHashFailed",SWIG_From_int((int)(0x02000031))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidPassword",SWIG_From_int((int)(0x02000032))); + SWIG_Python_SetConstant(d, "SKY_ErrReadDataLengthFailed",SWIG_From_int((int)(0x02000033))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidDataLength",SWIG_From_int((int)(0x02000034))); + SWIG_Python_SetConstant(d, "SKY_ErrTemporaryInsufficientBalance",SWIG_From_int((int)(0x03000000))); + SWIG_Python_SetConstant(d, "SKY_ErrAddress",SWIG_From_int((int)(0x03000001))); + SWIG_Python_SetConstant(d, "SKY_ErrWalletName",SWIG_From_int((int)(0x03000002))); + SWIG_Python_SetConstant(d, "SKY_ErrJSONMarshal",SWIG_From_int((int)(0x03000003))); + SWIG_Python_SetConstant(d, "SKY_WalletLoadError",SWIG_From_int((int)(0x03000004))); + SWIG_Python_SetConstant(d, "SKY_WalletSaveError",SWIG_From_int((int)(0x03000005))); + SWIG_Python_SetConstant(d, "SKY_ErrAddEarnedCoinHoursAdditionOverflow",SWIG_From_int((int)(0x04000000))); + SWIG_Python_SetConstant(d, "SKY_ErrUint64MultOverflow",SWIG_From_int((int)(0x04000001))); + SWIG_Python_SetConstant(d, "SKY_ErrUint64AddOverflow",SWIG_From_int((int)(0x04000002))); + SWIG_Python_SetConstant(d, "SKY_ErrUint32AddOverflow",SWIG_From_int((int)(0x04000003))); + SWIG_Python_SetConstant(d, "SKY_ErrUint64OverflowsInt64",SWIG_From_int((int)(0x04000004))); + SWIG_Python_SetConstant(d, "SKY_ErrInt64UnderflowsUint64",SWIG_From_int((int)(0x04000005))); + SWIG_Python_SetConstant(d, "SKY_ErrIntUnderflowsUint32",SWIG_From_int((int)(0x04000006))); + SWIG_Python_SetConstant(d, "SKY_ErrIntOverflowsUint32",SWIG_From_int((int)(0x04000007))); + SWIG_Python_SetConstant(d, "SKY_ErrPeerlistFull",SWIG_From_int((int)(0x06000000))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidAddress",SWIG_From_int((int)(0x06000001))); + SWIG_Python_SetConstant(d, "SKY_ErrNoLocalhost",SWIG_From_int((int)(0x06000002))); + SWIG_Python_SetConstant(d, "SKY_ErrNotExternalIP",SWIG_From_int((int)(0x06000003))); + SWIG_Python_SetConstant(d, "SKY_ErrPortTooLow",SWIG_From_int((int)(0x06000004))); + SWIG_Python_SetConstant(d, "SKY_ErrBlacklistedAddress",SWIG_From_int((int)(0x06000005))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectWriteFailed",SWIG_From_int((int)(0x06000007))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectSetReadDeadlineFailed",SWIG_From_int((int)(0x06000008))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectInvalidMessageLength",SWIG_From_int((int)(0x06000009))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectMalformedMessage",SWIG_From_int((int)(0x0600000A))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectUnknownMessage",SWIG_From_int((int)(0x0600000B))); + SWIG_Python_SetConstant(d, "SKY_ErrConnectionPoolClosed",SWIG_From_int((int)(0x0600000D))); + SWIG_Python_SetConstant(d, "SKY_ErrWriteQueueFull",SWIG_From_int((int)(0x0600000E))); + SWIG_Python_SetConstant(d, "SKY_ErrNoReachableConnections",SWIG_From_int((int)(0x0600000F))); + SWIG_Python_SetConstant(d, "SKY_ErrMaxDefaultConnectionsReached",SWIG_From_int((int)(0x06000010))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectVersionNotSupported",SWIG_From_int((int)(0x06000011))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectIntroductionTimeout",SWIG_From_int((int)(0x06000012))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectIsBlacklisted",SWIG_From_int((int)(0x06000014))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectSelf",SWIG_From_int((int)(0x06000015))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectConnectedTwice",SWIG_From_int((int)(0x06000016))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectIdle",SWIG_From_int((int)(0x06000017))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectNoIntroduction",SWIG_From_int((int)(0x06000018))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectIPLimitReached",SWIG_From_int((int)(0x06000019))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectMaxDefaultConnectionReached",SWIG_From_int((int)(0x0600001B))); + SWIG_Python_SetConstant(d, "SKY_ErrDisconnectMaxOutgoingConnectionsReached",SWIG_From_int((int)(0x0600001C))); + SWIG_Python_SetConstant(d, "SKY_ConnectionError",SWIG_From_int((int)(0x0600001D))); + SWIG_Python_SetConstant(d, "SKY_ErrTxnNoFee",SWIG_From_int((int)(0x09000000))); + SWIG_Python_SetConstant(d, "SKY_ErrTxnInsufficientFee",SWIG_From_int((int)(0x09000001))); + SWIG_Python_SetConstant(d, "SKY_ErrTxnInsufficientCoinHours",SWIG_From_int((int)(0x09000002))); + SWIG_Python_SetConstant(d, "SKY_ErrNegativeValue",SWIG_From_int((int)(0x09000003))); + SWIG_Python_SetConstant(d, "SKY_ErrTooManyDecimals",SWIG_From_int((int)(0x09000004))); + SWIG_Python_SetConstant(d, "SKY_ErrTooLarge",SWIG_From_int((int)(0x09000005))); + SWIG_Python_SetConstant(d, "SKY_ErrEmptyDirectoryName",SWIG_From_int((int)(0x09000006))); + SWIG_Python_SetConstant(d, "SKY_ErrDotDirectoryName",SWIG_From_int((int)(0x09000007))); + SWIG_Python_SetConstant(d, "SKY_ErrHistoryDBCorrupted",SWIG_From_int((int)(0x0A000000))); + SWIG_Python_SetConstant(d, "SKY_ErrUxOutNotExist",SWIG_From_int((int)(0x0A000001))); + SWIG_Python_SetConstant(d, "SKY_ErrNoHeadBlock",SWIG_From_int((int)(0x0A000002))); + SWIG_Python_SetConstant(d, "SKY_ErrMissingSignature",SWIG_From_int((int)(0x0A000003))); + SWIG_Python_SetConstant(d, "SKY_ErrUnspentNotExist",SWIG_From_int((int)(0x0A000004))); + SWIG_Python_SetConstant(d, "SKY_ErrVerifyStopped",SWIG_From_int((int)(0x0A000005))); + SWIG_Python_SetConstant(d, "SKY_ErrCreateBucketFailed",SWIG_From_int((int)(0x0A000000))); + SWIG_Python_SetConstant(d, "SKY_ErrBucketNotExist",SWIG_From_int((int)(0x0A000006))); + SWIG_Python_SetConstant(d, "SKY_ErrTxnViolatesHardConstraint",SWIG_From_int((int)(0x0A000007))); + SWIG_Python_SetConstant(d, "SKY_ErrTxnViolatesSoftConstraint",SWIG_From_int((int)(0x0A000008))); + SWIG_Python_SetConstant(d, "SKY_ErrTxnViolatesUserConstraint",SWIG_From_int((int)(0x0A000009))); + SWIG_Python_SetConstant(d, "SKY_ErrInsufficientBalance",SWIG_From_int((int)(0x0B000000))); + SWIG_Python_SetConstant(d, "SKY_ErrInsufficientHours",SWIG_From_int((int)(0x0B000001))); + SWIG_Python_SetConstant(d, "SKY_ErrZeroSpend",SWIG_From_int((int)(0x0B000002))); + SWIG_Python_SetConstant(d, "SKY_ErrSpendingUnconfirmed",SWIG_From_int((int)(0x0B000003))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidEncryptedField",SWIG_From_int((int)(0x0B000004))); + SWIG_Python_SetConstant(d, "SKY_ErrWalletEncrypted",SWIG_From_int((int)(0x0B000005))); + SWIG_Python_SetConstant(d, "SKY_ErrWalletNotEncrypted",SWIG_From_int((int)(0x0B000006))); + SWIG_Python_SetConstant(d, "SKY_ErrWalletMissingPassword",SWIG_From_int((int)(0x0B000007))); + SWIG_Python_SetConstant(d, "SKY_ErrMissingEncrypt",SWIG_From_int((int)(0x0B000008))); + SWIG_Python_SetConstant(d, "SKY_ErrWalletInvalidPassword",SWIG_From_int((int)(0x0B000009))); + SWIG_Python_SetConstant(d, "SKY_ErrMissingSeed",SWIG_From_int((int)(0x0B00000A))); + SWIG_Python_SetConstant(d, "SKY_ErrMissingAuthenticated",SWIG_From_int((int)(0x0B00000B))); + SWIG_Python_SetConstant(d, "SKY_ErrWrongCryptoType",SWIG_From_int((int)(0x0B00000C))); + SWIG_Python_SetConstant(d, "SKY_ErrWalletNotExist",SWIG_From_int((int)(0x0B00000D))); + SWIG_Python_SetConstant(d, "SKY_ErrSeedUsed",SWIG_From_int((int)(0x0B00000E))); + SWIG_Python_SetConstant(d, "SKY_ErrWalletAPIDisabled",SWIG_From_int((int)(0x0B00000F))); + SWIG_Python_SetConstant(d, "SKY_ErrSeedAPIDisabled",SWIG_From_int((int)(0x0B000010))); + SWIG_Python_SetConstant(d, "SKY_ErrWalletNameConflict",SWIG_From_int((int)(0x0B000011))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidHoursSelectionMode",SWIG_From_int((int)(0x0B000012))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidHoursSelectionType",SWIG_From_int((int)(0x0B000013))); + SWIG_Python_SetConstant(d, "SKY_ErrUnknownAddress",SWIG_From_int((int)(0x0B000014))); + SWIG_Python_SetConstant(d, "SKY_ErrUnknownUxOut",SWIG_From_int((int)(0x0B000015))); + SWIG_Python_SetConstant(d, "SKY_ErrNoUnspents",SWIG_From_int((int)(0x0B000016))); + SWIG_Python_SetConstant(d, "SKY_ErrNullChangeAddress",SWIG_From_int((int)(0x0B000017))); + SWIG_Python_SetConstant(d, "SKY_ErrMissingTo",SWIG_From_int((int)(0x0B000018))); + SWIG_Python_SetConstant(d, "SKY_ErrZeroCoinsTo",SWIG_From_int((int)(0x0B000019))); + SWIG_Python_SetConstant(d, "SKY_ErrNullAddressTo",SWIG_From_int((int)(0x0B00001A))); + SWIG_Python_SetConstant(d, "SKY_ErrDuplicateTo",SWIG_From_int((int)(0x0B00001B))); + SWIG_Python_SetConstant(d, "SKY_ErrMissingWalletID",SWIG_From_int((int)(0x0B00001C))); + SWIG_Python_SetConstant(d, "SKY_ErrIncludesNullAddress",SWIG_From_int((int)(0x0B00001D))); + SWIG_Python_SetConstant(d, "SKY_ErrDuplicateAddresses",SWIG_From_int((int)(0x0B00001E))); + SWIG_Python_SetConstant(d, "SKY_ErrZeroToHoursAuto",SWIG_From_int((int)(0x0B00001F))); + SWIG_Python_SetConstant(d, "SKY_ErrMissingModeAuto",SWIG_From_int((int)(0x0B000020))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidHoursSelMode",SWIG_From_int((int)(0x0B000021))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidModeManual",SWIG_From_int((int)(0x0B000022))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidHoursSelType",SWIG_From_int((int)(0x0B000023))); + SWIG_Python_SetConstant(d, "SKY_ErrMissingShareFactor",SWIG_From_int((int)(0x0B000024))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidShareFactor",SWIG_From_int((int)(0x0B000025))); + SWIG_Python_SetConstant(d, "SKY_ErrShareFactorOutOfRange",SWIG_From_int((int)(0x0B000026))); + SWIG_Python_SetConstant(d, "SKY_ErrWalletConstraint",SWIG_From_int((int)(0x0B000027))); + SWIG_Python_SetConstant(d, "SKY_ErrDuplicateUxOuts",SWIG_From_int((int)(0x0B000028))); + SWIG_Python_SetConstant(d, "SKY_ErrUnknownWalletID",SWIG_From_int((int)(0x0B000029))); + SWIG_Python_SetConstant(d, "SKY_ErrVerifySignatureInvalidInputsNils",SWIG_From_int((int)(0x0B000033))); + SWIG_Python_SetConstant(d, "SKY_ErrVerifySignatureInvalidSigLength",SWIG_From_int((int)(0x0B000034))); + SWIG_Python_SetConstant(d, "SKY_ErrVerifySignatureInvalidPubkeysLength",SWIG_From_int((int)(0x0B000035))); + SWIG_Python_SetConstant(d, "SKY_ErrInvalidDecimals",SWIG_From_int((int)(0x0C000000))); +#if PY_VERSION_HEX >= 0x03000000 + return m; +#else + return; +#endif +} + diff --git a/lib/swig/swig/structs.i b/lib/swig/swig/structs.i new file mode 100644 index 00000000..99c01275 --- /dev/null +++ b/lib/swig/swig/structs.i @@ -0,0 +1,29 @@ + +%include "api.client.go.h" + +%include "cipher.hash.go.h" +%include "cipher.address.go.h" +%include "cipher.bitcoin.go.h" +%include "cipher.crypto.go.h" +%include "cipher.encrypt.scrypt_chacha20poly1305.go.h" + +%include "cipher.secp256k1-go.secp256k1-go2.field.go.h" +%include "cipher.secp256k1-go.secp256k1-go2.xy.go.h" +%include "cipher.secp256k1-go.secp256k1-go2.xyz.go.h" + +%include "cli.cli.go.h" +%include "cli.create_rawtx.go.h" + +%include "coin.transactions.go.h" +%include "coin.block.go.h" +%include "coin.outputs.go.h" + +%include "util.http.json.go.h" + +%include "visor.readable.go.h" + +%include "wallet.balance.go.h" +%include "wallet.entry.go.h" +%include "wallet.notes.go.h" +%include "wallet.wallet.go.h" +