S++Core systems, human-reviewable
SDK DOCUMENTATION ยท 1.0-SNAPSHOTStart the tutorial

ledger-quantum.app

sdk-tools/samples/custom-services/src/main/spp/ledger-quantum.app

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