Integration Extensions¶
Multi-Hosted Parties¶
Sketch:
allocate the
treasuryParty
from the start as a decentralized party on multiple validator nodesa common setup is to use two nodes with threshold two; thus both of them must confirm a tx for it to be committed
upload all .dars for your onboarded tokens on all of these validators
use any of the nodes hosting the party to read from as part of history ingestion and to prepare and execute transactions
switching between the nodes can be done. take care to re-synchronize the ingestion offset as described in Backup and Restore
App Reward Optimization¶
Sketch:
use Daml model to create featured app reward markers in the same tx that acts on a transfer: https://github.com/hyperledger-labs/splice/pull/1729/files#diff-f9e3d1de2443dd22c3999d1018d1c3ef2031c76626f97c8b951ab7f351e17999
likely this Daml model will come as part the wallet SDK or be part of Splice
sketch of the model referenced from here: https://github.com/hyperledger-labs/splice/issues/1901#issuecomment-3183999764
upload the corresponding .dar to your validator node; note that only your node needs it. Customers won’t see it.
Earn App Rewards for Deposits¶
Sketch:
change call to
TransferInstruction_Accept
to use the wrapped version, like the one here https://github.com/hyperledger-labs/splice/pull/1907/files#diff-4cbc6e851f73f40db384d63aa97dbf4ffb93c505b0ed0c3c360e7914f94f6201R64-R73note history tx parser should deal with this properly and just ignore the extra wrapper. So no further change required
Earn App Rewards for Withdrawals¶
Sketch:
change call to
TransferFactory_Transfer
to use the wrapped version, like the one here https://github.com/hyperledger-labs/splice/pull/1907/files#diff-4cbc6e851f73f40db384d63aa97dbf4ffb93c505b0ed0c3c360e7914f94f6201R54-R62note history tx parser should deal with this properly and just ignore the extra wrapper. So no further change required
Using the gRPC Ledger API¶
Feel free to do so if you prefer using gRPC. It is functionally equivalent to the JSON Ledger API. See this Ledger API overview for more information.