Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ot_commands_ot.hpp
Go to the documentation of this file.
1 /************************************************************
2  *
3  * ot_commands_ot.hpp
4  *
5  */
6 
7 /************************************************************
8  -----BEGIN PGP SIGNED MESSAGE-----
9  Hash: SHA1
10 
11  * OPEN TRANSACTIONS
12  *
13  * Financial Cryptography and Digital Cash
14  * Library, Protocol, API, Server, CLI, GUI
15  *
16  * -- Anonymous Numbered Accounts.
17  * -- Untraceable Digital Cash.
18  * -- Triple-Signed Receipts.
19  * -- Cheques, Vouchers, Transfers, Inboxes.
20  * -- Basket Currencies, Markets, Payment Plans.
21  * -- Signed, XML, Ricardian-style Contracts.
22  * -- Scripted smart contracts.
23  *
24  * Copyright (C) 2010-2013 by "Fellow Traveler" (A pseudonym)
25  *
26  * EMAIL:
28  *
29  * BITCOIN: 1NtTPVVjDsUfDWybS4BwvHpG2pdS9RnYyQ
30  *
31  * KEY FINGERPRINT (PGP Key in license file):
32  * 9DD5 90EB 9292 4B48 0484 7910 0308 00ED F951 BB8E
33  *
34  * OFFICIAL PROJECT WIKI(s):
35  * https://github.com/FellowTraveler/Moneychanger
36  * https://github.com/FellowTraveler/Open-Transactions/wiki
37  *
38  * WEBSITE:
39  * http://www.OpenTransactions.org/
40  *
41  * Components and licensing:
42  * -- Moneychanger..A Java client GUI.....LICENSE:.....GPLv3
43  * -- otlib.........A class library.......LICENSE:...LAGPLv3
44  * -- otapi.........A client API..........LICENSE:...LAGPLv3
45  * -- opentxs/ot....Command-line client...LICENSE:...LAGPLv3
46  * -- otserver......Server Application....LICENSE:....AGPLv3
47  * Github.com/FellowTraveler/Open-Transactions/wiki/Components
48  *
49  * All of the above OT components were designed and written by
50  * Fellow Traveler, with the exception of Moneychanger, which
51  * was contracted out to Vicky C ([email protected]).
52  * The open-source community has since actively contributed.
53  *
54  * -----------------------------------------------------
55  *
56  * LICENSE:
57  * This program is free software: you can redistribute it
58  * and/or modify it under the terms of the GNU Affero
59  * General Public License as published by the Free Software
60  * Foundation, either version 3 of the License, or (at your
61  * option) any later version.
62  *
63  * ADDITIONAL PERMISSION under the GNU Affero GPL version 3
64  * section 7: (This paragraph applies only to the LAGPLv3
65  * components listed above.) If you modify this Program, or
66  * any covered work, by linking or combining it with other
67  * code, such other code is not for that reason alone subject
68  * to any of the requirements of the GNU Affero GPL version 3.
69  * (==> This means if you are only using the OT API, then you
70  * don't have to open-source your code--only your changes to
71  * Open-Transactions itself must be open source. Similar to
72  * LGPLv3, except it applies to software-as-a-service, not
73  * just to distributing binaries.)
74  *
75  * Extra WAIVER for OpenSSL, Lucre, and all other libraries
76  * used by Open Transactions: This program is released under
77  * the AGPL with the additional exemption that compiling,
78  * linking, and/or using OpenSSL is allowed. The same is true
79  * for any other open source libraries included in this
80  * project: complete waiver from the AGPL is hereby granted to
81  * compile, link, and/or use them with Open-Transactions,
82  * according to their own terms, as long as the rest of the
83  * Open-Transactions terms remain respected, with regard to
84  * the Open-Transactions code itself.
85  *
86  * Lucre License:
87  * This code is also "dual-license", meaning that Ben Lau-
88  * rie's license must also be included and respected, since
89  * the code for Lucre is also included with Open Transactions.
90  * See Open-Transactions/src/otlib/lucre/LUCRE_LICENSE.txt
91  * The Laurie requirements are light, but if there is any
92  * problem with his license, simply remove the Lucre code.
93  * Although there are no other blind token algorithms in Open
94  * Transactions (yet. credlib is coming), the other functions
95  * will continue to operate.
96  * See Lucre on Github: https://github.com/benlaurie/lucre
97  * -----------------------------------------------------
98  * You should have received a copy of the GNU Affero General
99  * Public License along with this program. If not, see:
100  * http://www.gnu.org/licenses/
101  *
102  * If you would like to use this software outside of the free
103  * software license, please contact FellowTraveler.
104  * (Unfortunately many will run anonymously and untraceably,
105  * so who could really stop them?)
106  *
107  * DISCLAIMER:
108  * This program is distributed in the hope that it will be
109  * useful, but WITHOUT ANY WARRANTY; without even the implied
110  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
111  * PURPOSE. See the GNU Affero General Public License for
112  * more details.
113 
114  -----BEGIN PGP SIGNATURE-----
115  Version: GnuPG v1.4.9 (Darwin)
116 
117  iQIcBAEBAgAGBQJRSsfJAAoJEAMIAO35UbuOQT8P/RJbka8etf7wbxdHQNAY+2cC
118  vDf8J3X8VI+pwMqv6wgTVy17venMZJa4I4ikXD/MRyWV1XbTG0mBXk/7AZk7Rexk
119  KTvL/U1kWiez6+8XXLye+k2JNM6v7eej8xMrqEcO0ZArh/DsLoIn1y8p8qjBI7+m
120  aE7lhstDiD0z8mwRRLKFLN2IH5rAFaZZUvj5ERJaoYUKdn4c+RcQVei2YOl4T0FU
121  LWND3YLoH8naqJXkaOKEN4UfJINCwxhe5Ke9wyfLWLUO7NamRkWD2T7CJ0xocnD1
122  sjAzlVGNgaFDRflfIF4QhBx1Ddl6wwhJfw+d08bjqblSq8aXDkmFA7HeunSFKkdn
123  oIEOEgyj+veuOMRJC5pnBJ9vV+7qRdDKQWaCKotynt4sWJDGQ9kWGWm74SsNaduN
124  TPMyr9kNmGsfR69Q2Zq/FLcLX/j8ESxU+HYUB4vaARw2xEOu2xwDDv6jt0j3Vqsg
125  x7rWv4S/Eh18FDNDkVRChiNoOIilLYLL6c38uMf1pnItBuxP3uhgY6COm59kVaRh
126  nyGTYCDYD2TK+fI9o89F1297uDCwEJ62U0Q7iTDp5QuXCoxkPfv8/kX6lS6T3y9G
127  M9mqIoLbIQ1EDntFv7/t6fUTS2+46uCrdZWbQ5RjYXdrzjij02nDmJAm2BngnZvd
128  kamH0Y/n11lCvo1oQxM+
129  =uSzz
130  -----END PGP SIGNATURE-----
131  **************************************************************/
132 
133 #ifndef OPENTXS_CLIENT_OT_COMMANDS_OT_HPP
134 #define OPENTXS_CLIENT_OT_COMMANDS_OT_HPP
135 
137 
138 #define OT_COMMANDS_OT
139 
140 namespace opentxs
141 {
142 
143 namespace OTDB
144 {
145 class MarketList;
146 class OfferListMarket;
147 }
148 
150 {
151 private:
152  OT_Command()
153  {
154  }
155  ~OT_Command()
156  {
157  }
158 
159 public:
160  EXPORT OT_COMMANDS_OT static int32_t accept_from_paymentbox(
161  const std::string& strMyAcctID, const std::string& strIndices,
162  const std::string& strPaymentType);
163  EXPORT OT_COMMANDS_OT static int32_t accept_inbox_items(
164  const std::string& strMyAcctID, int32_t nItemType,
165  const std::string& strIndices);
166  EXPORT OT_COMMANDS_OT static int32_t details_accept_invoices(
167  const std::string& strMyAcctID, const std::string& strIndices);
168  EXPORT OT_COMMANDS_OT static int32_t details_accept_payments(
169  const std::string& strMyAcctID, const std::string& strIndices);
170  EXPORT OT_COMMANDS_OT static int32_t details_account_balance(
171  const std::string& strID);
172  EXPORT OT_COMMANDS_OT static int32_t details_cancel_outgoing(
173  const std::string& strMyNym, const std::string& strMyAcct,
174  const std::string& strIndices);
175  EXPORT OT_COMMANDS_OT static std::string details_check_user(
176  const std::string& strServerID, const std::string& strMyNymID,
177  const std::string& strHisNymID);
178  EXPORT OT_COMMANDS_OT static int32_t details_clear_expired(
179  const std::string& strServerID, const std::string& strMyNymID);
180  EXPORT OT_COMMANDS_OT static int32_t details_clear_records(
181  const std::string& strServerID, const std::string& strMyNymID,
182  const std::string& strMyAcctID);
183  EXPORT OT_COMMANDS_OT static int32_t details_confirm_plan(
184  const std::string& strPlan, int32_t nIndex);
185  EXPORT OT_COMMANDS_OT static int32_t details_confirm_smart_contract(
186  std::string& strSmartContract, int32_t nIndex);
187  EXPORT OT_COMMANDS_OT static int32_t details_create_nym(
188  int32_t nKeybits, const std::string& strName,
189  const std::string& strSourceForNymID,
190  const std::string& strAltLocation);
191  EXPORT OT_COMMANDS_OT static int32_t details_create_offer(
192  const std::string& strScale, const std::string& strMinIncrement,
193  const std::string& strQuantity, const std::string& strPrice,
194  bool bSelling, const std::string& strLifespan);
195  EXPORT OT_COMMANDS_OT static int32_t details_del_mail(
196  const std::string& strMyNymID, const std::string& strIndices);
197  EXPORT OT_COMMANDS_OT static int32_t details_del_outmail(
198  const std::string& strMyNymID, const std::string& strIndices);
199  EXPORT OT_COMMANDS_OT static int32_t details_deposit(
200  const std::string& strServerID, const std::string& strMyAcctID);
201  EXPORT OT_COMMANDS_OT static int32_t details_deposit_cheque(
202  const std::string& strServerID, const std::string& strMyAcct,
203  const std::string& strMyNymID, const std::string& strInstrument,
204  const std::string& strType);
205  EXPORT OT_COMMANDS_OT static int32_t details_deposit_purse(
206  const std::string& strServerID, const std::string& strMyAcct,
207  const std::string& strFromNymID, const std::string& strInstrument,
208  const std::string& strIndices);
209  EXPORT OT_COMMANDS_OT static int32_t details_discard_incoming(
210  const std::string& strServer, const std::string& strMyNym,
211  const std::string& strIndices);
212  EXPORT OT_COMMANDS_OT static int32_t details_download_box_receipt(
213  const std::string& strID, int32_t nBoxType);
214  EXPORT OT_COMMANDS_OT static int32_t details_download_contract(
215  const std::string& strServerID, const std::string& strNymID,
216  const std::string& strContractID);
217  EXPORT OT_COMMANDS_OT static int32_t details_exchange_basket(
218  const std::string& strServer, const std::string& strNym,
219  const std::string& strAcct, const std::string& strBasketType);
220  EXPORT OT_COMMANDS_OT static std::string details_export_cash(
221  const std::string& strServerID, const std::string& strFromNymID,
222  const std::string& strAssetTypeID, std::string& strHisNymID,
223  const std::string& strIndices, bool bPasswordProtected,
224  std::string& strRetainedCopy);
225  EXPORT OT_COMMANDS_OT static std::string details_export_nym(
226  const std::string& strNymID);
227  EXPORT OT_COMMANDS_OT static std::string details_get_nym_market_offers(
228  const std::string& strServerID, const std::string& strNymID);
229  EXPORT OT_COMMANDS_OT static int32_t details_import_cash(
230  const std::string& strInstrument);
231  EXPORT OT_COMMANDS_OT static bool details_import_nym(
232  const std::string& strNymImportFile, std::string& strOutNymID);
233  EXPORT OT_COMMANDS_OT static int32_t details_import_purse(
234  const std::string& strInstrument, bool bHasPassword,
235  const std::string& strPurseOwner);
236  EXPORT OT_COMMANDS_OT static int32_t details_kill_offer(
237  const std::string& strServerID, const std::string& strNymID,
238  const std::string& strAcctID, const std::string& strTransNum);
239  EXPORT OT_COMMANDS_OT static int32_t details_new_basket(
240  const std::string& strServer, const std::string& strNym);
241  EXPORT OT_COMMANDS_OT static int32_t details_nym_stat(
242  const std::string& strID);
243  EXPORT OT_COMMANDS_OT static int32_t details_pay_dividend(
244  const std::string& strAmount, const std::string& strMemo);
245  EXPORT OT_COMMANDS_OT static int32_t details_propose_plan(
246  const std::string& strServerID, const std::string& strMyNymID,
247  const std::string& strMyAcctID, const std::string& strHisNymID,
248  const std::string& strHisAcctID, const std::string& strDates,
249  const std::string& strConsideration,
250  const std::string& strInitialPayment, const std::string& strPaymentPlan,
251  const std::string& strExpiry);
252  EXPORT OT_COMMANDS_OT static bool details_refresh_nym(
253  const std::string& strServerID, const std::string& strMyNymID,
254  bool bForceDownload);
255  EXPORT OT_COMMANDS_OT static int32_t details_send_cash(
256  std::string& strResponse, const std::string& strServerID,
257  const std::string& strAssetTypeID, const std::string& strMyNymID,
258  const std::string& strMyAcctID, std::string& strHisNymID,
259  const std::string& strMemo, const std::string& strAmount,
260  std::string& strIndices, bool bPasswordProtected);
261  EXPORT OT_COMMANDS_OT static int32_t details_send_transfer(
262  const std::string& strMyAcctID, const std::string& strHisAcctID,
263  const std::string& strAmount, const std::string& strNote);
264  EXPORT OT_COMMANDS_OT static int32_t details_show_basket();
265  EXPORT OT_COMMANDS_OT static bool details_show_credential(
266  const std::string& strMyNymID, const std::string& strCredID);
267  EXPORT OT_COMMANDS_OT static int32_t details_show_credentials(
268  const std::string& strMyNymID);
269  EXPORT OT_COMMANDS_OT static int32_t details_show_expired(
270  const std::string& strServerID, const std::string& strMyNymID,
271  int32_t nIndex, const std::string& strExpiredBox);
272  EXPORT OT_COMMANDS_OT static int32_t details_show_expired_records(
273  const std::string& strServerID, const std::string& strMyNymID);
274  EXPORT OT_COMMANDS_OT static int32_t details_show_market_offers(
275  const std::string& strServerID, const std::string& strMarketID);
276  EXPORT OT_COMMANDS_OT static int32_t details_show_nym_offers(
277  const std::string& strServerID, const std::string& strNymID);
278  EXPORT OT_COMMANDS_OT static int32_t details_show_record(
279  const std::string& strServerID, const std::string& strMyNymID,
280  const std::string& strMyAcctID, int32_t nIndex,
281  const std::string& strRecordBox);
282  EXPORT OT_COMMANDS_OT static int32_t details_show_records(
283  const std::string& strServerID, const std::string& strMyNymID,
284  const std::string& strMyAcctID);
285  EXPORT OT_COMMANDS_OT static int32_t details_stat_account(
286  const std::string& strID);
287  EXPORT OT_COMMANDS_OT static int32_t details_trigger_clause(
288  const std::string& strServerID, const std::string& strMyNymID,
289  const std::string& strTransNum, const std::string& strClause,
290  const std::string& strParam);
291  EXPORT OT_COMMANDS_OT static int32_t details_withdraw_cash(
292  const std::string& strMyAcctID, int64_t lAmount);
293  EXPORT OT_COMMANDS_OT static int32_t details_withdraw_voucher(
294  std::string& strOutput);
295  EXPORT OT_COMMANDS_OT static int32_t details_write_cheque(
296  std::string& strCheque, bool bIsInvoice); // strCheque is output.
297  EXPORT OT_COMMANDS_OT static int32_t download_acct_files();
298  EXPORT OT_COMMANDS_OT static std::string find_masterID_for_subcred(
299  const std::string& strMyNymID, const std::string& strInputID);
300  EXPORT OT_COMMANDS_OT static std::string find_revokedID_for_subcred(
301  const std::string& strMyNymID, const std::string& strInputID);
302  EXPORT OT_COMMANDS_OT static int32_t handle_payment_index(
303  const std::string& strMyAcctID, int32_t nIndex,
304  const std::string& strPaymentType,
305  const std::string& strInbox); // (If nIndex is -1, then it will ask user
306  // to
307  // paste an invoice.);
308  EXPORT OT_COMMANDS_OT static int32_t impl_show_market_offers(
309  std::string& strMarket);
311  const std::string& strerverID);
313  const std::string& strerverID, const std::string& strMarketID);
314  EXPORT OT_COMMANDS_OT static bool purse_get_indices_or_amount(
315  const std::string& strServerID, const std::string& strAssetTypeID,
316  const std::string& strMyNymID, int64_t& lAmount,
317  std::string& strIndices); // If strIndices is input, lAmount is output.
318  // (And
319  // vice-versa.);
320  EXPORT OT_COMMANDS_OT static bool show_mail_message(
321  const std::string& strMyNymID, int32_t nIndex, bool bShowContents);
322  EXPORT OT_COMMANDS_OT static bool show_outmail_message(
323  const std::string& strMyNymID, int32_t nIndex, bool bShowContents);
324  EXPORT OT_COMMANDS_OT static bool show_outpayment(
325  const std::string& strMyNym, int32_t nIndex, bool bShowInFull);
326  EXPORT OT_COMMANDS_OT static bool show_unconfirmed_parties(
327  const std::string& strSmartContract, int32_t& nPartyCount);
328  EXPORT OT_COMMANDS_OT static int32_t stat_basket_accounts(
329  const std::string& strServer, const std::string& strNym, bool bFilter,
330  const std::string& strBasketType);
331  EXPORT OT_COMMANDS_OT static bool stat_partyaccount(
332  const std::string& strSmartContract, const std::string& strPartyName,
333  const std::string& strAcctName, int32_t nCurrentAccount);
334  EXPORT OT_COMMANDS_OT static bool stat_partyaccount_index(
335  const std::string& strSmartContract, const std::string& strPartyName,
336  int32_t nCurrentAccount);
337  EXPORT OT_COMMANDS_OT static bool stat_partyaccounts(
338  const std::string& strSmartContract, const std::string& strPartyName,
339  int32_t nDepth);
340  EXPORT OT_COMMANDS_OT static bool stat_partyagent(
341  const std::string& strSmartContract, const std::string& strPartyName,
342  const std::string& strAgentName, int32_t nIndex);
343  EXPORT OT_COMMANDS_OT static bool stat_partyagent_index(
344  const std::string& strSmartContract, const std::string& strPartyName,
345  int32_t nCurrentAgent);
346  EXPORT OT_COMMANDS_OT static bool stat_partyagents(
347  const std::string& strSmartContract, const std::string& strPartyName,
348  int32_t nDepth);
349  EXPORT OT_COMMANDS_OT static bool withdraw_and_send_cash(
350  const std::string& strMyAcctID, std::string& strHisNymID,
351  const std::string& strMemo, const std::string& strAmount);
352 
353  // opentxs commands
354  EXPORT OT_COMMANDS_OT static int32_t mainAcceptAll();
355  EXPORT OT_COMMANDS_OT static int32_t mainAcceptInbox();
356  EXPORT OT_COMMANDS_OT static int32_t mainAcceptInvoices();
357  EXPORT OT_COMMANDS_OT static int32_t mainAcceptMoney();
358  EXPORT OT_COMMANDS_OT static int32_t mainAcceptPayments();
359  EXPORT OT_COMMANDS_OT static int32_t mainAcceptReceipts();
360  EXPORT OT_COMMANDS_OT static int32_t mainAcceptTransfers();
361  EXPORT OT_COMMANDS_OT static int32_t mainAddAsset();
362  EXPORT OT_COMMANDS_OT static int32_t mainAddServer();
363  EXPORT OT_COMMANDS_OT static int32_t mainAddSignature();
364  EXPORT OT_COMMANDS_OT static int32_t mainAdjustUsageCredits();
365  EXPORT OT_COMMANDS_OT static int32_t mainCancel();
366  EXPORT OT_COMMANDS_OT static int32_t mainChangePw();
367  EXPORT OT_COMMANDS_OT static int32_t mainCheckNym();
368  EXPORT OT_COMMANDS_OT static int32_t mainClearExpired();
369  EXPORT OT_COMMANDS_OT static int32_t mainClearRecords();
370  EXPORT OT_COMMANDS_OT static int32_t mainConfirm();
371  EXPORT OT_COMMANDS_OT static int32_t mainDecode();
372  EXPORT OT_COMMANDS_OT static int32_t mainDecrypt();
373  EXPORT OT_COMMANDS_OT static int32_t mainDeleteInmail();
374  EXPORT OT_COMMANDS_OT static int32_t mainDeleteOutmail();
375  EXPORT OT_COMMANDS_OT static int32_t mainDeposit();
376  EXPORT OT_COMMANDS_OT static int32_t mainDiscard();
377  EXPORT OT_COMMANDS_OT static int32_t mainEditAccount();
378  EXPORT OT_COMMANDS_OT static int32_t mainEditAsset();
379  EXPORT OT_COMMANDS_OT static int32_t mainEditNym();
380  EXPORT OT_COMMANDS_OT static int32_t mainEditServer();
381  EXPORT OT_COMMANDS_OT static int32_t mainEncode();
382  EXPORT OT_COMMANDS_OT static int32_t mainEncrypt();
383  EXPORT OT_COMMANDS_OT static int32_t mainExchangeBasket();
384  EXPORT OT_COMMANDS_OT static int32_t mainExportCash();
385  EXPORT OT_COMMANDS_OT static int32_t mainExportNym();
386  EXPORT OT_COMMANDS_OT static int32_t mainGetContract();
387  EXPORT OT_COMMANDS_OT static int32_t mainGetMarkets();
388  EXPORT OT_COMMANDS_OT static int32_t mainGetMyOffers();
389  EXPORT OT_COMMANDS_OT static int32_t mainGetOffers();
390  EXPORT OT_COMMANDS_OT static int32_t mainGetReceipt();
391  EXPORT OT_COMMANDS_OT static int32_t mainImportCash();
392  EXPORT OT_COMMANDS_OT static int32_t mainImportNym();
393  EXPORT OT_COMMANDS_OT static int32_t mainInbox();
394  EXPORT OT_COMMANDS_OT static int32_t mainInmail();
395  EXPORT OT_COMMANDS_OT static int32_t mainInpayments();
396  EXPORT OT_COMMANDS_OT static int32_t mainIssueAsset();
397  EXPORT OT_COMMANDS_OT static int32_t mainKillOffer();
398  EXPORT OT_COMMANDS_OT static int32_t mainKillPlan();
399  EXPORT OT_COMMANDS_OT static int32_t mainNewAccount();
400  EXPORT OT_COMMANDS_OT static int32_t mainNewAsset();
401  EXPORT OT_COMMANDS_OT static int32_t mainNewBasket();
402  EXPORT OT_COMMANDS_OT static int32_t mainNewCredential();
403  EXPORT OT_COMMANDS_OT static int32_t mainNewKey();
404  EXPORT OT_COMMANDS_OT static int32_t mainNewNym();
405  EXPORT OT_COMMANDS_OT static int32_t mainNewOffer();
406  EXPORT OT_COMMANDS_OT static int32_t mainNewServer();
407  EXPORT OT_COMMANDS_OT static int32_t mainOutbox();
408  EXPORT OT_COMMANDS_OT static int32_t mainOutmail();
409  EXPORT OT_COMMANDS_OT static int32_t mainOutpayment();
410  EXPORT OT_COMMANDS_OT static int32_t mainPasswordDecrypt();
411  EXPORT OT_COMMANDS_OT static int32_t mainPasswordEncrypt();
412  EXPORT OT_COMMANDS_OT static int32_t mainPayDividend();
413  EXPORT OT_COMMANDS_OT static int32_t mainPayInvoice();
414  EXPORT OT_COMMANDS_OT static int32_t mainProposePlan();
415  EXPORT OT_COMMANDS_OT static int32_t mainRefresh();
416  EXPORT OT_COMMANDS_OT static int32_t mainRefreshAccount();
417  EXPORT OT_COMMANDS_OT static int32_t mainRefreshNym();
418  EXPORT OT_COMMANDS_OT static int32_t mainRegisterNym();
419  EXPORT OT_COMMANDS_OT static int32_t mainRevokeCredential();
420  EXPORT OT_COMMANDS_OT static int32_t mainSendCash();
421  EXPORT OT_COMMANDS_OT static int32_t mainSendCheque();
422  EXPORT OT_COMMANDS_OT static int32_t mainSendInvoice();
423  EXPORT OT_COMMANDS_OT static int32_t mainSendMessage();
424  EXPORT OT_COMMANDS_OT static int32_t mainSendVoucher();
425  EXPORT OT_COMMANDS_OT static int32_t mainShowAccount();
426  EXPORT OT_COMMANDS_OT static int32_t mainShowAccounts();
427  EXPORT OT_COMMANDS_OT static int32_t mainShowActive();
428  EXPORT OT_COMMANDS_OT static int32_t mainShowAssets();
429  EXPORT OT_COMMANDS_OT static int32_t mainShowBalance();
430  EXPORT OT_COMMANDS_OT static int32_t mainShowBasket();
431  EXPORT OT_COMMANDS_OT static int32_t mainShowCredential();
432  EXPORT OT_COMMANDS_OT static int32_t mainShowCredentials();
433  EXPORT OT_COMMANDS_OT static int32_t mainShowExpired();
434  EXPORT OT_COMMANDS_OT static int32_t mainShowIncoming();
435  EXPORT OT_COMMANDS_OT static int32_t mainShowMarkets();
436  EXPORT OT_COMMANDS_OT static int32_t mainShowMint();
437  EXPORT OT_COMMANDS_OT static int32_t mainShowMyOffers();
438  EXPORT OT_COMMANDS_OT static int32_t mainShowNym();
439  EXPORT OT_COMMANDS_OT static int32_t mainShowNyms();
440  EXPORT OT_COMMANDS_OT static int32_t mainShowOffers();
441  EXPORT OT_COMMANDS_OT static int32_t mainShowOutgoing();
442  EXPORT OT_COMMANDS_OT static int32_t mainShowPayment();
443  EXPORT OT_COMMANDS_OT static int32_t mainShowPurse();
444  EXPORT OT_COMMANDS_OT static int32_t mainShowRecords();
445  EXPORT OT_COMMANDS_OT static int32_t mainShowServers();
446  EXPORT OT_COMMANDS_OT static int32_t mainShowWallet();
447  EXPORT OT_COMMANDS_OT static int32_t mainSignContract();
448  EXPORT OT_COMMANDS_OT static int32_t mainTransfer();
449  EXPORT OT_COMMANDS_OT static int32_t mainTriggerClause();
450  EXPORT OT_COMMANDS_OT static int32_t mainVerifyReceipt();
451  EXPORT OT_COMMANDS_OT static int32_t mainVerifySignature();
452  EXPORT OT_COMMANDS_OT static int32_t mainWithdrawCash();
453  EXPORT OT_COMMANDS_OT static int32_t mainWithdrawVoucher();
454  EXPORT OT_COMMANDS_OT static int32_t mainWriteCheque();
455  EXPORT OT_COMMANDS_OT static int32_t mainWriteInvoice();
456 };
457 
458 } // namespace opentxs
459 
460 #endif // OPENTXS_CLIENT_OT_COMMANDS_OT_HPP
EXPORT static OT_COMMANDS_OT bool purse_get_indices_or_amount(const std::string &strServerID, const std::string &strAssetTypeID, const std::string &strMyNymID, int64_t &lAmount, std::string &strIndices)
EXPORT static OT_COMMANDS_OT int32_t mainEditAccount()
EXPORT static OT_COMMANDS_OT int32_t mainOutbox()
EXPORT static OT_COMMANDS_OT int32_t mainKillOffer()
EXPORT static OT_COMMANDS_OT int32_t mainImportNym()
EXPORT static OT_COMMANDS_OT int32_t mainNewKey()
EXPORT static OT_COMMANDS_OT int32_t mainVerifyReceipt()
EXPORT static OT_COMMANDS_OT int32_t mainShowMarkets()
EXPORT static OT_COMMANDS_OT bool show_mail_message(const std::string &strMyNymID, int32_t nIndex, bool bShowContents)
EXPORT static OT_COMMANDS_OT int32_t mainInbox()
EXPORT static OT_COMMANDS_OT int32_t mainPayDividend()
EXPORT static OT_COMMANDS_OT int32_t details_confirm_plan(const std::string &strPlan, int32_t nIndex)
EXPORT static OT_COMMANDS_OT int32_t mainPayInvoice()
EXPORT static OT_COMMANDS_OT int32_t mainNewCredential()
EXPORT static OT_COMMANDS_OT int32_t details_import_cash(const std::string &strInstrument)
EXPORT static OT_COMMANDS_OT int32_t mainShowAccounts()
EXPORT static OT_COMMANDS_OT int32_t mainKillPlan()
EXPORT static OT_COMMANDS_OT int32_t mainImportCash()
EXPORT static OT_COMMANDS_OT int32_t mainWithdrawVoucher()
EXPORT static OT_COMMANDS_OT int32_t mainVerifySignature()
EXPORT static OT_COMMANDS_OT int32_t mainShowNyms()
EXPORT static OT_COMMANDS_OT std::string find_masterID_for_subcred(const std::string &strMyNymID, const std::string &strInputID)
EXPORT static OT_COMMANDS_OT int32_t details_create_offer(const std::string &strScale, const std::string &strMinIncrement, const std::string &strQuantity, const std::string &strPrice, bool bSelling, const std::string &strLifespan)
EXPORT static OT_COMMANDS_OT int32_t mainSendCheque()
EXPORT static OT_COMMANDS_OT int32_t accept_inbox_items(const std::string &strMyAcctID, int32_t nItemType, const std::string &strIndices)
EXPORT static OT_COMMANDS_OT int32_t details_deposit_purse(const std::string &strServerID, const std::string &strMyAcct, const std::string &strFromNymID, const std::string &strInstrument, const std::string &strIndices)
EXPORT static OT_COMMANDS_OT int32_t mainWithdrawCash()
EXPORT static OT_COMMANDS_OT int32_t mainDeleteInmail()
EXPORT static OT_COMMANDS_OT int32_t mainExchangeBasket()
EXPORT static OT_COMMANDS_OT int32_t mainWriteCheque()
EXPORT static OT_COMMANDS_OT int32_t details_stat_account(const std::string &strID)
EXPORT static OT_COMMANDS_OT int32_t details_clear_expired(const std::string &strServerID, const std::string &strMyNymID)
EXPORT static OT_COMMANDS_OT int32_t details_confirm_smart_contract(std::string &strSmartContract, int32_t nIndex)
EXPORT static OT_COMMANDS_OT int32_t mainEncrypt()
EXPORT static OT_COMMANDS_OT int32_t mainShowAccount()
EXPORT static OT_COMMANDS_OT int32_t mainSignContract()
EXPORT static OT_COMMANDS_OT int32_t details_discard_incoming(const std::string &strServer, const std::string &strMyNym, const std::string &strIndices)
EXPORT static OT_COMMANDS_OT int32_t mainDecode()
EXPORT static OT_COMMANDS_OT int32_t details_show_market_offers(const std::string &strServerID, const std::string &strMarketID)
EXPORT static OT_COMMANDS_OT int32_t details_trigger_clause(const std::string &strServerID, const std::string &strMyNymID, const std::string &strTransNum, const std::string &strClause, const std::string &strParam)
EXPORT static OT_COMMANDS_OT int32_t details_deposit_cheque(const std::string &strServerID, const std::string &strMyAcct, const std::string &strMyNymID, const std::string &strInstrument, const std::string &strType)
EXPORT static OT_COMMANDS_OT int32_t mainAddSignature()
EXPORT static OT_COMMANDS_OT int32_t download_acct_files()
EXPORT static OT_COMMANDS_OT int32_t mainRefresh()
EXPORT static OT_COMMANDS_OT OTDB::MarketList * loadMarketList(const std::string &strerverID)
EXPORT static OT_COMMANDS_OT int32_t mainGetContract()
EXPORT static OT_COMMANDS_OT bool stat_partyagent_index(const std::string &strSmartContract, const std::string &strPartyName, int32_t nCurrentAgent)
EXPORT static OT_COMMANDS_OT int32_t handle_payment_index(const std::string &strMyAcctID, int32_t nIndex, const std::string &strPaymentType, const std::string &strInbox)
EXPORT static OT_COMMANDS_OT int32_t details_show_expired(const std::string &strServerID, const std::string &strMyNymID, int32_t nIndex, const std::string &strExpiredBox)
EXPORT static OT_COMMANDS_OT bool details_show_credential(const std::string &strMyNymID, const std::string &strCredID)
EXPORT static OT_COMMANDS_OT int32_t mainClearExpired()
EXPORT static OT_COMMANDS_OT int32_t details_download_box_receipt(const std::string &strID, int32_t nBoxType)
EXPORT static OT_COMMANDS_OT int32_t mainSendCash()
EXPORT static OT_COMMANDS_OT int32_t mainAddAsset()
EXPORT static OT_COMMANDS_OT int32_t mainShowBasket()
EXPORT static OT_COMMANDS_OT int32_t details_show_record(const std::string &strServerID, const std::string &strMyNymID, const std::string &strMyAcctID, int32_t nIndex, const std::string &strRecordBox)
EXPORT static OT_COMMANDS_OT int32_t mainSendMessage()
EXPORT static OT_COMMANDS_OT int32_t mainShowMyOffers()
EXPORT static OT_COMMANDS_OT int32_t mainChangePw()
EXPORT static OT_COMMANDS_OT int32_t mainShowIncoming()
EXPORT static OT_COMMANDS_OT int32_t details_download_contract(const std::string &strServerID, const std::string &strNymID, const std::string &strContractID)
EXPORT static OT_COMMANDS_OT bool withdraw_and_send_cash(const std::string &strMyAcctID, std::string &strHisNymID, const std::string &strMemo, const std::string &strAmount)
EXPORT static OT_COMMANDS_OT int32_t mainConfirm()
EXPORT static OT_COMMANDS_OT int32_t mainDiscard()
EXPORT static OT_COMMANDS_OT int32_t details_propose_plan(const std::string &strServerID, const std::string &strMyNymID, const std::string &strMyAcctID, const std::string &strHisNymID, const std::string &strHisAcctID, const std::string &strDates, const std::string &strConsideration, const std::string &strInitialPayment, const std::string &strPaymentPlan, const std::string &strExpiry)
EXPORT static OT_COMMANDS_OT int32_t details_accept_payments(const std::string &strMyAcctID, const std::string &strIndices)
EXPORT static OT_COMMANDS_OT int32_t mainNewServer()
EXPORT static OT_COMMANDS_OT int32_t mainShowExpired()
EXPORT static OT_COMMANDS_OT int32_t mainAcceptTransfers()
EXPORT static OT_COMMANDS_OT int32_t mainAcceptPayments()
EXPORT static OT_COMMANDS_OT int32_t mainShowWallet()
EXPORT static OT_COMMANDS_OT int32_t stat_basket_accounts(const std::string &strServer, const std::string &strNym, bool bFilter, const std::string &strBasketType)
EXPORT static OT_COMMANDS_OT int32_t details_show_records(const std::string &strServerID, const std::string &strMyNymID, const std::string &strMyAcctID)
EXPORT static OT_COMMANDS_OT int32_t details_show_expired_records(const std::string &strServerID, const std::string &strMyNymID)
EXPORT static OT_COMMANDS_OT int32_t impl_show_market_offers(std::string &strMarket)
EXPORT static OT_COMMANDS_OT int32_t mainRefreshAccount()
EXPORT static OT_COMMANDS_OT bool stat_partyaccount_index(const std::string &strSmartContract, const std::string &strPartyName, int32_t nCurrentAccount)
EXPORT static OT_COMMANDS_OT int32_t mainNewOffer()
EXPORT static OT_COMMANDS_OT bool stat_partyaccounts(const std::string &strSmartContract, const std::string &strPartyName, int32_t nDepth)
EXPORT static OT_COMMANDS_OT int32_t mainDeposit()
EXPORT static OT_COMMANDS_OT int32_t details_show_credentials(const std::string &strMyNymID)
EXPORT static OT_COMMANDS_OT int32_t mainOutpayment()
EXPORT static OT_COMMANDS_OT int32_t details_del_outmail(const std::string &strMyNymID, const std::string &strIndices)
EXPORT static OT_COMMANDS_OT int32_t mainIssueAsset()
EXPORT static OT_COMMANDS_OT int32_t mainRefreshNym()
EXPORT static OT_COMMANDS_OT bool details_refresh_nym(const std::string &strServerID, const std::string &strMyNymID, bool bForceDownload)
EXPORT static OT_COMMANDS_OT int32_t details_cancel_outgoing(const std::string &strMyNym, const std::string &strMyAcct, const std::string &strIndices)
EXPORT static OT_COMMANDS_OT int32_t mainGetOffers()
EXPORT static OT_COMMANDS_OT int32_t details_send_transfer(const std::string &strMyAcctID, const std::string &strHisAcctID, const std::string &strAmount, const std::string &strNote)
EXPORT static OT_COMMANDS_OT int32_t mainExportCash()
EXPORT static OT_COMMANDS_OT int32_t details_account_balance(const std::string &strID)
EXPORT static OT_COMMANDS_OT int32_t mainShowMint()
EXPORT static OT_COMMANDS_OT int32_t mainAddServer()
EXPORT static OT_COMMANDS_OT int32_t mainAdjustUsageCredits()
EXPORT static OT_COMMANDS_OT int32_t mainAcceptMoney()
EXPORT static OT_COMMANDS_OT int32_t mainAcceptAll()
EXPORT static OT_COMMANDS_OT int32_t details_pay_dividend(const std::string &strAmount, const std::string &strMemo)
EXPORT static OT_COMMANDS_OT int32_t mainShowOutgoing()
EXPORT static OT_COMMANDS_OT int32_t mainShowNym()
EXPORT static OT_COMMANDS_OT std::string find_revokedID_for_subcred(const std::string &strMyNymID, const std::string &strInputID)
EXPORT static OT_COMMANDS_OT bool stat_partyaccount(const std::string &strSmartContract, const std::string &strPartyName, const std::string &strAcctName, int32_t nCurrentAccount)
EXPORT static OT_COMMANDS_OT int32_t mainGetReceipt()
EXPORT static OT_COMMANDS_OT int32_t mainEditServer()
EXPORT static OT_COMMANDS_OT int32_t accept_from_paymentbox(const std::string &strMyAcctID, const std::string &strIndices, const std::string &strPaymentType)
EXPORT static OT_COMMANDS_OT int32_t mainEditAsset()
EXPORT static OT_COMMANDS_OT int32_t mainShowAssets()
EXPORT static OT_COMMANDS_OT std::string details_get_nym_market_offers(const std::string &strServerID, const std::string &strNymID)
EXPORT static OT_COMMANDS_OT bool stat_partyagents(const std::string &strSmartContract, const std::string &strPartyName, int32_t nDepth)
EXPORT static OT_COMMANDS_OT int32_t mainCancel()
EXPORT static OT_COMMANDS_OT int32_t mainDecrypt()
EXPORT static OT_COMMANDS_OT int32_t mainAcceptReceipts()
EXPORT static OT_COMMANDS_OT int32_t details_clear_records(const std::string &strServerID, const std::string &strMyNymID, const std::string &strMyAcctID)
EXPORT static OT_COMMANDS_OT bool show_outmail_message(const std::string &strMyNymID, int32_t nIndex, bool bShowContents)
EXPORT static OT_COMMANDS_OT int32_t details_show_basket()
EXPORT static OT_COMMANDS_OT int32_t mainShowCredentials()
EXPORT static OT_COMMANDS_OT bool stat_partyagent(const std::string &strSmartContract, const std::string &strPartyName, const std::string &strAgentName, int32_t nIndex)
EXPORT static OT_COMMANDS_OT int32_t details_accept_invoices(const std::string &strMyAcctID, const std::string &strIndices)
EXPORT static OT_COMMANDS_OT int32_t mainRegisterNym()
EXPORT static OT_COMMANDS_OT int32_t mainNewAccount()
#define OT_COMMANDS_OT
EXPORT static OT_COMMANDS_OT int32_t mainRevokeCredential()
EXPORT static OT_COMMANDS_OT int32_t mainTriggerClause()
EXPORT static OT_COMMANDS_OT int32_t details_show_nym_offers(const std::string &strServerID, const std::string &strNymID)
EXPORT static OT_COMMANDS_OT int32_t mainExportNym()
EXPORT static OT_COMMANDS_OT int32_t details_write_cheque(std::string &strCheque, bool bIsInvoice)
EXPORT static OT_COMMANDS_OT int32_t mainNewNym()
EXPORT static OT_COMMANDS_OT int32_t details_create_nym(int32_t nKeybits, const std::string &strName, const std::string &strSourceForNymID, const std::string &strAltLocation)
EXPORT static OT_COMMANDS_OT int32_t details_kill_offer(const std::string &strServerID, const std::string &strNymID, const std::string &strAcctID, const std::string &strTransNum)
EXPORT static OT_COMMANDS_OT int32_t mainShowOffers()
EXPORT static OT_COMMANDS_OT int32_t mainShowPurse()
EXPORT static OT_COMMANDS_OT int32_t mainShowBalance()
EXPORT static OT_COMMANDS_OT int32_t mainDeleteOutmail()
EXPORT static OT_COMMANDS_OT int32_t mainEditNym()
EXPORT static OT_COMMANDS_OT int32_t mainPasswordDecrypt()
EXPORT static OT_COMMANDS_OT int32_t mainAcceptInvoices()
EXPORT static OT_COMMANDS_OT int32_t mainSendInvoice()
EXPORT static OT_COMMANDS_OT int32_t mainGetMarkets()
EXPORT static OT_COMMANDS_OT int32_t mainSendVoucher()
EXPORT static OT_COMMANDS_OT bool show_unconfirmed_parties(const std::string &strSmartContract, int32_t &nPartyCount)
EXPORT static OT_COMMANDS_OT std::string details_export_cash(const std::string &strServerID, const std::string &strFromNymID, const std::string &strAssetTypeID, std::string &strHisNymID, const std::string &strIndices, bool bPasswordProtected, std::string &strRetainedCopy)
EXPORT static OT_COMMANDS_OT int32_t mainShowActive()
EXPORT static OT_COMMANDS_OT int32_t details_exchange_basket(const std::string &strServer, const std::string &strNym, const std::string &strAcct, const std::string &strBasketType)
EXPORT static OT_COMMANDS_OT int32_t mainCheckNym()
EXPORT static OT_COMMANDS_OT std::string details_check_user(const std::string &strServerID, const std::string &strMyNymID, const std::string &strHisNymID)
EXPORT static OT_COMMANDS_OT int32_t mainShowCredential()
EXPORT static OT_COMMANDS_OT int32_t details_del_mail(const std::string &strMyNymID, const std::string &strIndices)
EXPORT static OT_COMMANDS_OT int32_t mainClearRecords()
EXPORT static OT_COMMANDS_OT bool details_import_nym(const std::string &strNymImportFile, std::string &strOutNymID)
EXPORT static OT_COMMANDS_OT int32_t mainInpayments()
EXPORT static OT_COMMANDS_OT int32_t details_nym_stat(const std::string &strID)
EXPORT static OT_COMMANDS_OT std::string details_export_nym(const std::string &strNymID)
EXPORT static OT_COMMANDS_OT int32_t mainShowServers()
EXPORT static OT_COMMANDS_OT int32_t details_deposit(const std::string &strServerID, const std::string &strMyAcctID)
EXPORT static OT_COMMANDS_OT int32_t details_import_purse(const std::string &strInstrument, bool bHasPassword, const std::string &strPurseOwner)
EXPORT static OT_COMMANDS_OT int32_t mainProposePlan()
EXPORT static OT_COMMANDS_OT int32_t mainShowRecords()
EXPORT static OT_COMMANDS_OT int32_t mainNewBasket()
EXPORT static OT_COMMANDS_OT int32_t mainInmail()
EXPORT static OT_COMMANDS_OT int32_t mainOutmail()
EXPORT static OT_COMMANDS_OT int32_t mainGetMyOffers()
EXPORT static OT_COMMANDS_OT int32_t mainWriteInvoice()
EXPORT static OT_COMMANDS_OT int32_t mainShowPayment()
EXPORT static OT_COMMANDS_OT OTDB::OfferListMarket * loadMarketOffers(const std::string &strerverID, const std::string &strMarketID)
EXPORT static OT_COMMANDS_OT int32_t mainNewAsset()
EXPORT static OT_COMMANDS_OT int32_t details_send_cash(std::string &strResponse, const std::string &strServerID, const std::string &strAssetTypeID, const std::string &strMyNymID, const std::string &strMyAcctID, std::string &strHisNymID, const std::string &strMemo, const std::string &strAmount, std::string &strIndices, bool bPasswordProtected)
EXPORT static OT_COMMANDS_OT int32_t mainAcceptInbox()
EXPORT static OT_COMMANDS_OT int32_t details_new_basket(const std::string &strServer, const std::string &strNym)
EXPORT static OT_COMMANDS_OT int32_t mainTransfer()
EXPORT static OT_COMMANDS_OT int32_t details_withdraw_cash(const std::string &strMyAcctID, int64_t lAmount)
EXPORT static OT_COMMANDS_OT bool show_outpayment(const std::string &strMyNym, int32_t nIndex, bool bShowInFull)
EXPORT static OT_COMMANDS_OT int32_t details_withdraw_voucher(std::string &strOutput)
EXPORT static OT_COMMANDS_OT int32_t mainPasswordEncrypt()
EXPORT static OT_COMMANDS_OT int32_t mainEncode()