[Webfunds-commits] java/webfunds/client/sox SOXWallet.java
Ian Grigg
iang@cypherpunks.ai
Tue, 20 Jun 2000 16:09:10 -0400 (AST)
iang 00/06/20 16:09:10
Modified: webfunds/client/sox SOXWallet.java
Log:
added way for wallet users to get acccess to receipt state
Revision Changes Path
1.124 +18 -1 java/webfunds/client/sox/SOXWallet.java
Index: SOXWallet.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/sox/SOXWallet.java,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- SOXWallet.java 2000/06/20 09:57:35 1.123
+++ SOXWallet.java 2000/06/20 20:09:10 1.124
@@ -1,4 +1,4 @@
-/* $Id: SOXWallet.java,v 1.123 2000/06/20 09:57:35 iang Exp $
+/* $Id: SOXWallet.java,v 1.124 2000/06/20 20:09:10 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-2000 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -1000,6 +1000,23 @@
error(e);
}
+
+ /**
+ * Low level wallet method to return the state for a transaction.
+ *
+ * @return a StateReceipt, or null if the pid is not found
+ */
+ public StateReceipt getTransactionState(AccountId acct,
+ ItemId item, String pid)
+ {
+ StateReceipt sr;
+ try {
+ sr = receiptStore.getReceipt(acct, item, pid);
+ } catch (StoreException ex) {
+ throw new webfunds.utils.Panic("get StateReceipt for " + pid);
+ }
+ return sr ;
+ }
/**
* Cancel Payments (by pids) within a SubAccount