Monthly statements
FreeAutomatically archived PDF statements after month-end.
From 8eca3945babea8524f63f8d3764f0efd8d441c72 Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Wed, 18 Nov 2026 23:41:21 +0100 Subject: [PATCH] Expand public tariffs with tax rules, reserve instruments and economic formulas; add complete PDF and audited direct publisher --- tools/jarvis-dev-key.mjs | 2 +- tools/jarvis-dev-tariff-receipt.mjs | 26 +++++++ tools/package-tariff-hotfix.mjs | 12 ++++ tools/tariff-hotfix-template.py | 94 +++++++++++++++++++++++++ tools/tests/jarvis-dev-key.test.mjs | 6 ++ website/node/postbank-rates-pdf.py | 7 +- website/scripts/bank-rates-page.mjs | 3 +- website/scripts/build.mjs | 2 +- website/scripts/claim-rates-section.mjs | 2 +- website/scripts/rates-reference.mjs | 16 +++++ website/tests/claim-tariffs.test.mjs | 2 +- website/tests/rates-reference.test.mjs | 15 ++++ website/web/bank-rates.css | 3 + website/web/bank-rates.js | 7 +- website/web/rates-and-charges.html | 2 +- 15 files changed, 189 insertions(+), 10 deletions(-) create mode 100644 tools/jarvis-dev-tariff-receipt.mjs create mode 100644 tools/package-tariff-hotfix.mjs create mode 100644 tools/tariff-hotfix-template.py create mode 100644 website/scripts/rates-reference.mjs create mode 100644 website/tests/rates-reference.test.mjs diff --git a/tools/jarvis-dev-key.mjs b/tools/jarvis-dev-key.mjs index e7dcd737..db1605c3 100644 --- a/tools/jarvis-dev-key.mjs +++ b/tools/jarvis-dev-key.mjs @@ -15,7 +15,7 @@ export function createDevKeyAuthority({secret,environment,authorize,clock=Date.n return Object.freeze({ async issue(actor,manifest,{ttlMs=600000}={}){ await allowed(actor); - if(!Number.isSafeInteger(ttlMs)||ttlMs<1||ttlMs>900000||manifest?.action!=='clan-reset'||manifest.state!=='planned')throw TypeError('Invalid developer batch'); + if(!Number.isSafeInteger(ttlMs)||ttlMs<1||ttlMs>900000||!['clan-reset','tariff-publication'].includes(manifest?.action)||manifest.state!=='planned')throw TypeError('Invalid developer batch'); const now=clock(),record={id:randomUUID(),environment,actorId:actor.id,issuedAt:now,expiresAt:now+ttlMs,manifestHash:hash(canonical(manifest)),manifest:JSON.parse(canonical(manifest))}; const payload=Buffer.from(canonical(record)).toString('base64url'); const key='DEV-BATCH.'+payload+'.'+sign(payload); diff --git a/tools/jarvis-dev-tariff-receipt.mjs b/tools/jarvis-dev-tariff-receipt.mjs new file mode 100644 index 00000000..ef1247bb --- /dev/null +++ b/tools/jarvis-dev-tariff-receipt.mjs @@ -0,0 +1,26 @@ +// Root-only companion to the fixed-file publication script, never a web route. +import {createDevKeyAuthority} from './jarvis-dev-key.mjs'; +import {randomBytes,randomUUID} from 'node:crypto'; +import {createRequire} from 'node:module'; +let raw='';for await(const part of process.stdin)raw+=part; +if(process.getuid?.()!==0||raw.length>65536||!['--issue','--complete','--failed'].includes(process.argv[2]))throw Error('Fixed developer publication command required'); +const data=JSON.parse(raw),mode=process.argv[2],actor={id:'server-root'}; +process.loadEnvFile('/home/dunerealms/.config/dunerealms.env'); +const require=createRequire('/home/dunerealms/apps/dunerealms/current/node/mysql.mjs'),mysql=require('mysql2/promise'); +const db=await mysql.createConnection({host:process.env.DB_HOST||'127.0.0.1',port:Number(process.env.DB_PORT||3306),user:process.env.DB_USER,password:process.env.DB_PASSWORD,database:process.env.DB_NAME,multipleStatements:false}); +try{ + let details,action; + if(mode==='--issue'){ + if(data.action!=='tariff-publication'||data.batchId!=='tariff-guide-20261118-v1'||!Array.isArray(data.files)||data.files.length!==5)throw Error('Unexpected tariff manifest'); + const authority=createDevKeyAuthority({secret:randomBytes(32).toString('hex'),environment:'production',authorize:async who=>who.id===actor.id&&process.getuid()===0}); + const issued=await authority.issue(actor,data),record=await authority.verify(actor,issued.key,data); + details={...issued.audit,batchId:data.batchId,manifest:data};action='dev-key-issued'; + await db.execute('INSERT INTO account_audit(id,actor_id,action,details,created_at) VALUES(?,?,?,?,?)',[record.id,'f3ffda37-01e4-41ea-b89d-fbeda82e453e',action,JSON.stringify(details),Date.now()]); + console.log(JSON.stringify({record,audit:issued.audit})); + }else{ + if(data.record?.manifest?.batchId!=='tariff-guide-20261118-v1'||typeof data.record?.id!=='string')throw Error('Publication receipt required'); + action=mode==='--complete'?'dev-tariff-published':'dev-tariff-failed';details={keyId:data.record.id,batchId:data.record.manifest.batchId,manifestHash:data.record.manifestHash,files:data.record.manifest.files}; + await db.execute('INSERT INTO account_audit(id,actor_id,action,details,created_at) VALUES(?,?,?,?,?)',[randomUUID(),'f3ffda37-01e4-41ea-b89d-fbeda82e453e',action,JSON.stringify(details),Date.now()]); + console.log(JSON.stringify({keyId:data.record.id,state:mode==='--complete'?'completed':'failed'})); + } +}finally{await db.end();} diff --git a/tools/package-tariff-hotfix.mjs b/tools/package-tariff-hotfix.mjs new file mode 100644 index 00000000..6149e650 --- /dev/null +++ b/tools/package-tariff-hotfix.mjs @@ -0,0 +1,12 @@ +import {readFileSync,writeFileSync,readdirSync} from 'node:fs'; +import {createHash} from 'node:crypto'; +const root=new URL('../',import.meta.url),read=p=>readFileSync(new URL(p,root)),hash=b=>createHash('sha256').update(b).digest('hex'); +const names=['rates-and-charges.html','bank-rates.css','bank-rates.js','downloads/rates-guide-manifest.json','downloads/dunerealms-rates-guide-20261118.pdf']; +const files=Object.fromEntries(names.map(name=>{ + let bytes=read('website/web/'+name);const mime=name.endsWith('.html')?'text/html; charset=utf-8':name.endsWith('.css')?'text/css; charset=utf-8':name.endsWith('.js')?'text/javascript; charset=utf-8':name.endsWith('.json')?'application/json; charset=utf-8':'application/pdf'; + if(name.endsWith('.html')){const key=JSON.stringify('/'+name)+':';let prepared=null;for(const shard of [...read('website/dist/server/index.js').toString().matchAll(/from "\.\/(assets-[a-f0-9]+\.mjs)"/g)].map(m=>m[1])){const source=read('website/dist/server/'+shard).toString();const start=source.indexOf(key);if(start>=0){const end=source.indexOf('],',start);prepared=JSON.parse(source.slice(start+key.length,end+1));break;}}if(!prepared)throw Error('Build prepared tariff HTML first');bytes=Buffer.from(prepared[1],'base64');} + return[name,{mime,data:bytes.toString('base64'),sha256:hash(bytes)}]; +})); +const helpers=Object.fromEntries(['jarvis-dev-key.mjs','jarvis-dev-tariff-receipt.mjs'].map(name=>{const b=read('tools/'+name);return[name,{data:b.toString('base64'),sha256:hash(b)}];})); +const template=read('tools/tariff-hotfix-template.py').toString().replace('__FILES_JSON__',JSON.stringify(JSON.stringify(files))).replace('__HELPERS_JSON__',JSON.stringify(JSON.stringify(helpers))); +if(!process.argv[2])throw Error('Specify staged script path');writeFileSync(process.argv[2],template);console.log(JSON.stringify({files:names,script:process.argv[2],containsSecrets:false})); diff --git a/tools/tariff-hotfix-template.py b/tools/tariff-hotfix-template.py new file mode 100644 index 00000000..ff18bf79 --- /dev/null +++ b/tools/tariff-hotfix-template.py @@ -0,0 +1,94 @@ +"""Fixed, manifest-bound publication of five public tariff assets. No policy edits.""" +import base64, hashlib, json, os, pathlib, re, subprocess, sys, fcntl +FILES=json.loads(__FILES_JSON__) +HELPERS=json.loads(__HELPERS_JSON__) +APP=pathlib.Path('/home/dunerealms/apps/dunerealms') +STATE=pathlib.Path('/mnt/HC_Volume_107481500/dunegit/ci/promotion') +NODE='/home/dunerealms/.nvm/versions/node/v22.23.3/bin/node' +EXPECTED='ci-27d3bef1b60f01e6ddebfb644144002773a3de52' +INSTALL=pathlib.Path('/usr/local/libexec/dunerealms-dev/tariff-guide-20261118') +def digest(data):return hashlib.sha256(data).hexdigest() +def run(args,**kwargs):return subprocess.run(args,check=True,capture_output=True,**kwargs) +def atomic(path,data): + metadata=path.stat() if path.exists() else None + path.parent.mkdir(parents=True,exist_ok=True) + tmp=path.with_name(path.name+'.tariff-new') + if tmp.exists() or tmp.is_symlink():raise RuntimeError('Unexpected staged publication file') + with tmp.open('xb') as out:out.write(data);out.flush();os.fsync(out.fileno()) + os.chmod(tmp,metadata.st_mode & 0o777 if metadata else 0o644) + if metadata:os.chown(tmp,metadata.st_uid,metadata.st_gid) + os.replace(tmp,path) +def main(): + if os.geteuid()!=0:raise RuntimeError('Server administrator required') + if len(sys.argv)!=2 or sys.argv[1] not in ('--plan','--apply'):raise RuntimeError('Choose --plan or --apply') + release=(APP/'current').resolve(strict=True) + if release.parent!=APP/'releases' or release.name!=EXPECTED:raise RuntimeError('Live release changed; regenerate this fixed publication package') + payload={name:base64.b64decode(item['data']) for name,item in FILES.items()} + if any(digest(payload[n])!=v['sha256'] for n,v in FILES.items()):raise RuntimeError('Publication package integrity failure') + source=json.loads(run(['curl','--noproxy','*','-fsS','--max-time','15','--resolve','cp.dunerealms.com:443:127.0.0.1','https://cp.dunerealms.com/api/bank/public/rates']).stdout) + guide=json.loads(payload['downloads/rates-guide-manifest.json']) + if source['version']!=guide['sourcePublicationVersion']:raise RuntimeError('Financial policy changed; regenerate the guide from its current public snapshot') + manifest={'action':'tariff-publication','state':'planned','batchId':'tariff-guide-20261118-v1','release':release.name,'files':[{'path':'/'+n,'sha256':FILES[n]['sha256']} for n in sorted(FILES)],'changesFinancialPolicy':False,'changesBalances':False} + if sys.argv[1]=='--plan':print(json.dumps(manifest));return + lock=os.fdopen(os.open(STATE/'tariff-guide-20261118.lock',os.O_CREAT|os.O_RDWR|os.O_NOFOLLOW,0o600),'w') + fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB) + receipt_path=STATE/'tariff-guide-20261118-v1.json' + if receipt_path.exists(): + receipt=json.loads(receipt_path.read_text()) + if receipt.get('state')=='completed':print(json.dumps({'state':'already-completed','keyId':receipt['record']['id']}));return + raise RuntimeError('Previous incomplete publication needs inspection before retry') + for directory in (INSTALL.parent,INSTALL): + if directory.is_symlink():raise RuntimeError('Unsafe developer installation path') + directory.mkdir(parents=True,exist_ok=True) + st=directory.stat() + if st.st_uid!=0 or st.st_mode & 0o022:raise RuntimeError('Developer installation must be root-owned and not writable by others') + for name,item in HELPERS.items(): + data=base64.b64decode(item['data']) + if digest(data)!=item['sha256']:raise RuntimeError('Developer helper integrity failure') + atomic(INSTALL/name,data) + run([NODE,'--check',str(INSTALL/name)]) + def audit(mode,value):return json.loads(run([NODE,str(INSTALL/'jarvis-dev-tariff-receipt.mjs'),mode],input=json.dumps(value).encode()).stdout) + originals={};changes={};shards=[release/'dist/server'/name for name in re.findall(r'from "\./(assets-[a-f0-9]+\.mjs)"',(release/'dist/server/index.js').read_text())] + if not shards:raise RuntimeError('Compiled public assets unavailable') + for name,item in FILES.items(): + key=json.dumps('/'+name,separators=(',',':')) + entry=key+':'+json.dumps([item['mime'],item['data']],separators=(',',':'))+',' + matches=[] + pattern=re.compile(re.escape(key)+r':\["[^"]+","[A-Za-z0-9+/=]*"\],') + for shard in shards: + text=changes.get(shard,shard.read_bytes()).decode() + if pattern.search(text):matches.append((shard,pattern.sub(lambda _:entry,text,count=1).encode())) + if len(matches)>1:raise RuntimeError('Ambiguous compiled publication asset') + if matches:changes[matches[0][0]]=matches[0][1] + else: + shard=shards[0];text=changes.get(shard,shard.read_bytes()).decode() + if not text.rstrip().endswith('};'):raise RuntimeError('Unexpected compiled asset format') + end=text.rfind('};');changes[shard]=(text[:end]+entry+text[end:]).encode() + changes[release/'web'/name]=payload[name] + if name in ('rates-and-charges.html','bank-rates.css'): + changes[release/'dist/shared-chrome'/name]=payload[name] + changes[pathlib.Path('/var/lib/dunerealms-public-rates')/name]=payload[name] + slot=(STATE/'active-slot').read_text().strip() + if slot not in ('blue','green'):raise RuntimeError('Unknown active website slot') + pm2=['runuser','-u','dunerealms','--','env','PM2_HOME='+str(STATE.parent/'pm2'),NODE,'/home/dunerealms/.local/node_modules/pm2/bin/pm2'] + run(pm2+['describe','dunerealms-web-'+slot]) + for path in changes:originals[path]=path.read_bytes() if path.exists() else None + receipt=audit('--issue',manifest) + if receipt['record']['manifest']!=manifest:raise RuntimeError('Developer manifest verification failed') + receipt['state']='executing';atomic(receipt_path,json.dumps(receipt).encode()) + try: + for path,data in changes.items():atomic(path,data) + run(pm2+['reload','dunerealms-web-'+slot]) + for name,item in FILES.items(): + actual=run(['curl','--noproxy','*','-fsS','--retry','5','--retry-delay','1','--max-time','15','--resolve','www.dunerealms.com:443:127.0.0.1','https://www.dunerealms.com/'+name]).stdout + if digest(actual)!=item['sha256']:raise RuntimeError('Public tariff verification failed: '+name) + audit('--complete',receipt);receipt['state']='completed';atomic(receipt_path,json.dumps(receipt).encode()) + print(json.dumps({'state':'completed','keyId':receipt['record']['id'],'publishedAssets':len(FILES),'balancesChanged':False,'financialPoliciesChanged':False})) + except Exception: + for path,data in originals.items(): + if data is None:path.unlink(missing_ok=True) + else:atomic(path,data) + run(pm2+['reload','dunerealms-web-'+slot]) + audit('--failed',receipt);receipt['state']='failed';atomic(receipt_path,json.dumps(receipt).encode()) + raise +if __name__=='__main__':main() diff --git a/tools/tests/jarvis-dev-key.test.mjs b/tools/tests/jarvis-dev-key.test.mjs index 6e19600d..3e354e7c 100644 --- a/tools/tests/jarvis-dev-key.test.mjs +++ b/tools/tests/jarvis-dev-key.test.mjs @@ -17,3 +17,9 @@ test('expiry, tampering and unavailable developer privileges reject before execu now=10100;await assert.rejects(service.verify(dev,issued.key,manifest),/unavailable/); await assert.rejects(setup({authorize:async()=>false}).issue(dev,manifest),/Developer access/); }); +test('tariff publication keys bind exact public file hashes and reject unrelated developer actions',async()=>{ + const service=setup(),publication={action:'tariff-publication',state:'planned',files:[{path:'/rates-and-charges.html',sha256:'ab'.repeat(32)}],changesBalances:false}; + const issued=await service.issue(dev,publication);assert.equal((await service.verify(dev,issued.key,publication)).manifest.changesBalances,false); + await assert.rejects(service.verify(dev,issued.key,{...publication,files:[{path:'/other.html',sha256:'ab'.repeat(32)}]}),/manifest/); + await assert.rejects(service.issue(dev,{action:'arbitrary-sql',state:'planned'}),/Invalid developer batch/); +}); diff --git a/website/node/postbank-rates-pdf.py b/website/node/postbank-rates-pdf.py index 1e18016a..3e52ac2a 100644 --- a/website/node/postbank-rates-pdf.py +++ b/website/node/postbank-rates-pdf.py @@ -27,7 +27,7 @@ def render(data,logo=None): green=colors.HexColor('#173c30');gold=colors.HexColor('#af914c');ink=colors.HexColor('#243e34') body=ParagraphStyle('RatesBody',fontName='Rates',fontSize=9,leading=13,textColor=ink,spaceAfter=8) title=ParagraphStyle('RatesTitle',fontName='RatesBold',fontSize=25,leading=30,textColor=green,spaceAfter=15) - heading=ParagraphStyle('RatesHeading',fontName='RatesBold',fontSize=14,leading=19,textColor=green,spaceBefore=10,spaceAfter=7) + heading=ParagraphStyle('RatesHeading',fontName='RatesBold',fontSize=14,leading=19,textColor=green,spaceBefore=10,spaceAfter=7,keepWithNext=True) small=ParagraphStyle('RatesSmall',parent=body,fontSize=7.5,leading=11) p=lambda text,style=body:Paragraph(escape(str(text)),style) cash=lambda n:f'{int(n)//100:,}.{int(n)%100:02d} DM' @@ -65,6 +65,11 @@ def render(data,logo=None): story.append(p('Destinations & transparency',heading));story.append(p('Bank service charges go to the Website bank treasury. Game taxes and payroll deductions go to I.D. Taxes. Posted entries remain in the relevant account ledgers.')) story.append(p('Sources for the selected payroll parameters',heading)) for source in tax.get('sources',[]):story.append(p(source,small)) + for section in data.get('supplementSections',[]): + story.extend([PageBreak(),p(section['title'],title)]) + for text in section.get('paragraphs',[]):story.append(p(text)) + headers=section.get('headers',[]) + if headers:story.append(grid(headers,section.get('rows',[]),[511/len(headers)]*len(headers))) document.build(story,onFirstPage=frame,onLaterPages=frame);return output.getvalue() if __name__=='__main__':sys.stdout.buffer.write(render(json.load(sys.stdin),sys.argv[1]if len(sys.argv)>1 else None)) diff --git a/website/scripts/bank-rates-page.mjs b/website/scripts/bank-rates-page.mjs index 580a30d0..0c5f8d5d 100644 --- a/website/scripts/bank-rates-page.mjs +++ b/website/scripts/bank-rates-page.mjs @@ -1,3 +1,4 @@ +import {ratesReferenceHTML,RATES_GUIDE_EDITION} from './rates-reference.mjs'; import {rihlaRatesSection} from './rihla-rates-section.mjs'; import {claimRatesSection} from './claim-rates-section.mjs'; import {SHARED_HEADER} from './portal-navigation.mjs'; @@ -8,5 +9,5 @@ export function bankRatesPage(){ const version=createHash('sha256').update(JSON.stringify([PACKAGES,CREDIT_PRODUCTS])).digest('hex').slice(0,10); const packages=PACKAGES.map(p=>`

YOUR MONEY. CLEAR TERMS.
A clear guide to banking and organisation costs.
PUBLIC TARIFF GUIDE · ${version}One current account is included in each package.
| Package | Client | Monthly price | Extra current accounts¹ | Each / month¹ | Instant quota / month |
|---|
¹ Published additional-account limits and prices, subject to feature availability. Flow and Pro include a savings account. Pro includes unlimited instant payments with no per-transfer fee. Transfers have no package amount cap; available funds and payment security apply. Start has no instant payments. Instant quotas are server usage limits.
Annual rates for new applications. Your accepted contract and repayment schedule govern your loan.
| Product | Annual rate | Principal range | Available terms |
|---|
Launch grants are repayable at 0% interest. Ordinary loans require review and a first instalment of 5% from your own funds before issue. This instalment counts toward repayment and reduces the remaining loan balance. Eligibility, available funding and refinancing conditions apply. Existing fixed-rate contracts retain their agreed rate. Revolving credit is not available.
Automatically archived PDF statements after month-end.
Published optional price per eligible account. Preference saving is available; protection and charging are not active yet.
VAT and account-tax rates await central configuration. No unconfirmed rate is presented as active.
Generated from the bank catalogues on each build. Version ${version}. Package terms: ${BANK_VERSION}. Credit terms: ${CREDIT_VERSION}.
Catalogue references identify source terms, not a new effective date. Administrative rate editing and automatic downloadable PDF publication are planned. You can print or save this guide as PDF now.
No private account or transaction data is published here.

YOUR MONEY. CLEAR TERMS.
Banking, taxation, reserve policy and the rules behind the realm economy.
PUBLIC TARIFF GUIDE · ${version}One current account is included in each package.
| Package | Client | Monthly price | Extra current accounts¹ | Each / month¹ | Instant quota / month |
|---|
¹ Published additional-account limits and prices, subject to feature availability. Flow and Pro include a savings account. Pro includes unlimited instant payments with no per-transfer fee. Transfers have no package amount cap; available funds and payment security apply. Start has no instant payments. Instant quotas are server usage limits.
Annual rates for new applications. Your accepted contract and repayment schedule govern your loan.
| Product | Annual rate | Principal range | Available terms |
|---|
Launch grants are repayable at 0% interest. Ordinary loans require review and a first instalment of 5% from your own funds before issue. This instalment counts toward repayment and reduces the remaining loan balance. Eligibility, available funding and refinancing conditions apply. Existing fixed-rate contracts retain their agreed rate. Revolving credit is not available.
Automatically archived PDF statements after month-end.
Published optional price per eligible account. Preference saving is available; protection and charging are not active yet.
Configured VAT, account tax and payroll deductions are loaded from the public bank publication. The tax-rule tables below explain their application.
Generated from the bank catalogues on each build. Version ${version}. Package terms: ${BANK_VERSION}. Credit terms: ${CREDIT_VERSION}.
Catalogue references identify source terms, not a new effective date. The live financial register supplies configured bank and tax values. The expanded handbook also records reserve instruments, calculation rules and availability.
No private account or transaction data is published here.
${group.description}
| Tier | Chunks | Monthly | Unlock |
|---|---|---|---|
| ${row.code}${row.requirement?''+row.requirement+'':''} | ${row.chunks} | ${claimMoney(row.upkeepMinor)} | ${claimMoney(row.unlockMinor)} |

One organisation. One total chunk budget.
One chunk is 16 × 16 blocks. Nine chunks in a 3 × 3 square cover 48 × 48 blocks. Limits apply across all claims belonging to the organisation.
Create a Basic organisation first. Its original key unlocks Keyed status; a political appointment and new POL-key are required for Royal status. Tier unlock fees are paid once, sequentially. Upgrade claim capacity ingame by right-clicking the Home Block; this guide does not apply upgrades.
Companies: capacity × 1.5 and fees × 1.5. Protected Houses: capacity × 1.5 and fees × 0.5. Round capacity down to whole chunks. Both upkeep and unlock fees use the cost multiplier.
Unlock calculation: 20 DM per additional chunk of standard clan capacity, plus ten months of the new standard tier’s upkeep; then apply the organisation cost multiplier. BC_T0 is free. Scaled fees are not recalculated from rounded capacity. Standard RC_T3 is 36 chunks: a possible 96 × 96-block square, fitting the agreed 100 × 100-block ceiling. Shapes may vary. A mother house controls its subordinate houses’ claim rights and management. Entitlement sources remain traceable and count only once. The original organisation remains responsible for upkeep and unlock costs, including upgrades performed by the mother house; a change in the mother’s tier does not transfer those costs.
Schedule ${CLAIM_TARIFF_VERSION}. Print this page to include claim tariffs; the downloadable bank tariff PDF currently covers bank rates, not this planned claim schedule.

One organisation. One total chunk budget.
One chunk is 16 × 16 blocks. Nine chunks in a 3 × 3 square cover 48 × 48 blocks. Limits apply across all claims belonging to the organisation.
Create a Basic organisation first. Its original key unlocks Keyed status; a political appointment and new POL-key are required for Royal status. Tier unlock fees are paid once, sequentially. Upgrade claim capacity ingame by right-clicking the Home Block; this guide does not apply upgrades.
Companies: capacity × 1.5 and fees × 1.5. Protected Houses: capacity × 1.5 and fees × 0.5. Round capacity down to whole chunks. Both upkeep and unlock fees use the cost multiplier.
Unlock calculation: 20 DM per additional chunk of standard clan capacity, plus ten months of the new standard tier’s upkeep; then apply the organisation cost multiplier. BC_T0 is free. Scaled fees are not recalculated from rounded capacity. Standard RC_T3 is 36 chunks: a possible 96 × 96-block square, fitting the agreed 100 × 100-block ceiling. Shapes may vary. A mother house controls its subordinate houses’ claim rights and management. Entitlement sources remain traceable and count only once. The original organisation remains responsible for upkeep and unlock costs, including upgrades performed by the mother house; a change in the mother’s tier does not transfer those costs.
Schedule ${CLAIM_TARIFF_VERSION}. The complete downloadable handbook includes this capacity and fee schedule.
${escape(t)}
`).join('')}| ${escape(h)} | `).join('')}
|---|
| ${escape(c)} | `).join('')}


YOUR MONEY. CLEAR TERMS.
A clear guide to banking and organisation costs.
PUBLIC TARIFF GUIDE · 9791d06344One current account is included in each package.
| Package | Client | Monthly price | Extra current accounts¹ | Each / month¹ | Instant quota / month |
|---|---|---|---|---|---|
| Start | person | 0.00 DM | 0 | — | 0 |
| Flow | person | 5.00 DM | 1 | 3.00 DM | 5 |
| Pro | person | 15.00 DM | 3 | 2.00 DM | Unlimited |
| Connect | clan / company | 10.00 DM | 2 | 3.00 DM | 15 |
| Scale | clan / company | 25.00 DM | 9 | 2.00 DM | 40 |
| Civic | house / office | 0.00 DM | 0 | — | 10 |
| Public | staff | 0.00 DM | 0 | — | 25 |
¹ Published additional-account limits and prices, subject to feature availability. Flow and Pro include a savings account. Pro includes unlimited instant payments with no per-transfer fee. Transfers have no package amount cap; available funds and payment security apply. Start has no instant payments. Instant quotas are server usage limits.
Annual rates for new applications. Your accepted contract and repayment schedule govern your loan.
| Product | Annual rate | Principal range | Available terms |
|---|---|---|---|
| Launch Start | 0.00% | 2500.00–2500.00 DM | Up to 12 months |
| Launch Build | 0.00% | 5000.00–5000.00 DM | Up to 12 months |
| Launch Advance | 0.00% | 10000.00–10000.00 DM | Up to 12 months |
| Personal Loan | 8.39% | 1000.00–25000.00 DM | 3, 6, 9, 12 months |
| One-Month Advance | 10.39% | 250.00–2500.00 DM | 1 months |
| Business Loan | 4.50% | 5000.00–100000.00 DM | 3, 6, 12, 18, 24 months |
| Civic Loan | 3.50% | 5000.00–100000.00 DM | 3, 6, 12 months |
| Personal Refinancing | 12.00% | 0.01–100000.00 DM | 3, 6, 9, 12, 18, 24 months |
| Business Refinancing | 6.50% | 0.01–500000.00 DM | 3, 6, 12, 18, 24 months |
| Civic Refinancing | 5.50% | 0.01–500000.00 DM | 3, 6, 12 months |
Launch grants are repayable at 0% interest. Ordinary loans require review and a first instalment of 5% from your own funds before issue. This instalment counts toward repayment and reduces the remaining loan balance. Eligibility, available funding and refinancing conditions apply. Existing fixed-rate contracts retain their agreed rate. Revolving credit is not available.
Automatically archived PDF statements after month-end.
Published optional price per eligible account. Preference saving is available; protection and charging are not active yet.
VAT and account-tax rates await central configuration. No unconfirmed rate is presented as active.
Separate private account for every user. No bank package, activation fee or starting funds. View your account and statement in User CP; send and collect transfers in-game.
| Amount sent | Transfer tax | Recipient receives |
|---|---|---|
| Up to and including 3,000 DM | 1% of the full amount | The full amount sent |
| Above 3,000 DM | 5% of the full amount | The full amount sent |
Tax is added to the sender’s amount and paid to I.D. Taxes upon collection. Fractional cents round up to the next cent. Created transfers reserve amount plus tax; cancellation releases the reservation. Example: sending 3,000 DM costs 3,030 DM; sending 4,000 DM costs 4,200 DM. In-game execution will be connected separately.

One organisation. One total chunk budget.
One chunk is 16 × 16 blocks. Nine chunks in a 3 × 3 square cover 48 × 48 blocks. Limits apply across all claims belonging to the organisation.
Create a Basic organisation first. Its original key unlocks Keyed status; a political appointment and new POL-key are required for Royal status. Tier unlock fees are paid once, sequentially. Upgrade claim capacity ingame by right-clicking the Home Block; this guide does not apply upgrades.
Companies: capacity × 1.5 and fees × 1.5. Protected Houses: capacity × 1.5 and fees × 0.5. Round capacity down to whole chunks. Both upkeep and unlock fees use the cost multiplier.
Standard clan claim limits and fees.
| Tier | Chunks | Monthly | Unlock |
|---|---|---|---|
| BC_T0 | 1 | 0.00 DM | 0.00 DM |
| BC_T1 | 2 | 2.00 DM | 40.00 DM |
| BC_T2 | 3 | 4.00 DM | 60.00 DM |
| BC_T3 | 4 | 6.00 DM | 80.00 DM |
| KC_T0CLAN-key | 4 | 5.00 DM | 50.00 DM |
| KC_T1 | 6 | 8.00 DM | 120.00 DM |
| KC_T2 | 9 | 12.00 DM | 180.00 DM |
| KC_T3 | 12 | 16.00 DM | 220.00 DM |
| KC_T4 | 16 | 22.00 DM | 300.00 DM |
| RC_T0Political appointment + POL-key | 16 | 18.00 DM | 180.00 DM |
| RC_T1 | 20 | 24.00 DM | 320.00 DM |
| RC_T2 | 25 | 30.00 DM | 400.00 DM |
| RC_T3 | 36 | 44.00 DM | 660.00 DM |
1.5× claim capacity and 1.5× fees.
| Tier | Chunks | Monthly | Unlock |
|---|---|---|---|
| BCO_T0 | 1 | 0.00 DM | 0.00 DM |
| BCO_T1 | 3 | 3.00 DM | 60.00 DM |
| BCO_T2 | 4 | 6.00 DM | 90.00 DM |
| BCO_T3 | 6 | 9.00 DM | 120.00 DM |
| KCO_T0COM-key | 6 | 7.50 DM | 75.00 DM |
| KCO_T1 | 9 | 12.00 DM | 180.00 DM |
| KCO_T2 | 13 | 18.00 DM | 270.00 DM |
| KCO_T3 | 18 | 24.00 DM | 330.00 DM |
| KCO_T4 | 24 | 33.00 DM | 450.00 DM |
| RCO_T0Political appointment + POL-key | 24 | 27.00 DM | 270.00 DM |
| RCO_T1 | 30 | 36.00 DM | 480.00 DM |
| RCO_T2 | 37 | 45.00 DM | 600.00 DM |
| RCO_T3 | 54 | 66.00 DM | 990.00 DM |
1.5× claim capacity and half the standard fees. Protected institutions such as Vaerkring.
| Tier | Chunks | Monthly | Unlock |
|---|---|---|---|
| PBC_T0 | 1 | 0.00 DM | 0.00 DM |
| PBC_T1 | 3 | 1.00 DM | 20.00 DM |
| PBC_T2 | 4 | 2.00 DM | 30.00 DM |
| PBC_T3 | 6 | 3.00 DM | 40.00 DM |
| PKC_T0CLAN-key | 6 | 2.50 DM | 25.00 DM |
| PKC_T1 | 9 | 4.00 DM | 60.00 DM |
| PKC_T2 | 13 | 6.00 DM | 90.00 DM |
| PKC_T3 | 18 | 8.00 DM | 110.00 DM |
| PKC_T4 | 24 | 11.00 DM | 150.00 DM |
| PRC_T0Political appointment + POL-key | 24 | 9.00 DM | 90.00 DM |
| PRC_T1 | 30 | 12.00 DM | 160.00 DM |
| PRC_T2 | 37 | 15.00 DM | 200.00 DM |
| PRC_T3 | 54 | 22.00 DM | 330.00 DM |
Unlock calculation: 20 DM per additional chunk of standard clan capacity, plus ten months of the new standard tier’s upkeep; then apply the organisation cost multiplier. BC_T0 is free. Scaled fees are not recalculated from rounded capacity. Standard RC_T3 is 36 chunks: a possible 96 × 96-block square, fitting the agreed 100 × 100-block ceiling. Shapes may vary. A mother house controls its subordinate houses’ claim rights and management. Entitlement sources remain traceable and count only once. The original organisation remains responsible for upkeep and unlock costs, including upgrades performed by the mother house; a change in the mother’s tier does not transfer those costs.
Schedule claims-1.0.0.9-v1. Print this page to include claim tariffs; the downloadable bank tariff PDF currently covers bank rates, not this planned claim schedule.
Generated from the bank catalogues on each build. Version 9791d06344. Package terms: postbank-foundation-2026-11-13. Credit terms: postbank-credit-2026-11-15-first-instalment.
Catalogue references identify source terms, not a new effective date. Administrative rate editing and automatic downloadable PDF publication are planned. You can print or save this guide as PDF now.
No private account or transaction data is published here.


YOUR MONEY. CLEAR TERMS.
Banking, taxation, reserve policy and the rules behind the realm economy.
PUBLIC TARIFF GUIDE · 9791d06344One current account is included in each package.
| Package | Client | Monthly price | Extra current accounts¹ | Each / month¹ | Instant quota / month |
|---|---|---|---|---|---|
| Start | person | 0.00 DM | 0 | — | 0 |
| Flow | person | 5.00 DM | 1 | 3.00 DM | 5 |
| Pro | person | 15.00 DM | 3 | 2.00 DM | Unlimited |
| Connect | clan / company | 10.00 DM | 2 | 3.00 DM | 15 |
| Scale | clan / company | 25.00 DM | 9 | 2.00 DM | 40 |
| Civic | house / office | 0.00 DM | 0 | — | 10 |
| Public | staff | 0.00 DM | 0 | — | 25 |
¹ Published additional-account limits and prices, subject to feature availability. Flow and Pro include a savings account. Pro includes unlimited instant payments with no per-transfer fee. Transfers have no package amount cap; available funds and payment security apply. Start has no instant payments. Instant quotas are server usage limits.
Annual rates for new applications. Your accepted contract and repayment schedule govern your loan.
| Product | Annual rate | Principal range | Available terms |
|---|---|---|---|
| Launch Start | 0.00% | 2500.00–2500.00 DM | Up to 12 months |
| Launch Build | 0.00% | 5000.00–5000.00 DM | Up to 12 months |
| Launch Advance | 0.00% | 10000.00–10000.00 DM | Up to 12 months |
| Personal Loan | 8.39% | 1000.00–25000.00 DM | 3, 6, 9, 12 months |
| One-Month Advance | 10.39% | 250.00–2500.00 DM | 1 months |
| Business Loan | 4.50% | 5000.00–100000.00 DM | 3, 6, 12, 18, 24 months |
| Civic Loan | 3.50% | 5000.00–100000.00 DM | 3, 6, 12 months |
| Personal Refinancing | 12.00% | 0.01–100000.00 DM | 3, 6, 9, 12, 18, 24 months |
| Business Refinancing | 6.50% | 0.01–500000.00 DM | 3, 6, 12, 18, 24 months |
| Civic Refinancing | 5.50% | 0.01–500000.00 DM | 3, 6, 12 months |
Launch grants are repayable at 0% interest. Ordinary loans require review and a first instalment of 5% from your own funds before issue. This instalment counts toward repayment and reduces the remaining loan balance. Eligibility, available funding and refinancing conditions apply. Existing fixed-rate contracts retain their agreed rate. Revolving credit is not available.
Automatically archived PDF statements after month-end.
Published optional price per eligible account. Preference saving is available; protection and charging are not active yet.
Configured VAT, account tax and payroll deductions are loaded from the public bank publication. The tax-rule tables below explain their application.
Separate private account for every user. No bank package, activation fee or starting funds. View your account and statement in User CP; send and collect transfers in-game.
| Amount sent | Transfer tax | Recipient receives |
|---|---|---|
| Up to and including 3,000 DM | 1% of the full amount | The full amount sent |
| Above 3,000 DM | 5% of the full amount | The full amount sent |
Tax is added to the sender’s amount and paid to I.D. Taxes upon collection. Fractional cents round up to the next cent. Created transfers reserve amount plus tax; cancellation releases the reservation. Example: sending 3,000 DM costs 3,030 DM; sending 4,000 DM costs 4,200 DM. In-game execution will be connected separately.

One organisation. One total chunk budget.
One chunk is 16 × 16 blocks. Nine chunks in a 3 × 3 square cover 48 × 48 blocks. Limits apply across all claims belonging to the organisation.
Create a Basic organisation first. Its original key unlocks Keyed status; a political appointment and new POL-key are required for Royal status. Tier unlock fees are paid once, sequentially. Upgrade claim capacity ingame by right-clicking the Home Block; this guide does not apply upgrades.
Companies: capacity × 1.5 and fees × 1.5. Protected Houses: capacity × 1.5 and fees × 0.5. Round capacity down to whole chunks. Both upkeep and unlock fees use the cost multiplier.
Standard clan claim limits and fees.
| Tier | Chunks | Monthly | Unlock |
|---|---|---|---|
| BC_T0 | 1 | 0.00 DM | 0.00 DM |
| BC_T1 | 2 | 2.00 DM | 40.00 DM |
| BC_T2 | 3 | 4.00 DM | 60.00 DM |
| BC_T3 | 4 | 6.00 DM | 80.00 DM |
| KC_T0CLAN-key | 4 | 5.00 DM | 50.00 DM |
| KC_T1 | 6 | 8.00 DM | 120.00 DM |
| KC_T2 | 9 | 12.00 DM | 180.00 DM |
| KC_T3 | 12 | 16.00 DM | 220.00 DM |
| KC_T4 | 16 | 22.00 DM | 300.00 DM |
| RC_T0Political appointment + POL-key | 16 | 18.00 DM | 180.00 DM |
| RC_T1 | 20 | 24.00 DM | 320.00 DM |
| RC_T2 | 25 | 30.00 DM | 400.00 DM |
| RC_T3 | 36 | 44.00 DM | 660.00 DM |
1.5× claim capacity and 1.5× fees.
| Tier | Chunks | Monthly | Unlock |
|---|---|---|---|
| BCO_T0 | 1 | 0.00 DM | 0.00 DM |
| BCO_T1 | 3 | 3.00 DM | 60.00 DM |
| BCO_T2 | 4 | 6.00 DM | 90.00 DM |
| BCO_T3 | 6 | 9.00 DM | 120.00 DM |
| KCO_T0COM-key | 6 | 7.50 DM | 75.00 DM |
| KCO_T1 | 9 | 12.00 DM | 180.00 DM |
| KCO_T2 | 13 | 18.00 DM | 270.00 DM |
| KCO_T3 | 18 | 24.00 DM | 330.00 DM |
| KCO_T4 | 24 | 33.00 DM | 450.00 DM |
| RCO_T0Political appointment + POL-key | 24 | 27.00 DM | 270.00 DM |
| RCO_T1 | 30 | 36.00 DM | 480.00 DM |
| RCO_T2 | 37 | 45.00 DM | 600.00 DM |
| RCO_T3 | 54 | 66.00 DM | 990.00 DM |
1.5× claim capacity and half the standard fees. Protected institutions such as Vaerkring.
| Tier | Chunks | Monthly | Unlock |
|---|---|---|---|
| PBC_T0 | 1 | 0.00 DM | 0.00 DM |
| PBC_T1 | 3 | 1.00 DM | 20.00 DM |
| PBC_T2 | 4 | 2.00 DM | 30.00 DM |
| PBC_T3 | 6 | 3.00 DM | 40.00 DM |
| PKC_T0CLAN-key | 6 | 2.50 DM | 25.00 DM |
| PKC_T1 | 9 | 4.00 DM | 60.00 DM |
| PKC_T2 | 13 | 6.00 DM | 90.00 DM |
| PKC_T3 | 18 | 8.00 DM | 110.00 DM |
| PKC_T4 | 24 | 11.00 DM | 150.00 DM |
| PRC_T0Political appointment + POL-key | 24 | 9.00 DM | 90.00 DM |
| PRC_T1 | 30 | 12.00 DM | 160.00 DM |
| PRC_T2 | 37 | 15.00 DM | 200.00 DM |
| PRC_T3 | 54 | 22.00 DM | 330.00 DM |
Unlock calculation: 20 DM per additional chunk of standard clan capacity, plus ten months of the new standard tier’s upkeep; then apply the organisation cost multiplier. BC_T0 is free. Scaled fees are not recalculated from rounded capacity. Standard RC_T3 is 36 chunks: a possible 96 × 96-block square, fitting the agreed 100 × 100-block ceiling. Shapes may vary. A mother house controls its subordinate houses’ claim rights and management. Entitlement sources remain traceable and count only once. The original organisation remains responsible for upkeep and unlock costs, including upgrades performed by the mother house; a change in the mother’s tier does not transfer those costs.
Schedule claims-1.0.0.9-v1. The complete downloadable handbook includes this capacity and fee schedule.

A configured tax rate does not make every website or Minecraft action taxable. The relevant transaction handler must apply the tax and record its ledger entries. No blanket extra tax is added to the prices below.
Rihla: 1% for transfers up to and including 3,000 DM; 5% on the full amount above 3,000 DM. The sender pays principal plus tax; the recipient receives the full principal. Tax rounds upward to the next cent. In-game sending and collection remain a separate integration.
| Charge | Who pays / basis | Destination / status |
|---|---|---|
| Applicable game-sales VAT | Configured public VAT rate; supported taxable sales only | Tax treasury; game-flow integration dependent |
| VAT on bank fees | Configured bank-fee VAT rate shown in the live register | Tax treasury; a zero rate adds no VAT |
| Monthly account tax | Configured fixed amount shown in the live register | A zero amount adds no account tax |
| Package and account charges | Accepted package terms; automated monthly billing remains disabled | Website bank treasury; published fees are not yet monthly collection |
| Rihla transfer tax | Sender; 1% / 5% of full principal | Tax treasury on collection; game execution pending |
| Payroll deductions | Employee social contribution and income tax; employer social contribution is additional | Tax treasury through supported P&O payroll posting |
| Recruitment and campaigns | Publishing organisation or officeholder; accepted quote | Tax treasury; listing charge is distinct from VAT |
| Office auction | Winning bidder; accepted final bid | Tax treasury; losing holds released |
| Claim upkeep / unlock | Original organisation, including upgrades by its mother | Tax treasury; published schedule and supported claim flow apply |
| Server project funding | Approved budget paid from available Tax funds | Dedicated 979 project account; project workflow in development |

Recruitment: Basic clans are free. Keyed/Royal recruitment uses 10 DM + 0.25 DM per occupied member. Protected institutions do not use ordinary recruitment. Political custom vacancies use the same agreed recruitment tariff.
Campaign bookings use whole hourly slots, may cover multiple hours and open no earlier than seven days before the election. A featured slot is exclusive for its election scope and hour. Forum/Discord promotion is optional: 25 DM per selected channel per booking, not per hour; retries do not create another charge.
| Election campaign | Standard / hour | Featured / hour |
|---|---|---|
| Clan Delegate | 100.00 DM | 150.00 DM |
| House leader | 250.00 DM | 375.00 DM |
| Veiled Concord | 250.00 DM | 375.00 DM |
| Spacing Guild | 250.00 DM | 375.00 DM |
| Emperor | 1000.00 DM | 1500.00 DM |
| Office auction opening bid | 100.00 DM | Minimum increase 10.00 DM |

An instrument records a purpose and authority; knowing a reference is not permission. Public references never disclose secret codes. These are fictional game-economy instruments, not real-world securities.
Reserve issuance is restricted to the designated reserve owner and existing administration checks. It uses balanced grant postings to the Tax treasury; this guide creates no reserve budget or money. The new baseline and seasonal budget still require configuration.
| Instrument / flow | Purpose | Availability |
|---|---|---|
| Economic snapshot · ECO-SNAP | Sealed observation, baseline, policy version, index and rates; immutable payload hash | Implemented archival instrument; automatic collection is not connected |
| Reserve grant | Existing owner-controlled issuance to the Tax treasury, recorded in both ledgers | Existing restricted bank flow; no public redeemable reserve key |
| Policy / baseline change | Versioned configuration followed by a new observation | Requires a reviewed implementation or supported dev batch; no invented player code |
| Developer batch instrument | Exact manifest, server identity, short expiry, once-only action and audit receipt | Server/CLI only; never a website generator, download or player entitlement |
| Rihla instrument · RIA | Account-bound transfer reference, parties, amount and state | Private website register; in-game execution pending |
| News record · NEWS | Sealed public fact linked to its source and article | Gazette backend batch; not a redeemable reward |

Calculation policy v1. Formula support is implemented; automatic price, savings-interest, lending-rate and wage adjustments are not enabled by publishing this guide. Existing accepted loans keep their contracted rates. Player-set listing prices are not silently rewritten.
M = verified circulating DM; M0 = a strictly positive approved baseline. E is an index, not a direct annual inflation percentage. Unfunded issuance positions and system reserves must be classified by the approved collector; issued minus returned alone is not a complete inflation measure.
| Calculation | Formula | Limits / meaning |
|---|---|---|
| Money index | E = (M / M0)^0.25 | M0 > 0; a fresh baseline starts at E = 1 |
| Demand factor | D = ((sold + 10) / (offered + 10))^0.15 | Verified counts; smoothing avoids empty-market division |
| System price target | target = clamp(base price × E × D, 0.5 × base, 2 × base) | System catalogue prices only; quote policy/version must be stored |
| Published system price | clamp(target, 0.95 × previous, 1.05 × previous) | Maximum ±5% per daily step; round in cents within bounds |
| Savings rate | S = clamp(round(S0 + 500 × (E − 1)), Smin, Smax) | Basis points; +5 percentage points per +1 index unit. Base and bounds require configuration |
| New lending rate | L = clamp(round(L0 + 1000 × (E − 1)), Lmin, Lmax) | Basis points; +10 percentage points per +1 index unit. Existing contracts unchanged |
| Indexed staff wage | target = base wage × E; next = clamp(target, 0.95 × previous, 1.05 × previous) | Maximum ±5% per monthly step; use P&O approved wages |
| Tax-inclusive price | gross = net + applicable tax | Only when that transaction implements the relevant tax rule |

All amounts use integer DM cents. Contribution and tax calculations round to the nearest cent using the existing payroll model. This is a fictional game model with selected Belgian-inspired parameters; household deductions and real-world tax advice are outside its scope.
| Step | Calculation |
|---|---|
| Employee contribution | round(gross monthly × employee social rate) |
| Monthly taxable pay | gross monthly − employee contribution |
| Annual progressive tax | Apply the configured marginal bands to 12 × monthly taxable pay |
| Basic allowance credit | Apply the same tax bands to the annual basic allowance; subtract this credit from annual tax, floor at zero |
| Monthly income tax | round(max(annual tax − allowance credit, 0) / 12) |
| Net wage | gross monthly − employee contribution − monthly income tax |
| Employer cost | gross monthly + round(gross monthly × employer social rate) |
| Tax treasury receipt | employee contribution + monthly income tax + employer contribution |
Generated from the bank catalogues on each build. Version 9791d06344. Package terms: postbank-foundation-2026-11-13. Credit terms: postbank-credit-2026-11-15-first-instalment.
Catalogue references identify source terms, not a new effective date. The live financial register supplies configured bank and tax values. The expanded handbook also records reserve instruments, calculation rules and availability.
No private account or transaction data is published here.