diff --git a/.fuse_hidden0003358400000017 b/.fuse_hidden0003358400000017 new file mode 100644 index 00000000..64fa72d4 Binary files /dev/null and b/.fuse_hidden0003358400000017 differ diff --git a/.gitignore b/.gitignore index e87c4f45..a33bef8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,30 +1,39 @@ # general things to ignore +lib/swig/build/ build/ +lib/swig/dist/ dist/ *.egg-info/ *.egg *.eggs *.py[cod] +lib/swig/__pycache__/ __pycache__/ +lib/swig/.pytest_cache .pytest_cache *.so *.o *.orig +lib/swig/Pyskycoin-* Pyskycoin-* +lib/swig/eggs eggs +lib/swig/wheelhouse/ wheelhouse/ - +*fuse* *~ #Copy of libskycoin.h in pyskycoin -swig/include/libskycoin.h +lib/swig/swig/include/libskycoin.h #Just for testing outside tox -tests/mytest.py +lib/swig/tests/mytest.py # due to using tox and pytest .tox +lib/swig/.tox .cache +lib/swig/.cache # Temp files *.swp diff --git a/Makefile b/Makefile index dd384dbd..52e4b6fc 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,8 @@ SKYCOIN_DIR = gopath/src/github.com/skycoin/skycoin SKYBUILD_DIR = $(SKYCOIN_DIR)/build BUILDLIBC_DIR = $(SKYBUILD_DIR)/libskycoin LIBC_DIR = $(SKYCOIN_DIR)/lib/cgo -LIBSWIG_DIR = swig +LIBSWIG_DIR = lib/swig/swig +LIBSWIG_PYSKYCOIN = lib/swig BUILD_DIR = build DIST_DIR = dist BIN_DIR = $(SKYCOIN_DIR)/bin @@ -42,9 +43,9 @@ $(BUILDLIBC_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES) $(HEADER_FILES) rm -f $(BUILDLIBC_DIR)/libskycoin.a GOPATH="$(GOPATH_DIR)" make -C $(SKYCOIN_DIR) build-libc-static ls $(BUILDLIBC_DIR) - rm -f swig/include/libskycoin.h - mkdir -p swig/include - grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > swig/include/libskycoin.h + rm -f $(LIBSWIG_PYSKYCOIN)/swig/include/libskycoin.h + mkdir -p $(LIBSWIG_PYSKYCOIN)/swig/include + grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > $(LIBSWIG_PYSKYCOIN)/swig/include/libskycoin.h build-libc: configure $(BUILDLIBC_DIR)/libskycoin.a ## Build libskycoin C client library @@ -60,36 +61,37 @@ build-swig: ## Generate Python C module from SWIG interfaces sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ fi \ } - rm -f ./skycoin/skycoin.py - rm -f swig/pyskycoin_wrap.c - rm -f swig/include/swig.h - cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h swig/include/ - swig -python -Iswig/include -I$(INCLUDE_DIR) -outdir ./skycoin/ -o swig/pyskycoin_wrap.c $(LIBSWIG_DIR)/pyskycoin.i + rm -f $(LIBSWIG_PYSKYCOIN)/skycoin/skycoin.py + rm -f $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c + rm -f $(LIBSWIG_PYSKYCOIN)/swig/include/swig.h + cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h $(LIBSWIG_PYSKYCOIN)/swig/include/ + swig -python -Ilib/swig/swig/include -I$(shell pwd)/gopath/src/github.com/skycoin/skycoin/include -outdir $(LIBSWIG_PYSKYCOIN)/skycoin/ -o $(LIBSWIG_PYSKYCOIN)/swig/pyskycoin_wrap.c $(LIBSWIG_DIR)/pyskycoin.i develop: ## Install PySkycoin for development - $(PYTHON) setup.py develop - (cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py develop) + $(PYTHON) $(PYTHON_CLIENT_DIR)/setup.py develop \ + (cd $(LIBSWIG_PYSKYCOIN) && $(PYTHON) setup.py develop) build-libc-swig: build-libc build-swig build: build-libc-swig ## Build PySkycoin Python package - $(PYTHON) setup.py build + $(PYTHON) $(LIBSWIG_PYSKYCOIN)/setup.py build (cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py build) test-ci: ## Run tests on (Travis) CI build - tox (cd $(PYTHON_CLIENT_DIR) && tox) + (cd $(PYTHON_CLIENT_DIR) && tox) + test: build-libc build-swig develop ## Run project test suite - $(PYTHON) setup.py test - (cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py test) + $(PYTHON) $(PYTHON_CLIENT_DIR)/setup.py test \ + (cd $(LIBSWIG_PYSKYCOIN) && $(PYTHON) setup.py test) sdist: ## Create source distribution archive - $(PYTHON) setup.py sdist --formats=gztar + $(PYTHON) $(LIBSWIG_PYSKYCOIN)/setup.py sdist --formats=gztar \ (cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py sdist --formats=gztar) bdist_wheel: ## Create architecture-specific binary wheel distribution archive - $(PYTHON) setup.py bdist_wheel + $(PYTHON) $(LIBSWIG_PYSKYCOIN)/setup.py bdist_wheel \ (cd $(PYTHON_CLIENT_DIR) && $(PYTHON) setup.py bdist_wheel) # FIXME: After libskycoin 32-bits binaries add bdist_manylinux_i686 diff --git a/MANIFEST.in b/lib/swig/MANIFEST.in similarity index 93% rename from MANIFEST.in rename to lib/swig/MANIFEST.in index 7749b2f7..1a486257 100644 --- a/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/README.md b/lib/swig/README.md similarity index 100% rename from README.md rename to lib/swig/README.md diff --git a/lib/swig/__init__.py b/lib/swig/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/setup.cfg b/lib/swig/setup.cfg similarity index 100% rename from setup.cfg rename to lib/swig/setup.cfg diff --git a/setup.py b/lib/swig/setup.py similarity index 100% rename from setup.py rename to lib/swig/setup.py diff --git a/skycoin/__init__.py b/lib/swig/skycoin/__init__.py similarity index 100% rename from skycoin/__init__.py rename to lib/swig/skycoin/__init__.py diff --git a/skycoin/skycoin.py b/lib/swig/skycoin/skycoin.py similarity index 100% rename from skycoin/skycoin.py rename to lib/swig/skycoin/skycoin.py diff --git a/lib/swig/swig/include/libskycoin.h b/lib/swig/swig/include/libskycoin.h new file mode 100644 index 00000000..69c78941 --- /dev/null +++ b/lib/swig/swig/include/libskycoin.h @@ -0,0 +1,1233 @@ +/* Created by "go tool cgo" - DO NOT EDIT. */ + +/* package command-line-arguments */ + + +#line 1 "cgo-builtin-prolog" + +#include /* for ptrdiff_t below */ + +#ifndef GO_CGO_EXPORT_PROLOGUE_H +#define GO_CGO_EXPORT_PROLOGUE_H + +typedef struct { const char *p; ptrdiff_t n; } _GoString_; + +#endif + +/* Start of preamble from import "C" comments. */ + + +#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_wallet.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.client.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.spend.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.wallet.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.webrpc.client.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.address.go" + + +#include +#include +#include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 11 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.base58.base58.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 3 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.bitcoin.go" + +#include +#include + +#include "skytypes.h" + + +#line 1 "cgo-generated-wrapper" + +#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.crypto.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.go-bip39.bip39.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.hash.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.add_private_key.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.check_balance.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 11 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.cli.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.create_rawtx.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 11 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_addrs.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.outputs.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli_helper.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.block.go" + + + #include + #include + + #include "skytypes.h" + #include "skyfee.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.math.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 11 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.outputs.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 13 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.transactions.go" + + + #include + #include + + #include "skytypes.h" + #include "skyfee.h" + +#line 1 "cgo-generated-wrapper" + +#line 3 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle.go" + + + #include + #include + + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 3 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle_helper.go" + + + #include + #include + + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 3 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_map.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/params.distribution.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/testutil.testutil.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.apputil.apputil.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.cert.cert.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.droplet.droplet.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.fee.fee.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.file.file.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.http.json.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.iputil.iputil.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.logging.logging.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.balance.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.crypto.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.entry.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.readable.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.wallet.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 7 "/media/maceo/Datas1/pyskycoin/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet_option.go" + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + + +/* End of preamble from import "C" comments. */ + + +/* Start of boilerplate cgo prologue. */ +#line 1 "cgo-gcc-export-header-prolog" + +#ifndef GO_CGO_PROLOGUE_H +#define GO_CGO_PROLOGUE_H + +typedef signed char GoInt8; +typedef unsigned char GoUint8; +typedef short GoInt16; +typedef unsigned short GoUint16; +typedef int GoInt32; +typedef unsigned int GoUint32; +typedef long long GoInt64; +typedef unsigned long long GoUint64; +typedef GoInt64 GoInt; +typedef GoUint64 GoUint; +typedef __SIZE_TYPE__ GoUintptr; +typedef float GoFloat32; +typedef double GoFloat64; + +/* + static assertion to make sure the file is being used on architecture + at least with matching size of GoInt. +*/ +typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1]; + +typedef _GoString_ GoString; +typedef void *GoMap; +typedef void *GoChan; +typedef struct { void *t; void *v; } GoInterface; +typedef struct { void *data; GoInt len; GoInt cap; } GoSlice; + +#endif + +/* End of boilerplate cgo prologue. */ + +#ifdef __cplusplus +extern "C" { +#endif + + +extern GoUint32 SKY_cli_GenerateWallet(GoString p0, Options__Handle* p1, GoUint64 p2, Wallet__Handle* p3); + +extern GoUint32 SKY_cli_MakeAlphanumericSeed(GoString_* p0); + +extern GoUint32 SKY_api_NewClient(GoString p0, Client__Handle* p1); + +extern GoUint32 SKY_api_Client_CSRF(Client__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Client_Version(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_Outputs(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_OutputsForAddresses(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_OutputsForHashes(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_CoinSupply(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_BlockByHash(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_BlockBySeq(Client__Handle p0, GoUint64 p1, Handle* p2); + +extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoUint64 p1, Handle* p2); + +extern GoUint32 SKY_api_Client_BlockchainMetadata(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_BlockchainProgress(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_Balance(Client__Handle p0, GoSlice p1, wallet__BalancePair* p2); + +extern GoUint32 SKY_api_Client_UxOut(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_AddressUxOuts(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_Wallet(Client__Handle p0, GoString p1, WalletResponse__Handle* p2); + +extern GoUint32 SKY_api_Client_Wallets(Client__Handle p0, Wallets__Handle* p1); + +extern GoUint32 SKY_api_Client_CreateUnencryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoInt p3, WalletResponse__Handle* p4); + +extern GoUint32 SKY_api_Client_CreateEncryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoString p3, GoInt p4, WalletResponse__Handle* p5); + +extern GoUint32 SKY_api_Client_NewWalletAddress(Client__Handle p0, GoString p1, GoInt p2, GoString p3, Strings__Handle* p4); + +extern GoUint32 SKY_api_Client_WalletBalance(Client__Handle p0, GoString p1, wallet__BalancePair* p2); + +extern GoUint32 SKY_api_Client_Spend(Client__Handle p0, GoString p1, GoString p2, GoUint64 p3, GoString p4, SpendResult_Handle* p5); + +extern GoUint32 SKY_api_Client_CreateTransaction(Client__Handle p0, Handle* p1, CreateTransactionResponse__Handle* p2); + +extern GoUint32 SKY_api_Client_UpdateWallet(Client__Handle p0, GoString p1, GoString p2); + +extern GoUint32 SKY_api_Client_WalletFolderName(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_NewSeed(Client__Handle p0, GoInt p1, GoString_* p2); + +extern GoUint32 SKY_api_Client_WalletSeed(Client__Handle p0, GoString p1, GoString p2, GoString_* p3); + +extern GoUint32 SKY_api_Client_NetworkConnection(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_NetworkConnections(Client__Handle p0, api__NetworkConnectionsFilter* p1, Handle* p2); + +extern GoUint32 SKY_api_Client_NetworkDefaultPeers(Client__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_api_Client_NetworkTrustedPeers(Client__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_api_Client_NetworkExchangedPeers(Client__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_api_Client_PendingTransactions(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_Transaction(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_Transactions(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_ConfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_UnconfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_InjectTransaction(Client__Handle p0, Transaction__Handle p1, GoString_* p2); + +extern GoUint32 SKY_api_Client_ResendUnconfirmedTransactions(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_RawTransaction(Client__Handle p0, GoString p1, GoString_* p2); + +extern GoUint32 SKY_api_Client_AddressTransactions(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_Richlist(Client__Handle p0, api__RichlistParams* p1, Handle* p2); + +extern GoUint32 SKY_api_Client_AddressCount(Client__Handle p0, GoUint64* p1); + +extern GoUint32 SKY_api_Client_UnloadWallet(Client__Handle p0, GoString p1); + +extern GoUint32 SKY_api_Client_Health(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_EncryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); + +extern GoUint32 SKY_api_Client_DecryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); + +extern GoUint32 SKY_api_NewCreateTransactionResponse(Transaction__Handle p0, GoSlice p1, CreateTransactionResponse__Handle* p2); + +extern GoUint32 SKY_api_NewCreatedTransaction(Transaction__Handle p0, GoSlice p1, CreatedTransaction__Handle* p2); + +extern GoUint32 SKY_api_CreatedTransaction_ToTransaction(CreatedTransaction__Handle p0, Transaction__Handle* p1); + +extern GoUint32 SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput* p0, cipher__SHA256* p1, CreatedTransactionOutput__Handle* p2); + +extern GoUint32 SKY_api_NewCreatedTransactionInput(wallet__UxBalance* p0, CreatedTransactionInput__Handle* p1); + +extern GoUint32 SKY_api_NewWalletResponse(Wallet__Handle p0, WalletResponse__Handle* p1); + +extern GoUint32 SKY_webrpc_NewClient(GoString p0, WebRpcClient__Handle* p1); + +extern GoUint32 SKY_webrpc_Client_CSRF(WebRpcClient__Handle p0, GoString_* p1); + +extern GoUint32 SKY_webrpc_Client_InjectTransaction(WebRpcClient__Handle p0, Transaction__Handle p1, GoString_* p2); + +extern GoUint32 SKY_webrpc_Client_GetStatus(WebRpcClient__Handle p0, StatusResult_Handle* p1); + +extern GoUint32 SKY_webrpc_Client_GetTransactionByID(WebRpcClient__Handle p0, GoString p1, TransactionResult_Handle* p2); + +extern GoUint32 SKY_webrpc_Client_GetAddressUxOuts(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_webrpc_Client_GetBlocksInRange(WebRpcClient__Handle p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); + +extern GoUint32 SKY_webrpc_Client_GetBlocksBySeq(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_webrpc_Client_GetLastBlocks(WebRpcClient__Handle p0, GoUint64 p1, coin__UxArray* p2); + +extern GoUint32 SKY_cipher_DecodeBase58Address(GoString p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_AddressFromSecKey(cipher__SecKey* p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); + +extern GoUint32 SKY_cipher_Address_Bytes(cipher__Address* p0, coin__UxArray* p1); + +extern GoUint32 SKY_cipher_Address_Verify(cipher__Address* p0, cipher__PubKey* p1); + +extern GoUint32 SKY_cipher_Address_String(cipher__Address* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_Address_Checksum(cipher__Address* p0, cipher__Checksum* p1); + +extern GoUint32 SKY_base58_String2Hex(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_base58_Base58_ToInt(GoString p0, GoInt* p1); + +extern GoUint32 SKY_base58_Base58_ToHex(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_base58_Base58_Base582Int(GoString p0, GoInt* p1); + +extern GoUint32 SKY_base58_Base582Hex(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_base58_Base58_BitHex(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_base58_Int2Base58(GoInt p0, GoString_* p1); + +extern GoUint32 SKY_base58_Hex2Base58(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_base58_Hex2Base58String(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_base58_Hex2Base58Str(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_cipher_DecodeBase58BitcoinAddress(GoString p0, cipher__BitcoinAddress* p1); + +extern void SKY_cipher_BitcoinAddressFromPubKey(cipher__PubKey* p0, cipher__BitcoinAddress* p1); + +extern GoUint32 SKY_cipher_BitcoinAddressFromSecKey(cipher__SecKey* p0, cipher__BitcoinAddress* p1); + +extern void SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher__SecKey* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__BitcoinAddress* p1); + +extern GoUint32 SKY_cipher_SecKeyFromBitcoinWalletImportFormat(GoString p0, cipher__SecKey* p1); + +extern GoUint8 SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress* p0); + +extern void SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress* p0, coin__UxArray* p1); + +extern GoUint32 SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress* p0, cipher__PubKey* p1); + +extern void SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress* p0, GoString_* p1); + +extern void SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress* p0, cipher__Checksum* p1); + +extern GoUint32 SKY_cipher_RandByte(GoInt p0, coin__UxArray* p1); + +extern GoUint32 SKY_cipher_NewPubKey(GoSlice p0, cipher__PubKey* p1); + +extern GoUint32 SKY_cipher_PubKeyFromHex(GoString p0, cipher__PubKey* p1); + +extern GoUint32 SKY_cipher_PubKeyFromSecKey(cipher__SecKey* p0, cipher__PubKey* p1); + +extern GoUint32 SKY_cipher_PubKeyFromSig(cipher__Sig* p0, cipher__SHA256* p1, cipher__PubKey* p2); + +extern GoUint32 SKY_cipher_PubKey_Verify(cipher__PubKey* p0); + +extern GoUint32 SKY_cipher_PubKey_Hex(cipher__PubKey* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_PubKeyRipemd160(cipher__PubKey* p0, cipher__Ripemd160* p1); + +extern GoUint32 SKY_cipher_NewSecKey(GoSlice p0, cipher__SecKey* p1); + +extern GoUint32 SKY_cipher_SecKeyFromHex(GoString p0, cipher__SecKey* p1); + +extern GoUint32 SKY_cipher_SecKey_Verify(cipher__SecKey* p0); + +extern GoUint32 SKY_cipher_SecKey_Hex(cipher__SecKey* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_ECDH(cipher__PubKey* p0, cipher__SecKey* p1, coin__UxArray* p2); + +extern GoUint32 SKY_cipher_NewSig(GoSlice p0, cipher__Sig* p1); + +extern GoUint32 SKY_cipher_SigFromHex(GoString p0, cipher__Sig* p1); + +extern GoUint32 SKY_cipher_Sig_Hex(cipher__Sig* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_SignHash(cipher__SHA256* p0, cipher__SecKey* p1, cipher__Sig* p2); + +extern GoUint32 SKY_cipher_VerifyAddressSignedHash(cipher__Address* p0, cipher__Sig* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_cipher_VerifySignedHash(cipher__Sig* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_VerifyPubKeySignedHash(cipher__PubKey* p0, cipher__Sig* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); + +extern GoUint32 SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher__PubKey* p1, cipher__SecKey* p2); + +extern GoUint32 SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, cipher__PubKey* p2, cipher__SecKey* p3); + +extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, GoInt p1, coin__UxArray* p2); + +extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, GoInt p1, coin__UxArray* p2, coin__UxArray* p3); + +extern GoUint32 SKY_cipher_CheckSecKey(cipher__SecKey* p0); + +extern GoUint32 SKY_cipher_CheckSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); + +extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); + +extern GoUint32 SKY_bip39_NewDefaultMnemomic(GoString_* p0); + +extern GoUint32 SKY_bip39_NewEntropy(GoInt p0, coin__UxArray* p1); + +extern GoUint32 SKY_bip39_NewMnemonic(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_bip39_MnemonicToByteArray(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_bip39_IsMnemonicValid(GoString p0, GoUint8* p1); + +extern GoUint32 SKY_cipher_Ripemd160_Set(cipher__Ripemd160* p0, GoSlice p1); + +extern GoUint32 SKY_cipher_HashRipemd160(GoSlice p0, cipher__Ripemd160* p1); + +extern GoUint32 SKY_cipher_SHA256_Set(cipher__SHA256* p0, GoSlice p1); + +extern GoUint32 SKY_cipher_SHA256_Hex(cipher__SHA256* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_SHA256_Xor(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_cipher_SumSHA256(GoSlice p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_SHA256FromHex(GoString p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_DoubleSHA256(GoSlice p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_AddSHA256(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_cipher_Merkle(GoSlice* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_SHA256_Null(cipher__SHA256* p0, GoUint8* p1); + +extern GoUint32 SKY_cli_AddPrivateKey(Wallet__Handle p0, GoString p1); + +extern GoUint32 SKY_cli_AddPrivateKeyToFile(GoString p0, GoString p1, PasswordReader__Handle p2); + +extern GoUint32 SKY_cli_CheckWalletBalance(WebRpcClient__Handle p0, GoString p1, BalanceResult_Handle* p2); + +extern GoUint32 SKY_cli_GetBalanceOfAddresses(WebRpcClient__Handle p0, GoSlice p1, BalanceResult_Handle* p2); + +extern GoUint32 SKY_cli_LoadConfig(Config__Handle* p0); + +extern GoUint32 SKY_cli_Config_FullWalletPath(Config__Handle p0, GoString_* p1); + +extern GoUint32 SKY_cli_Config_FullDBPath(Config__Handle p0, GoString_* p1); + +extern GoUint32 SKY_cli_NewApp(Config__Handle p0, App__Handle* p1); + +extern GoUint32 SKY_cli_RPCClientFromContext(Context__Handle p0, WebRpcClient__Handle* p1); + +extern GoUint32 SKY_cli_ConfigFromContext(Context__Handle p0, Config__Handle* p1); + +extern GoUint32 SKY_cli_PasswordFromBytes_Password(coin__UxArray* p0, coin__UxArray* p1); + +extern GoUint32 SKY_cli_PasswordFromTerm_Password(coin__UxArray* p0); + +extern GoUint32 SKY_cli_CreateRawTxFromWallet(WebRpcClient__Handle p0, GoString p1, GoString p2, GoSlice p3, PasswordReader__Handle p4, Transaction__Handle* p5); + +extern GoUint32 SKY_cli_CreateRawTxFromAddress(WebRpcClient__Handle p0, GoString p1, GoString p2, GoString p3, GoSlice p4, PasswordReader__Handle p5, Transaction__Handle* p6); + +extern GoUint32 SKY_cli_CreateRawTx(WebRpcClient__Handle p0, Wallet__Handle p1, GoSlice p2, GoString p3, GoSlice p4, GoSlice p5, Transaction__Handle* p6); + +extern GoUint32 SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, Transaction__Handle* p3); + +extern GoUint32 SKY_cli_GenerateAddressesInFile(GoString p0, GoUint64 p1, PasswordReader__Handle p2, coin__UxArray* p3); + +extern GoUint32 SKY_cli_FormatAddressesAsJSON(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_cli_AddressesToStrings(GoSlice p0, coin__UxArray* p1); + +extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableUnspentOutputsSummary_Handle* p2); + +extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, ReadableUnspentOutputsSummary_Handle* p2); + +extern GoUint32 SKY_cli_App_Run(App__Handle p0, GoString p1); + +extern GoUint32 SKY_cli_Config_GetCoin(Config__Handle p0, GoString_* p1); + +extern GoUint32 SKY_cli_Config_GetRPCAddress(Config__Handle p0, GoString_* p1); + +extern GoUint32 SKY_cli_RPCClientFromApp(App__Handle p0, WebRpcClient__Handle* p1); + +extern GoUint32 SKY_cli_Getenv(GoString p0, GoString_* p1); + +extern GoUint32 SKY_cli_Setenv(GoString p0, GoString p1); + +// nolint nakedret + +extern GoUint32 SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher__SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5); + +extern GoUint32 SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock* p0, cipher__PubKey* p1); + +extern GoUint32 SKY_coin_NewGenesisBlock(cipher__Address* p0, GoUint64 p1, GoUint64 p2, Block__Handle* p3); + +extern GoUint32 SKY_coin_Block_HashHeader(Block__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Block_PreHashHeader(Block__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Block_Time(Block__Handle p0, GoUint64* p1); + +extern GoUint32 SKY_coin_Block_Seq(Block__Handle p0, GoUint64* p1); + +extern GoUint32 SKY_coin_Block_HashBody(Block__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Block_Size(Block__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_coin_Block_String(Block__Handle p0, GoString_* p1); + +extern GoUint32 SKY_coin_Block_GetTransaction(Block__Handle p0, cipher__SHA256* p1, Transaction__Handle* p2, GoUint8* p3); + +extern GoUint32 SKY_coin_NewBlockHeader(coin__BlockHeader* p0, cipher__SHA256* p1, GoUint64 p2, GoUint64 p3, BlockBody__Handle p4, coin__BlockHeader* p5); + +extern GoUint32 SKY_coin_BlockHeader_Hash(coin__BlockHeader* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_BlockHeader_Bytes(coin__BlockHeader* p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_BlockHeader_String(coin__BlockHeader* p0, GoString_* p1); + +extern GoUint32 SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_BlockBody_Size(BlockBody__Handle* p0, GoUint32* p1); + +extern GoUint32 SKY_coin_BlockBody_Bytes(BlockBody__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_CreateUnspents(coin__BlockHeader* p0, Transaction__Handle p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_CreateUnspent(coin__BlockHeader* p0, Transaction__Handle p1, GoInt p2, coin__UxOut* p3); + +extern GoUint32 SKY_coin_GetBlockObject(Block__Handle p0, coin__Block** p1); + +extern GoUint32 SKY_coin_GetBlockBody(Block__Handle p0, BlockBody__Handle* p1); + +extern GoUint32 SKY_coin_NewEmptyBlock(Transactions__Handle p0, Block__Handle* p1); + +extern GoUint32 SKY_coin_AddUint64(GoUint64 p0, GoUint64 p1, GoUint64* p2); + +extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); + +extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); + +extern GoUint32 SKY_coin_IntToUint32(GoInt p0, GoUint32* p1); + +extern GoUint32 SKY_coin_UxOut_Hash(coin__UxOut* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_UxOut_SnapshotHash(coin__UxOut* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_UxBody_Hash(coin__UxBody* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_UxOut_CoinHours(coin__UxOut* p0, GoUint64 p1, GoUint64* p2); + +extern GoUint32 SKY_coin_UxArray_Hashes(coin__UxArray* p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_UxArray_HasDupes(coin__UxArray* p0, GoUint8* p1); + +extern GoUint32 SKY_coin_UxArray_Sort(coin__UxArray* p0); + +extern GoUint32 SKY_coin_UxArray_Len(coin__UxArray* p0, GoInt* p1); + +extern GoUint32 SKY_coin_UxArray_Less(coin__UxArray* p0, GoInt p1, GoInt p2, GoUint8* p3); + +extern GoUint32 SKY_coin_UxArray_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); + +extern GoUint32 SKY_coin_UxArray_Coins(coin__UxArray* p0, GoUint64* p1); + +extern GoUint32 SKY_coin_UxArray_CoinHours(coin__UxArray* p0, GoUint64 p1, GoUint64* p2); + +extern GoUint32 SKY_coin_UxArray_Sub(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_UxArray_Add(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_NewAddressUxOuts(coin__UxArray* p0, AddressUxOuts_Handle* p1); + +extern GoUint32 SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_AddressUxOuts_Sub(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_Add(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_HasKey(AddressUxOuts_Handle p0, cipher__Address* p1, GoUint8* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_GetOutputLength(AddressUxOuts_Handle p0, cipher__Address* p1, GoInt* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_Length(AddressUxOuts_Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_Create_Transaction(Transaction__Handle* p0); + +extern GoUint32 SKY_coin_Transaction_Copy(Transaction__Handle p0, Transaction__Handle* p1); + +extern GoUint32 SKY_coin_GetTransactionObject(Transaction__Handle p0, coin__Transaction** p1); + +extern GoUint32 SKY_coin_Transaction_ResetInputs(Transaction__Handle p0, GoInt p1); + +extern GoUint32 SKY_coin_Transaction_GetInputsCount(Transaction__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transaction_GetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); + +extern GoUint32 SKY_coin_Transaction_SetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); + +extern GoUint32 SKY_coin_Transaction_GetOutputsCount(Transaction__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transaction_GetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); + +extern GoUint32 SKY_coin_Transaction_SetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); + +extern GoUint32 SKY_coin_Transaction_GetSignaturesCount(Transaction__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transaction_GetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); + +extern GoUint32 SKY_coin_Transaction_SetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); + +extern GoUint32 SKY_coin_Transaction_PushSignature(Transaction__Handle p0, cipher__Sig* p1); + +extern GoUint32 SKY_coin_Transaction_ResetOutputs(Transaction__Handle p0, GoInt p1); + +extern GoUint32 SKY_coin_Transaction_ResetSignatures(Transaction__Handle p0, GoInt p1); + +extern GoUint32 SKY_coin_Transaction_Verify(Transaction__Handle p0); + +extern GoUint32 SKY_coin_Transaction_VerifyInput(Transaction__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_Transaction_PushInput(Transaction__Handle p0, cipher__SHA256* p1, GoUint16* p2); + +extern GoUint32 SKY_coin_TransactionOutput_UxID(coin__TransactionOutput* p0, cipher__SHA256* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_coin_Transaction_PushOutput(Transaction__Handle p0, cipher__Address* p1, GoUint64 p2, GoUint64 p3); + +extern GoUint32 SKY_coin_Transaction_SignInputs(Transaction__Handle p0, GoSlice p1); + +extern GoUint32 SKY_coin_Transaction_Size(Transaction__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_coin_Transaction_Hash(Transaction__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Transaction_SizeHash(Transaction__Handle p0, GoUint32* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_coin_Transaction_TxID(Transaction__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_Transaction_TxIDHex(Transaction__Handle p0, GoString_* p1); + +extern GoUint32 SKY_coin_Transaction_UpdateHeader(Transaction__Handle p0); + +extern GoUint32 SKY_coin_Transaction_HashInner(Transaction__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Transaction_Serialize(Transaction__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_TransactionDeserialize(GoSlice p0, Transaction__Handle* p1); + +extern GoUint32 SKY_coin_Transaction_OutputHours(Transaction__Handle p0, GoUint64* p1); + +extern GoUint32 SKY_coin_Create_Transactions(Transactions__Handle* p0); + +extern GoUint32 SKY_coin_GetTransactionsObject(Transactions__Handle p0, coin__UxArray** p1); + +extern GoUint32 SKY_coin_Transactions_Length(Transactions__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transactions_Add(Transactions__Handle p0, Transaction__Handle p1); + +extern GoUint32 SKY_coin_Transactions_Fees(Transactions__Handle p0, FeeCalculator* p1, GoUint64* p2); + +extern GoUint32 SKY_coin_Transactions_GetAt(Transactions__Handle p0, GoInt p1, Transaction__Handle* p2); + +extern GoUint32 SKY_coin_Transactions_Hashes(Transactions__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_Transactions_Size(Transactions__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_coin_Transactions_TruncateBytesTo(Transactions__Handle p0, GoUint32 p1, Transactions__Handle* p2); + +extern GoUint32 SKY_coin_SortTransactions(Transactions__Handle p0, FeeCalculator* p1, Transactions__Handle* p2); + +extern GoUint32 SKY_coin_NewSortableTransactions(Transactions__Handle p0, FeeCalculator* p1, SortableTransactionResult_Handle* p2); + +extern GoUint32 SKY_coin_SortableTransactions_Sort(SortableTransactionResult_Handle p0); + +extern GoUint32 SKY_coin_SortableTransactions_Len(SortableTransactionResult_Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_SortableTransactions_Less(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2, GoUint8* p3); + +extern GoUint32 SKY_coin_SortableTransactions_Swap(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2); + +extern GoUint32 SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray* p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_VerifyTransactionHoursSpending(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); + +extern void SKY_handle_close(Handle p0); + +extern GoUint32 SKY_handle_copy(Handle p0, Handle* p1); + +extern GoUint32 SKY_JsonEncode_Handle(Handle p0, GoString_* p1); + +extern GoUint32 SKY_Handle_Progress_GetCurrent(Handle p0, GoUint64* p1); + +extern GoUint32 SKY_Handle_Block_GetHeadSeq(Handle p0, GoUint64* p1); + +extern GoUint32 SKY_Handle_Block_GetHeadHash(Handle p0, GoString_* p1); + +extern GoUint32 SKY_Handle_Block_GetPreviousBlockHash(Handle p0, GoString_* p1); + +extern GoUint32 SKY_Handle_Blocks_GetAt(Handle p0, GoUint64 p1, Handle* p2); + +extern GoUint32 SKY_Handle_Blocks_GetCount(Handle p0, GoUint64* p1); + +extern GoUint32 SKY_Handle_Connections_GetCount(Handle p0, GoUint64* p1); + +extern GoUint32 SKY_Handle_Strings_GetCount(Strings__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_Handle_Strings_Sort(Strings__Handle p0); + +extern GoUint32 SKY_Handle_Strings_GetAt(Strings__Handle p0, GoInt p1, GoString_* p2); + +extern GoUint32 SKY_api_Handle_Client_GetWalletDir(Client__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_Client_GetWalletFileName(WalletResponse__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_Client_GetWalletLabel(WalletResponse__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_Client_GetWalletFullPath(Client__Handle p0, WalletResponse__Handle p1, GoString_* p2); + +extern GoUint32 SKY_api_Handle_GetWalletMeta(Wallet__Handle p0, GoStringMap_* p1); + +extern GoUint32 SKY_api_Handle_GetWalletEntriesCount(Wallet__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_api_Handle_Client_GetWalletResponseEntriesCount(WalletResponse__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_api_Handle_WalletGetEntry(Wallet__Handle p0, GoUint32 p1, cipher__Address* p2, cipher__PubKey* p3); + +extern GoUint32 SKY_api_Handle_WalletResponseGetEntry(WalletResponse__Handle p0, GoUint32 p1, GoString_* p2, GoString_* p3); + +extern GoUint32 SKY_api_Handle_WalletResponseIsEncrypted(WalletResponse__Handle p0, GoUint8* p1); + +extern GoUint32 SKY_api_Handle_WalletResponseGetCryptoType(WalletResponse__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_WalletsResponseGetCount(Wallets__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_api_Handle_WalletsResponseGetAt(Wallets__Handle p0, GoUint32 p1, WalletResponse__Handle* p2); + +extern GoUint32 SKY_api_Handle_GetWalletFolderAddress(Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_GetWalletSeed(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_GetWalletLastSeed(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_GetBuildInfoData(BuildInfo_Handle p0, GoString_* p1, GoString_* p2, GoString_* p3); + +extern GoUint32 SKY_map_Get(GoStringMap_* p0, GoString p1, GoString_* p2); + +extern GoUint8 SKY_map_HasKey(GoStringMap_* p0, GoString p1); + +extern GoUint32 SKY_map_Close(GoStringMap_* p0); + +extern void SKY_params_GetDistributionAddresses(coin__UxArray* p0); + +extern void SKY_params_GetUnlockedDistributionAddresses(coin__UxArray* p0); + +extern void SKY_params_GetLockedDistributionAddresses(coin__UxArray* p0); + +extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); + +extern GoUint32 SKY_apputil_CatchInterruptPanic(); + +extern GoUint32 SKY_apputil_CatchDebug(); + +extern GoUint32 SKY_apputil_PrintProgramStatus(); + +extern GoUint32 SKY_certutil_NewTLSCertPair(GoString p0, GoString p1, GoSlice p2, coin__UxArray* p3, coin__UxArray* p4); + +extern GoUint32 SKY_droplet_FromString(GoString p0, GoUint64* p1); + +extern GoUint32 SKY_droplet_ToString(GoUint64 p0, GoString_* p1); + +extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1, GoUint32 p2); + +extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1, GoUint32 p2); + +extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint32 p1, GoUint64* p2); + +extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint32 p1, GoUint64* p2); + +extern GoUint32 SKY_fee_TransactionFee(Transaction__Handle p0, GoUint64 p1, coin__UxArray* p2, GoUint64* p3); + +extern GoUint32 SKY_file_InitDataDir(GoString p0, GoString_* p1); + +extern GoUint32 SKY_file_UserHome(GoString_* p0); + +extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); + +extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); + +extern GoUint32 SKY_httphelper_Address_UnmarshalJSON(httphelper__Address* p0, GoSlice p1); + +extern GoUint32 SKY_httphelper_Address_MarshalJSON(httphelper__Address* p0, coin__UxArray* p1); + +extern GoUint32 SKY_httphelper_Coins_UnmarshalJSON(httphelper__Coins* p0, GoSlice p1); + +extern GoUint32 SKY_httphelper_Coins_MarshalJSON(httphelper__Coins* p0, coin__UxArray* p1); + +extern GoUint32 SKY_httphelper_Coins_Value(httphelper__Coins* p0, GoUint64* p1); + +extern GoUint32 SKY_httphelper_Hours_UnmarshalJSON(httphelper__Hours* p0, GoSlice p1); + +extern GoUint32 SKY_httphelper_Hours_MarshalJSON(httphelper__Hours* p0, coin__UxArray* p1); + +extern GoUint32 SKY_httphelper_Hours_Value(httphelper__Hours* p0, GoUint64* p1); + +extern GoUint32 SKY_iputil_LocalhostIP(GoString_* p0); + +extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); + +extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); + +extern GoUint32 SKY_logging_EnableColors(); + +extern GoUint32 SKY_logging_DisableColors(); + +extern GoUint32 SKY_logging_Disable(); + +extern GoUint32 SKY_wallet_NewBalance(GoUint64 p0, GoUint64 p1, wallet__Balance* p2); + +extern GoUint32 SKY_wallet_NewBalanceFromUxOut(GoUint64 p0, coin__UxOut* p1, wallet__Balance* p2); + +extern GoUint32 SKY_wallet_Balance_Add(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); + +extern GoUint32 SKY_wallet_Balance_Sub(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); + +extern GoUint32 SKY_wallet_Balance_Equals(wallet__Balance* p0, wallet__Balance* p1, GoUint8* p2); + +extern GoUint32 SKY_wallet_Balance_IsZero(wallet__Balance* p0, GoUint8* p1); + +extern GoUint32 SKY_wallet_CryptoTypeFromString(GoString p0, GoString_* p1); + +extern GoUint32 SKY_wallet_Entry_Verify(wallet__Entry* p0); + +extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); + +extern GoUint32 SKY_wallet_NewReadableEntry(GoString p0, wallet__Entry* p1, ReadableEntry__Handle* p2); + +extern GoUint32 SKY_wallet_LoadReadableWallet(GoString p0, ReadableWallet__Handle* p1); + +extern GoUint32 SKY_wallet_ReadableWallet_Save(ReadableWallet__Handle p0, GoString p1); + +extern GoUint32 SKY_wallet_ReadableWallet_Load(ReadableWallet__Handle p0, GoString p1); + +extern GoUint32 SKY_wallet_ReadableWallet_Erase(ReadableWallet__Handle p0); + +extern GoUint32 SKY_wallet_NewError(GoInterface p0); + +extern GoUint32 SKY_wallet_NewWallet(GoString p0, Options__Handle p1, Wallet__Handle* p2); + +extern GoUint32 SKY_wallet_Wallet_Lock(Wallet__Handle p0, GoSlice p1, GoString p2); + +extern GoUint32 SKY_wallet_Wallet_Unlock(Wallet__Handle p0, GoSlice p1, Wallet__Handle* p2); + +extern GoUint32 SKY_wallet_Load(GoString p0, Wallet__Handle* p1); + +extern GoUint32 SKY_wallet_Wallet_Save(Wallet__Handle p0, GoString p1); + +extern GoUint32 SKY_wallet_Wallet_Validate(Wallet__Handle p0); + +extern GoUint32 SKY_wallet_Wallet_Type(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_wallet_Wallet_Version(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_wallet_Wallet_Filename(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_wallet_Wallet_Label(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_wallet_Wallet_IsEncrypted(Wallet__Handle p0, GoUint8* p1); + +extern GoUint32 SKY_wallet_Wallet_GenerateAddresses(Wallet__Handle p0, GoUint64 p1, coin__UxArray* p2); + +extern GoUint32 SKY_wallet_Wallet_GetAddresses(Wallet__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_wallet_Wallet_GetEntry(Wallet__Handle p0, cipher__Address* p1, wallet__Entry* p2, GoUint8* p3); + +extern GoUint32 SKY_wallet_Wallet_AddEntry(Wallet__Handle p0, wallet__Entry* p1); + +extern GoUint32 SKY_wallet_DistributeSpendHours(GoUint64 p0, GoUint64 p1, GoUint8 p2, GoUint64* p3, coin__UxArray* p4, GoUint64* p5); + +extern GoUint32 SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, GoUint64 p1, coin__UxArray* p2); + +extern GoUint32 SKY_wallet_NewUxBalances(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); + +extern GoUint32 SKY_wallet_NewUxBalance(GoUint64 p0, coin__UxOut* p1, wallet__UxBalance* p2); + +extern GoUint32 SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); + +extern GoUint32 SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); + +extern GoUint32 SKY_wallet_CreateOptionsHandle(GoString p0, GoString p1, GoString p2, GoUint8 p3, GoString p4, GoString p5, GoUint64 p6, Options__Handle* p7); + +#ifdef __cplusplus +} +#endif diff --git a/swig/include/swig.h b/lib/swig/swig/include/swig.h similarity index 100% rename from swig/include/swig.h rename to lib/swig/swig/include/swig.h diff --git a/swig/pyskycoin.i b/lib/swig/swig/pyskycoin.i similarity index 100% rename from swig/pyskycoin.i rename to lib/swig/swig/pyskycoin.i diff --git a/swig/pyskycoin_wrap.c b/lib/swig/swig/pyskycoin_wrap.c similarity index 100% rename from swig/pyskycoin_wrap.c rename to lib/swig/swig/pyskycoin_wrap.c diff --git a/swig/python_addresses.i b/lib/swig/swig/python_addresses.i similarity index 100% rename from swig/python_addresses.i rename to lib/swig/swig/python_addresses.i diff --git a/swig/python_basic.i b/lib/swig/swig/python_basic.i similarity index 100% rename from swig/python_basic.i rename to lib/swig/swig/python_basic.i diff --git a/swig/python_mem.i b/lib/swig/swig/python_mem.i similarity index 100% rename from swig/python_mem.i rename to lib/swig/swig/python_mem.i diff --git a/swig/python_pubkeys.i b/lib/swig/swig/python_pubkeys.i similarity index 100% rename from swig/python_pubkeys.i rename to lib/swig/swig/python_pubkeys.i diff --git a/swig/python_seckeys.i b/lib/swig/swig/python_seckeys.i similarity index 100% rename from swig/python_seckeys.i rename to lib/swig/swig/python_seckeys.i diff --git a/swig/python_sha256s.i b/lib/swig/swig/python_sha256s.i similarity index 100% rename from swig/python_sha256s.i rename to lib/swig/swig/python_sha256s.i diff --git a/swig/python_skycoin.callback.i b/lib/swig/swig/python_skycoin.callback.i similarity index 100% rename from swig/python_skycoin.callback.i rename to lib/swig/swig/python_skycoin.callback.i diff --git a/swig/python_skycoin.cipher.crypto.i b/lib/swig/swig/python_skycoin.cipher.crypto.i similarity index 100% rename from swig/python_skycoin.cipher.crypto.i rename to lib/swig/swig/python_skycoin.cipher.crypto.i diff --git a/swig/python_skycoin.coin.i b/lib/swig/swig/python_skycoin.coin.i similarity index 100% rename from swig/python_skycoin.coin.i rename to lib/swig/swig/python_skycoin.coin.i diff --git a/swig/python_uxarray.i b/lib/swig/swig/python_uxarray.i similarity index 100% rename from swig/python_uxarray.i rename to lib/swig/swig/python_uxarray.i diff --git a/swig/structs.i b/lib/swig/swig/structs.i similarity index 100% rename from swig/structs.i rename to lib/swig/swig/structs.i diff --git a/tests/__init__.py b/lib/swig/tests/__init__.py similarity index 100% rename from tests/__init__.py rename to lib/swig/tests/__init__.py diff --git a/tests/test_cipher_address.py b/lib/swig/tests/test_cipher_address.py similarity index 100% rename from tests/test_cipher_address.py rename to lib/swig/tests/test_cipher_address.py diff --git a/tests/test_cipher_bip39.py b/lib/swig/tests/test_cipher_bip39.py similarity index 100% rename from tests/test_cipher_bip39.py rename to lib/swig/tests/test_cipher_bip39.py diff --git a/tests/test_cipher_bitcoin.py b/lib/swig/tests/test_cipher_bitcoin.py similarity index 100% rename from tests/test_cipher_bitcoin.py rename to lib/swig/tests/test_cipher_bitcoin.py diff --git a/tests/test_cipher_crypto.py b/lib/swig/tests/test_cipher_crypto.py similarity index 100% rename from tests/test_cipher_crypto.py rename to lib/swig/tests/test_cipher_crypto.py diff --git a/tests/test_cipher_hash.py b/lib/swig/tests/test_cipher_hash.py similarity index 100% rename from tests/test_cipher_hash.py rename to lib/swig/tests/test_cipher_hash.py diff --git a/tests/test_cipher_scrypt_chacha20poly1305_test.py b/lib/swig/tests/test_cipher_scrypt_chacha20poly1305_test.py similarity index 100% rename from tests/test_cipher_scrypt_chacha20poly1305_test.py rename to lib/swig/tests/test_cipher_scrypt_chacha20poly1305_test.py diff --git a/tests/test_coin_block.py b/lib/swig/tests/test_coin_block.py similarity index 100% rename from tests/test_coin_block.py rename to lib/swig/tests/test_coin_block.py diff --git a/tests/test_coin_math.py b/lib/swig/tests/test_coin_math.py similarity index 100% rename from tests/test_coin_math.py rename to lib/swig/tests/test_coin_math.py diff --git a/tests/test_coin_math64bits.py b/lib/swig/tests/test_coin_math64bits.py similarity index 100% rename from tests/test_coin_math64bits.py rename to lib/swig/tests/test_coin_math64bits.py diff --git a/tests/test_coin_outputs.py b/lib/swig/tests/test_coin_outputs.py similarity index 100% rename from tests/test_coin_outputs.py rename to lib/swig/tests/test_coin_outputs.py diff --git a/tests/test_coin_transaction.py b/lib/swig/tests/test_coin_transaction.py similarity index 100% rename from tests/test_coin_transaction.py rename to lib/swig/tests/test_coin_transaction.py diff --git a/tests/test_testsuite.py b/lib/swig/tests/test_testsuite.py old mode 100755 new mode 100644 similarity index 100% rename from tests/test_testsuite.py rename to lib/swig/tests/test_testsuite.py diff --git a/tests/test_testsuite_test.py b/lib/swig/tests/test_testsuite_test.py old mode 100755 new mode 100644 similarity index 100% rename from tests/test_testsuite_test.py rename to lib/swig/tests/test_testsuite_test.py diff --git a/tests/test_util_droplet.py b/lib/swig/tests/test_util_droplet.py similarity index 100% rename from tests/test_util_droplet.py rename to lib/swig/tests/test_util_droplet.py diff --git a/tests/test_util_fee.py b/lib/swig/tests/test_util_fee.py similarity index 100% rename from tests/test_util_fee.py rename to lib/swig/tests/test_util_fee.py diff --git a/tests/test_util_param_distribution.py b/lib/swig/tests/test_util_param_distribution.py similarity index 100% rename from tests/test_util_param_distribution.py rename to lib/swig/tests/test_util_param_distribution.py diff --git a/tests/utils/__init__.py b/lib/swig/tests/utils/__init__.py similarity index 100% rename from tests/utils/__init__.py rename to lib/swig/tests/utils/__init__.py diff --git a/tests/utils/transutil.py b/lib/swig/tests/utils/transutil.py similarity index 100% rename from tests/utils/transutil.py rename to lib/swig/tests/utils/transutil.py diff --git a/tox.ini b/lib/swig/tox.ini similarity index 100% rename from tox.ini rename to lib/swig/tox.ini diff --git a/venv/bin/activate b/venv/bin/activate new file mode 100644 index 00000000..ec780b63 --- /dev/null +++ b/venv/bin/activate @@ -0,0 +1,76 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + +deactivate () { + # reset old environment variables + if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then + PATH="${_OLD_VIRTUAL_PATH:-}" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then + PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # This should detect bash and zsh, which have a hash command that must + # be called to get it to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r + fi + + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then + PS1="${_OLD_VIRTUAL_PS1:-}" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + if [ ! "$1" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV="/media/maceo/Datas1/pyskycoin/venv" +export VIRTUAL_ENV + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/bin:$PATH" +export PATH + +# unset PYTHONHOME if set +# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) +# could use `if (set -u; : $PYTHONHOME) ;` in bash +if [ -n "${PYTHONHOME:-}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then + _OLD_VIRTUAL_PS1="${PS1:-}" + if [ "x(venv) " != x ] ; then + PS1="(venv) ${PS1:-}" + else + if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then + # special case for Aspen magic directories + # see http://www.zetadev.com/software/aspen/ + PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1" + else + PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1" + fi + fi + export PS1 +fi + +# This should detect bash and zsh, which have a hash command that must +# be called to get it to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r +fi diff --git a/venv/bin/activate.csh b/venv/bin/activate.csh new file mode 100644 index 00000000..68efc58c --- /dev/null +++ b/venv/bin/activate.csh @@ -0,0 +1,37 @@ +# This file must be used with "source bin/activate.csh" *from csh*. +# You cannot run it directly. +# Created by Davide Di Blasi . +# Ported to Python 3.3 venv by Andrew Svetlov + +alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV "/media/maceo/Datas1/pyskycoin/venv" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + +set _OLD_VIRTUAL_PROMPT="$prompt" + +if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then + if ("venv" != "") then + set env_name = "venv" + else + if (`basename "VIRTUAL_ENV"` == "__") then + # special case for Aspen magic directories + # see http://www.zetadev.com/software/aspen/ + set env_name = `basename \`dirname "$VIRTUAL_ENV"\`` + else + set env_name = `basename "$VIRTUAL_ENV"` + endif + endif + set prompt = "[$env_name] $prompt" + unset env_name +endif + +alias pydoc python -m pydoc + +rehash diff --git a/venv/bin/activate.fish b/venv/bin/activate.fish new file mode 100644 index 00000000..b9176ef3 --- /dev/null +++ b/venv/bin/activate.fish @@ -0,0 +1,75 @@ +# This file must be used with ". bin/activate.fish" *from fish* (http://fishshell.org) +# you cannot run it directly + +function deactivate -d "Exit virtualenv and return to normal shell environment" + # reset old environment variables + if test -n "$_OLD_VIRTUAL_PATH" + set -gx PATH $_OLD_VIRTUAL_PATH + set -e _OLD_VIRTUAL_PATH + end + if test -n "$_OLD_VIRTUAL_PYTHONHOME" + set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME + set -e _OLD_VIRTUAL_PYTHONHOME + end + + if test -n "$_OLD_FISH_PROMPT_OVERRIDE" + functions -e fish_prompt + set -e _OLD_FISH_PROMPT_OVERRIDE + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + end + + set -e VIRTUAL_ENV + if test "$argv[1]" != "nondestructive" + # Self destruct! + functions -e deactivate + end +end + +# unset irrelevant variables +deactivate nondestructive + +set -gx VIRTUAL_ENV "/media/maceo/Datas1/pyskycoin/venv" + +set -gx _OLD_VIRTUAL_PATH $PATH +set -gx PATH "$VIRTUAL_ENV/bin" $PATH + +# unset PYTHONHOME if set +if set -q PYTHONHOME + set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME + set -e PYTHONHOME +end + +if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" + # fish uses a function instead of an env var to generate the prompt. + + # save the current fish_prompt function as the function _old_fish_prompt + functions -c fish_prompt _old_fish_prompt + + # with the original prompt function renamed, we can override with our own. + function fish_prompt + # Save the return status of the last command + set -l old_status $status + + # Prompt override? + if test -n "(venv) " + printf "%s%s" "(venv) " (set_color normal) + else + # ...Otherwise, prepend env + set -l _checkbase (basename "$VIRTUAL_ENV") + if test $_checkbase = "__" + # special case for Aspen magic directories + # see http://www.zetadev.com/software/aspen/ + printf "%s[%s]%s " (set_color -b blue white) (basename (dirname "$VIRTUAL_ENV")) (set_color normal) + else + printf "%s(%s)%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal) + end + end + + # Restore the return status of the previous command. + echo "exit $old_status" | . + _old_fish_prompt + end + + set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" +end diff --git a/venv/bin/easy_install b/venv/bin/easy_install new file mode 100644 index 00000000..1307ec9c --- /dev/null +++ b/venv/bin/easy_install @@ -0,0 +1,12 @@ +#!/media/maceo/Datas1/pyskycoin/venv/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' +__requires__ = 'setuptools==39.1.0' +import re +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit( + load_entry_point('setuptools==39.1.0', 'console_scripts', 'easy_install')() + ) diff --git a/venv/bin/easy_install-3.6 b/venv/bin/easy_install-3.6 new file mode 100644 index 00000000..89f40100 --- /dev/null +++ b/venv/bin/easy_install-3.6 @@ -0,0 +1,12 @@ +#!/media/maceo/Datas1/pyskycoin/venv/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6' +__requires__ = 'setuptools==39.1.0' +import re +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit( + load_entry_point('setuptools==39.1.0', 'console_scripts', 'easy_install-3.6')() + ) diff --git a/venv/bin/pip b/venv/bin/pip new file mode 100644 index 00000000..c481a8e5 --- /dev/null +++ b/venv/bin/pip @@ -0,0 +1,12 @@ +#!/media/maceo/Datas1/pyskycoin/venv/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' +__requires__ = 'pip==10.0.1' +import re +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit( + load_entry_point('pip==10.0.1', 'console_scripts', 'pip')() + ) diff --git a/venv/bin/pip3 b/venv/bin/pip3 new file mode 100644 index 00000000..f45c3052 --- /dev/null +++ b/venv/bin/pip3 @@ -0,0 +1,12 @@ +#!/media/maceo/Datas1/pyskycoin/venv/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' +__requires__ = 'pip==10.0.1' +import re +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit( + load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')() + ) diff --git a/venv/bin/pip3.6 b/venv/bin/pip3.6 new file mode 100644 index 00000000..fe23b963 --- /dev/null +++ b/venv/bin/pip3.6 @@ -0,0 +1,12 @@ +#!/media/maceo/Datas1/pyskycoin/venv/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6' +__requires__ = 'pip==10.0.1' +import re +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit( + load_entry_point('pip==10.0.1', 'console_scripts', 'pip3.6')() + ) diff --git a/venv/bin/python b/venv/bin/python new file mode 100644 index 00000000..2db81986 Binary files /dev/null and b/venv/bin/python differ diff --git a/venv/bin/python3 b/venv/bin/python3 new file mode 100644 index 00000000..2db81986 Binary files /dev/null and b/venv/bin/python3 differ diff --git a/venv/bin/python3.6 b/venv/bin/python3.6 new file mode 100644 index 00000000..2db81986 Binary files /dev/null and b/venv/bin/python3.6 differ diff --git a/venv/lib/python3.6/site-packages/easy-install.pth b/venv/lib/python3.6/site-packages/easy-install.pth new file mode 100644 index 00000000..556f0d01 --- /dev/null +++ b/venv/lib/python3.6/site-packages/easy-install.pth @@ -0,0 +1,2 @@ +./setuptools-39.1.0-py3.6.egg +./pip-10.0.1-py3.6.egg diff --git a/venv/lib/python3.6/site-packages/setuptools.pth b/venv/lib/python3.6/site-packages/setuptools.pth new file mode 100644 index 00000000..355ae82d --- /dev/null +++ b/venv/lib/python3.6/site-packages/setuptools.pth @@ -0,0 +1 @@ +./setuptools-39.1.0-py3.6.egg diff --git a/venv/lib64 b/venv/lib64 new file mode 120000 index 00000000..7951405f --- /dev/null +++ b/venv/lib64 @@ -0,0 +1 @@ +lib \ No newline at end of file diff --git a/venv/pyvenv.cfg b/venv/pyvenv.cfg new file mode 100644 index 00000000..ee71968c --- /dev/null +++ b/venv/pyvenv.cfg @@ -0,0 +1,3 @@ +home = /home/maceo/anaconda3/bin +include-system-site-packages = false +version = 3.6.4