Skip to content

Commit

Permalink
Fixed a bug in exchangeBasket.
Browse files Browse the repository at this point in the history
Signed-off-by: FellowTraveler <F3llowTraveler@gmail.com>
  • Loading branch information
FellowTraveler committed Oct 5, 2011
0 parents commit 9315481
Show file tree
Hide file tree
Showing 597 changed files with 376,683 additions and 0 deletions.
101 changes: 101 additions & 0 deletions .gitignore
@@ -0,0 +1,101 @@
#see http://shanesbrain.net/2008/7/9/using-xcode-with-git
# xcode noise
build/*
*.xcconfig
*.xcclassmodel/*
*.o
*.a
*.dylib
*.pbxuser
*.mode1v3
*.mode2v3
*.pch
*.perspectivev3

*.jar

# old skool
.svn

# osx noise
.DS_Store
profile

# emacs noise
*~

# targets
testwallet/testwallet.exe
transaction/transaction.exe
OTLib/build/Debug/libOTLib.dylib
OTLib/build/OTLib.build/Debug/OTLib.build/OTLib.dep
OTLib/build/OTLib.build/Debug/OTLib.build/OTLib~.dep
OTLib/build/OTLib.build/Debug/OTLib.build/Objects-normal/x86_64/libOTLib.LinkFileList
OTLib/build/OTLib.build/Debug/OTLib.build/build-state.dat
OTLib/build/OTLib.build/Debug/OTLib.build/build-state~.dat
OTLib/build/OTLib.build/Debug/OTLib.build/libOTLib-all-target-headers.hmap
OTLib/build/OTLib.build/Debug/OTLib.build/libOTLib-generated-files.hmap
OTLib/build/OTLib.build/Debug/OTLib.build/libOTLib-own-target-headers.hmap
OTLib/build/OTLib.build/Debug/OTLib.build/libOTLib-project-headers.hmap
OTLib/build/OTLib.build/Debug/OTLib.build/libOTLib.hmap
OTLib/build/OTLib.build/OTLib.pbxindex/categories.pbxbtree
OTLib/build/OTLib.build/OTLib.pbxindex/cdecls.pbxbtree
OTLib/build/OTLib.build/OTLib.pbxindex/decls.pbxbtree
OTLib/build/OTLib.build/OTLib.pbxindex/files.pbxbtree
OTLib/build/OTLib.build/OTLib.pbxindex/imports.pbxbtree
OTLib/build/OTLib.build/OTLib.pbxindex/pbxindex.header
OTLib/build/OTLib.build/OTLib.pbxindex/protocols.pbxbtree
OTLib/build/OTLib.build/OTLib.pbxindex/refs.pbxbtree
OTLib/build/OTLib.build/OTLib.pbxindex/strings.pbxstrings/control
OTLib/build/OTLib.build/OTLib.pbxindex/strings.pbxstrings/strings
OTLib/build/OTLib.build/OTLib.pbxindex/subclasses.pbxbtree
OTLib/build/OTLib.build/OTLib.pbxindex/symbols0.pbxsymbols
testwallet/build/Debug/testwallet
testwallet/build/testwallet.build/Debug/testwallet.build/Objects-normal/x86_64/testwallet.LinkFileList
testwallet/build/testwallet.build/Debug/testwallet.build/build-state.dat
testwallet/build/testwallet.build/Debug/testwallet.build/build-state~.dat
testwallet/build/testwallet.build/Debug/testwallet.build/testwallet-all-target-headers.hmap
testwallet/build/testwallet.build/Debug/testwallet.build/testwallet-generated-files.hmap
testwallet/build/testwallet.build/Debug/testwallet.build/testwallet-own-target-headers.hmap
testwallet/build/testwallet.build/Debug/testwallet.build/testwallet-project-headers.hmap
testwallet/build/testwallet.build/Debug/testwallet.build/testwallet.dep
testwallet/build/testwallet.build/Debug/testwallet.build/testwallet.hmap
testwallet/build/testwallet.build/Debug/testwallet.build/testwallet~.dep
testwallet/build/testwallet.build/testwallet.pbxindex/categories.pbxbtree
testwallet/build/testwallet.build/testwallet.pbxindex/cdecls.pbxbtree
testwallet/build/testwallet.build/testwallet.pbxindex/decls.pbxbtree
testwallet/build/testwallet.build/testwallet.pbxindex/files.pbxbtree
testwallet/build/testwallet.build/testwallet.pbxindex/imports.pbxbtree
testwallet/build/testwallet.build/testwallet.pbxindex/pbxindex.header
testwallet/build/testwallet.build/testwallet.pbxindex/protocols.pbxbtree
testwallet/build/testwallet.build/testwallet.pbxindex/refs.pbxbtree
testwallet/build/testwallet.build/testwallet.pbxindex/strings.pbxstrings/control
testwallet/build/testwallet.build/testwallet.pbxindex/strings.pbxstrings/strings
testwallet/build/testwallet.build/testwallet.pbxindex/subclasses.pbxbtree
testwallet/build/testwallet.build/testwallet.pbxindex/symbols0.pbxsymbols
transaction/build/transaction.build/Debug/transaction.build/Objects-normal/x86_64/OTClientConnection.o~$
transaction/build/transaction.build/Debug/transaction.build/Objects-normal/x86_64/OTClientConnection.o~>
transaction/build/transaction.build/Debug/transaction.build/Objects-normal/x86_64/OTServer.o~$
transaction/build/transaction.build/Debug/transaction.build/Objects-normal/x86_64/OTServer.o~>
transaction/build/transaction.build/Debug/transaction.build/Objects-normal/x86_64/OTServer.o~?
transaction/build/transaction.build/Debug/transaction.build/Objects-normal/x86_64/testserver.o~$
transaction/build/transaction.build/Debug/transaction.build/Objects-normal/x86_64/testserver.o~>
transaction/build/transaction.build/Debug/transaction.build/Objects-normal/x86_64/testserver.o~?
transaction/build/transaction.build/transaction.pbxindex/categories.pbxbtree
transaction/build/transaction.build/transaction.pbxindex/cdecls.pbxbtree
transaction/build/transaction.build/transaction.pbxindex/decls.pbxbtree
transaction/build/transaction.build/transaction.pbxindex/files.pbxbtree
transaction/build/transaction.build/transaction.pbxindex/imports.pbxbtree
transaction/build/transaction.build/transaction.pbxindex/pbxindex.header
transaction/build/transaction.build/transaction.pbxindex/protocols.pbxbtree
transaction/build/transaction.build/transaction.pbxindex/refs.pbxbtree
transaction/build/transaction.build/transaction.pbxindex/strings.pbxstrings/control
transaction/build/transaction.build/transaction.pbxindex/strings.pbxstrings/strings
transaction/build/transaction.build/transaction.pbxindex/subclasses.pbxbtree
transaction/build/transaction.build/transaction.pbxindex/symbols0.pbxsymbols
testwallet/libOTAPI.jnilib
testwallet/libOTAPI.so
testwallet/_OTAPI.so
testwallet/OTAPI.so
testwallet/OTAPI.pyc
testwallet/OTAPI.bundle
8 changes: 8 additions & 0 deletions Android.mk
@@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)

subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
OTLib \
testwallet \
))

include $(subdirs)
207 changes: 207 additions & 0 deletions GETTING-STARTED.txt
@@ -0,0 +1,207 @@

Welcome to Open Transactions.

See LICENSE-AND-CREDITS file, which should be in the same
folder as this README file. You agree to the terms.

Online install instructions:
https://github.com/FellowTraveler/Open-Transactions/wiki/Install

-------------------------------------------------------------------------

GETTING STARTED:


1) For most, assuming you have all the necessary libraries installed already,
(OpenSSL 1.0.0, MsgPack, Protocol Buffers, and ZeroMQ) then you just type
this to build:

make
(It will auto-detect platform, etc.)

Then: sudo make install


If you also want the Java version (for the Moneychanger GUI) then do
this next:

make clean && make java

2) To run the server, type:
ot_server

(It will give you instructions.)

3) To run the test client, type:
ot -?

(It will give you instructions.)

** PASSWORD ** is test (always)


4) To run the Moneychanger client, just make sure the libotapi.jnilib aka
libotapi.so is in the same folder as the Moneychanger jar file and lib folder,
then double-click the jar file.

It will want to know where the data folder is: ~/.ot/client_data

-------------------------------------------------------------------------


IN MORE DETAIL:

INSTALL-Mac-Linux-FreeBSD.txt
(or) INSTALL-Windows.txt
(or) INSTALL-Android.txt

-------------------------------------------------------------------

Open Transactions requires OpenSSL version 1.0.0.

* To check current version: openssl version

* To upgrade on Mac: sudo port install openssl
If that doesn't work: sudo port install openssl-devel

* On Linux:
NOTE for 64-bit Linux: MAKE SURE you configure OpenSSL explicitly for 64-bit and for shared binaries, THEN re-build it. (OpenSSL does not come built with those options by default, on 64bit Linux.)
Again: For 64-bit Linux, run: "./configure -m64 shared" in the openssl folder BEFORE building OpenSSL 1.0.0, and then it should work when you build and run Open-Transactions.)
wget http://www.openssl.org/source/openssl-1.0.0d.tar.gz
tar -xf openssl-1.0.0d.tar.gz
cd openssl-1.0.0d
./config
make
sudo make install

* On FreeBSD (as root):
cd /usr/ports/security/openssl/ && make install clean

---------------------------------------------------------------


INSTALL: MsgPack Library (data packing library now used by OT.)

Available here: msgpack.org
To install from command line: port install msgpack
(OR) brew install msgpack

Install instructions for all platforms:
http://wiki.msgpack.org/display/MSGPACK/QuickStart+for+C+Language

---------------------------------------------------------------

INSTALL: Google's Protocol Buffers library (another data packer.)

Available here:
http://code.google.com/p/protobuf/downloads/list

---------------------------------------------------------------

INSTALL: ZeroMQ (transport library)

Available here:
http://www.zeromq.org/intro:get-the-software

port install zmq

---------------------------------------------------------------

DOWNLOAD OPEN TRANSACTIONS

git clone git://github.com/FellowTraveler/Open-Transactions.git

Source code (FYI):
https://github.com/FellowTraveler/Open-Transactions

----------------------------------------------------------------

BUILD OPEN TRANSACTIONS

cd Open-Transactions && make clean && make


FOR JAVA MODE (If using Moneychanger Java GUI):

make clean && make java

---------------------------------------------------------------

BUILD THE API

To build the API for a specific language, try:

make java
make python
make php5
make perl5
make ruby
make c
make d

Etc. Use "make clean" between builds.

See testwallet/API-README.txt for full instructions on building
the API for the various different languages. (There are more languages
available.)

---------------------------------------------------------------

DEVELOPER RESOURCES

The OT API, with notes:
https://github.com/FellowTraveler/Open-Transactions/wiki/API

Use cases for the OT API:
https://github.com/FellowTraveler/Open-Transactions/wiki/Use-Cases

---------------------------------------------------------------

TO START THE SERVER

cd transaction && ./transaction.exe

OR: ot_server will work from any folder, if you did make install.

The server requires a password and a path when it starts up.
(It will tell you what to do.)

FYI, the data folder for the server is:
~/.ot/server_data

If you want to back up a copy of it, then you can feel free
to play around with the data files, knowing you can refresh them
at any time.

---------------------------------------------------------------

TO RUN THE TEST CLIENT

Once the server is running, then try the testwallet in a
separate terminal:

cd Open-Transactions && cd testwallet && ./testwallet.exe

OR: ot will work from any folder, if you did make install.

Again, it will ask you to enter a password and a path.
Don't worry, it gives clear instructions.

To use the testwallet, read ~/.ot/CLIENT-COMMANDS.txt
Online:
https://github.com/FellowTraveler/Open-Transactions/wiki/Test-Wallet-commands

Note: the test wallet and the API are really just different build
options for the same client-side code, which is located in the
Open-Transactions/testwallet folder.

The data folder for the client is:
~/.ot/client_data

Fresh copies of all data is located in Open-Transactions/ot-sample-data






0 comments on commit 9315481

Please sign in to comment.