Aggregator onboarding checklist
For the RuneCode team and a new aggregator, in order. Nothing here needs new code: the aggregator profile in the SDKs (Aggregators) and the sandbox are enough.
Before the call
- Agree the commercial terms and which sub-operators will launch first. We bill the aggregator, with a breakdown by brand.
- The aggregator picks its operator id and sends its Ed25519 public key for the sandbox (one key per environment).
- We give back the RuneCode public keys (current and standby) their wallet ingress must verify, and our egress IPs to allow-list.
- The aggregator gives us its wallet ingress URL (HTTPS) and the list of sub-operators with a brand id each (1 to 40 characters of
A-Z a-z 0-9 _ -).
What we configure (manual until the back office exists)
- the operator and its public key, with the wallet ingress URL;
profile.brands: every brand id they will send. A brand that is not registered is refused with400 ERR_BADat launch;- the jurisdiction profile. If the aggregator spans jurisdictions it must send
countryon every launch, or we configure a brand-to-profile map, otherwise launches are refused withERR_JUR; - the games enabled for the operator, and currencies and bet levels per brand where they differ.
What the aggregator builds
AggregatorClient.launch(subOperator, ...)(or the same three steps by hand): sendbrand, storetoken -> sub-operatorbefore launching, and keep the record until every round of that session is closed.- A wallet ingress that verifies the signature on the raw bytes, finds the sub-operator by token, and forwards to that sub-operator's money.
WalletRouterdoes the routing; the wallet rules in Implementing the wallet still apply. - A shared, durable session store (not the in-memory one).
Sandbox exit criteria
Run these in the sandbox with at least two sub-operators and check each one:
- [ ] launch for each sub-operator succeeds, and a brand we did not register is refused;
- [ ] a bet, a win and a rollback each reach the right sub-operator's wallet (check by token);
- [ ] the same debit sent twice is applied once; a lost response followed by a retry never double-debits;
- [ ] a wallet failure answers
5xx(never2xx), and the RGS retries until it succeeds; - [ ] an unknown token answers
400 ERR_ISonly when the record really does not exist; - [ ] the signature check rejects a tampered body and the wrong operator;
- [ ] rounds and transactions can be looked up for the whole group, and split per sub-operator using
metadata.subOperator; - [ ] reconciliation: their per-sub-operator totals match our statement for the test day.
Go-live
Follow Testing and going live: production keys, allow-listed IPs, a production smoke test, then one sub-operator first, then the rest.