[WIP] Start implementing LoanSet transactor

- Add some more values and functions to make it easier to work with
  basis point values / bips.
- Fix several earlier mistakes.
This commit is contained in:
Ed Hennis
2025-04-18 17:45:30 -04:00
parent a01ce0ad00
commit 5bed1d94e6
10 changed files with 386 additions and 48 deletions

View File

@@ -28,12 +28,6 @@ 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(),
{
@@ -42,7 +36,13 @@ InnerObjectFormats::InnerObjectFormats()
{sfWalletLocator, soeOPTIONAL},
});
add(sfSigner.jsonName, sfSigner.getCode(), signingFields);
add(sfSigner.jsonName,
sfSigner.getCode(),
{
{sfAccount, soeREQUIRED},
{sfSigningPubKey, soeREQUIRED},
{sfTxnSignature, soeREQUIRED},
});
add(sfMajority.jsonName,
sfMajority.getCode(),
@@ -157,7 +157,11 @@ InnerObjectFormats::InnerObjectFormats()
add(sfCounterpartySignature.jsonName,
sfCounterpartySignature.getCode(),
signingFields);
{
{sfSigningPubKey, soeREQUIRED},
{sfTxnSignature, soeOPTIONAL},
{sfSigners, soeOPTIONAL},
});
}
InnerObjectFormats const&