ledger-quantum.app
sdk-tools/samples/custom-services/src/main/spp/ledger-quantum.app
1domain ledger;23tables roles {4table LOCAL_WALLETS(LocalWallet) {5primarykey(LocalWallet.wallet);6}7table FUNDS(Funds) {8primarykey(Funds.wallet);9}10}1112play ProviderPlayedRole by positions.Position {13accountCode = account;14currency = currency;15claim = outstanding;16}1718play ProviderPlayedRole by reserves.Reserve {19accountCode = referenceCode;20currency = denomination;21claim = available;22}2324play SettlementPosition by positions.Position {25accountCode = account;26unit = currency { LOCAL_UNIT: "UNIT"; };27claim = outstanding;28}2930play OriginWallet by ledger.LocalWallet {31wallet = wallet;32owner = owner;33amount = amount;34}3536play DestinationWallet by ledger.LocalWallet {37wallet = wallet;38owner = owner;39amount = amount;40}