| 1 | |
|---|
| 2 | |
|---|
| 3 | This is a brief, high level summary of the Tycoon API and |
|---|
| 4 | architecture. Everything described here is implemented and working, |
|---|
| 5 | but the system has not been extensively tested. All communications are |
|---|
| 6 | implemented as XML-RPC calls. |
|---|
| 7 | |
|---|
| 8 | There are three main components: the bank, auctioneers, and the |
|---|
| 9 | service location service (SLS). The operations are described in more |
|---|
| 10 | detail below. |
|---|
| 11 | |
|---|
| 12 | Bank operations: |
|---|
| 13 | |
|---|
| 14 | transfer( |
|---|
| 15 | String account_from, String account_to, double amount, |
|---|
| 16 | Date expiration, byte[] signature) |
|---|
| 17 | |
|---|
| 18 | getBalance(String account, byte[] signature) |
|---|
| 19 | |
|---|
| 20 | getHistory(String account,byte[] signature) |
|---|
| 21 | |
|---|
| 22 | createAccount( |
|---|
| 23 | String sponsor, String newAccountName, double bid, String publickey, |
|---|
| 24 | byte[] signature, byte[] newAcctSig) |
|---|
| 25 | |
|---|
| 26 | deleteAccount(String account,byte[] signature) |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | Auctioneer operations: |
|---|
| 30 | |
|---|
| 31 | create_account( |
|---|
| 32 | user_name, local_account_name, public_key, bank_receipt, bank_signature) |
|---|
| 33 | |
|---|
| 34 | fund(account_name, interval, bank_receipt, bank_signature, time_stamp, |
|---|
| 35 | signature) |
|---|
| 36 | |
|---|
| 37 | refund(account_name, requested_refund, time_stamp, signature) |
|---|
| 38 | |
|---|
| 39 | delete_account(account_name, timestamp, signature) |
|---|
| 40 | |
|---|
| 41 | get_account_status(account_name, time_stamp, signature): |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | register_service(key, value): |
|---|
| 45 | unregister_service(port_number, key): |
|---|
| 46 | query(key): |
|---|