Define WalletAdd transaction format.

This commit is contained in:
Arthur Britto
2012-06-01 17:58:57 -07:00
parent 3dd84e134c
commit 0ba478b296
2 changed files with 13 additions and 2 deletions

View File

@@ -69,6 +69,16 @@ TransactionFormat InnerTxnFormats[]=
{ S_FIELD(Extensions), STI_TL, SOE_IFFLAG, 0x02000000 },
{ sfInvalid, NULL, STI_DONE, SOE_NEVER, -1 } }
},
{ "WalletAdd", ttWALLET_ADD, {
{ S_FIELD(Flags), STI_UINT32, SOE_FLAGS, 0 },
{ S_FIELD(Amount), STI_AMOUNT, SOE_REQUIRED, 0 },
{ S_FIELD(AuthorizedKey), STI_ACCOUNT, SOE_REQUIRED, 0 },
{ S_FIELD(PubKey), STI_VL, SOE_REQUIRED, 0 },
{ S_FIELD(Signature), STI_VL, SOE_REQUIRED, 0 },
{ S_FIELD(SourceTag), STI_UINT32, SOE_IFFLAG, 1 },
{ S_FIELD(Extensions), STI_TL, SOE_IFFLAG, 0x02000000 },
{ sfInvalid, NULL, STI_DONE, SOE_NEVER, -1 } }
},
{ NULL, ttINVALID }
};

View File

@@ -8,8 +8,9 @@ enum TransactionType
ttINVALID = -1,
ttPAYMENT = 0,
ttCLAIM = 1,
ttINVOICE = 2,
ttOFFER = 3,
ttWALLET_ADD = 2,
ttINVOICE = 3,
ttOFFER = 4,
ttCREDIT_SET = 20,
ttTRANSIT_SET = 21,
};