i like that you improved the protocol, its definitely getting better, maybe we should make the protocol look like C++ code
here is the interface i would like us to use
/*===========================================================================
| sendTx:
|
| PURPOSE: to allow an AbstractWallet to send an amount of AC to another AbstractWallet.
|
| RETURN: int value, the Amount of uAC left in the sender wallet.
|
\===========================================================================*/class AbstractWallet {
virtual int sendTx(
int SendTo_Id,
int Send_Amount)=0;
};
typedef std::vector<AbstractWallet> AbstractWalletList;
void CreateAbstractWallet(
int SendTo_Id);
now we can push a tx like this
tadakaluri(1493uAC) = AbstractWalletList[AC0M98S1|tadakaluri]->sendTx( AC0m97S1|adamstgBit , 100 );
do you get it??
wallet "AC0M98S1|tadakaluri"
sends
wallet "AC0M98S1|adamstgBit" 100 uAC
and
wallet "AC0M98S1|tadakaluri"
has 1493uAC left
and anyone can say something like:
CreateAbstractWallet(AC0M98S1|tadakaluri);
to declare their wallet...
this is ok.....I have always liked explicit variables to check, read code and provide information which is why I provide
View Profile Email Personal Message (Online)
8-13 ignores
Re: [Experiment] Abstract Coin 0.2.1
Today at 02:27:32 AM
Reply with quote Edit message Delete message #193
Quote from: Invest0r on Today at 02:15:47 AM
I'd like some Smiley
Just created a wallet:
|ACINVEST0|
(u)(49750)|jubalix|ACICAHJFKJ|(-50)(R)(49700) ------>(u)(+50)|test|test|
units on both sides and the whole equation being
my ballance, amount sent with sign, (R) for return and amount after and on the other side amount sent.
so
I may suggest
we have int's for current amounts and send an received......it makes it really easy to read, and double if not triple check.
tadakaluri(1493uAC) = AbstractWalletList[AC0M98S1|tadakaluri]->sendTx( AC0m97S1|adamstgBit , 100 );
new ACwallet(|jubalix|ACICAHJFKJ|,n); (n for nano = default, you could override)
ACwallet::SendNow
class sendNow{SendWallet, Ballance, unit, amount,Receive Wallet)
{send-->Tx}
anyway I am sure something can be figured out....good idea though