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

ledger.app

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

1domain ledger;23application basicLedger {4    environment develop {5        deploy ledger;6        deploy positions;7        deploy reserves;8        transactions {9            mode: LOCAL;10            resource: ledgerResource;11        }12    }13}1415tables entities {16    table LEDGER_ENTRIES(Entry) {17        primarykey(Entry.code);18    }19}2021transactions {22    default at resource ledgerResource;23}2425scope {26    local {27        repository(argument(0, Entry.code), Entry) using records findEntry;28        moveFunds;29        settleFunds;30        movePosition;31        moveWallet;32    }33}3435technical services {36    callCounter;37}3839intercept services {40    before: callCounter;41    after: callCounter;42    failure: callCounter;43}