Start adding transaction layouts, flags, and fields

(Does not compile)
This commit is contained in:
Ed Hennis
2025-03-18 20:37:16 -04:00
parent 9d1b98a5a4
commit 319e7a6bcb
5 changed files with 73 additions and 7 deletions

View File

@@ -28,6 +28,12 @@ InnerObjectFormats::InnerObjectFormats()
// inner objects with the default fields have to be
// constructed with STObject::makeInnerObject()
std::initializer_list<SOElement> const signingFields = {
{sfAccount, soeREQUIRED},
{sfSigningPubKey, soeREQUIRED},
{sfTxnSignature, soeREQUIRED},
};
add(sfSignerEntry.jsonName,
sfSignerEntry.getCode(),
{
@@ -36,13 +42,7 @@ InnerObjectFormats::InnerObjectFormats()
{sfWalletLocator, soeOPTIONAL},
});
add(sfSigner.jsonName,
sfSigner.getCode(),
{
{sfAccount, soeREQUIRED},
{sfSigningPubKey, soeREQUIRED},
{sfTxnSignature, soeREQUIRED},
});
add(sfSigner.jsonName, sfSigner.getCode(), signingFields);
add(sfMajority.jsonName,
sfMajority.getCode(),
@@ -154,6 +154,10 @@ InnerObjectFormats::InnerObjectFormats()
{sfIssuer, soeREQUIRED},
{sfCredentialType, soeREQUIRED},
});
add(sfCounterpartySignature.jsonName,
sfCounterpartySignature.getCode(),
signingFields);
}
InnerObjectFormats const&