Add player profile pages with transaction history and social share cards

This commit is contained in:
Meghdad committed 2026-10-27 02:46:37 +03:30
1 parent e6e5d9cb13
commit acffaa9e76
45 files changed
+30767 -7

No files matched your search

+7
View File
@@ -1,4 +1,5 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
.idea/
# dependencies # dependencies
/node_modules /node_modules
@@ -59,3 +60,9 @@ next-env.d.ts
!.env.example !.env.example
*.tsbuildinfo *.tsbuildinfo
/cloudflare/dist/
/cloudflare/.state/
/cloudflare/.work/
/cloudflare/siphoned.zip
/cloudflare/.wrangler/
+8
View File
@@ -23,3 +23,11 @@ The live card uses bundled OFL-licensed Vazirmatn regular/bold fonts. Persian la
## Energy palette and icon ## Energy palette and icon
The primary color is cyan-blue (`#56d3ff`) over deep navy (`#080f18`). The vector vial in `lib/energy-art.mjs` is shared by the hero, brand, live card, SVG/ICO/PNG favicon and Apple touch icon. It follows the cyan energy, dark metal bands and brass cap visible in the Siphoned Energy item reference: https://www.albiondatabase.com/items/siphoned-energy (icon: https://assets.albiondatabase.com/icons/items/UNIQUE_GVGTOKEN_GENERIC.png). Run `node scripts/generate-favicon.mjs` after changing the vector. Warning/debt colors remain amber/red to communicate balance status. The primary color is cyan-blue (`#56d3ff`) over deep navy (`#080f18`). The vector vial in `lib/energy-art.mjs` is shared by the hero, brand, live card, SVG/ICO/PNG favicon and Apple touch icon. It follows the cyan energy, dark metal bands and brass cap visible in the Siphoned Energy item reference: https://www.albiondatabase.com/items/siphoned-energy (icon: https://assets.albiondatabase.com/icons/items/UNIQUE_GVGTOKEN_GENERIC.png). Run `node scripts/generate-favicon.mjs` after changing the vector. Warning/debt colors remain amber/red to communicate balance status.
## Player pages
Every member has a public, case-insensitive `/@player_name` account page, linked from player names in the leaderboard and guild history. It shows balance, rank, readiness and the exact required top-up, totals, a complete balance timeline, and searchable deposit/withdrawal history with the balance after each transaction. History loads progressively; CSV exports the full account regardless of the selected filter. Balances start from zero at the beginning of imported history. Timestamps retain the game timezone; transactions within the same second have no known in-game order.
The shared account link copies a fresh `?t=` timestamp. Player-specific Twitter/Open Graph images show balance, readiness, top-up, rank, totals, and the five latest transactions. Next/Vinext uses `/api/player-image?player=...`; the offline Cloudflare package generates one PNG per player during its usual build. Unknown players return HTTP 404. Player metadata has its own canonical URL and never inherits the guild-wide preview.
Validation: `node --test lib/*.test.mjs cloudflare/src/worker.test.mjs`, `npx tsc --noEmit --incremental false`, and `node cloudflare/build.mjs`.
+29
View File
@@ -0,0 +1,29 @@
import type {Metadata} from 'next';
import {notFound} from 'next/navigation';
import {readLedger} from '../../lib/server';
import {siteOrigin,ledgerSnapshot} from '../../lib/share';
import {playerSnapshot} from '../../lib/player.mjs';
import {shareTimestamp,withShareTimestamp} from '../../lib/share-link.mjs';
import {persianNumber as n} from '../../lib/persian-text';
import {playerCardWidth,playerCardHeight} from '../../lib/player-card';
import PlayerPage from '../../components/player-page';
export const dynamic='force-dynamic';
type Props={params:Promise<{handle:string}>;searchParams:Promise<Record<string,string|string[]|undefined>>};
async function account(params:Props['params']) {
const {handle}=await params;
if(!handle.startsWith('@')||handle.length<2||handle.length>65)notFound();
const rows=await readLedger(), profile=playerSnapshot(rows,handle.slice(1));
if(!profile)notFound();
return {rows,profile};
}
export async function generateMetadata({params,searchParams}:Props):Promise<Metadata>{
const {rows,profile:p}=await account(params),snapshot=await ledgerSnapshot(rows);
const canonical=new URL(p.path,siteOrigin).href;
const title=`${p.name} | ${p.status} · خزانه سایفوند انرژی`;
const description=`بالانس ${n(p.balance)} سایفوند انرژی · رتبه ${n(p.rank)} از ${n(p.members)} · ${n(p.count)} تراکنش · واریز لازم تا آمادگی: ${n(p.topUp)}`;
const timestamp=shareTimestamp((await searchParams).t);
let image=`${siteOrigin}/api/player-image?player=${encodeURIComponent(p.name)}&v=player-v1-${snapshot.revision}`;
if(timestamp!==null)image=withShareTimestamp(image,timestamp);
return {title,description,alternates:{canonical},openGraph:{type:'website',locale:'fa_IR',url:timestamp===null?canonical:withShareTimestamp(canonical,timestamp),title,description,images:[{url:image,width:playerCardWidth,height:playerCardHeight,alt:`وضعیت و آخرین تراکنش‌های ${p.name}`}]},twitter:{card:'summary_large_image',title,description,images:[{url:image,alt:`وضعیت و آخرین تراکنش‌های ${p.name}`}]}};
}
export default async function Page({params}:Props){const {rows,profile}=await account(params);return <PlayerPage rows={rows} name={profile.name} origin={siteOrigin}/>;}
+16
View File
@@ -0,0 +1,16 @@
import {ImageResponse} from 'next/og';
import {createElement} from 'react';
import {readLedger} from '../../../lib/server';
import {playerSnapshot} from '../../../lib/player.mjs';
import {PlayerCard,playerCardWidth,playerCardHeight} from '../../../lib/player-card';
import {socialFonts} from '../../../lib/social-fonts';
export const dynamic='force-dynamic';
export async function GET(request:Request){
const name=new URL(request.url).searchParams.get('player');
if(!name||name.length>64)return new Response('Player not found',{status:404});
try{
const data=playerSnapshot(await readLedger(),name);
if(!data)return new Response('Player not found',{status:404});
return new ImageResponse(createElement(PlayerCard,{data}),{width:playerCardWidth,height:playerCardHeight,fonts:[...socialFonts],headers:{'Cache-Control':'no-store'}});
}catch{return new Response('تصویر حساب موقتاً در دسترس نیست.',{status:503,headers:{'Cache-Control':'no-store'}});}
}
+6 -7
View File
@@ -1,6 +1,7 @@
'use client'; 'use client';
import {useEffect,useState,useMemo} from 'react'; import {useEffect,useState,useMemo} from 'react';
import {Shield,ArrowUpRight,ArrowDownLeft,Search,ChevronLeft,Trophy,Flame,Coins,History,Lock,Upload,CheckCircle2,AlertTriangle,X,RefreshCw,Copy,Share2} from 'lucide-react'; import {Shield,ArrowUpRight,ArrowDownLeft,Search,ChevronLeft,Trophy,Flame,Coins,History,Lock,Upload,AlertTriangle,RefreshCw,Share2} from 'lucide-react';
import {playerPath} from '../lib/player.mjs';
import {withShareTimestamp} from '../lib/share-link.mjs'; import {withShareTimestamp} from '../lib/share-link.mjs';
import {seed,summarize,parseLog,identity,minimum} from '../lib/ledger.mjs'; import {seed,summarize,parseLog,identity,minimum} from '../lib/ledger.mjs';
type Row={id:string;date:string;player:string;reason:string;amount:number}; type Row={id:string;date:string;player:string;reason:string;amount:number};
@@ -8,13 +9,11 @@ const num=(n:number)=>n.toLocaleString('fa-IR');
const digits=(s:string)=>s.replace(/[0-9]/g,n=>'۰۱۲۳۴۵۶۷۸۹'[Number(n)]); const digits=(s:string)=>s.replace(/[0-9]/g,n=>'۰۱۲۳۴۵۶۷۸۹'[Number(n)]);
function status(n:number){return n<0?'بدهکار':n<minimum?'نیازمند شارژ':'آمادهٔ نبرد';} function status(n:number){return n<0?'بدهکار':n<minimum?'نیازمند شارژ':'آمادهٔ نبرد';}
export default function Dashboard({adminMode=false}:{adminMode?:boolean}){ export default function Dashboard({adminMode=false}:{adminMode?:boolean}){
const [rows,setRows]=useState<Row[]>(seed as Row[]),[loading,setLoading]=useState(true),[error,setError]=useState(''),[query,setQuery]=useState(''),[tab,setTab]=useState('all'),[selected,setSelected]=useState<string|null>(null),[log,setLog]=useState(''),[message,setMessage]=useState(''),[saving,setSaving]=useState(false),[admin,setAdmin]=useState(false),[view,setView]=useState('leaderboard'),[shareUrl,setShareUrl]=useState(''),[shareNotice,setShareNotice]=useState(''),[sharing,setSharing]=useState(false); const [rows,setRows]=useState<Row[]>(seed as Row[]),[loading,setLoading]=useState(true),[error,setError]=useState(''),[query,setQuery]=useState(''),[tab,setTab]=useState('all'),[log,setLog]=useState(''),[message,setMessage]=useState(''),[saving,setSaving]=useState(false),[admin,setAdmin]=useState(false),[view,setView]=useState('leaderboard'),[shareUrl,setShareUrl]=useState(''),[shareNotice,setShareNotice]=useState(''),[sharing,setSharing]=useState(false);
async function refresh(){setLoading(true);setError('');try{const r=await fetch('/api/ledger');const d=await r.json() as {error?:string;rows:Row[];admin:boolean;shareUrl:string};if(!r.ok)throw Error(d.error);setRows(d.rows);setAdmin(d.admin);setShareUrl(d.shareUrl);}catch(e){setError(e instanceof Error?e.message:'ارتباط برقرار نشد.');}finally{setLoading(false);}} async function refresh(){setLoading(true);setError('');try{const r=await fetch('/api/ledger');const d=await r.json() as {error?:string;rows:Row[];admin:boolean;shareUrl:string};if(!r.ok)throw Error(d.error);setRows(d.rows);setAdmin(d.admin);setShareUrl(d.shareUrl);}catch(e){setError(e instanceof Error?e.message:'ارتباط برقرار نشد.');}finally{setLoading(false);}}
useEffect(()=>{refresh();},[]); useEffect(()=>{refresh();},[]);
const players=useMemo(()=>summarize(rows),[rows]);const low=players.filter(p=>p.balance<minimum);const total=players.reduce((s,p)=>s+p.balance,0);const deposits=rows.reduce((s,r)=>s+Math.max(r.amount,0),0);const withdrawals=rows.reduce((s,r)=>s+Math.max(-r.amount,0),0); const players=useMemo(()=>summarize(rows),[rows]);const low=players.filter(p=>p.balance<minimum);const total=players.reduce((s,p)=>s+p.balance,0);const deposits=rows.reduce((s,r)=>s+Math.max(r.amount,0),0);const withdrawals=rows.reduce((s,r)=>s+Math.max(-r.amount,0),0);
const filtered=players.filter(p=>p.name.toLowerCase().includes(query.toLowerCase())&&(tab!=='low'||p.balance<minimum)); const filtered=players.filter(p=>p.name.toLowerCase().includes(query.toLowerCase())&&(tab!=='low'||p.balance<minimum));
useEffect(()=>{if(!selected)return;const onKey=(e:KeyboardEvent)=>{if(e.key==='Escape')setSelected(null);};document.addEventListener('keydown',onKey);return()=>document.removeEventListener('keydown',onKey);},[selected]);
const profile=players.find(p=>p.name.toLowerCase()===selected?.toLowerCase());
const preview=useMemo(()=>{if(!log.trim())return null;try{const parsed=parseLog(log);const ids=new Set(rows.map(identity));let fresh=0;for(const r of parsed){const id=identity(r);if(!ids.has(id)){fresh++;ids.add(id);}}return {total:parsed.length,fresh,duplicates:parsed.length-fresh,error:''};}catch(e){return {error:(e as Error).message,total:0,fresh:0,duplicates:0};}},[log,rows]); const preview=useMemo(()=>{if(!log.trim())return null;try{const parsed=parseLog(log);const ids=new Set(rows.map(identity));let fresh=0;for(const r of parsed){const id=identity(r);if(!ids.has(id)){fresh++;ids.add(id);}}return {total:parsed.length,fresh,duplicates:parsed.length-fresh,error:''};}catch(e){return {error:(e as Error).message,total:0,fresh:0,duplicates:0};}},[log,rows]);
async function shareLatest(){ async function shareLatest(){
setSharing(true);setShareNotice(''); setSharing(true);setShareNotice('');
@@ -32,9 +31,9 @@ export default function Dashboard({adminMode=false}:{adminMode?:boolean}){
<section className="stats"><div className="stat"><div className="stat-top">بالانس خزانه <Coins size={19}/></div><strong className="energy" dir="ltr">{num(total)}<small>سایفوند انرژی</small></strong><span>خالص واریز و برداشت اعضا</span></div><div className="stat"><div className="stat-top">کل واریزها <ArrowDownLeft size={19}/></div><strong dir="ltr">{num(deposits)}<small className="green">واریز</small></strong><span>سهم اعضا در قدرت گیلد</span></div><div className="stat"><div className="stat-top">کل برداشت‌ها <ArrowUpRight size={19}/></div><strong dir="ltr">{num(withdrawals)}<small>برداشت</small></strong><span>{num(rows.length)} تراکنش ثبت‌شده</span></div><div className="stat"><div className="stat-top">اعضای نیازمند اقدام <Flame size={19}/></div><strong className="orange" dir="ltr">{num(low.length)}<small>از {num(players.length)} عضو</small></strong><span>بالانس کمتر از {num(minimum)} سایفوند انرژی</span></div></section> <section className="stats"><div className="stat"><div className="stat-top">بالانس خزانه <Coins size={19}/></div><strong className="energy" dir="ltr">{num(total)}<small>سایفوند انرژی</small></strong><span>خالص واریز و برداشت اعضا</span></div><div className="stat"><div className="stat-top">کل واریزها <ArrowDownLeft size={19}/></div><strong dir="ltr">{num(deposits)}<small className="green">واریز</small></strong><span>سهم اعضا در قدرت گیلد</span></div><div className="stat"><div className="stat-top">کل برداشت‌ها <ArrowUpRight size={19}/></div><strong dir="ltr">{num(withdrawals)}<small>برداشت</small></strong><span>{num(rows.length)} تراکنش ثبت‌شده</span></div><div className="stat"><div className="stat-top">اعضای نیازمند اقدام <Flame size={19}/></div><strong className="orange" dir="ltr">{num(low.length)}<small>از {num(players.length)} عضو</small></strong><span>بالانس کمتر از {num(minimum)} سایفوند انرژی</span></div></section>
{adminMode&&<section className="admin-panel"><div className="section-title"><div><div className="eyebrow">خزانه را به‌روز نگه دار</div><h2>ورود لاگ خزانه</h2></div><Lock size={23}/></div><p>خروجی بازی را همراه عنوان ستون‌ها اینجا پیست کن. پیش‌نمایش را بررسی و سپس ثبت کن.</p><textarea aria-label="لاگ تراکنش‌ها" dir="ltr" placeholder={'"Date"\t"Player"\t"Reason"\t"Amount"'} value={log} onChange={e=>setLog(e.target.value)}/>{preview&&<div className={preview.error?'notice error':'notice'}>{preview.error||`${num(preview.total)} ردیف · ${num(preview.fresh)} جدید · ${num(preview.duplicates)} تکراری`}</div>}<button className="primary" disabled={!preview||!!preview.error||saving||loading||!!error} onClick={importLog}><Upload size={17}/>{saving?'در حال ثبت…':'ادغام و ثبت تراکنش‌ها'}</button>{message&&<p role="status">{message}</p>}<small>تشخیص تکرار: زمان، نام بازیکن، نوع و مقدار. لاگ ناقص یا نامعتبر به‌طور کامل رد می‌شود.</small></section>} {adminMode&&<section className="admin-panel"><div className="section-title"><div><div className="eyebrow">خزانه را به‌روز نگه دار</div><h2>ورود لاگ خزانه</h2></div><Lock size={23}/></div><p>خروجی بازی را همراه عنوان ستون‌ها اینجا پیست کن. پیش‌نمایش را بررسی و سپس ثبت کن.</p><textarea aria-label="لاگ تراکنش‌ها" dir="ltr" placeholder={'"Date"\t"Player"\t"Reason"\t"Amount"'} value={log} onChange={e=>setLog(e.target.value)}/>{preview&&<div className={preview.error?'notice error':'notice'}>{preview.error||`${num(preview.total)} ردیف · ${num(preview.fresh)} جدید · ${num(preview.duplicates)} تکراری`}</div>}<button className="primary" disabled={!preview||!!preview.error||saving||loading||!!error} onClick={importLog}><Upload size={17}/>{saving?'در حال ثبت…':'ادغام و ثبت تراکنش‌ها'}</button>{message&&<p role="status">{message}</p>}<small>تشخیص تکرار: زمان، نام بازیکن، نوع و مقدار. لاگ ناقص یا نامعتبر به‌طور کامل رد می‌شود.</small></section>}
<section className="action-banner"><div className="action-icon"><Flame size={23}/></div><div><strong>برای نبرد بعدی، آماده‌ای؟</strong><p>حداقل {num(minimum)} سایفوند انرژی نگه دار. حساب منفی یعنی وقت جبران سهم خزانه است.</p></div><button onClick={()=>{setTab('low');setView('leaderboard');document.getElementById('leaderboard')?.scrollIntoView({behavior:'smooth'});}}>بررسی حساب‌های کم‌موجودی <ChevronLeft size={17}/></button></section> <section className="action-banner"><div className="action-icon"><Flame size={23}/></div><div><strong>برای نبرد بعدی، آماده‌ای؟</strong><p>حداقل {num(minimum)} سایفوند انرژی نگه دار. حساب منفی یعنی وقت جبران سهم خزانه است.</p></div><button onClick={()=>{setTab('low');setView('leaderboard');document.getElementById('leaderboard')?.scrollIntoView({behavior:'smooth'});}}>بررسی حساب‌های کم‌موجودی <ChevronLeft size={17}/></button></section>
<div className="lower-grid"><section className="leaderboard panel" id="leaderboard"><div className="section-title"><div><div className="eyebrow">سهم هر عضو ارزشمند است</div><h2>{view==='history'?'تاریخچهٔ خزانه':'لیدربورد اعضا'} <span>{num(players.length)} عضو</span></h2></div><Trophy className="energy" size={22}/></div><div className="mobile-views"><button className={view==='leaderboard'?'selected':''} onClick={()=>setView('leaderboard')}>لیدربورد</button><button className={view==='history'?'selected':''} onClick={()=>setView('history')}>تاریخچه</button></div><div className="filters"><div className="tabs"><button className={tab==='all'?'selected':''} onClick={()=>setTab('all')}>همهٔ اعضا</button><button className={tab==='low'?'selected':''} onClick={()=>setTab('low')}>نیازمند اقدام <span>{num(low.length)}</span></button></div><label className="search"><Search size={16}/><input value={query} onChange={e=>setQuery(e.target.value)} placeholder="نام بازیکن…" aria-label="جست‌وجوی بازیکن"/></label></div><div className="table-wrap"><table><thead><tr><th>{view==='history'?'زمان':'رتبه'}</th><th>بازیکن</th><th>{view==='history'?'نوع':'بالانس'}</th><th>{view==='history'?'مقدار':'وضعیت'}</th><th/></tr></thead><tbody>{view==='history'?rows.filter(r=>r.player.toLowerCase().includes(query.toLowerCase())&&(tab!=='low'||low.some(p=>p.name.toLowerCase()===r.player.toLowerCase()))).map(r=><tr key={identity(r)}><td className="date" dir="ltr">{digits(r.date)}</td><td><button className="player-name" dir="ltr" onClick={()=>setSelected(r.player)}>{r.player}</button></td><td>{r.reason==='Deposit'?'واریز':'برداشت'}</td><td className={r.amount>0?'green':'red'} dir="ltr">{r.amount>0?'+':''}{num(r.amount)}</td><td/></tr>):filtered.map(p=>{const rank=players.indexOf(p)+1;return <tr key={p.name} className={p.balance<0?'debt-row':''}><td><span className={'rank r'+rank}>{rank<4?<Trophy size={15}/>:num(rank)}</span></td><td><button className="player-cell" onClick={()=>setSelected(p.name)}><span className={'avatar a'+(rank%5)}>{p.name.slice(0,2).toUpperCase()}</span><span className="player-name" dir="ltr">{p.name}{rank===1&&<small>بزرگ‌ترین حامی خزانه</small>}</span></button></td><td><strong className={p.balance<0?'red':p.balance<minimum?'orange':''} dir="ltr">{num(p.balance)}</strong><small className="unit">سایفوند انرژی</small></td><td><span className={'badge '+(p.balance<0?'bad':p.balance<minimum?'warn':'good')}><i/>{status(p.balance)}</span></td><td><button className="row-open" onClick={()=>setSelected(p.name)} aria-label={'مشاهده حساب '+p.name}><ChevronLeft size={17}/></button></td></tr>;})}</tbody></table>{(view==='leaderboard'&&!filtered.length)&&<div className="empty">بازیکنی با این مشخصات پیدا نشد.</div>}</div><div className="table-footer">رتبه‌بندی بر اساس بالانس خالص <span>واریز − برداشت = بالانس</span></div></section> <div className="lower-grid"><section className="leaderboard panel" id="leaderboard"><div className="section-title"><div><div className="eyebrow">سهم هر عضو ارزشمند است</div><h2>{view==='history'?'تاریخچهٔ خزانه':'لیدربورد اعضا'} <span>{num(players.length)} عضو</span></h2></div><Trophy className="energy" size={22}/></div><div className="mobile-views"><button className={view==='leaderboard'?'selected':''} onClick={()=>setView('leaderboard')}>لیدربورد</button><button className={view==='history'?'selected':''} onClick={()=>setView('history')}>تاریخچه</button></div><div className="filters"><div className="tabs"><button className={tab==='all'?'selected':''} onClick={()=>setTab('all')}>همهٔ اعضا</button><button className={tab==='low'?'selected':''} onClick={()=>setTab('low')}>نیازمند اقدام <span>{num(low.length)}</span></button></div><label className="search"><Search size={16}/><input value={query} onChange={e=>setQuery(e.target.value)} placeholder="نام بازیکن…" aria-label="جست‌وجوی بازیکن"/></label></div><div className="table-wrap"><table><thead><tr><th>{view==='history'?'زمان':'رتبه'}</th><th>بازیکن</th><th>{view==='history'?'نوع':'بالانس'}</th><th>{view==='history'?'مقدار':'وضعیت'}</th><th/></tr></thead><tbody>{view==='history'?rows.filter(r=>r.player.toLowerCase().includes(query.toLowerCase())&&(tab!=='low'||low.some(p=>p.name.toLowerCase()===r.player.toLowerCase()))).map(r=><tr key={identity(r)}><td className="date" dir="ltr">{digits(r.date)}</td><td><a className="player-name" dir="ltr" href={playerPath(r.player)}>{r.player}</a></td><td>{r.reason==='Deposit'?'واریز':'برداشت'}</td><td className={r.amount>0?'green':'red'} dir="ltr">{r.amount>0?'+':''}{num(r.amount)}</td><td/></tr>):filtered.map(p=>{const rank=players.indexOf(p)+1;return <tr key={p.name} className={p.balance<0?'debt-row':''}><td><span className={'rank r'+rank}>{rank<4?<Trophy size={15}/>:num(rank)}</span></td><td><a className="player-cell" href={playerPath(p.name)}><span className={'avatar a'+(rank%5)}>{p.name.slice(0,2).toUpperCase()}</span><span className="player-name" dir="ltr">{p.name}{rank===1&&<small>بزرگ‌ترین حامی خزانه</small>}</span></a></td><td><strong className={p.balance<0?'red':p.balance<minimum?'orange':''} dir="ltr">{num(p.balance)}</strong><small className="unit">سایفوند انرژی</small></td><td><span className={'badge '+(p.balance<0?'bad':p.balance<minimum?'warn':'good')}><i/>{status(p.balance)}</span></td><td><a className="row-open" href={playerPath(p.name)} aria-label={'مشاهده حساب '+p.name}><ChevronLeft size={17}/></a></td></tr>;})}</tbody></table>{(view==='leaderboard'&&!filtered.length)&&<div className="empty">بازیکنی با این مشخصات پیدا نشد.</div>}</div><div className="table-footer">رتبه‌بندی بر اساس بالانس خالص <span>واریز − برداشت = بالانس</span></div></section>
<aside className="right-column"><section className="spotlight panel"><div className="eyebrow">بزرگ‌ترین حامی خزانه</div><div className="champion-medal"><Trophy size={35}/></div><span className="champion-sub">حامی شمارهٔ یک خزانه</span><h3 dir="ltr">{players[0]?.name||'—'}</h3><strong className="champion-balance" dir="ltr">{num(players[0]?.balance||0)} <small>سایفوند انرژی</small></strong><p>سهم بیشتر، گیلد قدرتمندتر.<br/>جایگاه بعدی می‌تواند مال تو باشد.</p><button onClick={()=>setSelected(players[0]?.name)}>مشاهدهٔ حساب <ChevronLeft size={15}/></button></section><section className="health panel"><h3><Shield size={18}/> وضعیت آمادگی گیلد</h3><div className="health-number"><strong>{num(Math.round((players.length-low.length)/Math.max(players.length,1)*100))}<small>%</small></strong><span>اعضا آماده‌اند</span></div><div className="progress"><i style={{width:`${(players.length-low.length)/Math.max(players.length,1)*100}%`}}/></div><div className="legend"><span><i className="green-dot"/>آماده <b>{num(players.length-low.length)}</b></span><span><i className="orange-dot"/>نیازمند شارژ <b>{num(low.filter(p=>p.balance>=0).length)}</b></span><span><i className="red-dot"/>بدهکار <b>{num(low.filter(p=>p.balance<0).length)}</b></span></div></section></aside></div> <aside className="right-column"><section className="spotlight panel"><div className="eyebrow">بزرگ‌ترین حامی خزانه</div><div className="champion-medal"><Trophy size={35}/></div><span className="champion-sub">حامی شمارهٔ یک خزانه</span><h3 dir="ltr">{players[0]?.name||'—'}</h3><strong className="champion-balance" dir="ltr">{num(players[0]?.balance||0)} <small>سایفوند انرژی</small></strong><p>سهم بیشتر، گیلد قدرتمندتر.<br/>جایگاه بعدی می‌تواند مال تو باشد.</p><a className="champion-link" href={players[0]?playerPath(players[0].name):'/'}>مشاهدهٔ حساب <ChevronLeft size={15}/></a></section><section className="health panel"><h3><Shield size={18}/> وضعیت آمادگی گیلد</h3><div className="health-number"><strong>{num(Math.round((players.length-low.length)/Math.max(players.length,1)*100))}<small>%</small></strong><span>اعضا آماده‌اند</span></div><div className="progress"><i style={{width:`${(players.length-low.length)/Math.max(players.length,1)*100}%`}}/></div><div className="legend"><span><i className="green-dot"/>آماده <b>{num(players.length-low.length)}</b></span><span><i className="orange-dot"/>نیازمند شارژ <b>{num(low.filter(p=>p.balance>=0).length)}</b></span><span><i className="red-dot"/>بدهکار <b>{num(low.filter(p=>p.balance<0).length)}</b></span></div></section></aside></div>
<footer><span><span className="live-dot"/> {loading?'در حال دریافت…':`آخرین تراکنش: ${digits(rows[0]?.date||'—')}`}</span><button onClick={refresh} disabled={loading}><RefreshCw size={13}/> تازه‌سازی</button><p>بالانس بر اساس لاگ‌های ثبت‌شده است؛ موجودی پیش از اولین لاگ لحاظ نشده است.</p><span dir="ltr">برای گیلد ساخته شده، با سهم تو قدرتمند می‌شود</span></footer></div></main> <footer><span><span className="live-dot"/> {loading?'در حال دریافت…':`آخرین تراکنش: ${digits(rows[0]?.date||'—')}`}</span><button onClick={refresh} disabled={loading}><RefreshCw size={13}/> تازه‌سازی</button><p>بالانس بر اساس لاگ‌های ثبت‌شده است؛ موجودی پیش از اولین لاگ لحاظ نشده است.</p><span dir="ltr">برای گیلد ساخته شده، با سهم تو قدرتمند می‌شود</span></footer></div></main>
{shareNotice&&<div className="share-feedback" role="status" dir="auto">{shareNotice}</div>} {shareNotice&&<div className="share-feedback" role="status" dir="auto">{shareNotice}</div>}
{profile&&<div className="modal-backdrop" onClick={()=>setSelected(null)}><section className="modal panel" role="dialog" aria-modal="true" aria-label={'حساب '+profile.name} onClick={e=>e.stopPropagation()}><button className="close" onClick={()=>setSelected(null)} aria-label="بستن"><X/></button><div className="eyebrow">سهم تو، قدرت گیلد</div><h2 dir="ltr">{profile.name}</h2><span className={'badge '+(profile.balance<0?'bad':profile.balance<minimum?'warn':'good')}>{status(profile.balance)}</span><div className="profile-balance" dir="ltr">{num(profile.balance)} <small>سایفوند انرژی</small></div><div className="profile-advice">{profile.balance<minimum?<><AlertTriangle size={20}/><p>برای رسیدن به حداقل مطلوب، <strong>{num(minimum-profile.balance)} سایفوند انرژی</strong> به بانک گیلد واریز کن.</p></>:<><CheckCircle2 size={20}/><p>حسابت برای نبرد بعدی آماده است. ممنون از سهمت در خزانه!</p></>}</div><div className="profile-stats"><span>واریز <b className="green">{num(profile.deposits)}</b></span><span>برداشت <b>{num(profile.withdrawals)}</b></span><span>تراکنش <b>{num(profile.count)}</b></span></div><h3>تاریخچهٔ بازیکن</h3><div className="profile-history">{rows.filter(r=>r.player.toLowerCase()===profile.name.toLowerCase()).map(r=><div key={identity(r)}><span>{r.reason==='Deposit'?'واریز':'برداشت'}<small dir="ltr">{digits(r.date)}</small></span><b className={r.amount>0?'green':'red'} dir="ltr">{r.amount>0?'+':''}{num(r.amount)}</b></div>)}</div><button className="primary" onClick={async()=>{try{await navigator.clipboard.writeText(`${profile.name} | بالانس: ${num(profile.balance)} سایفوند انرژی | حداقل مطلوب: ${num(minimum)}`);setMessage('خلاصه کپی شد.');}catch{setMessage('امکان کپی در این مرورگر نیست.');}}}><Copy size={15}/> کپی خلاصهٔ حساب</button>{message&&<small role="status">{message}</small>}</section></div>}</div>; </div>;
} }
+30
View File
@@ -10,3 +10,33 @@
.brand>span:last-child{font-size:17px}@media(max-width:700px){.brand>span:last-child{font-size:14px}.topbar .breadcrumb strong{max-width:104px;font-size:9px;line-height:1.6}} .brand>span:last-child{font-size:17px}@media(max-width:700px){.brand>span:last-child{font-size:14px}.topbar .breadcrumb strong{max-width:104px;font-size:9px;line-height:1.6}}
.brandmark{background:#0b1e30;border-color:#28658b;overflow:hidden}.brandmark img{width:100%;height:100%;object-fit:cover}.guild-icon{padding:0;background:transparent}.artifact{background:radial-gradient(ellipse,#15a8f333,transparent 70%)}.energy-vial{position:relative;width:174px;height:174px;object-fit:contain;border-radius:24%;filter:drop-shadow(0 0 20px #2ccfff55)}.artifact-label{color:#8bd6f2}.spark{background:#a2efff;box-shadow:0 0 9px #35cfff}.share-button{box-shadow:inset 0 1px 0 #8adeff15}.champion-medal{box-shadow:0 0 0 7px #4bcfff22,0 0 25px #35bdff22}.action-banner{background:linear-gradient(100deg,#142a3b,#192b36);border-color:#3c647a}.action-banner strong{color:#a0d9f0}.action-banner p{color:#9db9c9}.action-icon{background:#163c5655;border-color:#35617d}.action-banner button{background:#183a52;border-color:#337ba2;color:#b3e9ff}@media(max-width:700px){.energy-vial{width:140px;height:140px}}@media(prefers-reduced-motion:no-preference){.energy-vial{animation:energy-float 6s ease-in-out infinite}@keyframes energy-float{50%{transform:translateY(-6px);filter:drop-shadow(0 0 27px #29cfff77)}}} .brandmark{background:#0b1e30;border-color:#28658b;overflow:hidden}.brandmark img{width:100%;height:100%;object-fit:cover}.guild-icon{padding:0;background:transparent}.artifact{background:radial-gradient(ellipse,#15a8f333,transparent 70%)}.energy-vial{position:relative;width:174px;height:174px;object-fit:contain;border-radius:24%;filter:drop-shadow(0 0 20px #2ccfff55)}.artifact-label{color:#8bd6f2}.spark{background:#a2efff;box-shadow:0 0 9px #35cfff}.share-button{box-shadow:inset 0 1px 0 #8adeff15}.champion-medal{box-shadow:0 0 0 7px #4bcfff22,0 0 25px #35bdff22}.action-banner{background:linear-gradient(100deg,#142a3b,#192b36);border-color:#3c647a}.action-banner strong{color:#a0d9f0}.action-banner p{color:#9db9c9}.action-icon{background:#163c5655;border-color:#35617d}.action-banner button{background:#183a52;border-color:#337ba2;color:#b3e9ff}@media(max-width:700px){.energy-vial{width:140px;height:140px}}@media(prefers-reduced-motion:no-preference){.energy-vial{animation:energy-float 6s ease-in-out infinite}@keyframes energy-float{50%{transform:translateY(-6px);filter:drop-shadow(0 0 27px #29cfff77)}}}
/* Keep the leading navigation icon beside its label. */
.nav svg:first-child{margin-right:0;flex-shrink:0}
.nav svg:last-child:not(:first-child),.nav-count{margin-right:auto}
.hero{gap:20px;overflow:visible}
.hero>div:first-child{min-width:0}
.artifact{flex-shrink:0}
.action-icon{flex-shrink:0}
@media(max-width:700px){
.hero{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:10px;min-height:220px;padding:20px 0}
.hero h1{font-size:23px;line-height:1.65;margin:10px 0 7px;max-width:none}
.hero p{max-width:none;font-size:11px;line-height:1.9}
.hero-tags{flex-wrap:wrap;gap:7px 10px;margin-top:13px}
.artifact{width:90px;height:130px;transform:none;margin:0}
.energy-vial{width:90px;height:90px;border-radius:24%}
.artifact .orbit,.artifact .spark{display:none}
.artifact-label{font-size:7px;letter-spacing:0;bottom:2px;white-space:nowrap}
.action-banner{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px 11px;padding:14px;margin:18px 0;align-items:start}
.action-icon{width:32px;height:34px;border-radius:7px}
.action-icon svg{width:19px;height:19px}
.action-banner>div:nth-child(2){min-width:0}
.action-banner strong{font-size:12px;line-height:1.8}
.action-banner p{max-width:none;font-size:11px;line-height:1.8;margin:4px 0 0}
.action-banner button{grid-column:2;width:fit-content;max-width:100%;margin:0;padding:7px 10px;font-size:10px;line-height:1.7}
}
/* Public player accounts */
.player-layout{max-width:1120px;margin:auto;padding:0 32px}.player-nav{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:26px 0}.player-nav .brand{font-size:14px;letter-spacing:0}.player-back{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.player-back:hover{color:var(--energy)}.player-hero{padding:34px;display:flex;justify-content:space-between;align-items:center;gap:24px;background:radial-gradient(ellipse at top right,#167ca52a,transparent 70%),var(--panel);border-color:#285572}.player-identity{display:flex;align-items:center;gap:23px;min-width:0}.player-identity>div{min-width:0}.player-monogram{display:grid;place-items:center;flex-shrink:0;width:88px;height:88px;border-radius:23px;border:1px solid #347da0;background:linear-gradient(135deg,#205775,#102b3e);color:var(--energy);font:bold 30px Arial}.player-hero h1{font:700 38px Arial;margin:12px 0 15px;overflow-wrap:anywhere;text-align:right}.player-hero .badge{font-size:12px;padding:6px 12px}.player-hero-actions{display:flex;flex-direction:column;gap:18px;align-items:center;flex-shrink:0}.player-hero-actions>span{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.player-stats{margin:20px 0}.player-readiness{display:flex;align-items:center;gap:18px;padding:22px 26px;margin:20px 0}.player-readiness>svg{flex-shrink:0}.player-readiness h2{font-size:16px;margin:0 0 7px}.player-readiness p{font-size:13px;line-height:1.9;margin:0}.readiness-shield{margin-right:auto;opacity:.4}.player-chart{margin:20px 0}.muted{color:var(--muted);font-size:11px}.balance-timeline{padding:0 24px 22px;direction:ltr}.balance-timeline svg{display:block;width:100%;height:185px;overflow:visible}.timeline-labels{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);direction:rtl}.timeline-labels>span:first-child{order:3}.timeline-labels>span:last-child{order:1}.timeline-labels>span:nth-child(2){order:2}.transaction-kind{display:flex;align-items:center;gap:6px}.player-transactions .search input{width:155px}.player-transactions td{padding:17px 23px}.player-transactions .date{font-size:12px}.player-transactions .table-footer{align-items:center;font-size:11px}.player-transactions .section-title{gap:12px}.player-layout footer{line-height:1.9}.player-layout footer a{color:var(--energy)}
@media(max-width:700px){.player-layout{padding:0 16px}.player-nav{padding:19px 0}.player-nav .brand{font-size:11px;gap:6px}.player-hero{padding:23px 20px;flex-direction:column;align-items:stretch}.player-identity{gap:15px}.player-monogram{width:60px;height:66px;border-radius:17px;font-size:23px}.player-hero h1{font-size:27px}.player-hero-actions{flex-direction:row;justify-content:space-between;gap:12px;flex-wrap:wrap}.player-hero-actions .primary{font-size:11px}.player-readiness{padding:20px 16px;gap:12px}.player-readiness p{font-size:12px}.player-readiness h2{font-size:14px}.readiness-shield{display:none}.player-chart .section-title{gap:10px}.player-chart h2,.player-transactions h2{font-size:17px}.balance-timeline{padding:0 17px 20px}.timeline-labels{font-size:8px;flex-wrap:wrap}.timeline-labels>span:nth-child(2){width:100%;text-align:center;order:4}.player-transactions td{padding:15px 12px}.player-transactions .date{font-size:10px}.player-transactions .section-title .eyebrow{font-size:8px}.player-transactions .share-button{font-size:10px}.player-transactions .table-footer{font-size:10px}}
.spotlight .champion-link{border-top:1px solid #264961;width:100%;padding-top:16px;display:flex;justify-content:center;gap:8px;font-size:10px;color:#89d4f0}.player-cell:hover .player-name,.player-name:hover{color:var(--energy)}
+35
View File
@@ -0,0 +1,35 @@
# سایفوند انرژی — انتشار روی Cloudflare رایگان
Domain: https://siphoned.oneup.megh.dad
Account: 1be1e22e71d56e01fe8fdbf449b341dc
Pages project: siphoned-energy
This is the user's chosen offline update workflow. It is a public, read-only deployment. It does not require a login, API token, Access/Zero Trust subscription, D1 binding or server-side image rendering. The existing D1 database `siphoned-vault` was created and seeded during migration preparation, but is not used by this offline deployment; it has not been deleted.
## Update
1. Save the Albion TSV export (including headers) to a UTF-8 file.
2. Run `node cloudflare/import-log.mjs /absolute/path/to/export.tsv` from the repository root. This validates all rows, merges by timestamp/player/reason/amount and preserves a backup of the previous ledger.
3. Run `node cloudflare/build.mjs`. This creates `cloudflare/siphoned.zip`, the JSON ledger, the Persian PNG preview, local fonts, icons and a minimal preview-metadata Worker.
4. In Cloudflare Pages → siphoned-energy → Create deployment, select Production, upload the ZIP and choose Save and deploy.
5. Verify balance/transaction count at `/ledger.json` and image `/share-image.png`.
`/` and `/@player_name` use a very small Worker only to propagate `?t=<Unix seconds>` into social metadata, so new Discord shares get a different image URL. Data, interface, fonts and PNG are static assets. `/ledger.json` and `/share-image.png` use `Cache-Control: no-store`. There is no import or write endpoint and no public admin panel. The source Sites deployment remains available as the pre-migration backup.
## Migration snapshot
The initial migration snapshot contains 1,243 transactions, 35 players and a net balance of -2,172. Latest game timestamp: 2026-10-12 19:53:45. The copied data includes the original baseline and all subsequent imported records.
## ابزار فارسی به‌روزرسانی
روی `cloudflare/Siphoned Manager.command` دوبار کلیک کنید (یا `node cloudflare/tool/server.mjs` را اجرا کنید). ابزار در مرورگر محلی باز می‌شود. لاگ را پیست کنید یا فایل انتخاب کنید، «بررسی لاگ» و سپس «ادغام و ساخت نسخهٔ جدید» را بزنید. فایل دادهٔ قبلی پشتیبان‌گیری می‌شود. خطای ساخت، دادهٔ قبلی را بازمی‌گرداند.
برای انتشار مستقیم، یک بار «اتصال حساب کلودفلیر» را بزنید و ورود و اجازهٔ Wrangler را شخصاً در مرورگر تأیید کنید. سپس «انتشار نسخهٔ آماده» را بزنید. این کار در همان پروژهٔ `siphoned-energy` و شاخهٔ `main` منتشر می‌کند. نیازی به Zero Trust یا واردکردن کلید در ابزار نیست. اطلاعات ورود را Wrangler در محل استاندارد خودش نگه می‌دارد. گزینهٔ دانلود ZIP و بارگذاری دستی نیز موجود است.
ابزار فقط روی `127.0.0.1` گوش می‌دهد، درخواست‌های تغییر را با نشست تصادفی و Origin بررسی می‌کند و هیچ پنل مدیریتی به سایت عمومی اضافه نمی‌کند. برای بستن آن پنجرهٔ اجرای میان‌بر را ببندید یا Ctrl+C بزنید.
## Player accounts and social previews
Click any member in the leaderboard or transaction history to open `/@player_name`. Names resolve without regard to case. Each account includes readiness advice, rank, a balance timeline, all transactions with running balances, filters/search, and a full CSV export. Unknown players return 404.
The normal `node cloudflare/build.mjs` command now regenerates player metadata and all player PNGs in `dist/player-images/`, then includes them recursively in `siphoned.zip`. No extra update step or database is required. Sharing an account copies its own URL with `?t=`; the Worker propagates this timestamp to its player image. Image URLs also include a ledger revision so new builds invalidate old preview URLs. Social platforms control caching of previously posted embeds. Images contain the five latest account transactions; the page contains the full history.
+3
View File
@@ -0,0 +1,3 @@
#!/bin/zsh
cd "${0:A:h}/.."
node cloudflare/tool/server.mjs
+28
View File
@@ -0,0 +1,28 @@
import {summarize} from '../lib/ledger.mjs';import {playerSnapshot} from '../lib/player.mjs';import fs from 'node:fs/promises';import {createHash} from 'node:crypto';import {build} from 'esbuild';import {fileURLToPath} from 'node:url';import {execFileSync} from 'node:child_process';
const root=fileURLToPath(new URL('./',import.meta.url)),out=root+'dist/';await fs.mkdir(out,{recursive:true});
const ledger=JSON.parse(await fs.readFile(root+'migration/ledger.json','utf8'));
const balances=new Map();for(const row of ledger.rows){const key=row.player.toLowerCase();balances.set(key,(balances.get(key)||0)+row.amount);}
const revision=createHash('sha256').update(JSON.stringify(ledger.rows)).digest('hex').slice(0,16);
const profiles=summarize(ledger.rows).map(p=>Object.fromEntries(Object.entries(playerSnapshot(ledger.rows,p.name)).filter(([key])=>key!=='history')));
const metadata={revision,profiles,balance:[...balances.values()].reduce((n,v)=>n+v,0),members:balances.size,low:[...balances.values()].filter(v=>v<10).length,count:ledger.rows.length,latest:ledger.rows[0]?.date||'—'};
await fs.writeFile(root+'src/metadata.json',JSON.stringify(metadata));
await fs.writeFile(out+'ledger.json',JSON.stringify({rows:ledger.rows,admin:false,shareUrl:'https://siphoned.oneup.megh.dad/'}));
await build({entryPoints:[root+'src/client.tsx'],outfile:out+'app.js',bundle:true,minify:true,format:'esm',platform:'browser',jsx:'automatic',define:{'process.env.NODE_ENV':'"production"'}});
await build({entryPoints:[root+'src/worker.mjs'],outfile:out+'_worker.js',bundle:true,minify:true,format:'esm',platform:'browser'});
let css=await fs.readFile(new URL('../app/globals.css',import.meta.url),'utf8');css=css.replace(/^@import[^\n]+\n/,"@font-face{font-family:Vazirmatn;src:url('/Vazirmatn-Regular.ttf');font-weight:400 600;font-display:swap}@font-face{font-family:Vazirmatn;src:url('/Vazirmatn-Bold.ttf');font-weight:700 900;font-display:swap}\n");await fs.writeFile(out+'app.css',css);
const cssVersion=createHash('sha256').update(css).digest('hex').slice(0,12);
for(const file of ['favicon.svg','favicon.ico','favicon-32.png','apple-touch-icon.png','siphoned-energy.svg'])await fs.copyFile(new URL('../public/'+file,import.meta.url),out+file);
for(const file of ['Vazirmatn-Regular.ttf','Vazirmatn-Bold.ttf'])await fs.copyFile(new URL('../lib/fonts/'+file,import.meta.url),out+file);
await fs.writeFile(out+'shell.html','<!doctype html><html lang="fa" dir="rtl"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">__SOCIAL_META__<link rel="icon" href="/favicon.svg?v=blue-1" type="image/svg+xml"><link rel="alternate icon" href="/favicon.ico?v=blue-1"><link rel="apple-touch-icon" href="/apple-touch-icon.png"><link rel="stylesheet" href="/app.css"><script type="module" src="/app.js"></script></head><body><div id="root"></div></body></html>'.replace('/app.css','/app.css?v='+cssVersion));
await fs.writeFile(out+'index.html','<!doctype html><html lang="fa" dir="rtl"><meta charset="utf-8"><body>خزانه سایفوند انرژی</body></html>');
await fs.writeFile(out+'_routes.json',JSON.stringify({version:1,include:['/','/@*'],exclude:[]}));
await fs.writeFile(out+'_headers','/ledger.json\n Cache-Control: no-store\n/share-image.png\n Cache-Control: no-store\n/player-images/*\n Cache-Control: no-store\n/shell.html\n X-Robots-Tag: noindex\n');
await fs.mkdir(root+'.work',{recursive:true});
await build({entryPoints:[root+'src/render-card.tsx'],outfile:root+'.work/render-card.mjs',bundle:true,platform:'node',format:'esm',packages:'external',jsx:'automatic'});
execFileSync(process.execPath,[root+'.work/render-card.mjs',root+'migration/ledger.json',out+'share-image.png']);
await fs.rm(out+'player-images',{recursive:true,force:true});
await fs.mkdir(out+'player-images',{recursive:true});
await build({entryPoints:[root+'src/render-players.tsx'],outfile:root+'.work/render-players.mjs',bundle:true,platform:'node',format:'esm',packages:'external',jsx:'automatic'});
execFileSync(process.execPath,[root+'.work/render-players.mjs',root+'migration/ledger.json',out],{stdio:'inherit'});
execFileSync('python3',['-c',`import zipfile,os\nroot=${JSON.stringify(out)}\nwith zipfile.ZipFile(${JSON.stringify(root+'siphoned.zip')},'w',zipfile.ZIP_DEFLATED) as z:\n for folder,_,files in os.walk(root):\n for name in files: z.write(os.path.join(folder,name),os.path.relpath(os.path.join(folder,name),root))`]);
console.log('Cloudflare package: '+root+'siphoned.zip');
+8
View File
@@ -0,0 +1,8 @@
import fs from 'node:fs/promises';import {parseLog,merge,summarize} from '../lib/ledger.mjs';
const path=process.argv[2];if(!path)throw Error('مسیر فایل لاگ را وارد کنید.');
const target=new URL('./migration/ledger.json',import.meta.url),before=JSON.parse(await fs.readFile(target,'utf8'));
const incoming=parseLog(await fs.readFile(path,'utf8')),rows=merge([...before.rows,...incoming]);
await fs.copyFile(target,new URL('./migration/ledger.backup.json',import.meta.url));
await fs.writeFile(new URL('./migration/ledger.next.json',import.meta.url),JSON.stringify({rows},null,2));
await fs.rename(new URL('./migration/ledger.next.json',import.meta.url),target);
console.log({added:rows.length-before.rows.length,duplicates:incoming.length-(rows.length-before.rows.length),transactions:rows.length,balance:summarize(rows).reduce((n,p)=>n+p.balance,0)});
+13
View File
@@ -0,0 +1,13 @@
CREATE TABLE ledger_state (id INTEGER PRIMARY KEY CHECK(id=1),revision INTEGER NOT NULL,rows TEXT NOT NULL,metadata TEXT NOT NULL,image BLOB,preview_revision INTEGER NOT NULL);
INSERT INTO ledger_state VALUES (1,1,'','{"balance":-2172,"members":35,"low":24,"count":1243,"latest":"2026-10-12 19:53:45"}',X'',0);
UPDATE ledger_state SET rows=rows||'[{"id":"[\"2026-10-12 19:53:45\",\"naruto021\",\"Withdrawal\",-10]","date":"2026-10-12 19:53:45","player":"naruto021","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-12 19:50:02\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-10-12 19:50:02","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-12 19:47:47\",\"lostinu\",\"Withdrawal\",-7]","date":"2026-10-12 19:47:47","player":"Lostinu","reason":"Withdrawal","amount":-7},{"id":"[\"2026-10-12 19:45:22\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-12 19:45:22","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-12 19:33:34\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-12 19:33:34","player":"wxsp","reason":"Withdrawal","amount":-10},{"date":"2026-10-12 19:30:40","player":"belgheys","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 19:30:40\",\"belgheys\",\"Withdrawal\",-10]"},{"date":"2026-10-12 19:29:28","player":"papaguy","reason":"Deposit","amount":100,"id":"[\"2026-10-12 19:29:28\",\"papaguy\",\"Deposit\",100]"},{"date":"2026-10-12 19:18:11","player":"GODpori","reason":"Deposit","amount":62,"id":"[\"2026-10-12 19:18:11\",\"godpori\",\"Deposit\",62]"},{"date":"2026-10-12 19:17:48","player":"belgheys","reason":"Deposit","amount":26,"id":"[\"2026-10-12 19:17:48\",\"belgheys\",\"Deposit\",26]"},{"date":"2026-10-12 19:17:00","player":"belgheys","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 19:17:00\",\"belgheys\",\"Withdrawal\",-10]"},{"date":"2026-10-12 19:15:42","player":"sobhanAA","reason":"Deposit","amount":200,"id":"[\"2026-10-12 19:15:42\",\"sobhanaa\",\"Deposit\",200]"},{"date":"2026-10-12 13:12:10","player":"naruto021","reason":"Deposit","amount":10,"id":"[\"2026-10-12 13:12:10\",\"naruto021\",\"Deposit\",10]"},{"date":"2026-10-12 13:04:18","player":"naruto021","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 13:04:18\",\"naruto021\",\"Withdrawal\",-10]"},{"date":"2026-10-12 10:42:28","player":"belgheys","reason":"Deposit","amount":10,"id":"[\"2026-10-12 10:42:28\",\"belgheys\",\"Deposit\",10]"},{"date":"2026-10-12 09:36:40","player":"SkaiMaster","reason":"Deposit","amount":8,"id":"[\"2026-10-12 09:36:40\",\"skaimaster\",\"Deposit\",8]"},{"date":"2026-10-12 09:16:15","player":"HEMO","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 09:16:15\",\"hemo\",\"Withdrawal\",-10]"},{"date":"2026-10-12 01:15:14","player":"night44","reason":"Deposit","amount":3,"id":"[\"2026-10-12 01:15:14\",\"night44\",\"Deposit\",3]"},{"date":"2026-10-11 21:14:59","player":"shalvargay","reason":"Deposit","amount":10,"id":"[\"2026-10-11 21:14:59\",\"shalvargay\",\"Deposit\",10]"},{"date":"2026-10-11 20:55:54","player":"sobhanAA","reason":"Deposit","amount":10,"id":"[\"2026-10-11 20:55:54\",\"sobhanaa\",\"Deposit\",10]"},{"date":"2026-10-11 20:53:58","player":"MMFerii","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-11 20:53:58\",\"mmferii\",\"Withdrawal\",-10]"},{"date":"2026-10-11 20:50:35","player":"wxsp","reason":"Deposit","amount":10,"id":"[\"2026-10-11 20:50:35\",\"wxsp\",\"Deposit\",10]"},{"date":"2026-10-11 20:49:55","player":"Lostinu","reason":"Deposit","amount":10,"id":"[\"2026-10-11 20:49:55\",\"lostinu\",\"Deposit\",10]"},{"id":"[\"2026-10-11 19:08:16\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-11 19:08:16","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 19:02:39\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-11 19:02:39","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 19:00:16\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-11 19:00:16","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:59:17\",\"lostinu\",\"Withdrawal\",-10]","date":"2026-10-11 18:59:17","player":"Lostinu","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:34:44\",\"wxsp\",\"Deposit\",4]","date":"2026-10-11 18:34:44","player":"wxsp","reason":"Deposit","amount":4},{"id":"[\"2026-10-11 18:32:39\",\"mmferii\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:39","player":"MMFerii","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:32:27\",\"hemo\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:27","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:32:26\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:26","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:32:10\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:10","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:15:30\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-11 18:15:30","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:11:52\",\"shalvargay\",\"Deposit\",24]","date":"2026-10-11 18:11:52","player":"shalvargay","reason":"Deposit","amount":24},{"id":"[\"2026-10-11 18:11:16\",\"lostinu\",\"Withdrawal\",-10]","date":"2026-10-11 18:11:16","player":"Lostinu","reason":"WiLine truncated
UPDATE ledger_state SET rows=rows||'10-06 09:59:58\",\"khees\",\"Deposit\",8]","date":"2026-10-06 09:59:58","player":"khees","reason":"Deposit","amount":8},{"id":"[\"2026-10-06 09:47:21\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-06 09:47:21","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-06 08:39:47\",\"night44\",\"Withdrawal\",-10]","date":"2026-10-06 08:39:47","player":"night44","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-06 00:34:53\",\"tgamir\",\"Deposit\",10]","date":"2026-10-06 00:34:53","player":"TGamir","reason":"Deposit","amount":10},{"id":"[\"2026-10-05 23:17:32\",\"wxsp\",\"Deposit\",2]","date":"2026-10-05 23:17:32","player":"wxsp","reason":"Deposit","amount":2},{"id":"[\"2026-10-05 23:02:17\",\"belgheys\",\"Deposit\",10]","date":"2026-10-05 23:02:17","player":"belgheys","reason":"Deposit","amount":10},{"id":"[\"2026-10-05 22:52:32\",\"belgheys\",\"Withdrawal\",-10]","date":"2026-10-05 22:52:32","player":"belgheys","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 22:12:40\",\"papaguy\",\"Withdrawal\",-10]","date":"2026-10-05 22:12:40","player":"papaguy","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 21:17:22\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-05 21:17:22","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:29:24\",\"kingwolf9511\",\"Deposit\",20]","date":"2026-10-05 20:29:24","player":"KingWolf9511","reason":"Deposit","amount":20},{"id":"[\"2026-10-05 20:21:44\",\"tgamir\",\"Withdrawal\",-10]","date":"2026-10-05 20:21:44","player":"TGamir","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:21:21\",\"kingwolf9511\",\"Withdrawal\",-10]","date":"2026-10-05 20:21:21","player":"KingWolf9511","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:09:37\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-05 20:09:37","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:09:10\",\"nova76\",\"Withdrawal\",-10]","date":"2026-10-05 20:09:10","player":"NOVA76","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:09:05\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-05 20:09:05","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:08:59\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-10-05 20:08:59","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:07:29\",\"lostinu\",\"Withdrawal\",-10]","date":"2026-10-05 20:07:29","player":"Lostinu","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:07:00\",\"night44\",\"Withdrawal\",-10]","date":"2026-10-05 20:07:00","player":"night44","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:06:55\",\"papaguy\",\"Withdrawal\",-10]","date":"2026-10-05 20:06:55","player":"papaguy","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:05:44\",\"meghdad\",\"Withdrawal\",-10]","date":"2026-10-05 20:05:44","player":"Meghdad","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:05:22\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-05 20:05:22","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:04:09\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-05 20:04:09","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:00:50\",\"kingwolf9511\",\"Withdrawal\",-10]","date":"2026-10-05 20:00:50","player":"KingWolf9511","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:00:48\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-05 20:00:48","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:00:32\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-05 20:00:32","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 19:52:48\",\"tgamir\",\"Withdrawal\",-8]","date":"2026-10-05 19:52:48","player":"TGamir","reason":"Withdrawal","amount":-8},{"id":"[\"2026-10-05 19:52:42\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-05 19:52:42","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 19:46:25\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-05 19:46:25","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:20:16\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-05 18:20:16","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:20:08\",\"khees\",\"Withdrawal\",-10]","date":"2026-10-05 18:20:08","player":"khees","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:20:08\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-05 18:20:08","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:16:33\",\"hemo\",\"Withdrawal\",-10]","date":"2026-10-05 18:16:33","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:12:19\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-05 18:12:19","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 17:56:02\",\"skaimaster\",\"Withdrawal\",-10]","dateLine truncated
UPDATE ledger_state SET rows=rows||'osit\",1]","date":"2026-09-28 22:08:33","player":"Meghdad","reason":"Deposit","amount":1},{"id":"[\"2026-09-28 21:50:35\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:35","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:34\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:34","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:31\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:31","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:31\",\"nova76\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:31","player":"NOVA76","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:31\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:31","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:28\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:28","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:27:10\",\"alinaghi\",\"Deposit\",37]","date":"2026-09-28 21:27:10","player":"Alinaghi","reason":"Deposit","amount":37},{"id":"[\"2026-09-28 20:30:01\",\"psh9017\",\"Deposit\",20]","date":"2026-09-28 20:30:01","player":"PSH9017","reason":"Deposit","amount":20},{"id":"[\"2026-09-28 18:56:19\",\"shalvargay\",\"Deposit\",21]","date":"2026-09-28 18:56:19","player":"shalvargay","reason":"Deposit","amount":21},{"id":"[\"2026-09-28 18:16:33\",\"blackekko\",\"Withdrawal\",-10]","date":"2026-09-28 18:16:33","player":"BLACKEKKO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 12:43:43\",\"skaimaster\",\"Withdrawal\",-3]","date":"2026-09-28 12:43:43","player":"SkaiMaster","reason":"Withdrawal","amount":-3},{"id":"[\"2026-09-28 12:36:40\",\"hemo\",\"Withdrawal\",-10]","date":"2026-09-28 12:36:40","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 05:20:47\",\"godpori\",\"Withdrawal\",-10]","date":"2026-09-28 05:20:47","player":"GODpori","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 00:15:07\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-28 00:15:07","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 00:00:37\",\"wxsp\",\"Deposit\",2]","date":"2026-09-28 00:00:37","player":"wxsp","reason":"Deposit","amount":2},{"id":"[\"2026-09-27 23:39:34\",\"wxsp\",\"Deposit\",10]","date":"2026-09-27 23:39:34","player":"wxsp","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 23:38:13\",\"skaimaster\",\"Deposit\",10]","date":"2026-09-27 23:38:13","player":"SkaiMaster","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 23:26:57\",\"mretanol\",\"Deposit\",10]","date":"2026-09-27 23:26:57","player":"MrEtanol","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 22:51:03\",\"alinaghi\",\"Deposit\",4]","date":"2026-09-27 22:51:03","player":"Alinaghi","reason":"Deposit","amount":4},{"id":"[\"2026-09-27 22:24:59\",\"hemo\",\"Withdrawal\",-10]","date":"2026-09-27 22:24:59","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 22:22:40\",\"alinaghi\",\"Deposit\",9]","date":"2026-09-27 22:22:40","player":"Alinaghi","reason":"Deposit","amount":9},{"id":"[\"2026-09-27 21:36:15\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-09-27 21:36:15","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 21:32:22\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-27 21:32:22","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 21:30:58\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-27 21:30:58","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 20:52:35\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-27 20:52:35","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 20:40:45\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-27 20:40:45","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 20:34:08\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-27 20:34:08","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 20:18:06\",\"naruto021\",\"Deposit\",18]","date":"2026-09-27 20:18:06","player":"naruto021","reason":"Deposit","amount":18},{"id":"[\"2026-09-27 19:58:28\",\"alinaghi\",\"Deposit\",10]","date":"2026-09-27 19:58:28","player":"Alinaghi","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 19:57:42\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-27 19:57:42","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 19:55:03\",\"hemo\",\"Withdrawal\",-10]","date":"2026-09-27 19:55:03","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 19:54:54\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-27 19:54:54","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 19:22:31\",\"wxsp\",\"Deposit\",10]","date":"2026-09-27 19:22:31","player":"wxsp","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 19:21:50\",\"wxsp\",\"WithdraLine truncated
UPDATE ledger_state SET rows=rows||'posit\",10]","date":"2026-09-20 21:05:08","player":"Alinaghi","reason":"Deposit","amount":10},{"id":"[\"2026-09-20 20:51:28\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-20 20:51:28","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:21:47\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-09-20 20:21:47","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:16:47\",\"belgheys\",\"Withdrawal\",-10]","date":"2026-09-20 20:16:47","player":"belgheys","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:08:48\",\"papaguy\",\"Withdrawal\",-10]","date":"2026-09-20 20:08:48","player":"papaguy","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:07:46\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-20 20:07:46","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:03:53\",\"nova76\",\"Withdrawal\",-10]","date":"2026-09-20 20:03:53","player":"NOVA76","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:03:41\",\"nova76\",\"Withdrawal\",-40]","date":"2026-09-20 20:03:41","player":"NOVA76","reason":"Withdrawal","amount":-40},{"id":"[\"2026-09-20 20:03:28\",\"esc4a\",\"Withdrawal\",-10]","date":"2026-09-20 20:03:28","player":"ESc4a","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:03:23\",\"psh9017\",\"Withdrawal\",-10]","date":"2026-09-20 20:03:23","player":"PSH9017","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:01:51\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-09-20 20:01:51","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:58:51\",\"papaguy\",\"Deposit\",10]","date":"2026-09-20 19:58:51","player":"papaguy","reason":"Deposit","amount":10},{"id":"[\"2026-09-20 19:55:44\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-20 19:55:44","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:55:42\",\"wxsp\",\"Deposit\",275]","date":"2026-09-20 19:55:42","player":"wxsp","reason":"Deposit","amount":275},{"id":"[\"2026-09-20 19:54:52\",\"papaguy\",\"Withdrawal\",-10]","date":"2026-09-20 19:54:52","player":"papaguy","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:54:50\",\"madboy\",\"Withdrawal\",-10]","date":"2026-09-20 19:54:50","player":"MadBoY","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:48:43\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-09-20 19:48:43","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:48:23\",\"nova76\",\"Withdrawal\",-10]","date":"2026-09-20 19:48:23","player":"NOVA76","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:44:53\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-20 19:44:53","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:43:07\",\"tgamir\",\"Withdrawal\",-10]","date":"2026-09-20 19:43:07","player":"TGamir","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:13:06\",\"shalvargay\",\"Deposit\",5]","date":"2026-09-20 19:13:06","player":"shalvargay","reason":"Deposit","amount":5},{"id":"[\"2026-09-20 18:22:29\",\"wxsp\",\"Deposit\",10]","date":"2026-09-20 18:22:29","player":"wxsp","reason":"Deposit","amount":10},{"id":"[\"2026-09-20 18:16:24\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-20 18:16:24","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 18:14:41\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-20 18:14:41","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 18:13:44\",\"madboy\",\"Withdrawal\",-10]","date":"2026-09-20 18:13:44","player":"MadBoY","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 18:13:31\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-20 18:13:31","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 16:29:10\",\"skaimaster\",\"Deposit\",5]","date":"2026-09-20 16:29:10","player":"SkaiMaster","reason":"Deposit","amount":5},{"id":"[\"2026-09-20 15:39:45\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-20 15:39:45","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 15:32:47\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-20 15:32:47","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 12:48:36\",\"mretanol\",\"Deposit\",12]","date":"2026-09-20 12:48:36","player":"MrEtanol","reason":"Deposit","amount":12},{"id":"[\"2026-09-20 05:52:10\",\"alinaghi\",\"Deposit\",2]","date":"2026-09-20 05:52:10","player":"Alinaghi","reason":"Deposit","amount":2},{"id":"[\"2026-09-19 22:54:19\",\"godpori\",\"Withdrawal\",-10]","date":"2026-09-19 22:54:19","player":"GODpori","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-19 22:54:19\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-19 22:54:19","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-19 22:54:13\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-09-19 22:54:13","player":"MrEtanol","reason":"Withdrawal","amoLine truncated
UPDATE ledger_state SET image=CAST(image||X'89504e470d0a1a0a0000000d4948445200000640000004b00806000000a301869700025d9749444154789cecdd09a01c6599f6fd3bfbc99eb0266401020884080aa841981151028451501340c78d5598f94601719b718230be332e08e8ccbc209beb284b54f4950061409c61090a281002c89e842c6c595872b27ff755274f52a74e55afd5cbe9feff923e5ddda7bbbab67eeaf47df553d5a763e498cd060000000000000000d0420840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c021000000000000000002ad5a7aff5e9d7df36f7e963faa7eb66d467f366d33fdbbcc96ce3c6aeeb164700020000000000000040b9faf637ebef170f3d7a278f06366c30dbe497164500020000000000000040a9faf4f5e06340d7750efa54d86364f3e69c4afbea09b2617dd7758b21000100000000000000a0147dfb599ffe03d577a22a95861e59aa0d4334359bd7aff51fad158210800000000000000000508c871fe6e147a50a871e857e97a6abacdf7fc0001b3c64a8bdf1fa6bb649e7f5705585212d16821080000000000000000050489fbed667c0a02db14379b2838f2df7f7a964ac1e7e78183366dc049fb4beb67edd5a5bb678a1dfbb4d254188a6a8957a8210806c3178c8201bb6dd601b3c74900d1a32d0fa0dece7e9994e6003b49f0deb37d8c6751b6ded9beb6ccd1b6bedf557d7d89a37bde103000000000000da91871f9e34f840797a861f5b6e770b3db6dc57c0943d46da616fdbd176d9bec35e78b9d31e7e72a575da087bf9f56dd3b4e899a7fc677cbc7eab8210240a3f1482b480b60e40147a6c3776840ddf61a8f5ebd7cf3a5f5f631bbdf0bb6ecd3affadd6f3665bdfd9350cb48b011d03bd2def6a74070ef630d083c08e61836de3c68db66af96a5bf9e21b8421000000000000681f7dfb9be9a4e765281e7c6cb92de1b1e15731871fb4935df3d583ad63605fdbb8616374d1e3fbf4ebeb577d6d40ffbe76fb83abede7b72fb39b7ef7988f63cbb812232b3b08d9e075f14dfe5abd5c5b0620c34676d80ee347d9602feaae7d638d071f9db68e822e50d0400f0c3b8675d8a0a1836d8d8785cb9f5d411002000000000080d637b0c37f8460a1b8d4f023197c84c784bb75bfff8f9b3269a4ddfaddc3ec8dd75eb3b56b3aad8f07317dfb7af0e1ff3679a0b179f346bf6cb68ec11d3670f0607bf1d5b5f6edff7ac2aeffef853ede3e3664e850ebf0cb9bfefcce356f468f2d9d3f765da75ff76e6d1580f41fd8cfc6efb5a30d1d39d4de58f19abdfeca6b7e2f80720ddb7eb80d1d3ddcde58f5862d7ef2250f847b7f1a0c000000000000f4d0a7af4587bf2a51f7f0c387d3828f7097eef3ff5d77f880ff972d57f6e79fbcdf0659a70720afdb864d7ded8d3737d94b2fadb6b56bd7dbe8d1c36cf8f0c1d631a8bf0d1ad4d7366d5c670306f6b7a1c347d8d34b3aedefbe33dfd6f6ddcec7e263dfb4c9962c7ace1fd31598944c87c1d2e1b07ab1b60940761a3fcab61f3fdad678c1f6cd956ff8caeedd2b0e68b4befdfada9051436db0078acb9f7bc55e5db6daef050000000000005a880e7dd5b7bf0f145730fcd0efb6def4e1e8469fae41bf8e6cb99283f71d6dbff9d6bb6dd9e225b671731f7be6b995f6d45f9ef7df743770e000db6ebb91b6e79ebb7818d2d736ae7fc3868f1c6983878fb26b6e7dc57e7cdb2bfe28b3a58b9eb30debd7fb90bf72a921c8c60d7ee97a4e6fd51601c86efb8d890e77b572e9ab9cd303c899ce19326aec76f6c6ca376de113cbfd1e000000000000a045a8f7877a8114911e7ef8b5e877d14dbfd6805f6bc807a2ff5b7e6cb98a7ed80d5f7f871dbaff0ef6d4634fd8e0c1c3ed4f0f2fb6975e7ad57fd3d3e42953eca5175fb28d1b3bedad6f9d649b3d04e9631b6dc771e3eceec7d6d979fff9b8bdf2e28bfe487fed2d4a0a41d4fb43bd407ab1960e40fa0fe86fbb4f196bfdfaf7b55717bf4caf0fa046d41b64bbf13b7828bcc99e9dbfd4d3644f87010000000000805eaecf800edbec81452105c38fe8da2ffe5fba1eea3ffc7ff4a3eb8e2e5b860f3f7007fbce997bd888a1036dc5cbaf58e79b6b6de9cbebeca92717f96fbb3be58c336dc4c891f6a707eeb7dfdf71bbdf63b6f7de136dfb511db6ae73a5ed3179b2cdbe73b97de93ffeec8186c6af69eb522c04e9e3bfdfbcbe779f07a4650310851f7b1c30ce36ac5b6fab96adf07b00d4dac831a3adffc001f6f4432f1082000000000000a0f71b38d87f64cb0c3f74bf06a3611ff0dbfaa7ffd10fbf1d09d7313ffcc7b7d93e3baeb1411d1d367afbed6dfe030fdaf0edc6d97d7f7cd2d6afeb7e84a33df67a8b7de0f80fd94b2fbe68fff5a31ff83d5dc68eddc976d979906ddaf0a6edb5df14fb971ffec57e34e7399f26bdde66bf74291682d8ba35fea3f76ad90064afb74f309dd485f003a82f85207dfbf5b327ffd43391060000000000007a95020148d1f043d7aeebca7f68401709d72e1e8c689c377df3401bb866898f63b34dd86392bdbc6cb9bdfce24b3678e42ef687fb16f8e3b6d971a79d6dc68927f953fbd835dfbfdcd6aeedf47bbb8c1b37c676d969a0bdf9fa0a7bfb2153edd0337e678b96bfe1e3d58b6902bb140c4108409a8fcef9d1316490bdfcbc8e6b06a0de76d875277b737527e70401000000000040ef96118028a8d8c68733c30fbff6ffd18f68d82f5b78dce13ffc22bad6c55d7ffefe366af372dbb86eadf5eddbcff679dbfef6d4e34fda4bcb5eb251dLine truncated
UPDATE ledger_state SET image=CAST(image||X'92361f009a17ed3d00b40fda7c00680f79b6f78d42000200a8a93c7796b4f900d0bc68ef01a07dd0e603407bc8b3bd6f14021000404de5b9b3a4cd0780e6457b0f00ed83361f00da439eed7da3108000006a2acf9d256d3e00342fda7b00681fb4f900d01ef26cef1b85000400505379ee2c69f301a079d1de0340fba0cd0780f690677bdf280420005adae08e0e5bd3d9e943dd87513f79ee2c69f301a079d1de0340fba0cd0780f690677bdf280420005ad68107bcd5a64f3bc2aefec9cffd96d9a99ff8a8cd997b873df8d0237e0bf592e7ce92361f002a3776cc4eb674d98b3e541bb4f700d078fad25747c7205bb17295dfaa1dda7c00680f79b6f78d420002a0697dfd9fbf68cf3ebfc8aefe71578051aeffef8c4fdb989d77b25ffee666bf65f6e10f1e63cb96bf68ff71c50f2dd87db7891e8c9c6477fccfdd76c7efeff67b7a8fde32ed79ee2c69f301544a6de6b3cf2df4a16c47bce7503be2af0f6dfa763528653f397ad4487bfbfe53eced074cb195ab56177c6cb568ef01b483b0aff8eabf7ccb6fd59ef65fa5fccdaf90fb90771e6c93f7decbeef9c3fd051f9b07da7c0095086de8d53fb9b6e8dfe6ad2aeb6ff8b4f63e2caff87df596677bdf280420009a56d64ea154faf6d3eebb4eb0054f3ce9b72cfa30a0f1c50f8395b683e92d7acbb4e7b9b3a4cd075009f5085408fee043f33d149fe3f7a46b860f18e528b49fdcd7f779077ae8a16b51f871cf7df747975aa1bd07d00ec2bea259021005dcef7ee7c1510022fac2d74d73efa8796191361f4025421b5a4d00a2bfed77f35a4fa1bfeb9b59d6dff069ed7d585ef1fbea2dcff6be5108400034adac9d429ed27630795208130f5cf254e9b47ff883d3fda7d5ed8f853c7796b4f9002aa1a2d0a99ffca8cdb9b5f061109be103463992fb49ed730e79e74151314c3d3f44bfffd343f30bce775e68ef01b483b0af686400a2f6febd7ffdeea808a8c35dc99f1e565b3fbfe28262b968f30114a2bfbf3f36f343f6b31b7ed5ed10aca10dad3400d1dfb89fff87cff8906a1a377bbb57fbbf712ba5365a7f9b5fe3f31aaf0b25ff860fd2dafbb0bce2f7d55b9eed7da3108000685a593b85726807f26edfe1e883c1b3cf2db27bfff040b71d8f7e9fdcc1e44541c3d89d77eab1b3ab843ee4c47bb34825d31e9e2395fec151ae3c7796b4f900caa5b6f839df973ce6ede7a85123a27343fdecfa1b53dbe566f880518ee47ef2ddef3a389abfceb56ba3f9d53cd4fa18f071b4f7009a51dadfd1d508fb8a460620a77ef2249fa78951ef3e15ffeebdaffb679c7aa0cd075088be7ca4b637feb7aa843634ad1ea1d044e281491a050bbbef36c17ef1eb397eab3969dff3f9cf7ec63a060dead67e4bf26ff820adbd0fcb2b7e5fbde5d9de370a010880a695b5530854e8519afe9d7fffbedfea29ec3ce29e7d7ea18fef5a1fea121e53eece44cffbf0078e89c28db4e292be95f0f7677c3adad9fdecfa5f55f5814b3bce537c1af5c740fc1b0e9a864aa65d7f2c48184fade5b9b3a4cd075a9fdabc8f9d70bccd997b87e9c38f020ca9a4d75a682745fb0a8d4b1fc4f42dd9b40f4c853e60e8308a3aaf947ed72c92fb49ed171580685fa7fd45dafea99668ef01341bed53d2fe8eae46d857343600e92a2ceab086bffb9f7bea1e7e086d3e00d1df9f697519b5bfd38f3a22ea811d6fa3421b9a0c40d44e9ffa898ffa90beacf9f3e873406fa77952fde5a65b6ff75bdb24ff860fd2dafbb0bce2f7d55b9eed7da3108000685a593b85e0d8a3de17ed68b33ecce89b5163c7ec6cffe5018476ac1f396e7a7422d8f8e3d37630a5d04e4cc793cf2aa28976766377de79eb6b5543d3aee3b86b59843f042a9df67acb7367499b0fb4bef047beda7fb56f6ae724f921a9546aaf456d71d607b120bcb65e37d9aefe7f677c3a0a40d406fff2ffcd89ae1b2db99f0cf3a77d5d67e75adfdfcda92a802f17ed3d806694f6777435c2bea2910188be6cf5b7277ca8a1fb25da7ca07de96fce7df6ded3e2e71f520052ca976f421b9afcdb5ee3540d47f4a5d5b4bfd5f598313befe843fa72eb22ffd93b25ff860fd2dafbb0bce2f7d55b9eed7da31080006818fde1ae1357adf49da41affa4ac9d42a0e7ebd88ffa63ff3faffca1c569c7f84f5ff86c740810052012ee8b8f336d0753aaf33e7b66d4c3433bfab49d73a9f4edad513e2f3a444ba13f1834bff1df5733eda2d7d5b2a8b53c7796b4f9406bd107a6952b57f76843f5877e389c473cc0a8054d83f623a2d7cdfa80a13638f42051b850cd37d35488d3fea95a59fb492d330521da47e9dbc1ea4d530fb4f7009a95daf0f8dfd149da17a4ed8fd2847d453200d1670d9d83496defb30b17752bec55a3d0dffce10b61da2fa9adafd5be320d6d3ed09ed426e968186a5775d855fd3dacbf8f938146a0c7496883431b9af678b5a392d616477fdf4ef3bf6f3b06f92d8bda3dfd9dab2fa5867137abe43e26eb6f782ddb647b1f9657fcbe382d5f2d13ad875ac9b3bd6f140210000da19d977a50046aac7572acf88e2b6ba710a76f74e99bae0a40348e403b98bf3ffdd33d7612a1bb78f8c092b6832955988742cfd56be9d8bcf1f90ab4730f5df2039db850dfd82d45b169d78e70d4c811d1324c0acb41e14ddab4e529cf9d256d3ed05af4ed558501ffe7dbdfdbfa81a0146a3ff5edaf65cb5f2aeb79495ffdc2e76ce9f217b7ee678a7dc01075f3d7872f7de8521b5aeeeb879e24e5ce739a42fb49ed5bfef6840f47fb019dff2ad9f5be1668ef01f446a1ed5780a0625a31e1f1e1f384a8cdd5c97ef5f77710ef755e8d627ff387cf2452eda177cb419b0fb41fb575aab328f8507ba43633b451696d68f89dbef813be981adad0b400244b188fe8ef5a15fcf5194281b368fcaaa5e8ba51d4feebf341f2effbb4f9cdfa1b3ecc67bcbd0fcf8fdf17e810bd1ff3cf5369bfcb539eed7da3108000a8bbd0a86ba7a91da44ee0a762bc020c051941d64e212e8c4ba97ff250545ffde2e7ccbc85d3070fed8844dfcad28e297c6009cfaf7487a1d758b3a6332a82a529340fa1f0a7dfeb78edfaf0a24255d6b4685a25ec3475bbd0b4871d657c471b14fa5ddef2dc59d2e603ad4501c4ca55abec3faef8a195a3501ba60f663a7ef03d7fb8bf5bdb1802f3d0fe4b0823c27d61bc59ed6a101e97b6ef11b5eddac725a74dc274a44d7bb90aed634441910e25a079cce3f58aa1bd07d0ac0ab5cb85fea6563baac3bcc47b6a877d40d87748f8bb5e853915bf1496ab309747db5b68fa8268dff7c98f469f7df4b944d3506bb4f940fb513ba3da8dea36aadf04fa9b34ab8dd2efe27faf863634ad7d4c6b73456daa9ea71025fe1cd55054e3d13489ea3e4b972ff7d7bad66f554775231db1e44f1eacc4e935f565a8ffba61dbb468dab2e629fc2ebe7c92cb24486befd39e1f681a755494accf2479c9b3bd6f1402100Line truncated
UPDATE ledger_state SET image=CAST(image||X'd23e14166227ad579db75f70420f3f946141870aa45583c082906cc1848282308cc976fc2569fd124e171eb750780ce3415736e13c123667157f2cdcee6cc263192f8c0ff721fe9a09d7a50044b51e14a4e9f8da7318365115ae271e3c3446b84de1710db747b23d2fe176c48f8fb6dd6a6d848f655ba75128a769748cb2053b6150128a1ff34223000100b425f182d67841e471f7cf7056901b2fc80c0b44ed57de61b02061a1eefea32ef105bec3fc50a6264952cd0c13dfae78f822618179b86d61e16ab682f0f8f2c3fd6e4ce16d7cf9b91e0b35b48e24d6bc94029b3f8fff599d426b156adb71168522561b42c2e7212e3c8ed90ad5c3b029d77317ee7f185484e3253cde26dc8e705e098f57fc31133ea7b98e7d3184ef038556494d4629280983b0f0d887cf5f18a084efb96cfb181eab6cafadf07dfdd727a6bab727dee987720bf74972bda61ada867c5e0f85440092026d2100c9879a91da75b7ae514d91b407096aa24b1d92abd3738534cbfffa9e1f0b00682e159a863519c2025709fbde080b4955d09aab30369bb046840acc47dd333ffa3fa4426485072ac05661b60a73b59df6ebf5707d9a369f02e7c6080ba025a9a05cdb15d656894fa39063e285fda2ff251e7284e1869afb8a3783249a574d3699b0203f1e4e65dbeff079cab69e705b14805d38a1fe3471e172e3f3e47a2c9bb0d643f83a13bd162c48d26be58adffcd9ef4b75747c740cb4fd12d6e8080bfac3e585c18305524d11ee63535e8fe176c4df73e1eb2f7cceb3ad331faa0132c2cf1fd6ca0935e7583405010800a02d090b8d255e581916b8aa4687f53da002f7feb7dee7a202f9cfaadd73df1be2a7c8080bb2c3e5697a354b25f914ba86354cb4eeb0368984eb090392b070355b21717cbfc302d8c614dec6971f3e96b4cda6a175c4c50bcb73153e4b7cffc2e313171ec76cb501c2f04a014c58632614ee7f1854c40bcfc3e36dc2d74738af84af85f86346351aac69b1f8f3526cf1e72b697f255b1091ed39c967b9f9bcb6c2f775bec72afe9a5a9123080bb721e9b517be4e54bbe545ff7a2e260290142000010020d3d7c089be20dd0a4555b8ac42e4b0203f2c8c0d0b929b5218ab826a2b6837e13273093b780ee7c9b7c0395f5adeb5a71d1015ae9ba45a20e1fe4b5880ac79b54d16f4c82cbf8cb1c132b41e4d23b942826cc73f9c5fe285e826acdd23f1a046c25a37f93e97e176a9c641582b233c3649c72e49b83cf54b11f68ba2e3a980448198e875aae56a7a3bc6f1ed0ef73b3c6e5a8e052d5a8e020635c7d5180ae3b47c7bdf84e1563c180b5f17263e4d78fcb4af61e8a5fdb4e317863a92f45c86b41e3dafba69b9713a665ab76acd141b010800a02d513f00c74e98e18732e285cbf1826bfd9a5d059f7bfbc270851f129f276cffdf0a60e3ebb1f1b98485ee12fe423ebe3c1510aba058e2f3258505b90a60c3c2dbb050da8405f5e1aff3451d61ab792193b4ee7841725221765cb8dcf8f6661316aeeb794baa85103f8ed99e97f83687cf4528ecb7227c5dc4e78faf47815ad8c7447cf96120902d580a6b4de45ba85f083aa67aae76f7ef1d890784a16c4144f8dcc58f55f8fa8c3f160f48ac66565cf8fa97865e83f17d3249cb8f3fd7e17bd384af9370bf8b85002405084000006d9d0a70ad80384e85f5ea18592e3b25f3c543c2c2dcb0905b05a956f8ac42d7f34fe8e1de5dbd3e2a6096ce3b6ee77aeed6c13fd6c1dfab4feb5bfde9463f549f0a6ec3826e09b7231e04e4138034771b358dc29c389b468f699a38d5c05081b30aad55986dd384c72f2e0c27c282761d97b0a05cfb31d73faef59b30dc326ae2eae97f1d3bd17e5bb024da3e2b8ccf45ebd636483c7c095f1bdaaea53ee031eaa85cafad78e810eea72804d17426db3135da6ead4b349da637d6349684db16d27353bde9f33aeb8cd3b14a7a8d84cb97b00935b1d785e898693ff57fc8a6497acef4d87abf6f61f821f1e7d2a803756d677c1d46af378542e173566c04200080b626fc75bdacf005cf61a17d1876c4a93680faf430ea94dc0a36c50a56e385a2363e97f017fdc6b64d05dd16b21815b42a1cd8cb87052115fe2bb4312a6c0f0b72f558f84bf6b0b927d172d5f1b7a81f0c0b3f24feebf67801b48e8f96bfc51782cb36be505bdb6ec753db9b4f9811863a5a5eb8bdd98485eba2e020ded1b6b6253c8ed9fa23d1310b030af9abdf6fdb2f893ff72af4d6b193f8fce171891f138917ac87fb2ff17dd1f2c3e7340c5f0a41afe79ec346f9d7d6aae866740cf4da09f745fb99edf90a8388300808039ff058898e953d67f67e30e17b3557f0a2ed4f7a3f2a44da7afb0e35af77d1fe68bf6cb9a1a4f796de23f169d567c8277eff44cb0a5f27492163a11180a400010800a02d8b8706f90afb79080b9255a06a05f84d5d76bed66ffa871b79f7ab35db115f5f3e01487c9e52532d046be6282edb7196ff1a76a0ebdf7b673fd4725403c89a91ca2557134ef1e6b992a800de6a6548a19e93a4da35616d93e64a5abec2ad78589106da560545161e9612010800a0ad090b615b5258b01916b8aa7075de8fcef543b985f31452fc57f4616d8b8624d5f088074ab9e45b501f1688e73b4f639fd7b0003e4958f3a0212a7cd7b109c394701f7249da8e78b0d4907880d2d2f27d6dea38e8b51e7f8d9870390a3aac69b1c63e7749c2f75f5cfc785a0092ef73d4920afd5c2521004901021000405b162fa055cd02350b647d7d24891758672b986fa8205b01869af4513342d6af43be34eff58fbe55a7b03dbebe960840b41ed582e8b0edd639b7d1a6d3f10c7ff16fec711d271ddf249a260c74e2c2e31c368724fa85bf0af3733d6fa2826fd57050cd835c5438aeedcd47188084c19809fb8ec9263e9f8e63f8ba6c2eedb75e97e13a8c8eabfa16497adef2a5d7bd6a7fc4979fcff3a2e75db546b23d270ac5742c925e377a1d649b2f89dedf0ad8c2f74da911800000daa2962ef88c370d1516e826157027d1afc9c35a0349540343bf7a4f0a1c56bcf064f46bf95c344dd2aff3f3391ef1669a8c0a97fbf9f9ad09a36c1404cdf7c7210c09b209b7a71001880aeab52db90aa21b1380241d1b3d9faa5d93ebb8e4da8e78736cd9e42af86f296170918d6af72c18fb93c47d31612da7f07da126a7f41a52ed8ba668e8b5a5d7685302106da3de2f7d2ffb6983dba6f7a6de7fb9a62bc6739584002405084000006d990a67ed17f02a1cb56695140ca8b364351f6405c32aa855e169187e880a90ad605e05c12a6816352fa5d040ffdb3244d3cc7de7135f78bbbaa6c058ebd1727215148be6d56dd69b6b9c9a8f0a699bc330239f0044db966d1b151428ec09b751351ac29a166ac649fba1c040d36939da8f701a1552eb98697b5520aec2ec7881bb0ae87ffef862bfcee48b66096b7968bbb4cc902d5bdb193f8eda1f6d87fde25fdLine truncated
UPDATE ledger_state SET image=CAST(image||X'20000100004021c40310940601480a108000000000a541000200008042200049070290142000010000004a830004000000854000920e042029400002000000940601080000000a411da5abcf8fe93366b9e52b57f93128050290142000010000004a830004000000285f0420294000020000009406010800000050be084052800004000000280d0210000000a07c1180a4000108000000501a042000000040f9220049010210000000a034084000000080f24500920204200000004069108000000000e58b002405084000000080d2200001000000ca1701480a108000000000a5410002000000942f0290142000010000004a830004000000285f0420294000020000009406010800000050be084052800004000000280d0210000000a07c1180a4000108000000501a042000000040f9220049010210000000a034084000000080f245009202042000000040691080000080b439fc2b7ddce187f671afbcfe867be5b537fc9896d5ad6b173774f020b77cd56a377dc6537e0c50be084052800004000000280d021000009036a3cf1be9469f3bd28d9b30c98dbb6f921fd3b214b04cba6b6c14b08cbc688c1f83621b3ae41b6ee41943dd5df7ffda3df3c21c3f068542009202a508407aeeb9ab5bfae1dffc507d87ecbbbb5bfd71b5bfadf3f79cabd87e5bffd7b9eacf36f9bff5253dde79978e6efd864d75c625d17415dbb7cbba2d48875e3beeec967cfa891faa4f8f556fd9ec56adaff6f7eaeab35b67ffd7b9d5ebd7273edea54345346ff5e6cdfe5e769aae629b7659b7010000a0a908406aedd6ef28d77eb7aeee83998ff87bb5b6f1d762957bf78a6e6be6bfe4367cb4ca8f05000085420052fe26dd3d36aae553a8e7380d7aecd1d5bdb7acb0d7d9f920004981620720d75d74b2ebdfa7bb1bf5e32935218719f1ef87b911a7f473931f9fef26ffefab6e40df1eee87a38e758f3df7a7e87e920bce38d29dd07f3ff7df139f777317bce70ed9af9bbbed87df748f3dfba61bff706d82a9f15af6bd7e9c051e4fde7ba1df862abf2d93fd3da4d1c8830e896eb7bf3acf3df5de523fa6968289c9434e756f7cb4da8d79fe693f2643a1c87f1d39d03fdec1dfcb78eafd77ddedafccf543190a47c67efd44376df1dbeeeed7e7fb31191aaff5ddf3fa1f6b028f67ce18e10394f56ec48ce9fe1e000040cb690b01c861d7fed2ed74605f3fe4dcec4bce4c0c30c2699e3f7788db12fc78a563f75eee885b27f821e7964e7dc0df7ee587000040a11080943f354376c0be3da326ced655d55e77958bae9d767617ffc7b7dc6b0b97b8694fcff6634a870024058a1d800c3dfe1077be0f2d14444cf72145482185c20b0b405443e3ee6bbeedbef8e20b77ce4fa6d4abd1a1da1f0ffc74b8db6aabaddc45373ee2c38c75d1b8a9bff85e34edb01fdcefa7cab070255c2f0148fa299050503177f93277ed9cdfbb3885136100a25064fca0c1518d8dd59fad776fac591d2d63e9dab575e6af68d7ce4d1932d47de1ff9d3afd613f2643e1876ef72cf8a37bf49d857e8c73638f3d315aeef0c70940000040cb6a0b01c871131e775b77a8f443ce2d187bb55bf3ea6c3f5457b78127bb832ebcd20f391f703ce06fbff243b5063df882ffebdca249e3ead5100100002d8b0004ad9d0520326fc15b6ec68b7ff043a541009202c50e40146a4cbc797862f070e280fddd9851c7d6092954c3e3541f9a582812b25023fed898738e7327f6dfcfdd70cf9351ad10499a5601c89befac70578cfdadbf87b49a72ca50d779fb0e6ec48cc75cd894954209d50099f5febbeeb67fd5eeb8e2f0016e50f77dea8c134d1bce2b36ed75735e7073967fe8c7d4062093fef2667493c94386fa30a5ba2664010020adfaf63bc2dfbee69efcdda3aecbee7bb893be795af4bf2c98ff073775caaf5c75d53a7faf2e4d73940ffc75134df392ffdcd372429aeea46f9eee56ad58ee97f7b21b36fc1cd76bbf03fd23ce8f5be61e18ff7fa3ff93683e2dbfa2b2a3bfe76a96af75c5691a4dab7944d33cf9bb696ec9a2b7a271da17ad5f6c9fc37126fe98dd5fb268a15fff2c3f455de75cf07dffd75f23faedcab61f2daddc0390f69dbab8a3ef7cc80f6524851ba266ae8e9d30c30f39f7f9fa2af7dcb9a7f8a18c9d0f3cd4f5bbf60e3fe4dcfc1b2e759fbcf5ba1f02000085120620aa21a00ecb556340747fd2c3d3126b0d689ae38f19e04e38e6487fcf45d33cfba22fe39b59f7ba2b0c40aebaf1f6a82f8a03f6ede51f716ef9ca557ebdbf8efe37da16495aaf96a5a69cb42c6d9b1979e669d1f88e9515fe9e730bdf5912f577119f5fb4dde136689aa4edd6743a16eabc5debd2b0d62fdade490f4f8fd6a3758e3cc3af3fe1b190ed978e739cfae8e8d6a573b40d9a5fc271b6eeb7172f7537df71b77f3443e38ff7c75fdb205aa7d66dcb309a57c7277edccac5715f3bd4dffafaa18c69cfbce45e7b6bb11f2a3e02901428760022136f1ee183904af7f4dc45eede47e644b5355473e3673ffc66d43f48d83c56aec0c496134e2f56cb444d5dfde8bf7f172dffb631df8afa17b1c0c36a9b3c3d6f911bfbc0737e2ea49505154b3e5debfecb871516645ceec77fc38f0f6b6b3c36f48ca8f6c7a98f3ddc60df1edfe8d1d35d7e58ff68b997fdfee9687ad5f6e8d3a9734dad12d51e510d9478a00200401aa9005f3715ee1f75ec205f88bf3c0a0f7aed77807fd4f982ffb7dca5e79d1d8d330a30eeb8ef3751e8505d55e5e759e6c7254faf0041d36a1a4daf9bc205850aa2e934bde6339a46f3683da2e9355c515999d7f40a2b34aecbeeddfcbc2ffb751de183965f4637d1feeaa6fbba85345e378dd74dcbbcefa1c7a3ed3f6bf0317e8a5a5aaed6ab6376d6e0a3fd98e228f70064efc1df76fb8d1ced8732aade5fece65d799e1faa2f6c064bb544fefac4543fe4a2f92bbbf7f643cebd7ce5b96eddfb750b0f000040cbb2004485e70a05aaaad74705e8fbf7eee91fcd14aa8f1a7d591414184d3771dccfa382f786a657e1bb02104d53595111cda382f8037af7f2f73b44d3697acd278f4dba375ad65537ddeea6cf78ca8fa9657d598cbef2ba9acebcb56cad43722d57c2ed5ebe72b5dff6ea685da2e934bde6132d53cbb6ed568b340b172f89d62f9aee965fdee38fdd77a2b044e1842d4bc26d94b7e73de3ff3ab77fff13fcdfba6cbf465e3ca626a0b071da2e6db768ff548b46db3feed6eba36d148db7fdfeffb37727f07e4df7feff3f7a8b4406624a22a82148e84534a2498c1994c44512a51582727fa6b4f4a75434f44f5331d4ad564cbf4b2b215a8ae036a12289312a94705562084a464ac82083deebbfdefbf473ce3afbeceff77c4f72cef9eef3cdebd9c74ebe7bedbdd75e7b7f0fd1f5ce5a4bd2f7f6ef58e14b538cf22927adfd71fad0236cf59ab549f03174c081d66ad34decc6df3d648b3efa249cd1bc084072a01Line truncated
UPDATE ledger_state SET image=CAST(image||X'59d5b55abb42ef2dab5d9af64ae184daa340263e47e189d6af88cb1a4a6b7688d61169c877e1cfae6792f5694316af1f0d47000200000af1ce69ad9bf1dc13336a75a6ab235be2b2340514fadbf95a1f417f4bbe58f8a045adb55ec594497fb0781d0c751eab63dc7f17852f5a703c7d6e9a020d052fc9fd1f995cb4ad4e1ded5a17c6d7f15087f54bb39eabf3fc79a170a6f721fdc273ee16f6aad639d1f36abd8fbcb4d77f0e1460a5dba59f238df429f6b3e1f4acfa79d4cf82be7ffd3c6834894653e8f3fa5298522cc8c852ca350a3eb4d6889ebfd49fc3c644009203042000804aa5cedec6eee8ad24a5be9f52cf2b87bcb5ada9db43d05079084000004021ea9c5e9fceda865cdf14e7967a1e9a96be07d950bf0b3d7f399f9d002407084000000080f22000010000002a1701480e108000000000e5410002000000542e02901c200001000000ca830004000000a85c0420394000020000009407010800000050b9084072800004000000280f0210000000a0721180e4000108000000501e042000000040e52200c9010210000000a03c084000000080ca4500920304200000004079108000000000958b002407084000000080f22000010000002a1701480e108000000000e5410002000000542e02901c200001000000ca830004000000a85c042039f0adbdb7b1f73e5c666bbef89fb007000000a039b4de7463db71ebb6f6a7579bf62f237539e418fbf48377ec7fd6ae097b000000009ac3c6ad37b3f6db7dcd163cf950d86bb95a7c003260afad6dc9a79fdbf2d56bc31e00000080e6d0aed526d6718bcdecf1bffe3dec359d4e070eb6cf3f5a6c6b572e0f7b000000009ac3266ddad966db74b2c5cf4c0e7b2d578b0f407aedb285fdcb57beb4454b57863d00000000cda1738736b6fa8b2fede5bf2d0b7b4d67eb7d0e34fb97afda8a0f17863d00000000cda1edb6dbd9ffaef9dc3ef9ebacb0d772b5f80064eb761bdbfe3b6f6173162c0d7b000000009a43f72e1dec85773fb5bf2fff22ec359d4db7ec685befddc73e7efbaf610f0000004073d8aaeb5ef6f75767da9a4f9684bd96abc5072032b8c7b6f6fe872b98060b00000068069afe6ac76ddbdae4973f0c7b4d6ffb7ec36cd982f798060b00000068069afeaa7d979d6cfef4fbc35ecb561101c8ee9d37b39db6deccde5cf869d803000000d09476df6e0b7b73d14a7befefabc25ed36bbfcb5ed6b6cbaef6c9bb73c31e00000080a6b4e5cedd6cd9bb736cc5fcb7c25ecb561101886831f4a52b57dbc7cb57873d000000004d61ab76adac439b564dbef8799a16435ff3d9525bb5b479ef0b0000006c485a77d8da36ddbc438b5ffcdc554c00d26eb3af5abfee5bdb9b8b3eb3556bbe0825000000001a93a6bedaa5537b9b3ee7efb6fcf37f8492e6b371bbcdadf3378fb0a5efbd615facfa3c9400000000684c9afa6a8b1dbbdaa23f3f6a5f2cff2c94b47c15138048970e9bdafebb74b03708410000008046a5f063d7107e3cf3e6c74dbef07921ad3bee68dbecd3db96be4b080200000034a624fcf85a575bf2e2132d7ee1f358450520a210a4670841e67fbc82e9b00000008046a069afb6dfaaad3d5bc6f0c32521c8debd6df9e20f980e0b00000068049af6aa5da71d6cc95f2a2bfc908a0b4044d3611db0f316f695af982dfae4735bbe7a6d2805000000d0101af5d179cbcdec7fffd7ecf9773f6df669af0ad174585bed73a07d65a37fb1151f2eb0b52b978752000000000da1511f6db7ed62fffbe5ffd8c7af3c5331d35ec52a320071bb77decc76ebd4d6fef77fbeb44f3f5f6b2b567f61fff8df2f991e0b000000c8d07ad38dedab5fd9c8dab6dad8b6d86c13fbcabf6c647ffd60b9bdf7f755e168feb4df652f6bbf5337fb3224346b962fb5b52b5684cfff607a2c00000020c3c6ad37b38dbef255dba46d5bdbb45d87f0f92bf6e99bafda8af96f85a395a9a20310b775bb8d6d872d5bdb566d37b17f09ff27aecda65f0da500000000622bd7fcc3fee77fbeb48f57acb50f3e5955f6e9ae4ab5e9961dad4de7afd9261db609ffbdff55fb6aeb36a11400000040ec1fab5686ffdeff87ad5dfa91ad5cf4b78a9bee2acb0611800000000000000000800d0b01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808ab3410420adda6d61edb6ee649bb46a631bfdcbbfd8c6ad360ba500000000000000006c18be58fdb97df93fff63ab562cb3cf3ffdc8562fff349456b68a0e40da77dcdeb6e8b4a37df9bfff6bab577c6a6b3f5f69fff3c55afb47d80000000000000000d8507c75e34dec5fc2b6c9666dac55db2d6ca3af7cc53e5dfcbe2d5b323f1cad4c1519806cdcaa8d6dbb7337b3af6c642bfebec4d67cbe2294020000000000000000d974b3b6d676eb8e66fffba57df8ee5cfb62f5ca505a592a2e0069bdc5d6b6ed2edd6df9870bedf3cf3e0925000000000000000020cb669b6f69edb6ddce96bcf5df15372d564505200a3f3a86f0e3e30fe685b46a5528010000000000000000c5683448872e3bd9e20a0b412a2600d1b457dbedb99f7d42f8010000000000000040832804d92284200b5f7f29f4b157c6745815138074e9fe0d5b159229a6bd0200000000000000a0e1341d56eb765bd882397f097b2d5f450420edb7dddeda6dd3c93e7e7f5ed8030000000000000000eb62ab1d77b5654b16d8f2bf2f0a7b2d5b4504203beed3c73e5bfc81adf97c45d8030000000000000000eb4253616dde69077bff959961af656bf10148ab765bd8363b75b38fde7b23ec010000000000000080f5b1cd4e7b843ef7b92d7e41f4161f806cb373f7f0eb97b6fcef4bc2ef0000000000000000607db4dbbaa3fdeffffcc33e7effedb0d772b5f80064bbeedfb0959f7cc8f457000000000000000034024d83d566cb6d6d610b5f0cbdc50720db7fbd977dbaf06ff68f2fd6863d0000000000000000b03e366ed5da36efb8bdcd7f6d56d86bb95a7c00b273cf436dd11baf844f0000000000000000a03174de631f7bf7c527ac252300010000000000000000b51080e400010800000000000000008d8b00240708400000000000000000685c0420394000020Line truncated
UPDATE ledger_state SET image=CAST(image||X'c41b9c3766d39b6cb8ea076dfd711ddb83362c5ad49c7282e7b9d65fab658c14429507f289980f34dad5b49fea78cdd4a953aac49b6dd72a04897d315872dd0a270de6edfbf01db81f63b97c18941f164d9a8e1fb62dfb1fed1ccb4d583fed0871bcc5362cd7c731fdfef7fd5efe107cb6fa10db3f07385c7392d772a22f47c930edb8636657cbe3f86cc2f23ef0fef756f37ee6ef3fdf7f0c312febaeefbfa6f7d948637bac5dbb7658c7515d7d9fc772ca6d395cfcc7cb8a7beea9da359a181e5bde00ad691fd48fcdfae3c0f1cab689ffb89124499224ed5c86aa33519fe0fb74a04e43bd267c6cfe47aac7ade6e73be73bf3fc8c9808d4f4162dfe6a7f3d87823185ffa66239df7911a105750bea202c17ac9b3605a673292d6a1f7cff2fd59785a66943899a425993e2bbfaab5ef5aa2a6888fa4c59bb2008e239becb334ff4b9beedf99e4ea1bbbc2f49abeff475f4fd63f3cfabd65f8e98883eb21e82134228501bbc31d7add8e6ac833e441883581e05f7e1d60de807f5b1721b8c26da4e5d92fdc0f1c17112d81eb489edd10efa82766a7cec57ae5ac33663bd8361b91c138cfe190c7d61a4d56ef9df5c8a8b3e813e5103645da5a1ded3dda4e7021076260766bcf178ccc9b1e972449c34789372728a934efd0dd574307310727289e15bbcb9873a81f0fc8f7e745fd526b00c4e54607eaebb1643dee24381c2370730edafb7ab557b637a79f244fda0ad3fde166c9bf25a8543619df5f6f28173c2f16fcd05f62d975be28dcb7e89b6f121184974f4afbe9c12db93edcd071e2351d89683f595217cbcd9eb2720f60327593e5402eb261d65bf833eb55a7684719ca8587e60dff30b833826a3bd71fcb05eda3cd8fe2f718cc7874a8865728cae5efd60f5a1c4fcbc2eb661ac0f24da24fe313493f93926d986fc07c67ef9a4184106cfb1ec72fe26b48b1024e5334c6cc35877bd3f1c4b3c6eda8eede03802ed0bf5e38875f0cb84c18e23b6fd70f6792c67a86d01d2757e3d51b6111c7f7cc8d0aee1621b737cc4b104b605efa9f8f505c71b1f9afc471b8f03ff4172c2f1bfdddf76b60fcfd3af50dfd7f5c7815f9bf0cb14cea592244992a49d0fb51b6a1fe577ca1261c277bf7747f53cdf2df98e3ce0bb77fe4eda4e8d89efedd44cf86162fd7b34cbe5f9a86d94788eeff0f1bdb5fc1ecb74bedb97b53496c33cad9655ff6e4cfbc1f2da15ebadd7264ad420067b3ebedbd72fd3452d80da25b58008709ada3d1ccc4f9b07eb23f74c79200753f57dc3f6a6b614b5cf1d857e8f1b4b81ff91fca80ffb9276479b78cc65f3ebfd601fb29d3946eb687f5fa0b4e51869f57a8e6deec512af0bbc1ef5f5b6c23a593eef2bb45a2eaf7bd52b6754c740a05e44c051be9e3ae589f958e1ca3d6c1f5e7358aefdb12d18c5c3f143a8c8f3e0d88bfa57b7eb890084e22da964bd800d0e6a4e8c1472d9b9a5f2c0e38dd074d2e135d5b0b5dab2cb838013c06027100e284ef48b160f2c84873859c59b887546a11604350cc72b3f0478437322abb7b7553fcaf6a2fe785bf0e1c6b629db3518d6b968f1c06dd0d45efa0ff60bcac74dafaf635b974320d93f0cb52b4f04250ae57d27b12da93898afbe5fe943b9ddea8febd8778c02897d094e380423714cd6d7437f87daff259677caefbc7d40fb5b7de020b621db235ecf3acbffd06099b431dac4be8e10aadedec1c472a2afb1eefafe63fd3c6eb51d998ff731f7976139754d2102cb04c70dcac72cafa91d4d7dabefe3f2712ca77c7d2bb4916392f94a65bb9a707ee3faa765df42d3f98d008444bfec1b6d2e1fa3de76dac1fbb93cd7d5b747fd71603ae7b1b8519b2449922469e7c2774abe73d6bff306be13f31cdf8bf90e3973660e401a4617b4fa6e8cf81edb147e805ac8f7be777bb58e3ad6c9fcb17cbe6b73d510be2b339de596dfadb95a037506da5cc7b2eadf8ddb697f5dac9736b0ed9af07dbe0c31ea287e479043fd914236f51bb0cdd916d187a6760f07f3d366d6d584f553938bfe50bb04b5cea85f6cebba03cbe4479ef123dd3af60337732fc335da4d7810d378cc8f7eeb610cf396b5b1127d63140b35cda89bf07afa19db37d4b77ba0fec88f8f5b6d3fea2ae5953a4af49b3a70bdae0afa53dfafb4977dd1f4fa3a02102e27c73c5c1e2d6a3b1c7b51ffea763d1180b043bffb7c8a5cc7ceeb7b7eebcb087132a3d01c07363bb67e60302fbfda2e0fbe38e8e20ddd74a095383970422b4fa4a57ac19262336d88feb0fcfa1b330acbfcc29f3755e0cd72c2f139cd5bb8e5e418db60d1e22d7da3afdb7b10f361417adbeaa4538a76d5f7439c00cbf6f281b579d3e6fe6dce7ee2e4cd7cb12d635bd5c5b62c9717eb68b57f1831c489b0be3d3831311a209615db916161e531539f2ff07adac2eb697b88e367d1e2befdc1fe2d8f9ffa8992e7870a7066beea55037e953058bb621b46bfc03a6803ed64b4c3bbe69ddebfcdc1be1e9bfbc3493a8e3d96cd3a0613af2df7176d2bd70db66babf730a27db18deaf8c027ed2e43208e9bb1e3c6f6bf6f784cf21dff91d4d40eb6e570f6796ccb56ed2af1c158ff1006c77babb00aac9fffb88b7d518af6f11f6591d0c7368fe32bda583f57d4df174ded63bb724f9838b6621e8ec5d8cee075f11f5c92244992a49d0fdf29f9decf77e5265117e2357c4f5db4b8ef3b6b607eb4fa5ec9f75f6a2c1468cbe024c477e1faf7d5405da1acadd106be2bf3a355ee6951deb322ea36f143e53a9655af51306db0da4d13fac477fab2665257d620c03cdccc3bdad554af89765307a15e10f3d2c67abb5b611b80e504e61fac8f51938bfeb0fea8c344dbda59771dcb8dba63d425a28f75719c451bc0b1c56808dacdb1410d831f42c763b05db97749bd065caad76f582eeb88ed1b985eafaf80e9ad0216f03cd8974da8173ff1c41355df4af4a7a926c30faa5bddf798feb20db87f33579fa1eec53d61e84fa81f7bddaceb0310de909c94d899e54e2a71807032a3f81e0736891b45ef458bb79c7039d0a64cdeab2a36f23a0a7f711f09964d4118149bb9b452bcd938010c760289375fabe7c141b568715f5b3879112c94ede0c41c075c1ca463c68ca9eeb110af633ac55b3e0ccae924791cccd15eb0beed3d883901718923b60f1f186c1fd657a24db49fedc5302a4e38b11f78aeec07d3d92fff7fee2bcbe4244d40459f62ffb21df8808ac74dd8df63c7eedadf7fe67f64eda3d5898036f381c774c4bee4844c4a4e1b788e130727d5d8964ca71f713cf098d7700cc576e538a8aef794f11c6de5ba7adc083e4ed4a1dcfecc571e3ff5fd1f6d8ce7eb386e41ff0221ca3379deb834d213f9041e7f836df45cfe5f398dedc43e01eba58f609fd0cf0805401bb9f41223afd8f78c1ca8631b301f371f2bffe384f696efb3e85f6cc726ad4ee621de63b4873ed1e6a6e368d1e2bef718eaed60f9b4b73Line truncated
UPDATE ledger_state SET preview_revision=1 WHERE id=1 AND revision=1;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
CREATE TABLE ledger_state (id INTEGER PRIMARY KEY CHECK(id=1),revision INTEGER NOT NULL,rows TEXT NOT NULL,metadata TEXT NOT NULL,image BLOB,preview_revision INTEGER NOT NULL);
+1
View File
@@ -0,0 +1 @@
INSERT INTO ledger_state (id,revision,rows,metadata,image,preview_revision) VALUES (1,1,'[{"id":"[\"2026-10-12 19:53:45\",\"naruto021\",\"Withdrawal\",-10]","date":"2026-10-12 19:53:45","player":"naruto021","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-12 19:50:02\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-10-12 19:50:02","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-12 19:47:47\",\"lostinu\",\"Withdrawal\",-7]","date":"2026-10-12 19:47:47","player":"Lostinu","reason":"Withdrawal","amount":-7},{"id":"[\"2026-10-12 19:45:22\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-12 19:45:22","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-12 19:33:34\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-12 19:33:34","player":"wxsp","reason":"Withdrawal","amount":-10},{"date":"2026-10-12 19:30:40","player":"belgheys","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 19:30:40\",\"belgheys\",\"Withdrawal\",-10]"},{"date":"2026-10-12 19:29:28","player":"papaguy","reason":"Deposit","amount":100,"id":"[\"2026-10-12 19:29:28\",\"papaguy\",\"Deposit\",100]"},{"date":"2026-10-12 19:18:11","player":"GODpori","reason":"Deposit","amount":62,"id":"[\"2026-10-12 19:18:11\",\"godpori\",\"Deposit\",62]"},{"date":"2026-10-12 19:17:48","player":"belgheys","reason":"Deposit","amount":26,"id":"[\"2026-10-12 19:17:48\",\"belgheys\",\"Deposit\",26]"},{"date":"2026-10-12 19:17:00","player":"belgheys","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 19:17:00\",\"belgheys\",\"Withdrawal\",-10]"},{"date":"2026-10-12 19:15:42","player":"sobhanAA","reason":"Deposit","amount":200,"id":"[\"2026-10-12 19:15:42\",\"sobhanaa\",\"Deposit\",200]"},{"date":"2026-10-12 13:12:10","player":"naruto021","reason":"Deposit","amount":10,"id":"[\"2026-10-12 13:12:10\",\"naruto021\",\"Deposit\",10]"},{"date":"2026-10-12 13:04:18","player":"naruto021","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 13:04:18\",\"naruto021\",\"Withdrawal\",-10]"},{"date":"2026-10-12 10:42:28","player":"belgheys","reason":"Deposit","amount":10,"id":"[\"2026-10-12 10:42:28\",\"belgheys\",\"Deposit\",10]"},{"date":"2026-10-12 09:36:40","player":"SkaiMaster","reason":"Deposit","amount":8,"id":"[\"2026-10-12 09:36:40\",\"skaimaster\",\"Deposit\",8]"},{"date":"2026-10-12 09:16:15","player":"HEMO","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 09:16:15\",\"hemo\",\"Withdrawal\",-10]"},{"date":"2026-10-12 01:15:14","player":"night44","reason":"Deposit","amount":3,"id":"[\"2026-10-12 01:15:14\",\"night44\",\"Deposit\",3]"},{"date":"2026-10-11 21:14:59","player":"shalvargay","reason":"Deposit","amount":10,"id":"[\"2026-10-11 21:14:59\",\"shalvargay\",\"Deposit\",10]"},{"date":"2026-10-11 20:55:54","player":"sobhanAA","reason":"Deposit","amount":10,"id":"[\"2026-10-11 20:55:54\",\"sobhanaa\",\"Deposit\",10]"},{"date":"2026-10-11 20:53:58","player":"MMFerii","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-11 20:53:58\",\"mmferii\",\"Withdrawal\",-10]"},{"date":"2026-10-11 20:50:35","player":"wxsp","reason":"Deposit","amount":10,"id":"[\"2026-10-11 20:50:35\",\"wxsp\",\"Deposit\",10]"},{"date":"2026-10-11 20:49:55","player":"Lostinu","reason":"Deposit","amount":10,"id":"[\"2026-10-11 20:49:55\",\"lostinu\",\"Deposit\",10]"},{"id":"[\"2026-10-11 19:08:16\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-11 19:08:16","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 19:02:39\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-11 19:02:39","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 19:00:16\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-11 19:00:16","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:59:17\",\"lostinu\",\"Withdrawal\",-10]","date":"2026-10-11 18:59:17","player":"Lostinu","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:34:44\",\"wxsp\",\"Deposit\",4]","date":"2026-10-11 18:34:44","player":"wxsp","reason":"Deposit","amount":4},{"id":"[\"2026-10-11 18:32:39\",\"mmferii\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:39","player":"MMFerii","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:32:27\",\"hemo\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:27","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:32:26\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:26","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:32:10\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:10","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:15:30\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-11 18:15:30","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:11:52\",\"shalvargay\",\"Deposit\",24]","date":"2026-10-11 18:11:52","player":"shalvargay","reason":"Deposit","amount":24},{"id":"[\"2026-10-11 18:11:16\",\"lostinu\",\"Withdrawal\",-10]","date":Line truncated
Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

+1
View File
@@ -0,0 +1 @@
CREATE TABLE ledger_state (id INTEGER PRIMARY KEY CHECK(id=1),revision INTEGER NOT NULL,rows TEXT NOT NULL,metadata TEXT NOT NULL,image BLOB,preview_revision INTEGER NOT NULL);
+1
View File
@@ -0,0 +1 @@
INSERT INTO ledger_state VALUES (1,1,'','{"balance":-2172,"members":35,"low":24,"count":1243,"latest":"2026-10-12 19:53:45"}',X'',0);
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET rows=rows||'[{"id":"[\"2026-10-12 19:53:45\",\"naruto021\",\"Withdrawal\",-10]","date":"2026-10-12 19:53:45","player":"naruto021","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-12 19:50:02\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-10-12 19:50:02","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-12 19:47:47\",\"lostinu\",\"Withdrawal\",-7]","date":"2026-10-12 19:47:47","player":"Lostinu","reason":"Withdrawal","amount":-7},{"id":"[\"2026-10-12 19:45:22\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-12 19:45:22","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-12 19:33:34\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-12 19:33:34","player":"wxsp","reason":"Withdrawal","amount":-10},{"date":"2026-10-12 19:30:40","player":"belgheys","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 19:30:40\",\"belgheys\",\"Withdrawal\",-10]"},{"date":"2026-10-12 19:29:28","player":"papaguy","reason":"Deposit","amount":100,"id":"[\"2026-10-12 19:29:28\",\"papaguy\",\"Deposit\",100]"},{"date":"2026-10-12 19:18:11","player":"GODpori","reason":"Deposit","amount":62,"id":"[\"2026-10-12 19:18:11\",\"godpori\",\"Deposit\",62]"},{"date":"2026-10-12 19:17:48","player":"belgheys","reason":"Deposit","amount":26,"id":"[\"2026-10-12 19:17:48\",\"belgheys\",\"Deposit\",26]"},{"date":"2026-10-12 19:17:00","player":"belgheys","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 19:17:00\",\"belgheys\",\"Withdrawal\",-10]"},{"date":"2026-10-12 19:15:42","player":"sobhanAA","reason":"Deposit","amount":200,"id":"[\"2026-10-12 19:15:42\",\"sobhanaa\",\"Deposit\",200]"},{"date":"2026-10-12 13:12:10","player":"naruto021","reason":"Deposit","amount":10,"id":"[\"2026-10-12 13:12:10\",\"naruto021\",\"Deposit\",10]"},{"date":"2026-10-12 13:04:18","player":"naruto021","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 13:04:18\",\"naruto021\",\"Withdrawal\",-10]"},{"date":"2026-10-12 10:42:28","player":"belgheys","reason":"Deposit","amount":10,"id":"[\"2026-10-12 10:42:28\",\"belgheys\",\"Deposit\",10]"},{"date":"2026-10-12 09:36:40","player":"SkaiMaster","reason":"Deposit","amount":8,"id":"[\"2026-10-12 09:36:40\",\"skaimaster\",\"Deposit\",8]"},{"date":"2026-10-12 09:16:15","player":"HEMO","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-12 09:16:15\",\"hemo\",\"Withdrawal\",-10]"},{"date":"2026-10-12 01:15:14","player":"night44","reason":"Deposit","amount":3,"id":"[\"2026-10-12 01:15:14\",\"night44\",\"Deposit\",3]"},{"date":"2026-10-11 21:14:59","player":"shalvargay","reason":"Deposit","amount":10,"id":"[\"2026-10-11 21:14:59\",\"shalvargay\",\"Deposit\",10]"},{"date":"2026-10-11 20:55:54","player":"sobhanAA","reason":"Deposit","amount":10,"id":"[\"2026-10-11 20:55:54\",\"sobhanaa\",\"Deposit\",10]"},{"date":"2026-10-11 20:53:58","player":"MMFerii","reason":"Withdrawal","amount":-10,"id":"[\"2026-10-11 20:53:58\",\"mmferii\",\"Withdrawal\",-10]"},{"date":"2026-10-11 20:50:35","player":"wxsp","reason":"Deposit","amount":10,"id":"[\"2026-10-11 20:50:35\",\"wxsp\",\"Deposit\",10]"},{"date":"2026-10-11 20:49:55","player":"Lostinu","reason":"Deposit","amount":10,"id":"[\"2026-10-11 20:49:55\",\"lostinu\",\"Deposit\",10]"},{"id":"[\"2026-10-11 19:08:16\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-11 19:08:16","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 19:02:39\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-11 19:02:39","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 19:00:16\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-11 19:00:16","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:59:17\",\"lostinu\",\"Withdrawal\",-10]","date":"2026-10-11 18:59:17","player":"Lostinu","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:34:44\",\"wxsp\",\"Deposit\",4]","date":"2026-10-11 18:34:44","player":"wxsp","reason":"Deposit","amount":4},{"id":"[\"2026-10-11 18:32:39\",\"mmferii\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:39","player":"MMFerii","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:32:27\",\"hemo\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:27","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:32:26\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:26","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:32:10\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-11 18:32:10","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:15:30\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-11 18:15:30","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-11 18:11:52\",\"shalvargay\",\"Deposit\",24]","date":"2026-10-11 18:11:52","player":"shalvargay","reason":"Deposit","amount":24},{"id":"[\"2026-10-11 18:11:16\",\"lostinu\",\"Withdrawal\",-10]","date":"2026-10-11 18:11:16","player":"Lostinu","reason":"WiLine truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET rows=rows||'10-06 09:59:58\",\"khees\",\"Deposit\",8]","date":"2026-10-06 09:59:58","player":"khees","reason":"Deposit","amount":8},{"id":"[\"2026-10-06 09:47:21\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-06 09:47:21","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-06 08:39:47\",\"night44\",\"Withdrawal\",-10]","date":"2026-10-06 08:39:47","player":"night44","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-06 00:34:53\",\"tgamir\",\"Deposit\",10]","date":"2026-10-06 00:34:53","player":"TGamir","reason":"Deposit","amount":10},{"id":"[\"2026-10-05 23:17:32\",\"wxsp\",\"Deposit\",2]","date":"2026-10-05 23:17:32","player":"wxsp","reason":"Deposit","amount":2},{"id":"[\"2026-10-05 23:02:17\",\"belgheys\",\"Deposit\",10]","date":"2026-10-05 23:02:17","player":"belgheys","reason":"Deposit","amount":10},{"id":"[\"2026-10-05 22:52:32\",\"belgheys\",\"Withdrawal\",-10]","date":"2026-10-05 22:52:32","player":"belgheys","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 22:12:40\",\"papaguy\",\"Withdrawal\",-10]","date":"2026-10-05 22:12:40","player":"papaguy","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 21:17:22\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-05 21:17:22","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:29:24\",\"kingwolf9511\",\"Deposit\",20]","date":"2026-10-05 20:29:24","player":"KingWolf9511","reason":"Deposit","amount":20},{"id":"[\"2026-10-05 20:21:44\",\"tgamir\",\"Withdrawal\",-10]","date":"2026-10-05 20:21:44","player":"TGamir","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:21:21\",\"kingwolf9511\",\"Withdrawal\",-10]","date":"2026-10-05 20:21:21","player":"KingWolf9511","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:09:37\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-05 20:09:37","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:09:10\",\"nova76\",\"Withdrawal\",-10]","date":"2026-10-05 20:09:10","player":"NOVA76","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:09:05\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-05 20:09:05","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:08:59\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-10-05 20:08:59","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:07:29\",\"lostinu\",\"Withdrawal\",-10]","date":"2026-10-05 20:07:29","player":"Lostinu","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:07:00\",\"night44\",\"Withdrawal\",-10]","date":"2026-10-05 20:07:00","player":"night44","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:06:55\",\"papaguy\",\"Withdrawal\",-10]","date":"2026-10-05 20:06:55","player":"papaguy","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:05:44\",\"meghdad\",\"Withdrawal\",-10]","date":"2026-10-05 20:05:44","player":"Meghdad","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:05:22\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-05 20:05:22","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:04:09\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-05 20:04:09","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:00:50\",\"kingwolf9511\",\"Withdrawal\",-10]","date":"2026-10-05 20:00:50","player":"KingWolf9511","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:00:48\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-05 20:00:48","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 20:00:32\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-05 20:00:32","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 19:52:48\",\"tgamir\",\"Withdrawal\",-8]","date":"2026-10-05 19:52:48","player":"TGamir","reason":"Withdrawal","amount":-8},{"id":"[\"2026-10-05 19:52:42\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-10-05 19:52:42","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 19:46:25\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-05 19:46:25","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:20:16\",\"sobhanaa\",\"Withdrawal\",-10]","date":"2026-10-05 18:20:16","player":"sobhanAA","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:20:08\",\"khees\",\"Withdrawal\",-10]","date":"2026-10-05 18:20:08","player":"khees","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:20:08\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-10-05 18:20:08","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:16:33\",\"hemo\",\"Withdrawal\",-10]","date":"2026-10-05 18:16:33","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 18:12:19\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-10-05 18:12:19","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-10-05 17:56:02\",\"skaimaster\",\"Withdrawal\",-10]","dateLine truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET rows=rows||'osit\",1]","date":"2026-09-28 22:08:33","player":"Meghdad","reason":"Deposit","amount":1},{"id":"[\"2026-09-28 21:50:35\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:35","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:34\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:34","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:31\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:31","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:31\",\"nova76\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:31","player":"NOVA76","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:31\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:31","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:50:28\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-09-28 21:50:28","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 21:27:10\",\"alinaghi\",\"Deposit\",37]","date":"2026-09-28 21:27:10","player":"Alinaghi","reason":"Deposit","amount":37},{"id":"[\"2026-09-28 20:30:01\",\"psh9017\",\"Deposit\",20]","date":"2026-09-28 20:30:01","player":"PSH9017","reason":"Deposit","amount":20},{"id":"[\"2026-09-28 18:56:19\",\"shalvargay\",\"Deposit\",21]","date":"2026-09-28 18:56:19","player":"shalvargay","reason":"Deposit","amount":21},{"id":"[\"2026-09-28 18:16:33\",\"blackekko\",\"Withdrawal\",-10]","date":"2026-09-28 18:16:33","player":"BLACKEKKO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 12:43:43\",\"skaimaster\",\"Withdrawal\",-3]","date":"2026-09-28 12:43:43","player":"SkaiMaster","reason":"Withdrawal","amount":-3},{"id":"[\"2026-09-28 12:36:40\",\"hemo\",\"Withdrawal\",-10]","date":"2026-09-28 12:36:40","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 05:20:47\",\"godpori\",\"Withdrawal\",-10]","date":"2026-09-28 05:20:47","player":"GODpori","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 00:15:07\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-28 00:15:07","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-28 00:00:37\",\"wxsp\",\"Deposit\",2]","date":"2026-09-28 00:00:37","player":"wxsp","reason":"Deposit","amount":2},{"id":"[\"2026-09-27 23:39:34\",\"wxsp\",\"Deposit\",10]","date":"2026-09-27 23:39:34","player":"wxsp","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 23:38:13\",\"skaimaster\",\"Deposit\",10]","date":"2026-09-27 23:38:13","player":"SkaiMaster","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 23:26:57\",\"mretanol\",\"Deposit\",10]","date":"2026-09-27 23:26:57","player":"MrEtanol","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 22:51:03\",\"alinaghi\",\"Deposit\",4]","date":"2026-09-27 22:51:03","player":"Alinaghi","reason":"Deposit","amount":4},{"id":"[\"2026-09-27 22:24:59\",\"hemo\",\"Withdrawal\",-10]","date":"2026-09-27 22:24:59","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 22:22:40\",\"alinaghi\",\"Deposit\",9]","date":"2026-09-27 22:22:40","player":"Alinaghi","reason":"Deposit","amount":9},{"id":"[\"2026-09-27 21:36:15\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-09-27 21:36:15","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 21:32:22\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-27 21:32:22","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 21:30:58\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-27 21:30:58","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 20:52:35\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-27 20:52:35","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 20:40:45\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-27 20:40:45","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 20:34:08\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-27 20:34:08","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 20:18:06\",\"naruto021\",\"Deposit\",18]","date":"2026-09-27 20:18:06","player":"naruto021","reason":"Deposit","amount":18},{"id":"[\"2026-09-27 19:58:28\",\"alinaghi\",\"Deposit\",10]","date":"2026-09-27 19:58:28","player":"Alinaghi","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 19:57:42\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-27 19:57:42","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 19:55:03\",\"hemo\",\"Withdrawal\",-10]","date":"2026-09-27 19:55:03","player":"HEMO","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 19:54:54\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-27 19:54:54","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-27 19:22:31\",\"wxsp\",\"Deposit\",10]","date":"2026-09-27 19:22:31","player":"wxsp","reason":"Deposit","amount":10},{"id":"[\"2026-09-27 19:21:50\",\"wxsp\",\"WithdraLine truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET rows=rows||'posit\",10]","date":"2026-09-20 21:05:08","player":"Alinaghi","reason":"Deposit","amount":10},{"id":"[\"2026-09-20 20:51:28\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-20 20:51:28","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:21:47\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-09-20 20:21:47","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:16:47\",\"belgheys\",\"Withdrawal\",-10]","date":"2026-09-20 20:16:47","player":"belgheys","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:08:48\",\"papaguy\",\"Withdrawal\",-10]","date":"2026-09-20 20:08:48","player":"papaguy","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:07:46\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-20 20:07:46","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:03:53\",\"nova76\",\"Withdrawal\",-10]","date":"2026-09-20 20:03:53","player":"NOVA76","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:03:41\",\"nova76\",\"Withdrawal\",-40]","date":"2026-09-20 20:03:41","player":"NOVA76","reason":"Withdrawal","amount":-40},{"id":"[\"2026-09-20 20:03:28\",\"esc4a\",\"Withdrawal\",-10]","date":"2026-09-20 20:03:28","player":"ESc4a","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:03:23\",\"psh9017\",\"Withdrawal\",-10]","date":"2026-09-20 20:03:23","player":"PSH9017","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 20:01:51\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-09-20 20:01:51","player":"MrEtanol","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:58:51\",\"papaguy\",\"Deposit\",10]","date":"2026-09-20 19:58:51","player":"papaguy","reason":"Deposit","amount":10},{"id":"[\"2026-09-20 19:55:44\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-20 19:55:44","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:55:42\",\"wxsp\",\"Deposit\",275]","date":"2026-09-20 19:55:42","player":"wxsp","reason":"Deposit","amount":275},{"id":"[\"2026-09-20 19:54:52\",\"papaguy\",\"Withdrawal\",-10]","date":"2026-09-20 19:54:52","player":"papaguy","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:54:50\",\"madboy\",\"Withdrawal\",-10]","date":"2026-09-20 19:54:50","player":"MadBoY","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:48:43\",\"shalvargay\",\"Withdrawal\",-10]","date":"2026-09-20 19:48:43","player":"shalvargay","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:48:23\",\"nova76\",\"Withdrawal\",-10]","date":"2026-09-20 19:48:23","player":"NOVA76","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:44:53\",\"alinaghi\",\"Withdrawal\",-10]","date":"2026-09-20 19:44:53","player":"Alinaghi","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:43:07\",\"tgamir\",\"Withdrawal\",-10]","date":"2026-09-20 19:43:07","player":"TGamir","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 19:13:06\",\"shalvargay\",\"Deposit\",5]","date":"2026-09-20 19:13:06","player":"shalvargay","reason":"Deposit","amount":5},{"id":"[\"2026-09-20 18:22:29\",\"wxsp\",\"Deposit\",10]","date":"2026-09-20 18:22:29","player":"wxsp","reason":"Deposit","amount":10},{"id":"[\"2026-09-20 18:16:24\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-20 18:16:24","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 18:14:41\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-20 18:14:41","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 18:13:44\",\"madboy\",\"Withdrawal\",-10]","date":"2026-09-20 18:13:44","player":"MadBoY","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 18:13:31\",\"wxsp\",\"Withdrawal\",-10]","date":"2026-09-20 18:13:31","player":"wxsp","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 16:29:10\",\"skaimaster\",\"Deposit\",5]","date":"2026-09-20 16:29:10","player":"SkaiMaster","reason":"Deposit","amount":5},{"id":"[\"2026-09-20 15:39:45\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-20 15:39:45","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 15:32:47\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-20 15:32:47","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-20 12:48:36\",\"mretanol\",\"Deposit\",12]","date":"2026-09-20 12:48:36","player":"MrEtanol","reason":"Deposit","amount":12},{"id":"[\"2026-09-20 05:52:10\",\"alinaghi\",\"Deposit\",2]","date":"2026-09-20 05:52:10","player":"Alinaghi","reason":"Deposit","amount":2},{"id":"[\"2026-09-19 22:54:19\",\"godpori\",\"Withdrawal\",-10]","date":"2026-09-19 22:54:19","player":"GODpori","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-19 22:54:19\",\"skaimaster\",\"Withdrawal\",-10]","date":"2026-09-19 22:54:19","player":"SkaiMaster","reason":"Withdrawal","amount":-10},{"id":"[\"2026-09-19 22:54:13\",\"mretanol\",\"Withdrawal\",-10]","date":"2026-09-19 22:54:13","player":"MrEtanol","reason":"Withdrawal","amoLine truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET image=CAST(image||X'89504e470d0a1a0a0000000d4948445200000640000004b00806000000a301869700025d9749444154789cecdd09a01c6599f6fd3bfbc99eb0266401020884080aa841981151028451501340c78d5598f94601719b718230be332e08e8ccbc209beb284b54f4950061409c61090a281002c89e842c6c595872b27ff755274f52a74e55afd5cbe9feff923e5ddda7bbbab67eeaf47df553d5a763e498cd060000000000000000d0420840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c02100000000000000000d0720840000000000000000040cb21000100000000000000002d8700040000000000000000b41c021000000000000000002ad5a7aff5e9d7df36f7e963faa7eb66d467f366d33fdbbcc96ce3c6aeeb164700020000000000000040b9faf637ebef170f3d7a278f06366c30dbe497164500020000000000000040a9faf4f5e06340d7750efa54d86364f3e69c4afbea09b2617dd7758b21000100000000000000a0147dfb599ffe03d577a22a95861e59aa0d4334359bd7aff51fad158210800000000000000000508c871fe6e147a50a871e857e97a6abacdf7fc0001b3c64a8bdf1fa6bb649e7f5705585212d16821080000000000000000050489fbed667c0a02db14379b2838f2df7f7a964ac1e7e78183366dc049fb4beb67edd5a5bb678a1dfbb4d254188a6a8957a8210806c3178c8201bb6dd601b3c74900d1a32d0fa0dece7e9994e6003b49f0deb37d8c6751b6ded9beb6ccd1b6bedf557d7d89a37bde103000000000000da91871f9e34f840797a861f5b6e770b3db6dc57c0943d46da616fdbd176d9bec35e78b9d31e7e72a575da087bf9f56dd3b4e899a7fc677cbc7eab8210240a3f1482b480b60e40147a6c3776840ddf61a8f5ebd7cf3a5f5f631bbdf0bb6ecd3affadd6f3665bdfd9350cb48b011d03bd2def6a74070ef630d083c08e61836de3c68db66af96a5bf9e21b8421000000000000681f7dfb9be9a4e765281e7c6cb92de1b1e15731871fb4935df3d583ad63605fdbb8616374d1e3fbf4ebeb577d6d40ffbe76fb83abede7b72fb39b7ef7988f63cbb812232b3b08d9e075f14dfe5abd5c5b0620c34676d80ee347d9602feaae7d638d071f9db68e822e50d0400f0c3b8675d8a0a1836d8d8785cb9f5d411002000000000080d637b0c37f8460a1b8d4f023197c84c784bb75bfff8f9b3269a4ddfaddc3ec8dd75eb3b56b3aad8f07317dfb7af0e1ff3679a0b179f346bf6cb68ec11d3670f0607bf1d5b5f6edff7ac2aeffef853ede3e3664e850ebf0cb9bfefcce356f468f2d9d3f765da75ff76e6d1580f41fd8cfc6efb5a30d1d39d4de58f19abdfeca6b7e2f80720ddb7eb80d1d3ddcde58f5862d7ef2250f847b7f1a0c000000000000f4d0a7af4587bf2a51f7f0c387d3828f7097eef3ff5d77f880ff972d57f6e79fbcdf0659a70720afdb864d7ded8d3737d94b2fadb6b56bd7dbe8d1c36cf8f0c1d631a8bf0d1ad4d7366d5c670306f6b7a1c347d8d34b3aedefbe33dfd6f6ddcec7e263dfb4c9962c7ace1fd31598944c87c1d2e1b07ab1b60940761a3fcab61f3fdad678c1f6cd956ff8caeedd2b0e68b4befdfada9051436db0078acb9f7bc55e5db6daef050000000000005a880e7dd5b7bf0f145730fcd0efb6def4e1e8469fae41bf8e6cb99283f71d6dbff9d6bb6dd9e225b671731f7be6b995f6d45f9ef7df743770e000db6ebb91b6e79ebb7818d2d736ae7fc3868f1c6983878fb26b6e7dc57e7cdb2bfe28b3a58b9eb30debd7fb90bf72a921c8c60d7ee97a4e6fd51601c86efb8d890e77b572e9ab9cd303c899ce19326aec76f6c6ca376de113cbfd1e000000000000a045a8f7877a8114911e7ef8b5e877d14dbfd6805f6bc807a2ff5b7e6cb98a7ed80d5f7f871dbaff0ef6d4634fd8e0c1c3ed4f0f2fb6975e7ad57fd3d3e42953eca5175fb28d1b3bedad6f9d649b3d04e9631b6dc771e3eceec7d6d979fff9b8bdf2e28bfe487fed2d4a0a41d4fb43bd407ab1960e40fa0fe86fbb4f196bfdfaf7b55717bf4caf0fa046d41b64bbf13b7828bcc99e9dbfd4d3644f87010000000000805eaecf800edbec81452105c38fe8da2ffe5fba1eea3ffc7ff4a3eb8e2e5b860f3f7007fbce997bd888a1036dc5cbaf58e79b6b6de9cbebeca92717f96fbb3be58c336dc4c891f6a707eeb7dfdf71bbdf63b6f7de136dfb511db6ae73a5ed3179b2cdbe73b97de93ffeec8186c6af69eb522c04e9e3bfdfbcbe779f07a4650310851f7b1c30ce36ac5b6fab96adf07b00d4dac831a3adffc001f6f4432f1082000000000000a0f71b38d87f64cb0c3f74bf06a3611ff0dbfaa7ffd10fbf1d09d7313ffcc7b7d93e3baeb1411d1d367afbed6dfe030fdaf0edc6d97d7f7cd2d6afeb7e84a33df67a8b7de0f80fd94b2fbe68fff5a31ff83d5dc68eddc976d979906ddaf0a6edb5df14fb971ffec57e34e7399f26bdde66bf74291682d8ba35fea3f76ad90064afb74f309dd485f003a82f85207dfbf5b327ffd43391060000000000007a95020148d1f043d7aeebca7f68401709d72e1e8c689c377df3401bb866898f63b34dd86392bdbc6cb9bdfce24b3678e42ef687fb16f8e3b6d971a79d6dc68927f953fbd835dfbfdcd6aeedf47bbb8c1b37c676d969a0bdf9fa0a7bfb2153edd0337e678b96bfe1e3d58b6902bb140c4108409a8fcef9d1316490bdfcbc8e6b06a0de76d875277b737527e70401000000000040ef96118028a8d8c68733c30fbff6ffd18f68d82f5b78dce13ffc22bad6c55d7ffefe366af372dbb86eadf5eddbcff679dbfef6d4e34fda4bcb5eb251dLine truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET image=CAST(image||X'92361f009a17ed3d00b40fda7c00680f79b6f78d42000200a8a93c7796b4f900d0bc68ef01a07dd0e603407bc8b3bd6f14021000404de5b9b3a4cd0780e6457b0f00ed83361f00da439eed7da3108000006a2acf9d256d3e00342fda7b00681fb4f900d01ef26cef1b85000400505379ee2c69f301a079d1de0340fba0cd0780f690677bdf280420005adae08e0e5bd3d9e943dd87513f79ee2c69f301a079d1de0340fba0cd0780f690677bdf280420005ad68107bcd5a64f3bc2aefec9cffd96d9a99ff8a8cd997b873df8d0237e0bf592e7ce92361f002a3776cc4eb674d98b3e541bb4f700d078fad25747c7205bb17295dfaa1dda7c00680f79b6f78d420002a0697dfd9fbf68cf3ebfc8aefe71578051aeffef8c4fdb989d77b25ffee666bf65f6e10f1e63cb96bf68ff71c50f2dd87db7891e8c9c6477fccfdd76c7efeff67b7a8fde32ed79ee2c69f301544a6de6b3cf2df4a16c47bce7503be2af0f6dfa763528653f397ad4487bfbfe53eced074cb195ab56177c6cb568ef01b483b0aff8eabf7ccb6fd59ef65fa5fccdaf90fb90771e6c93f7decbeef9c3fd051f9b07da7c0095086de8d53fb9b6e8dfe6ad2aeb6ff8b4f63e2caff87df596677bdf280420009a56d64ea154faf6d3eebb4eb0054f3ce9b72cfa30a0f1c50f8395b683e92d7acbb4e7b9b3a4cd075009f5085408fee043f33d149fe3f7a46b860f18e528b49fdcd7f779077ae8a16b51f871cf7df747975aa1bd07d00ec2bea259021005dcef7ee7c1510022fac2d74d73efa8796191361f4025421b5a4d00a2bfed77f35a4fa1bfeb9b59d6dff069ed7d585ef1fbea2dcff6be5108400034adac9d429ed27630795208130f5cf254e9b47ff883d3fda7d5ed8f853c7796b4f9002aa1a2d0a99ffca8cdb9b5f061109be103463992fb49ed730e79e74151314c3d3f44bfffd343f30bce775e68ef01b483b0af686400a2f6febd7ffdeea808a8c35dc99f1e565b3fbfe28262b968f30114a2bfbf3f36f343f6b31b7ed5ed10aca10dad3400d1dfb89fff87cff8906a1a377bbb57fbbf712ba5365a7f9b5fe3f31aaf0b25ff860fd2dafbb0bce2f7d55b9eed7da3108000685a593b85726807f26edfe1e883c1b3cf2db27bfff040b71d8f7e9fdcc1e44541c3d89d77eab1b3ab843ee4c47bb34825d31e9e2395fec151ae3c7796b4f900caa5b6f839df973ce6ede7a85123a27343fdecfa1b53dbe566f880518ee47ef2ddef3a389abfceb56ba3f9d53cd4fa18f071b4f7009a51dadfd1d508fb8a460620a77ef2249fa78951ef3e15ffeebdaffb679c7aa0cd075088be7ca4b637feb7aa843634ad1ea1d044e281491a050bbbef36c17ef1eb397eab3969dff3f9cf7ec63a060dead67e4bf26ff820adbd0fcb2b7e5fbde5d9de370a010880a695b5530854e8519afe9d7fffbedfea29ec3ce29e7d7ea18fef5a1fea121e53eece44cffbf0078e89c28db4e292be95f0f7677c3adad9fdecfa5f55f5814b3bce537c1af5c740fc1b0e9a864aa65d7f2c48184fade5b9b3a4cd075a9fdabc8f9d70bccd997b87e9c38f020ca9a4d75a682745fb0a8d4b1fc4f42dd9b40f4c853e60e8308a3aaf947ed72c92fb49ed171580685fa7fd45dafea99668ef01341bed53d2fe8eae46d857343600e92a2ceab086bffb9f7bea1e7e086d3e00d1df9f697519b5bfd38f3a22ea811d6fa3421b9a0c40d44e9ffa898ffa90beacf9f3e873406fa77952fde5a65b6ff75bdb24ff860fd2dafbb0bce2f7d55b9eed7da3108000685a593b85e0d8a3de17ed68b33ecce89b5163c7ec6cffe5018476ac1f396e7a7422d8f8e3d37630a5d04e4cc793cf2aa28976766377de79eb6b5543d3aee3b86b59843f042a9df67acb7367499b0fb4bef047beda7fb56f6ae724f921a9546aaf456d71d607b120bcb65e37d9aefe7f677c3a0a40d406fff2ffcd89ae1b2db99f0cf3a77d5d67e75adfdfcda92a802f17ed3d806694f6777435c2bea2910188be6cf5b7277ca8a1fb25da7ca07de96fce7df6ded3e2e71f520052ca976f421b9afcdb5ee3540d47f4a5d5b4bfd5f598313befe843fa72eb22ffd93b25ff860fd2dafbb0bce2f7d55b9eed7da31080006818fde1ae1357adf49da41affa4ac9d42a0e7ebd88ffa63ff3faffca1c569c7f84f5ff86c740810052012ee8b8f336d0753aaf33e7b66d4c3433bfab49d73a9f4edad513e2f3a444ba13f1834bff1df5733eda2d7d5b2a8b53c7796b4f9406bd107a6952b57f76843f5877e389c473cc0a8054d83f623a2d7cdfa80a13638f42051b850cd37d35488d3fea95a59fb492d330521da47e9dbc1ea4d530fb4f7009a95daf0f8dfd149da17a4ed8fd2847d453200d1670d9d83496defb30b17752bec55a3d0dffce10b61da2fa9adafd5be320d6d3ed09ed426e968186a5775d855fd3dacbf8f938146a0c7496883431b9af678b5a392d616477fdf4ef3bf6f3b06f92d8bda3dfd9dab2fa5867137abe43e26eb6f782ddb647b1f9657fcbe382d5f2d13ad875ac9b3bd6f140210000da19d977a50046aac7572acf88e2b6ba710a76f74e99bae0a40348e403b98bf3ffdd33d7612a1bb78f8c092b6832955988742cfd56be9d8bcf1f90ab4730f5df2039db850dfd82d45b169d78e70d4c811d1324c0acb41e14ddab4e529cf9d256d3ed05af4ed558501ffe7dbdfdbfa81a0146a3ff5edaf65cb5f2aeb79495ffdc2e76ce9f217b7ee678a7dc01075f3d7872f7de8521b5aeeeb879e24e5ce739a42fb49ed5bfef6840f47fb019dff2ad9f5be1668ef01f446a1ed5780a0625a31e1f1e1f384a8cdd5c97ef5f77710ef755e8d627ff387cf2452eda177cb419b0fb41fb575aab328f8507ba43633b451696d68f89dbef813be981adad0b400244b188fe8ef5a15fcf5194281b368fcaaa5e8ba51d4feebf341f2effbb4f9cdfa1b3ecc67bcbd0fcf8fdf17e810bd1ff3cf5369bfcb539eed7da3108000a8bbd0a86ba7a91da44ee0a762bc020c051941d64e212e8c4ba97ff250545ffde2e7ccbc85d3070fed8844dfcad28e297c6009cfaf7487a1d758b3a6332a82a529340fa1f0a7dfeb78edfaf0a24255d6b4685a25ec3475bbd0b4871d657c471b14fa5ddef2dc59d2e603ad4501c4ca55abec3faef8a195a3501ba60f663a7ef03d7fb8bf5bdb1802f3d0fe4b0823c27d61bc59ed6a101e97b6ef11b5eddac725a74dc274a44d7bb90aed634441910e25a079cce3f58aa1bd07d0ac0ab5cb85fea6563baac3bcc47b6a877d40d87748f8bb5e853915bf1496ab309747db5b68fa8268dff7c98f469f7df4b944d3506bb4f940fb513ba3da8dea36aadf04fa9b34ab8dd2efe27faf863634ad7d4c6b73456daa9ea71025fe1cd55054e3d13489ea3e4b972ff7d7bad66f554775231db1e44f1eacc4e935f565a8ffba61dbb468dab2e629fc2ebe7c92cb24486befd39e1f681a755494accf2479c9b3bd6f1402100Line truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET image=CAST(image||X'd23e14166227ad579db75f70420f3f946141870aa45583c082906cc1848282308cc976fc2569fd124e171eb750780ce3415736e13c123667157f2cdcee6cc263192f8c0ff721fe9a09d7a50044b51e14a4e9f8da7318365115ae271e3c3446b84de1710db747b23d2fe176c48f8fb6dd6a6d848f655ba75128a769748cb2053b6150128a1ff34223000100b425f182d67841e471f7cf7056901b2fc80c0b44ed57de61b02061a1eefea32ef105bec3fc50a6264952cd0c13dfae78f822618179b86d61e16ab682f0f8f2c3fd6e4ce16d7cf9b91e0b35b48e24d6bc94029b3f8fff599d426b156adb71168522561b42c2e7212e3c8ed90ad5c3b029d77317ee7f185484e3253cde26dc8e705e098f57fc31133ea7b98e7d3184ef038556494d4629280983b0f0d887cf5f18a084efb96cfb181eab6cafadf07dfdd727a6bab727dee987720bf74972bda61ada867c5e0f85440092026d2100c9879a91da75b7ae514d91b407096aa24b1d92abd3738534cbfffa9e1f0b00682e159a863519c2025709fbde080b4955d09aab30369bb046840acc47dd333ffa3fa4426485072ac05661b60a73b59df6ebf5707d9a369f02e7c6080ba025a9a05cdb15d656894fa39063e285fda2ff251e7284e1869afb8a3783249a574d3699b0203f1e4e65dbeff079cab69e705b14805d38a1fe3471e172e3f3e47a2c9bb0d643f83a13bd162c48d26be58adffcd9ef4b75747c740cb4fd12d6e8080bfac3e585c18305524d11ee63535e8fe176c4df73e1eb2f7cceb3ad331faa0132c2cf1fd6ca0935e7583405010800a02d090b8d255e581916b8aa4687f53da002f7feb7dee7a202f9cfaadd73df1be2a7c8080bb2c3e5697a354b25f914ba86354cb4eeb0368984eb090392b070355b21717cbfc302d8c614dec6971f3e96b4cda6a175c4c50bcb73153e4b7cffc2e313171ec76cb501c2f04a014c58632614ee7f1854c40bcfc3e36dc2d74738af84af85f86346351aac69b1f8f3526cf1e72b697f255b1091ed39c967b9f9bcb6c2f775bec72afe9a5a9123080bb721e9b517be4e54bbe545ff7a2e260290142000010020d3d7c089be20dd0a4555b8ac42e4b0203f2c8c0d0b929b5218ab826a2b6837e13273093b780ee7c9b7c0395f5adeb5a71d1015ae9ba45a20e1fe4b5880ac79b54d16f4c82cbf8cb1c132b41e4d23b942826cc73f9c5fe285e826acdd23f1a046c25a37f93e97e176a9c641582b233c3649c72e49b83cf54b11f68ba2e3a980448198e875aae56a7a3bc6f1ed0ef73b3c6e5a8e052d5a8e020635c7d5180ae3b47c7bdf84e1563c180b5f17263e4d78fcb4af61e8a5fdb4e317863a92f45c86b41e3dafba69b9713a665ab76acd141b010800a02d513f00c74e98e18732e285cbf1826bfd9a5d059f7bfbc270851f129f276cffdf0a60e3ebb1f1b98485ee12fe423ebe3c1510aba058e2f3258505b90a60c3c2dbb050da8405f5e1aff3451d61ab792193b4ee7841725221765cb8dcf8f6661316aeeb794baa85103f8ed99e97f83687cf4528ecb7227c5dc4e78faf47815ad8c7447cf96120902d580a6b4de45ba85f083aa67aae76f7ef1d890784a16c4144f8dcc58f55f8fa8c3f160f48ac66565cf8fa97865e83f17d3249cb8f3fd7e17bd384af9370bf8b85002405084000006d9d0a70ad80384e85f5ea18592e3b25f3c543c2c2dcb0905b05a956f8ac42d7f34fe8e1de5dbd3e2a6096ce3b6ee77aeed6c13fd6c1dfab4feb5bfde9463f549f0a6ec3826e09b7231e04e4138034771b358dc29c389b468f699a38d5c05081b30aad55986dd384c72f2e0c27c282761d97b0a05cfb31d73faef59b30dc326ae2eae97f1d3bd17e5bb024da3e2b8ccf45ebd636483c7c095f1bdaaea53ee031eaa85cafad78e810eea72804d17426db3135da6ead4b349da637d6349684db16d27353bde9f33aeb8cd3b14a7a8d84cb97b00935b1d785e898693ff57fc8a6497acef4d87abf6f61f821f1e7d2a803756d677c1d46af378542e173566c04200080b626fc75bdacf005cf61a17d1876c4a93680faf430ea94dc0a36c50a56e385a2363e97f017fdc6b64d05dd16b21815b42a1cd8cb87052115fe2bb4312a6c0f0b72f558f84bf6b0b927d172d5f1b7a81f0c0b3f24feebf67801b48e8f96bfc51782cb36be505bdb6ec753db9b4f9811863a5a5eb8bdd98485eba2e020ded1b6b6253c8ed9fa23d1310b030af9abdf6fdb2f893ff72af4d6b193f8fce171891f138917ac87fb2ff17dd1f2c3e7340c5f0a41afe79ec346f9d7d6aae866740cf4da09f745fb99edf90a8388300808039ff058898e953d67f67e30e17b3557f0a2ed4f7a3f2a44da7afb0e35af77d1fe68bf6cb9a1a4f796de23f169d567c8277eff44cb0a5f27492163a11180a400010800a02d8b8706f90afb79080b9255a06a05f84d5d76bed66ffa871b79f7ab35db115f5f3e01487c9e52532d046be6282edb7196ff1a76a0ebdf7b673fd4725403c89a91ca2557134ef1e6b992a800de6a6548a19e93a4da35616d93e64a5abec2ad78589106da560545161e9612010800a0ad090b615b5258b01916b8aa7075de8fcef543b985f31452fc57f4616d8b8624d5f088074ab9e45b501f1688e73b4f639fd7b0003e4958f3a0212a7cd7b109c394701f7249da8e78b0d4907880d2d2f27d6dea38e8b51e7f8d9870390a3aac69b1c63e7749c2f75f5cfc785a0092ef73d4920afd5c2521004901021000405b162fa055cd02350b647d7d24891758672b986fa8205b01869af4513342d6af43be34eff58fbe55a7b03dbebe960840b41ed582e8b0edd639b7d1a6d3f10c7ff16fec711d271ddf249a260c74e2c2e31c368724fa85bf0af3733d6fa2826fd57050cd835c5438aeedcd47188084c19809fb8ec9263e9f8e63f8ba6c2eedb75e97e13a8c8eabfa16497adef2a5d7bd6a7fc4979fcff3a2e75db546b23d270ac5742c925e377a1d649b2f89dedf0ad8c2f74da911800000daa2962ef88c370d1516e826157027d1afc9c35a0349540343bf7a4f0a1c56bcf064f46bf95c344dd2aff3f3391ef1669a8c0a97fbf9f9ad09a36c1404cdf7c7210c09b209b7a71001880aeab52db90aa21b1380241d1b3d9faa5d93ebb8e4da8e78736cd9e42af86f296170918d6af72c18fb93c47d31612da7f07da126a7f41a52ed8ba668e8b5a5d7685302106da3de2f7d2ffb6983dba6f7a6de7fb9a62bc6739584002405084000006d990a67ed17f02a1cb56695140ca8b364351f6405c32aa855e169187e880a90ad605e05c12a6816352fa5d040ffdb3244d3cc7de7135f78bbbaa6c058ebd1727215148be6d56dd69b6b9c9a8f0a699bc330239f0044db966d1b151428ec09b751351ac29a166ac649fba1c040d36939da8f701a1552eb98697b5520aec2ec7881bb0ae87ffef862bfcee48b66096b7968bbb4cc902d5bdb193f8eda1f6d87fde25fdLine truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET image=CAST(image||X'20000100004021c40310940601480a108000000000a541000200008042200049070290142000010000004a830004000000854000920e042029400002000000940601080000000a411da5abcf8fe93366b9e52b57f93128050290142000010000004a830004000000285f0420294000020000009406010800000050be084052800004000000280d0210000000a07c1180a4000108000000501a042000000040f9220049010210000000a034084000000080f24500920204200000004069108000000000e58b002405084000000080d2200001000000ca1701480a108000000000a5410002000000942f0290142000010000004a830004000000285f0420294000020000009406010800000050be084052800004000000280d0210000000a07c1180a4000108000000501a042000000040f9220049010210000000a034084000000080f245009202042000000040691080000080b439fc2b7ddce187f671afbcfe867be5b537fc9896d5ad6b173774f020b77cd56a377dc6537e0c50be084052800004000000280d021000009036a3cf1be9469f3bd28d9b30c98dbb6f921fd3b214b04cba6b6c14b08cbc688c1f83621b3ae41b6ee41943dd5df7ffda3df3c21c3f068542009202a508407aeeb9ab5bfae1dffc507d87ecbbbb5bfd71b5bfadf3f79cabd87e5bffd7b9eacf36f9bff5253dde79978e6efd864d75c625d17415dbb7cbba2d48875e3beeec967cfa891faa4f8f556fd9ec56adaff6f7eaeab35b67ffd7b9d5ebd7273edea54345346ff5e6cdfe5e769aae629b7659b7010000a0a908406aedd6ef28d77eb7aeee83998ff87bb5b6f1d762957bf78a6e6be6bfe4367cb4ca8f05000085420052fe26dd3d36aae553a8e7380d7aecd1d5bdb7acb0d7d9f920004981620720d75d74b2ebdfa7bb1bf5e32935218719f1ef87b911a7f473931f9fef26ffefab6e40df1eee87a38e758f3df7a7e87e920bce38d29dd07f3ff7df139f777317bce70ed9af9bbbed87df748f3dfba61bff706d82a9f15af6bd7e9c051e4fde7ba1df862abf2d93fd3da4d1c8830e896eb7bf3acf3df5de523fa6968289c9434e756f7cb4da8d79fe693f2643a1c87f1d39d03fdec1dfcb78eafd77ddedafccf543190a47c67efd44376df1dbeeeed7e7fb31191aaff5ddf3fa1f6b028f67ce18e10394f56ec48ce9fe1e000040cb690b01c861d7fed2ed74605f3fe4dcec4bce4c0c30c2699e3f7788db12fc78a563f75eee885b27f821e7964e7dc0df7ee587000040a11080943f354376c0be3da326ced655d55e77958bae9d767617ffc7b7dc6b0b97b8694fcff6634a870024058a1d800c3dfe1077be0f2d14444cf72145482185c20b0b405443e3ee6bbeedbef8e20b77ce4fa6d4abd1a1da1f0ffc74b8db6aabaddc45373ee2c38c75d1b8a9bff85e34edb01fdcefa7cab070255c2f0148fa299050503177f93277ed9cdfbb3885136100a25064fca0c1518d8dd59fad776fac591d2d63e9dab575e6af68d7ce4d1932d47de1ff9d3afd613f2643e1876ef72cf8a37bf49d857e8c73638f3d315aeef0c70940000040cb6a0b01c871131e775b77a8f443ce2d187bb55bf3ea6c3f5457b78127bb832ebcd20f391f703ce06fbff243b5063df882ffebdca249e3ead5100100002d8b0004ad9d0520326fc15b6ec68b7ff043a541009202c50e40146a4cbc797862f070e280fddd9851c7d6092954c3e3541f9a582812b25023fed898738e7327f6dfcfdd70cf9351ad10499a5601c89befac70578cfdadbf87b49a72ca50d779fb0e6ec48cc75cd894954209d50099f5febbeeb67fd5eeb8e2f0016e50f77dea8c134d1bce2b36ed75735e7073967fe8c7d4062093fef2667493c94386fa30a5ba2664010020adfaf63bc2dfbee69efcdda3aecbee7bb893be795af4bf2c98ff073775caaf5c75d53a7faf2e4d73940ffc75134df392ffdcd372429aeea46f9eee56ad58ee97f7b21b36fc1cd76bbf03fd23ce8f5be61e18ff7fa3ff93683e2dbfa2b2a3bfe76a96af75c5691a4dab7944d33cf9bb696ec9a2b7a271da17ad5f6c9fc37126fe98dd5fb268a15fff2c3f455de75cf07dffd75f23faedcab61f2daddc0390f69dbab8a3ef7cc80f6524851ba266ae8e9d30c30f39f7f9fa2af7dcb9a7f8a18c9d0f3cd4f5bbf60e3fe4dcfc1b2e759fbcf5ba1f02000085120620aa21a00ecb556340747fd2c3d3126b0d689ae38f19e04e38e6487fcf45d33cfba22fe39b59f7ba2b0c40aebaf1f6a82f8a03f6ede51f716ef9ca557ebdbf8efe37da16495aaf96a5a69cb42c6d9b1979e669d1f88e9515fe9e730bdf5912f577119f5fb4dde136689aa4edd6743a16eabc5debd2b0d62fdade490f4f8fd6a3758e3cc3af3fe1b190ed978e739cfae8e8d6a573b40d9a5fc271b6eeb7172f7537df71b77f3443e38ff7c75fdb205aa7d66dcb309a57c7277edccac5715f3bd4dffafaa18c69cfbce45e7b6bb11f2a3e02901428760022136f1ee183904af7f4dc45eede47e644b5355473e3673ffc66d43f48d83c56aec0c496134e2f56cb444d5dfde8bf7f172dffb631df8afa17b1c0c36a9b3c3d6f911bfbc0737e2ea49505154b3e5debfecb871516645ceec77fc38f0f6b6b3c36f48ca8f6c7a98f3ddc60df1edfe8d1d35d7e58ff68b997fdfee9687ad5f6e8d3a9734dad12d51e510d9478a00200401aa9005f3715ee1f75ec205f88bf3c0a0f7aed77807fd4f982ffb7dca5e79d1d8d330a30eeb8ef3751e8505d55e5e759e6c7254faf0041d36a1a4daf9bc205850aa2e934bde6339a46f3683da2e9355c515999d7f40a2b34aecbeeddfcbc2ffb751de183965f4637d1feeaa6fbba85345e378dd74dcbbcefa1c7a3ed3f6bf0317e8a5a5aaed6ab6376d6e0a3fd98e228f70064efc1df76fb8d1ced8732aade5fece65d799e1faa2f6c064bb544fefac4543fe4a2f92bbbf7f643cebd7ce5b96eddfb750b0f000040cbb2004485e70a05aaaad74705e8fbf7eee91fcd14aa8f1a7d591414184d3771dccfa382f786a657e1bb02104d53595111cda382f8037af7f2f73b44d3697acd278f4dba375ad65537ddeea6cf78ca8fa9657d598cbef2ba9acebcb56cad43722d57c2ed5ebe72b5dff6ea685da2e934bde6132d53cbb6ed568b340b172f89d62f9aee965fdee38fdd77a2b044e1842d4bc26d94b7e73de3ff3ab77fff13fcdfba6cbf465e3ca626a0b071da2e6db768ff548b46db3feed6eba36d148db7fdfeffb37727f07e4df7feff3f7a8b4406624a22a82148e84534a2498c1994c44512a51582727fa6b4f4a75434f44f5331d4ad564cbf4b2b215a8ae036a12289312a94705562084a464ac82083deebbfdefbf473ce3afbeceff77c4f72cef9eef3cdebd9c74ebe7bedbdd75e7b7f0fd1f5ce5a4bd2f7f6ef58e14b538cf22927adfd71fad0236cf59ab549f03174c081d66ad34decc6df3d648b3efa249cd1bc084072a01Line truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET image=CAST(image||X'59d5b55abb42ef2dab5d9af64ae184daa340263e47e189d6af88cb1a4a6b7688d61169c877e1cfae6792f5694316af1f0d47000200000af1ce69ad9bf1dc13336a75a6ab235be2b2340514fadbf95a1f417f4bbe58f8a045adb55ec594497fb0781d0c751eab63dc7f17852f5a703c7d6e9a020d052fc9fd1f995cb4ad4e1ded5a17c6d7f15087f54bb39eabf3fc79a170a6f721fdc273ee16f6aad639d1f36abd8fbcb4d77f0e1460a5dba59f238df429f6b3e1f4acfa79d4cf82be7ffd3c6834894653e8f3fa5298522cc8c852ca350a3eb4d6889ebfd49fc3c644009203042000804aa5cedec6eee8ad24a5be9f52cf2b87bcb5ada9db43d05079084000004021ea9c5e9fceda865cdf14e7967a1e9a96be07d950bf0b3d7f399f9d002407084000000080f22000010000002a1701480e108000000000e5410002000000542e02901c200001000000ca830004000000a85c0420394000020000009407010800000050b9084072800004000000280f0210000000a0721180e4000108000000501e042000000040e52200c9010210000000a03c084000000080ca4500920304200000004079108000000000958b002407084000000080f22000010000002a1701480e108000000000e5410002000000542e02901c200001000000ca830004000000a85c042039f0adbdb7b1f73e5c666bbef89fb007000000a039b4de7463db71ebb6f6a7579bf62f237539e418fbf48377ec7fd6ae097b000000009ac3c6ad37b3f6db7dcd163cf950d86bb95a7c003260afad6dc9a79fdbf2d56bc31e00000080e6d0aed526d6718bcdecf1bffe3dec359d4e070eb6cf3f5a6c6b572e0f7b000000009ac3266ddad966db74b2c5cf4c0e7b2d578b0f407aedb285fdcb57beb4454b57863d00000000cda1738736b6fa8b2fede5bf2d0b7b4d67eb7d0e34fb97afda8a0f17863d00000000cda1edb6dbd9ffaef9dc3ef9ebacb0d772b5f80064eb761bdbfe3b6f6173162c0d7b000000009a43f72e1dec85773fb5bf2fff22ec359d4db7ec685befddc73e7efbaf610f0000004073d8aaeb5ef6f75767da9a4f9684bd96abc5072032b8c7b6f6fe872b98060b00000068069afe6ac76ddbdae4973f0c7b4d6ffb7ec36cd982f798060b00000068069afeaa7d979d6cfef4fbc35ecb561101c8ee9d37b39db6deccde5cf869d803000000d09476df6e0b7b73d14a7befefabc25ed36bbfcb5ed6b6cbaef6c9bb73c31e00000080a6b4e5cedd6cd9bb736cc5fcb7c25ecb561101886831f4a52b57dbc7cb57873d000000004d61ab76adac439b564dbef8799a16435ff3d9525bb5b479ef0b0000006c485a77d8da36ddbc438b5ffcdc554c00d26eb3af5abfee5bdb9b8b3eb3556bbe0825000000001a93a6bedaa5537b9b3ee7efb6fcf37f8492e6b371bbcdadf3378fb0a5efbd615facfa3c9400000000684c9afa6a8b1dbbdaa23f3f6a5f2cff2c94b47c15138048970e9bdafebb74b03708410000008046a5f063d7107e3cf3e6c74dbef07921ad3bee68dbecd3db96be4b080200000034a624fcf85a575bf2e2132d7ee1f358450520a210a4670841e67fbc82e9b00000008046a069afb6dfaaad3d5bc6f0c32521c8debd6df9e20f980e0b00000068049af6aa5da71d6cc95f2a2bfc908a0b4044d3611db0f316f695af982dfae4735bbe7a6d2805000000d0101af5d179cbcdec7fffd7ecf9773f6df669af0ad174585bed73a07d65a37fb1151f2eb0b52b978752000000000da1511f6db7ed62fffbe5ffd8c7af3c5331d35ec52a320071bb77decc76ebd4d6fef77fbeb44f3f5f6b2b567f61fff8df2f991e0b000000c8d07ad38dedab5fd9c8dab6dad8b6d86c13fbcabf6c647ffd60b9bdf7f755e168feb4df652f6bbf5337fb3224346b962fb5b52b5684cfff607a2c00000020c3c6ad37b38dbef255dba46d5bdbb45d87f0f92bf6e99bafda8af96f85a395a9a20310b775bb8d6d872d5bdb566d37b17f09ff27aecda65f0da500000000622bd7fcc3fee77fbeb48f57acb50f3e5955f6e9ae4ab5e9961dad4de7afd9261db609ffbdff55fb6aeb36a11400000040ec1fab5686ffdeff87ad5dfa91ad5cf4b78a9bee2acb0611800000000000000000800d0b01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808a43000200000000000000002a0e01080000000000000000a83804200000000000000000a0e210800000000000000000808ab3410420adda6d61edb6ee649bb46a631bfdcbbfd8c6ad360ba500000000000000006c18be58fdb97df93fff63ab562cb3cf3ffdc8562fff349456b68a0e40da77dcdeb6e8b4a37df9bfff6bab577c6a6b3f5f69fff3c55afb47d80000000000000000d8507c75e34dec5fc2b6c9666dac55db2d6ca3af7cc53e5dfcbe2d5b323f1cad4c1519806cdcaa8d6dbb7337b3af6c642bfebec4d67cbe2294020000000000000000d974b3b6d676eb8e66fffba57df8ee5cfb62f5ca505a592a2e0069bdc5d6b6ed2edd6df9870bedf3cf3e0925000000000000000020cb669b6f69edb6ddce96bcf5df15372d564505200a3f3a86f0e3e30fe685b46a5528010000000000000000c5683448872e3bd9e20a0b412a2600d1b457dbedb99f7d42f8010000000000000040832804d92284200b5f7f29f4b157c6745815138074e9fe0d5b159229a6bd0200000000000000a0e1341d56eb765bd882397f097b2d5f450420edb7dddeda6dd3c93e7e7f5ed8030000000000000000eb62ab1d77b5654b16d8f2bf2f0a7b2d5b4504203beed3c73e5bfc81adf97c45d8030000000000000000eb4253616dde69077bff959961af656bf10148ab765bd8363b75b38fde7b23ec010000000000000080f5b1cd4e7b843ef7b92d7e41f4161f806cb373f7f0eb97b6fcef4bc2ef0000000000000000607db4dbbaa3fdeffffcc33e7effedb0d772b5f80064bbeedfb0959f7cc8f457000000000000000034024d83d566cb6d6d610b5f0cbdc50720db7fbd977dbaf06ff68f2fd6863d0000000000000000b03e366ed5da36efb8bdcd7f6d56d86bb95a7c00b273cf436dd11baf844f0000000000000000a03174de631f7bf7c527ac252300010000000000000000b51080e400010800000000000000008d8b00240708400000000000000000685c0420394000020Line truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET image=CAST(image||X'c41b9c3766d39b6cb8ea076dfd711ddb83362c5ad49c7282e7b9d65fab658c14429507f289980f34dad5b49fea78cdd4a953aac49b6dd72a04897d315872dd0a270de6edfbf01db81f63b97c18941f164d9a8e1fb62dfb1fed1ccb4d583fed0871bcc5362cd7c731fdfef7fd5efe107cb6fa10db3f07385c7392d772a22f47c930edb8636657cbe3f86cc2f23ef0fef756f37ee6ef3fdf7f0c312febaeefbfa6f7d948637bac5dbb7658c7515d7d9fc772ca6d395cfcc7cb8a7beea9da359a181e5bde00ad691fd48fcdfae3c0f1cab689ffb89124499224ed5c86aa33519fe0fb74a04e43bd267c6cfe47aac7ade6e73be73bf3fc8c9808d4f4162dfe6a7f3d87823185ffa66239df7911a105750bea202c17ac9b3605a673292d6a1f7cff2fd59785a66943899a425993e2bbfaab5ef5aa2a6888fa4c59bb2008e239becb334ff4b9beedf99e4ea1bbbc2f49abeff475f4fd63f3cfabd65f8e98883eb21e82134228501bbc31d7add8e6ac833e441883581e05f7e1d60de807f5b1721b8c26da4e5d92fdc0f1c17112d81eb489edd10efa82766a7cec57ae5ac33663bd8361b91c138cfe190c7d61a4d56ef9df5c8a8b3e813e5103645da5a1ded3dda4e7021076260766bcf178ccc9b1e972449c34789372728a934efd0dd574307310727289e15bbcb9873a81f0fc8f7e745fd526b00c4e54607eaebb1643dee24381c2370730edafb7ab557b637a79f244fda0ad3fde166c9bf25a8543619df5f6f28173c2f16fcd05f62d975be28dcb7e89b6f121184974f4afbe9c12db93edcd071e2351d89683f595217cbcd9eb2720f60327593e5402eb261d65bf833eb55a7684719ca8587e60dff30b833826a3bd71fcb05eda3cd8fe2f718cc7874a8865728cae5efd60f5a1c4fcbc2eb661ac0f24da24fe313493f93926d986fc07c67ef9a4184106cfb1ec72fe26b48b1024e5334c6cc35877bd3f1c4b3c6eda8eede03802ed0bf5e38875f0cb84c18e23b6fd70f6792c67a86d01d2757e3d51b6111c7f7cc8d0aee1621b737cc4b104b605efa9f8f505c71b1f9afc471b8f03ff4172c2f1bfdddf76b60fcfd3af50dfd7f5c7815f9bf0cb14cea592244992a49d0fb51b6a1fe577ca1261c277bf7747f53cdf2df98e3ce0bb77fe4eda4e8d89efedd44cf86162fd7b34cbe5f9a86d94788eeff0f1bdb5fc1ecb74bedb97b53496c33cad9655ff6e4cfbc1f2da15ebadd7264ad420067b3ebedbd72fd3452d80da25b58008709ada3d1ccc4f9b07eb23f74c79200753f57dc3f6a6b614b5cf1d857e8f1b4b81ff91fca80ffb9276479b78cc65f3ebfd601fb29d3946eb687f5fa0b4e51869f57a8e6deec512af0bbc1ef5f5b6c23a593eef2bb45a2eaf7bd52b6754c740a05e44c051be9e3ae589f958e1ca3d6c1f5e7358aefdb12d18c5c3f143a8c8f3e0d88bfa57b7eb890084e22da964bd800d0e6a4e8c1472d9b9a5f2c0e38dd074d2e135d5b0b5dab2cb838013c06027100e284ef48b160f2c84873859c59b887546a11604350cc72b3f0478437322abb7b7553fcaf6a2fe785bf0e1c6b629db3518d6b968f1c06dd0d45efa0ff60bcac74dafaf635b974320d93f0cb52b4f04250ae57d27b12da93898afbe5fe943b9ddea8febd8778c02897d094e380423714cd6d7437f87daff259677caefbc7d40fb5b7de020b621db235ecf3acbffd06099b431dac4be8e10aadedec1c472a2afb1eefafe63fd3c6eb51d998ff731f7976139754d2102cb04c70dcac72cafa91d4d7dabefe3f2712ca77c7d2bb4916392f94a65bb9a707ee3faa765df42d3f98d008444bfec1b6d2e1fa3de76dac1fbb93cd7d5b747fd71603ae7b1b8519b2449922469e7c2774abe73d6bff306be13f31cdf8bf90e3973660e401a4617b4fa6e8cf81edb147e805ac8f7be777bb58e3ad6c9fcb17cbe6b73d510be2b339de596dfadb95a037506da5cc7b2eadf8ddb697f5dac9736b0ed9af07dbe0c31ea287e479043fd914236f51bb0cdd916d187a6760f07f3d366d6d584f553938bfe50bb04b5cea85f6cebba03cbe4479ef123dd3af60337732fc335da4d7810d378cc8f7eeb610cf396b5b1127d63140b35cda89bf07afa19db37d4b77ba0fec88f8f5b6d3fea2ae5953a4af49b3a70bdae0afa53dfafb4977dd1f4fa3a02102e27c73c5c1e2d6a3b1c7b51ffea763d1180b043bffb7c8a5cc7ceeb7b7eebcb087132a3d01c07363bb67e60302fbfda2e0fbe38e8e20ddd74a095383970422b4fa4a57ac19262336d88feb0fcfa1b330acbfcc29f3755e0cd72c2f139cd5bb8e5e418db60d1e22d7da3afdb7b10f361417adbeaa4538a76d5f7439c00cbf6f281b579d3e6fe6dce7ee2e4cd7cb12d635bd5c5b62c9717eb68b57f1831c489b0be3d3831311a209615db916161e531539f2ff07adac2eb697b88e367d1e2befdc1fe2d8f9ffa8992e7870a7066beea55037e953058bb621b46bfc03a6803ed64b4c3bbe69ddebfcdc1be1e9bfbc3493a8e3d96cd3a0613af2df7176d2bd70db66babf730a27db18deaf8c027ed2e43208e9bb1e3c6f6bf6f784cf21dff91d4d40eb6e570f6796ccb56ed2af1c158ff1006c77babb00aac9fffb88b7d518af6f11f6591d0c7368fe32bda583f57d4df174ded63bb724f9838b6621e8ec5d8cee075f11f5c92244992a49d0fdf29f9decf77e5265117e2357c4f5db4b8ef3b6b607eb4fa5ec9f75f6a2c1468cbe024c477e1faf7d5405da1acadd106be2bf3a355ee6951deb322ea36f143e53a9655af51306db0da4d13fac477fab2665257d620c03cdccc3bdad554af89765307a15e10f3d2c67abb5b611b80e504e61fac8f51938bfeb0fea8c344dbda59771dcb8dba63d425a28f75719c451bc0b1c56808dacdb1410d831f42c763b05db97749bd065caad76f582eeb88ed1b985eafaf80e9ad0216f03cd8974da8173ff1c41355df4af4a7a926c30faa5bddf798feb20db87f33579fa1eec53d61e84fa81f7bddaceb0310de909c94d899e54e2a71807032a3f81e0736891b45ef458bb79c7039d0a64cdeab2a36f23a0a7f711f09964d4118149bb9b452bcd938010c760289375fabe7c141b568715f5b3879112c94ede0c41c075c1ca463c68ca9eeb110af633ac55b3e0ccae924791cccd15eb0beed3d883901718923b60f1f186c1fd657a24db49fedc5302a4e38b11f78aeec07d3d92fff7fee2bcbe4244d40459f62ffb21df8808ac74dd8df63c7eedadf7fe67f64eda3d5898036f381c774c4bee4844c4a4e1b788e130727d5d8964ca71f713cf098d7700cc576e538a8aef794f11c6de5ba7adc083e4ed4a1dcfecc571e3ff5fd1f6d8ce7eb386e41ff0221ca3379deb834d213f9041e7f836df45cfe5f398dedc43e01eba58f609fd0cf0805401bb9f41223afd8f78c1ca8631b301f371f2bffe384f696efb3e85f6cc726ad4ee621de63b4873ed1e6a6e368d1e2bef718eaed60f9b4b73Line truncated
+1
View File
@@ -0,0 +1 @@
UPDATE ledger_state SET preview_revision=1 WHERE id=1 AND revision=1;
+41
View File
@@ -0,0 +1,41 @@
'use client';
import {useEffect,useState,useMemo} from 'react';
import {Shield,ArrowUpRight,ArrowDownLeft,Search,ChevronLeft,Trophy,Flame,Coins,History,Lock,Upload,AlertTriangle,RefreshCw,Share2} from 'lucide-react';
import {playerPath} from '../../lib/player.mjs';
import {withShareTimestamp} from '../../lib/share-link.mjs';
import {summarize,parseLog,identity,minimum} from '../../lib/ledger.mjs';
import migration from '../migration/ledger.json';
const seed=migration.rows;
type Row={id:string;date:string;player:string;reason:string;amount:number};
const num=(n:number)=>n.toLocaleString('fa-IR');
const digits=(s:string)=>s.replace(/[0-9]/g,n=>'۰۱۲۳۴۵۶۷۸۹'[Number(n)]);
function status(n:number){return n<0?'بدهکار':n<minimum?'نیازمند شارژ':'آمادهٔ نبرد';}
export default function Dashboard({adminMode=false}:{adminMode?:boolean}){
const [rows,setRows]=useState<Row[]>(seed as Row[]),[loading,setLoading]=useState(true),[error,setError]=useState(''),[query,setQuery]=useState(''),[tab,setTab]=useState('all'),[log,setLog]=useState(''),[message,setMessage]=useState(''),[saving,setSaving]=useState(false),[admin,setAdmin]=useState(false),[view,setView]=useState('leaderboard'),[shareUrl,setShareUrl]=useState(''),[shareNotice,setShareNotice]=useState(''),[sharing,setSharing]=useState(false);
async function refresh(){setLoading(true);setError('');try{const r=await fetch('/ledger.json',{cache:'no-store'});const d=await r.json() as {error?:string;rows:Row[];admin:boolean;shareUrl:string};if(!r.ok)throw Error(d.error);setRows(d.rows);setAdmin(d.admin);setShareUrl(d.shareUrl);}catch(e){setError(e instanceof Error?e.message:'ارتباط برقرار نشد.');}finally{setLoading(false);}}
useEffect(()=>{refresh();},[]);
const players=useMemo(()=>summarize(rows),[rows]);const low=players.filter(p=>p.balance<minimum);const total=players.reduce((s,p)=>s+p.balance,0);const deposits=rows.reduce((s,r)=>s+Math.max(r.amount,0),0);const withdrawals=rows.reduce((s,r)=>s+Math.max(-r.amount,0),0);
const filtered=players.filter(p=>p.name.toLowerCase().includes(query.toLowerCase())&&(tab!=='low'||p.balance<minimum));
const preview=useMemo(()=>{if(!log.trim())return null;try{const parsed=parseLog(log);const ids=new Set(rows.map(identity));let fresh=0;for(const r of parsed){const id=identity(r);if(!ids.has(id)){fresh++;ids.add(id);}}return {total:parsed.length,fresh,duplicates:parsed.length-fresh,error:''};}catch(e){return {error:(e as Error).message,total:0,fresh:0,duplicates:0};}},[log,rows]);
async function shareLatest(){
setSharing(true);setShareNotice('');
const url=withShareTimestamp(new URL('/',shareUrl).href,Math.floor(Date.now()/1000));
try {
try{if(!navigator.clipboard)throw Error('Clipboard unavailable');await navigator.clipboard.writeText(url);setShareNotice('لینک آخرین وضعیت کپی شد؛ در دیسکورد پیست کن.');}
catch{setShareNotice(url);}
}finally{setSharing(false);}
}
async function importLog(){setSaving(true);setMessage('');try{const r=await fetch('/api/import',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({log})});const d=await r.json() as {error?:string;added:number;duplicates:number;rows:Row[];revision:number;previewPending:boolean};if(!r.ok)throw Error(d.error);setMessage(`${num(d.added)} تراکنش جدید ثبت شد؛ ${num(d.duplicates)} رکورد تکراری کنار گذاشته شد.`);setLog('');await refresh();}catch(e){setMessage((e as Error).message);}finally{setSaving(false);}}
return <div className="shell"><aside className="sidebar"><a className="brand" href="/"><span className="brandmark"><img src="/siphoned-energy.svg" width="44" height="44" alt=""/></span><span dir="ltr">سایفوند انرژی<small>خزانه گیلد</small></span></a><div className="guild"><span className="guild-icon"><img src="/siphoned-energy.svg" width="31" height="31" alt=""/></span><div>خزانهٔ گیلد<small>آلبیون آنلاین</small></div><span className="live-dot"/></div><div className="nav-label">میدان گیلد</div><button className={view==='leaderboard'?'nav active':'nav'} onClick={()=>setView('leaderboard')}><Trophy size={19}/> لیدربورد <ChevronLeft size={16}/></button><button className={view==='history'?'nav active':'nav'} onClick={()=>setView('history')}><History size={19}/> تاریخچهٔ خزانه</button><button className="nav" onClick={()=>{setTab('low');setView('leaderboard');}}><Flame size={19}/> نیازمند اقدام <span className="nav-count">{num(low.length)}</span></button><div className="sidebar-bottom"><div className="pledge"><Shield size={22}/><p>قدرت گیلد، از سهم هر عضو شروع می‌شود.</p><small>هر سایفوند انرژی، یک قدم تا پیروزی</small></div><span className="version">خزانه گیلد / نسخه ۱</span></div></aside>
<main><header className="topbar"><div className="breadcrumb">گیلد <ChevronLeft size={13}/><strong>خزانهٔ سایفوند انرژی</strong></div><div className="topbar-actions"><button className="share-button" disabled={!shareUrl||loading||!!error||sharing} onClick={shareLatest}><Share2 size={15}/>{sharing?'در حال اشتراک…':'اشتراک‌گذاری'}</button><span className="public-label"><span className="live-dot"/> نمای عمومی</span></div></header><div className="content"><section className="hero"><div><div className="eyebrow"><span/> قدرت گیلد، از خزانه شروع می‌شود</div><h1>خزانه پُر. <em>گیلد قدرتمند.</em></h1><p>سهمت را ببین، جایگاهت را بشناس و برای نبرد بعدی آماده باش.</p><div className="hero-tags"><span><Shield size={14}/> شفاف برای همهٔ اعضا</span><span><RefreshCw size={14}/> به‌روزرسانی با لاگ بازی</span></div></div><div className="artifact" aria-hidden="true"><div className="orbit orbit-one"/><div className="orbit orbit-two"/><img className="energy-vial" src="/siphoned-energy.svg" width="174" height="174" alt=""/><span className="artifact-label">سایفوند انرژی</span><i className="spark s1"/><i className="spark s2"/><i className="spark s3"/></div></section>
{error&&<div className="notice error"><AlertTriangle size={18}/>{error} داده‌های اولیه نمایش داده می‌شوند.<button onClick={refresh}>تلاش مجدد</button></div>}
<section className="stats"><div className="stat"><div className="stat-top">بالانس خزانه <Coins size={19}/></div><strong className="energy" dir="ltr">{num(total)}<small>سایفوند انرژی</small></strong><span>خالص واریز و برداشت اعضا</span></div><div className="stat"><div className="stat-top">کل واریزها <ArrowDownLeft size={19}/></div><strong dir="ltr">{num(deposits)}<small className="green">واریز</small></strong><span>سهم اعضا در قدرت گیلد</span></div><div className="stat"><div className="stat-top">کل برداشت‌ها <ArrowUpRight size={19}/></div><strong dir="ltr">{num(withdrawals)}<small>برداشت</small></strong><span>{num(rows.length)} تراکنش ثبت‌شده</span></div><div className="stat"><div className="stat-top">اعضای نیازمند اقدام <Flame size={19}/></div><strong className="orange" dir="ltr">{num(low.length)}<small>از {num(players.length)} عضو</small></strong><span>بالانس کمتر از {num(minimum)} سایفوند انرژی</span></div></section>
{adminMode&&<section className="admin-panel"><div className="section-title"><div><div className="eyebrow">خزانه را به‌روز نگه دار</div><h2>ورود لاگ خزانه</h2></div><Lock size={23}/></div><p>خروجی بازی را همراه عنوان ستون‌ها اینجا پیست کن. پیش‌نمایش را بررسی و سپس ثبت کن.</p><textarea aria-label="لاگ تراکنش‌ها" dir="ltr" placeholder={'"Date"\t"Player"\t"Reason"\t"Amount"'} value={log} onChange={e=>setLog(e.target.value)}/>{preview&&<div className={preview.error?'notice error':'notice'}>{preview.error||`${num(preview.total)} ردیف · ${num(preview.fresh)} جدید · ${num(preview.duplicates)} تکراری`}</div>}<button className="primary" disabled={!preview||!!preview.error||saving||loading||!!error} onClick={importLog}><Upload size={17}/>{saving?'در حال ثبت…':'ادغام و ثبت تراکنش‌ها'}</button>{message&&<p role="status">{message}</p>}<small>تشخیص تکرار: زمان، نام بازیکن، نوع و مقدار. لاگ ناقص یا نامعتبر به‌طور کامل رد می‌شود.</small></section>}
<section className="action-banner"><div className="action-icon"><Flame size={23}/></div><div><strong>برای نبرد بعدی، آماده‌ای؟</strong><p>حداقل {num(minimum)} سایفوند انرژی نگه دار. حساب منفی یعنی وقت جبران سهم خزانه است.</p></div><button onClick={()=>{setTab('low');setView('leaderboard');document.getElementById('leaderboard')?.scrollIntoView({behavior:'smooth'});}}>بررسی حساب‌های کم‌موجودی <ChevronLeft size={17}/></button></section>
<div className="lower-grid"><section className="leaderboard panel" id="leaderboard"><div className="section-title"><div><div className="eyebrow">سهم هر عضو ارزشمند است</div><h2>{view==='history'?'تاریخچهٔ خزانه':'لیدربورد اعضا'} <span>{num(players.length)} عضو</span></h2></div><Trophy className="energy" size={22}/></div><div className="mobile-views"><button className={view==='leaderboard'?'selected':''} onClick={()=>setView('leaderboard')}>لیدربورد</button><button className={view==='history'?'selected':''} onClick={()=>setView('history')}>تاریخچه</button></div><div className="filters"><div className="tabs"><button className={tab==='all'?'selected':''} onClick={()=>setTab('all')}>همهٔ اعضا</button><button className={tab==='low'?'selected':''} onClick={()=>setTab('low')}>نیازمند اقدام <span>{num(low.length)}</span></button></div><label className="search"><Search size={16}/><input value={query} onChange={e=>setQuery(e.target.value)} placeholder="نام بازیکن…" aria-label="جست‌وجوی بازیکن"/></label></div><div className="table-wrap"><table><thead><tr><th>{view==='history'?'زمان':'رتبه'}</th><th>بازیکن</th><th>{view==='history'?'نوع':'بالانس'}</th><th>{view==='history'?'مقدار':'وضعیت'}</th><th/></tr></thead><tbody>{view==='history'?rows.filter(r=>r.player.toLowerCase().includes(query.toLowerCase())&&(tab!=='low'||low.some(p=>p.name.toLowerCase()===r.player.toLowerCase()))).map(r=><tr key={identity(r)}><td className="date" dir="ltr">{digits(r.date)}</td><td><a className="player-name" dir="ltr" href={playerPath(r.player)}>{r.player}</a></td><td>{r.reason==='Deposit'?'واریز':'برداشت'}</td><td className={r.amount>0?'green':'red'} dir="ltr">{r.amount>0?'+':''}{num(r.amount)}</td><td/></tr>):filtered.map(p=>{const rank=players.indexOf(p)+1;return <tr key={p.name} className={p.balance<0?'debt-row':''}><td><span className={'rank r'+rank}>{rank<4?<Trophy size={15}/>:num(rank)}</span></td><td><a className="player-cell" href={playerPath(p.name)}><span className={'avatar a'+(rank%5)}>{p.name.slice(0,2).toUpperCase()}</span><span className="player-name" dir="ltr">{p.name}{rank===1&&<small>بزرگ‌ترین حامی خزانه</small>}</span></a></td><td><strong className={p.balance<0?'red':p.balance<minimum?'orange':''} dir="ltr">{num(p.balance)}</strong><small className="unit">سایفوند انرژی</small></td><td><span className={'badge '+(p.balance<0?'bad':p.balance<minimum?'warn':'good')}><i/>{status(p.balance)}</span></td><td><a className="row-open" href={playerPath(p.name)} aria-label={'مشاهده حساب '+p.name}><ChevronLeft size={17}/></a></td></tr>;})}</tbody></table>{(view==='leaderboard'&&!filtered.length)&&<div className="empty">بازیکنی با این مشخصات پیدا نشد.</div>}</div><div className="table-footer">رتبه‌بندی بر اساس بالانس خالص <span>واریز − برداشت = بالانس</span></div></section>
<aside className="right-column"><section className="spotlight panel"><div className="eyebrow">بزرگ‌ترین حامی خزانه</div><div className="champion-medal"><Trophy size={35}/></div><span className="champion-sub">حامی شمارهٔ یک خزانه</span><h3 dir="ltr">{players[0]?.name||'—'}</h3><strong className="champion-balance" dir="ltr">{num(players[0]?.balance||0)} <small>سایفوند انرژی</small></strong><p>سهم بیشتر، گیلد قدرتمندتر.<br/>جایگاه بعدی می‌تواند مال تو باشد.</p><a className="champion-link" href={players[0]?playerPath(players[0].name):'/'}>مشاهدهٔ حساب <ChevronLeft size={15}/></a></section><section className="health panel"><h3><Shield size={18}/> وضعیت آمادگی گیلد</h3><div className="health-number"><strong>{num(Math.round((players.length-low.length)/Math.max(players.length,1)*100))}<small>%</small></strong><span>اعضا آماده‌اند</span></div><div className="progress"><i style={{width:`${(players.length-low.length)/Math.max(players.length,1)*100}%`}}/></div><div className="legend"><span><i className="green-dot"/>آماده <b>{num(players.length-low.length)}</b></span><span><i className="orange-dot"/>نیازمند شارژ <b>{num(low.filter(p=>p.balance>=0).length)}</b></span><span><i className="red-dot"/>بدهکار <b>{num(low.filter(p=>p.balance<0).length)}</b></span></div></section></aside></div>
<footer><span><span className="live-dot"/> {loading?'در حال دریافت…':`آخرین تراکنش: ${digits(rows[0]?.date||'—')}`}</span><button onClick={refresh} disabled={loading}><RefreshCw size={13}/> تازه‌سازی</button><p>بالانس بر اساس لاگ‌های ثبت‌شده است؛ موجودی پیش از اولین لاگ لحاظ نشده است.</p><span dir="ltr">برای گیلد ساخته شده، با سهم تو قدرتمند می‌شود</span></footer></div></main>
{shareNotice&&<div className="share-feedback" role="status" dir="auto">{shareNotice}</div>}
</div>;
}
+15
View File
@@ -0,0 +1,15 @@
let cache;
const decode=s=>Uint8Array.from(atob(s.replace(/-/g,'+').replace(/_/g,'/').padEnd(Math.ceil(s.length/4)*4,'=')),c=>c.charCodeAt(0));
export async function administrator(request,env){
if(!env.ACCESS_TEAM_DOMAIN||!env.ACCESS_AUD)return false;
const team=env.ACCESS_TEAM_DOMAIN.replace(/^https:\/\//,'').replace(/\/$/,'');
if(!/^[a-z0-9-]+\.cloudflareaccess\.com$/.test(team))return false;
const token=request.headers.get('Cf-Access-Jwt-Assertion')||request.headers.get('cookie')?.match(/(?:^|;\s*)CF_Authorization=([^;]+)/)?.[1];
if(!token)return false;
try{const [h,p,s,...extra]=token.split('.');if(extra.length||!s)return false;const head=JSON.parse(new TextDecoder().decode(decode(h)));const claims=JSON.parse(new TextDecoder().decode(decode(p)));const now=Math.floor(Date.now()/1000);
if(head.alg!=='RS256'||typeof head.kid!=='string'||claims.iss!==`https://${team}`||!Array.isArray(claims.aud)||!claims.aud.includes(env.ACCESS_AUD)||!Number.isFinite(claims.exp)||claims.exp<=now||claims.nbf>now||String(claims.email).toLowerCase()!=='meghdad.social@gmail.com')return false;
if(!cache||cache.team!==team||cache.expires<Date.now()){const response=await fetch(`https://${team}/cdn-cgi/access/certs`);if(!response.ok)return false;cache={team,expires:Date.now()+300000,keys:(await response.json()).keys};}
const jwk=cache.keys.find(k=>k.kid===head.kid);if(!jwk)return false;const key=await crypto.subtle.importKey('jwk',jwk,{name:'RSASSA-PKCS1-v1_5',hash:'SHA-256'},false,['verify']);
return await crypto.subtle.verify('RSASSA-PKCS1-v1_5',key,decode(s),new TextEncoder().encode(h+'.'+p));
}catch{return false;}
}
+14
View File
@@ -0,0 +1,14 @@
import React from 'react';
import {createRoot} from 'react-dom/client';
import Dashboard from './Dashboard';
import PlayerPage from '../../components/player-page';
import {playerFromPath} from '../../lib/player.mjs';
import migration from '../migration/ledger.json';
const name=playerFromPath(window.location.pathname);
function PlayerAccount(){
const [rows,setRows]=React.useState(migration.rows);
const [error,setError]=React.useState(false);
React.useEffect(()=>{fetch('/ledger.json',{cache:'no-store'}).then(r=>{if(!r.ok)throw Error();return r.json() as Promise<{rows:typeof migration.rows}>;}).then(d=>setRows(d.rows)).catch(()=>setError(true));},[]);
return <>{error&&<div className="notice error" role="status">دریافت آخرین نسخه ممکن نشد؛ اطلاعات نسخهٔ همراه سایت نمایش داده می‌شود. <button onClick={()=>window.location.reload()}>تلاش مجدد</button></div>}<PlayerPage rows={rows} name={name!} origin="https://siphoned.oneup.megh.dad"/></>;
}
createRoot(document.getElementById('root')!).render(name?<PlayerAccount/>:<Dashboard/>);
+1
View File
@@ -0,0 +1 @@
{"revision":"094ea70c029d199f","profiles":[{"name":"ESc4a","balance":522,"deposits":2786,"withdrawals":2264,"count":76,"last":"2026-10-26 20:51:39","rank":1,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-09-16 16:43:55","path":"/@esc4a","imagePath":"/player-images/6573633461.png"},{"name":"AliSorena","balance":250,"deposits":440,"withdrawals":190,"count":24,"last":"2026-10-26 03:02:56","rank":2,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-10-20 09:22:16","path":"/@alisorena","imagePath":"/player-images/616c69736f72656e61.png"},{"name":"MMFerii","balance":233,"deposits":563,"withdrawals":330,"count":41,"last":"2026-10-26 21:47:58","rank":3,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-10-03 14:25:34","path":"/@mmferii","imagePath":"/player-images/6d6d6665726969.png"},{"name":"Khalafkar","balance":198,"deposits":438,"withdrawals":240,"count":27,"last":"2026-10-26 21:52:24","rank":4,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-09-16 20:59:57","path":"/@khalafkar","imagePath":"/player-images/6b68616c61666b6172.png"},{"name":"Meghdad","balance":144,"deposits":594,"withdrawals":450,"count":47,"last":"2026-10-26 20:51:15","rank":5,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-09-16 13:22:26","path":"/@meghdad","imagePath":"/player-images/6d656768646164.png"},{"name":"Fishduli","balance":138,"deposits":138,"withdrawals":0,"count":1,"last":"2026-10-15 13:17:12","rank":6,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-10-15 13:17:12","path":"/@fishduli","imagePath":"/player-images/6669736864756c69.png"},{"name":"guosthunter","balance":128,"deposits":280,"withdrawals":152,"count":25,"last":"2026-10-26 21:52:30","rank":7,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-09-20 22:00:04","path":"/@guosthunter","imagePath":"/player-images/67756f737468756e746572.png"},{"name":"SaMFOrT","balance":121,"deposits":171,"withdrawals":50,"count":11,"last":"2026-10-16 18:11:05","rank":8,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-10-07 13:05:15","path":"/@samfort","imagePath":"/player-images/73616d666f7274.png"},{"name":"babysamurai","balance":82,"deposits":82,"withdrawals":0,"count":1,"last":"2026-10-09 04:37:39","rank":9,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-10-09 04:37:39","path":"/@babysamurai","imagePath":"/player-images/6261627973616d75726169.png"},{"name":"GODpori","balance":76,"deposits":461,"withdrawals":385,"count":50,"last":"2026-10-26 18:41:13","rank":10,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-09-14 21:25:41","path":"/@godpori","imagePath":"/player-images/676f64706f7269.png"},{"name":"Alinaghi","balance":75,"deposits":335,"withdrawals":260,"count":57,"last":"2026-10-13 13:46:44","rank":11,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-09-15 17:59:45","path":"/@alinaghi","imagePath":"/player-images/616c696e61676869.png"},{"name":"mtrix","balance":60,"deposits":120,"withdrawals":60,"count":9,"last":"2026-10-20 19:51:12","rank":12,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-09-15 21:30:29","path":"/@mtrix","imagePath":"/player-images/6d74726978.png"},{"name":"GTRraven","balance":15,"deposits":35,"withdrawals":20,"count":5,"last":"2026-10-20 21:03:33","rank":13,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-09-16 17:53:54","path":"/@gtrraven","imagePath":"/player-images/677472726176656e.png"},{"name":"ADragon","balance":10,"deposits":10,"withdrawals":0,"count":1,"last":"2026-10-03 01:05:20","rank":14,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-10-03 01:05:20","path":"/@adragon","imagePath":"/player-images/61647261676f6e.png"},{"name":"LibraJoker","balance":10,"deposits":10,"withdrawals":0,"count":2,"last":"2026-10-20 16:23:15","rank":15,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-10-20 16:22:51","path":"/@librajoker","imagePath":"/player-images/6c696272616a6f6b6572.png"},{"name":"OxV","balance":10,"deposits":10,"withdrawals":0,"count":1,"last":"2026-09-20 22:00:12","rank":16,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-09-20 22:00:12","path":"/@oxv","imagePath":"/player-images/6f7876.png"},{"name":"RezGhoulSG","balance":10,"deposits":10,"withdrawals":0,"count":1,"last":"2026-10-18 22:44:56","rank":17,"members":39,"topUp":0,"status":"آمادهٔ نبرد","first":"2026-10-18 22:44:56","path":"/@rezghoulsg","imagePath":"/player-images/72657a67686f756c7367.png"},{"name":"Shmeet01","balance":7,"deposits":7,"withdrawals":0,"count":1,"last":"2026-09-29 22:43:09","rank":18,"members":39,"topUp":3,"status":"نیازمند شارژ","first":"2026-09-29 22:43:09","path":"/@shmeet01","imagePath":"/player-images/73686d6565743031.png"},{"name":"chessmanm","balance":6,"deposits":6,"withdrawals":0,"count":1,"last":"2026-09-16 11:34:41","rank":1Line truncated
+21
View File
@@ -0,0 +1,21 @@
import {summarize} from '../../lib/ledger.mjs';
const number=(n:number)=>n.toLocaleString('fa-IR');
export async function updatePreview(rows:any[],revision:number){
await document.fonts.load('400 24px Vazirmatn');await document.fonts.load('700 32px Vazirmatn');
const c=document.createElement('canvas');c.width=1600;c.height=1200;const ctx=c.getContext('2d')!;
const players=summarize(rows),low=players.filter(p=>p.balance<10).sort((a,b)=>a.balance-b.balance),balance=players.reduce((s,p)=>s+p.balance,0);
const rect=(x:number,y:number,w:number,h:number,color:string,stroke?:string)=>{ctx.fillStyle=color;ctx.beginPath();ctx.roundRect(x,y,w,h,14);ctx.fill();if(stroke){ctx.strokeStyle=stroke;ctx.lineWidth=1;ctx.stroke();}};
const text=(s:string,x:number,y:number,size=22,color='#e8f2fa',bold=false,rtl=true)=>{ctx.font=`${bold?700:400} ${size}px Vazirmatn`;ctx.fillStyle=color;ctx.textAlign=rtl?'right':'left';ctx.direction=rtl?'rtl':'ltr';ctx.fillText(s,x,y);};
rect(0,0,1600,1200,'#080f18');text('خزانه سایفوند انرژی',1540,91,34,'#e8f2fa',true);text('آخرین وضعیت خزانه',278,88,22,'#91bba8');text('سهم هر عضو، قدرت تمام گیلد',1540,164,45,'#e8f2fa',true);text(`${number(players.length)} عضو · ${number(rows.length)} تراکنش · ${number(players.length-low.length)} عضو آماده نبرد`,1540,200,22,'#94999f');
const stats=[['نیازمند اقدام',low.length,'#e19b58',`${number(players.filter(p=>p.balance<0).length)} حساب بدهکار`],['کل برداشت',rows.reduce((s,r)=>s+Math.max(0,-r.amount),0),'#da9494','سایفوند انرژی مصرف شده'],['کل واریز',rows.reduce((s,r)=>s+Math.max(0,r.amount),0),'#91bba8','مجموع سهم اعضای گیلد'],['بالانس خزانه',balance,balance<0?'#e47878':'#56d3ff','سایفوند انرژی · خالص واریز و برداشت']];
stats.forEach((s,i)=>{const x=48+i*381;rect(x,224,363,155,'#101c29','#253a4d');text(String(s[0]),x+339,258,21,'#94999f');text(number(Number(s[1])),x+339,315,48,String(s[2]),true);text(String(s[3]),x+339,355,16,'#94999f');});
rect(48,402,740,435,'#28221c','#5a4431');rect(812,402,740,435,'#102b3e','#275772');text('حساب‌های نیازمند اقدام',761,451,27,'#e19b58',true);text('حداقل مطلوب: ۱۰',210,445,18,'#94999f');text('لیدربورد · بالاترین بالانس‌ها',1525,451,27,'#56d3ff',true);
text('واریز لازم',165,488,17,'#ad9580');text('بالانس',300,488,17,'#ad9580');text('بازیکن',761,488,17,'#ad9580');text('بالانس',953,488,17,'#94bcd4');text('بازیکن',1460,488,17,'#94bcd4');text('رتبه',1525,488,17,'#94bcd4');
low.slice(0,8).forEach((p,i)=>{const y=526+i*35;text(number(10-p.balance),76,y,22,'#e0bb85',false,false);text(number(p.balance),207,y,22,p.balance<0?'#e47878':'#e19b58',false,false);text(p.name.slice(0,21),761,y,22);});
players.slice(0,8).forEach((p,i)=>{const y=526+i*35;text(number(p.balance),840,y,22,p.balance<0?'#e47878':'#56d3ff',true,false);text(p.name.slice(0,21),1460,y,22);text(number(i+1),1525,y,22,'#56d3ff');});
text(low.length>8?`${number(low.length-8)} حساب دیگر · برای جزئیات وارد سایت شو`:'برای رسیدن به حداقل، مبلغ واریز لازم را جبران کن',761,811,16,'#ad9580');text('رتبه‌بندی بر اساس خالص واریز و برداشت است',1525,811,16,'#94bcd4');
rect(48,861,1504,232,'#101c29','#294358');text('آخرین تراکنش‌ها',1525,905,25,'#e8f2fa',true);rows.slice(0,4).forEach((r,i)=>{const y=949+i*35;text((r.amount>0?'+':'')+number(r.amount),76,y,21,r.amount>0?'#91bba8':'#e47878',false,false);text(r.amount>0?'واریز':'برداشت',530,y,21,r.amount>0?'#91bba8':'#e47878');text(r.player.slice(0,27),895,y,21);text(r.date.replace(/[0-9]/g,(d:string)=>'۰۱۲۳۴۵۶۷۸۹'[Number(d)]),1525,y,18,'#94999f');});
text('بالانس بر اساس لاگ‌های واردشده است · آلبیون آنلاین',48,1140,17,'#94999f',false,false);text('آخرین تراکنش: '+rows[0]?.date,1540,1140,17,'#94999f');
const blob=await new Promise<Blob>((resolve,reject)=>c.toBlob(b=>b?resolve(b):reject(Error('تولید تصویر ممکن نشد.')),'image/png'));
const response=await fetch('/api/preview',{method:'POST',headers:{'Content-Type':'image/png','X-Ledger-Revision':String(revision)},body:blob});if(!response.ok)throw Error('تصویر ذخیره نشد. برای تازه‌سازی آن دوباره ثبت کن.');
}
+10
View File
@@ -0,0 +1,10 @@
import { ImageResponse } from '@vercel/og';
import {createElement} from 'react';
import fs from 'node:fs/promises';
import {ShareCard,cardWidth,cardHeight} from '../../lib/share-card';
import {socialFonts} from '../../lib/social-fonts';
import {ledgerSnapshot} from '../../lib/share';
const rows=JSON.parse(await fs.readFile(process.argv[2],'utf8')).rows;
const data=await ledgerSnapshot(rows);
const response=new ImageResponse(createElement(ShareCard,{data}),{width:cardWidth,height:cardHeight,fonts:[...socialFonts]});
await fs.writeFile(process.argv[3],Buffer.from(await response.arrayBuffer()));
+14
View File
@@ -0,0 +1,14 @@
import {ImageResponse} from '@vercel/og';
import {createElement} from 'react';
import fs from 'node:fs/promises';
import {summarize} from '../../lib/ledger.mjs';
import {playerSnapshot} from '../../lib/player.mjs';
import {PlayerCard,playerCardWidth,playerCardHeight} from '../../lib/player-card';
import {socialFonts} from '../../lib/social-fonts';
const rows=JSON.parse(await fs.readFile(process.argv[2],'utf8')).rows;
for(const player of summarize(rows)) {
const data=playerSnapshot(rows,player.name)!;
const response=new ImageResponse(createElement(PlayerCard,{data}),{width:playerCardWidth,height:playerCardHeight,fonts:[...socialFonts]});
await fs.writeFile(process.argv[3]+data.imagePath,Buffer.from(await response.arrayBuffer()));
}
console.log(`Generated ${summarize(rows).length} player share images.`);
+23
View File
@@ -0,0 +1,23 @@
import metadata from './metadata.json';
import {playerFromPath, playerPath} from '../../lib/player.mjs';
const origin='https://siphoned.oneup.megh.dad';
const esc=s=>String(s).replace(/[&<>"']/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
const worker={async fetch(request,env){
const url=new URL(request.url),name=playerFromPath(url.pathname);
if(url.pathname!=='/'&&!name&&!url.pathname.startsWith('/@'))return env.ASSETS.fetch(request);
const n=v=>Number(v).toLocaleString('fa-IR'),m=metadata;
const profile=name?m.profiles.find(p=>p.name.toLowerCase()===name.toLowerCase()):null;
if(url.pathname!=='/'&&!profile)return new Response('<!doctype html><html lang="fa" dir="rtl"><meta charset="utf-8"><meta name="robots" content="noindex"><title>بازیکن پیدا نشد</title><h1>بازیکن پیدا نشد</h1><p>هنوز تراکنشی برای این نام ثبت نشده است.</p><a href="/">بازگشت به خزانه</a></html>',{status:404,headers:{'Content-Type':'text/html; charset=utf-8','Cache-Control':'no-store'}});
const title=profile?`${profile.name} | ${profile.status} · خزانه سایفوند انرژی`:`سایفوند انرژی | ${n(m.balance)} در خزانه`;
const description=profile?`بالانس ${n(profile.balance)} سایفوند انرژی · رتبه ${n(profile.rank)} از ${n(profile.members)} · ${n(profile.count)} تراکنش · واریز لازم تا آمادگی: ${n(profile.topUp)}`:`${n(m.members)} عضو، ${n(m.count)} تراکنش، ${n(m.low)} حساب نیازمند شارژ. آخرین تراکنش: ${m.latest.replace(/[0-9]/g,d=>'۰۱۲۳۴۵۶۷۸۹'[Number(d)])}`;
const stamp=/^\d{1,12}$/.test(url.searchParams.get('t')||'')?url.searchParams.get('t'):null;
const canonical=origin+(profile?playerPath(profile.name):'/');
const page=canonical+(stamp?'?t='+stamp:'');
const image=origin+(profile?profile.imagePath:'/share-image.png')+'?v=player-v1-'+m.revision+(stamp?'&t='+stamp:'');
const alt=profile?`وضعیت و آخرین تراکنش‌های ${profile.name}`:'وضعیت خزانه و اعضای گیلد';
const template=await env.ASSETS.fetch(new Request(new URL('/shell.html',request.url)));
const html=(await template.text()).replace('__SOCIAL_META__',`<title>${esc(title)}</title><meta name="description" content="${esc(description)}"><link rel="canonical" href="${esc(canonical)}"><meta property="og:type" content="website"><meta property="og:locale" content="fa_IR"><meta property="og:site_name" content="خزانه سایفوند انرژی"><meta property="og:title" content="${esc(title)}"><meta property="og:description" content="${esc(description)}"><meta property="og:url" content="${esc(page)}"><meta property="og:image" content="${esc(image)}"><meta property="og:image:alt" content="${esc(alt)}"><meta property="og:image:width" content="1600"><meta property="og:image:height" content="${profile?900:1200}"><meta property="og:image:type" content="image/png"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="${esc(title)}"><meta name="twitter:description" content="${esc(description)}"><meta name="twitter:image" content="${esc(image)}"><meta name="twitter:image:alt" content="${esc(alt)}">`);
return new Response(html,{headers:{'Content-Type':'text/html; charset=utf-8','Cache-Control':'no-store','X-Content-Type-Options':'nosniff','Referrer-Policy':'same-origin'}});
}};
export default worker;
+28
View File
@@ -0,0 +1,28 @@
import {test} from 'node:test';
import assert from 'node:assert/strict';
import {build} from 'esbuild';
import fs from 'node:fs/promises';
const result=await build({entryPoints:[new URL('./worker.mjs',import.meta.url).pathname],bundle:true,write:false,format:'esm',platform:'browser'});
const {default:worker}=await import('data:text/javascript;base64,'+Buffer.from(result.outputFiles[0].text).toString('base64'));
const metadata=JSON.parse(await fs.readFile(new URL('./metadata.json',import.meta.url),'utf8'));
const env={ASSETS:{fetch:async r=>new Response(new URL(r.url).pathname==='/shell.html'?'<head>__SOCIAL_META__</head>':'asset')}};
test('player metadata has canonical URL, player image, status and matching share timestamp',async()=>{
const p=metadata.profiles[0];
const response=await worker.fetch(new Request('https://test.local/@'+p.name.toUpperCase()+'?t=12345'),env);
assert.equal(response.status,200);const html=await response.text();
assert.ok(html.includes(p.status));assert.ok(html.includes(p.imagePath));
assert.ok(html.includes(`rel="canonical" href="https://siphoned.oneup.megh.dad${p.path}"`));
assert.ok(html.includes(`${p.path}?t=12345`));assert.ok(html.includes('&amp;t=12345'));
assert.ok(html.includes('content="900"'));assert.ok(html.includes('summary_large_image'));
assert.equal(response.headers.get('Cache-Control'),'no-store');
});
test('unknown and malformed profiles return real 404, never the guild preview',async()=>{
for(const path of ['/@unknown-player','/@%ZZ','/@','/@a/b']){
const r=await worker.fetch(new Request('https://test.local'+path),env);assert.equal(r.status,404);assert.ok(!(await r.text()).includes('og:image'));
}
});
test('root preview and static assets still work, invalid timestamps are discarded',async()=>{
const r=await worker.fetch(new Request('https://test.local/?t=%22%3E%3Cscript%3E'),env);const html=await r.text();
assert.equal(r.status,200);assert.ok(html.includes('/share-image.png'));assert.ok(html.includes('content="1200"'));assert.ok(!html.includes('<script>'));
assert.equal(await (await worker.fetch(new Request('https://test.local/app.js'),env)).text(),'asset');
});
+31
View File
@@ -0,0 +1,31 @@
<!doctype html><html lang="fa" dir="rtl"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>به‌روزرسانی سایفوند انرژی</title><link rel="icon" href="/assets/favicon.svg" type="image/svg+xml"><style>
@font-face{font-family:Vazirmatn;src:url('/assets/Vazirmatn-Regular.ttf') format('truetype');font-weight:400 600;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('/assets/Vazirmatn-Bold.ttf') format('truetype');font-weight:700 900;font-display:swap}
:root{color-scheme:dark;--bg:#080f18;--panel:#101c29;--line:#294257;--text:#e8f2fa;--muted:#a5b8cb;--blue:#56d3ff}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 90% 0%,#12374a66,transparent 45%),var(--bg);color:var(--text);font:14px Vazirmatn,Tahoma,sans-serif;line-height:1.9}main{max-width:1060px;margin:36px auto;padding:0 28px 40px}.sprite{position:absolute;width:0;height:0;overflow:hidden}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:25px}.brand{display:flex;align-items:center;gap:16px}.vial{width:76px;height:76px;border:1px solid #326581;border-radius:20px;background:#102534;box-shadow:0 0 35px #2ccfff18}.eyebrow{display:flex;align-items:center;gap:7px;color:#8edbf5;font-size:11px}h1{font-size:25px;margin:5px 0;letter-spacing:-.6px}h2{font-size:18px;margin:0;display:flex;align-items:center;gap:10px}h2 .icon{color:var(--blue)}p,small{color:var(--muted)}p{margin:10px 0 18px}small{font-size:11px}.badge{display:flex;align-items:center;gap:8px;background:#112b2e;color:#9cddc9;border:1px solid #2e5556;border-radius:30px;padding:7px 12px;white-space:nowrap;font-size:11px}.flow{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.flow>div{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:12px;padding:12px 16px;background:#0e1b28}.number{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#16394e;color:var(--blue);font-weight:700}.flow small{display:block}.box{padding:25px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#12243455,transparent),var(--panel);margin:18px 0;box-shadow:0 14px 45px #0002}.summary{display:flex;gap:12px;align-items:center;background:#0f2331;color:#cdeafb}.summary>.icon{color:var(--blue);width:25px;height:25px}label[for=log]{display:block;font-size:12px;color:#b9cedc;margin-bottom:9px}textarea{width:100%;min-height:215px;background:#080f18;color:#deeffa;border:1px solid #31546e;border-radius:10px;padding:16px;font:13px/1.8 monospace;direction:ltr;resize:vertical;display:block}textarea::placeholder{color:#768fa3}button,.link{font:inherit;font-size:12px;border:1px solid #326485;border-radius:9px;background:#17394f;color:#c7ecff;padding:10px 16px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;min-height:43px;transition:background .15s,border-color .15s}button:hover:not(:disabled),.link:hover{background:#214e67;border-color:#64c7ee}button.primary{background:var(--blue);color:#062438;font-weight:700;border-color:var(--blue)}button.primary:hover:not(:disabled){background:#8be1ff}button:disabled{opacity:.4;cursor:not-allowed}.actions,.file-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}.file-row{margin:12px 0 18px}.file-row button{background:transparent;min-height:36px;padding:6px 11px}.file-row small{overflow-wrap:anywhere}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid #8be1ff;outline-offset:4px}#result{white-space:pre-wrap;color:#a9e8ff;font-size:13px}#result:not(:empty){padding:13px 16px;border-radius:10px;background:#14364955;border:1px solid #2f5970;margin-top:17px}.error{color:#ffb4b4!important;background:#53292c44!important;border-color:#82484c!important}.hidden,[hidden]{display:none!important}.divider{height:1px;background:var(--line);margin:24px 0}.steps{display:block;margin-top:13px;line-height:2}a{color:var(--blue)}#published:not(:empty){margin-top:14px}footer{display:flex;align-items:center;gap:8px;color:#8ea6bb;font-size:11px;padding:7px 2px}.help{margin-top:4px;font-size:12px}.upload-heading{font-size:13px;color:#d2e8f7;margin-bottom:9px}
@media(max-width:650px){main{padding:0 16px 25px;margin-top:22px}header{align-items:flex-start}.brand{gap:10px}.vial{width:51px;height:51px;border-radius:13px}h1{font-size:19px}.badge{display:none}.flow{gap:7px}.flow>div{padding:10px 8px;gap:7px;font-size:11px}.flow small{display:none}.number{width:23px;height:23px}.box{padding:18px}h2{font-size:16px}.actions>button,.actions>.link{flex:1}textarea{min-height:230px;font-size:12px}.eyebrow{font-size:9px}.summary{font-size:12px}.file-row{align-items:flex-start}footer{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
</style></head><body><svg aria-hidden="true" class="sprite" xmlns="http://www.w3.org/2000/svg"><symbol id="i-check" viewBox="0 0 24 24"><path d="m9 12 2 2 4-4"/><circle cx="12" cy="12" r="9"/></symbol><symbol id="i-file" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"/><path d="M14 2v6h6M8 13h8M8 17h5"/></symbol><symbol id="i-bolt" viewBox="0 0 24 24"><path d="m13 2-9 12h7l-1 8 10-12h-7l1-8Z"/></symbol><symbol id="i-cloud" viewBox="0 0 24 24"><path d="M7 17a5 5 0 1 1 .8-9.9A7 7 0 0 1 21 12a3 3 0 0 1-3 5M12 12v10m-4-6 4-4 4 4"/></symbol><symbol id="i-link" viewBox="0 0 24 24"><path d="M10 13a5 5 0 0 0 7 .5l3-3a5 5 0 0 0-7-7l-2 2M14 11a5 5 0 0 0-7-.5l-3 3a5 5 0 0 0 7 7l2-2"/></symbol><symbol id="i-download" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M12 3v12m-5-5 5 5 5-5"/></symbol><symbol id="i-external" viewBox="0 0 24 24"><path d="M15 3h6v6m0-6L10 14M9 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4"/></symbol><symbol id="i-shield" viewBox="0 0 24 24"><path d="M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11Z"/><path d="m9 12 2 2 4-4"/></symbol></svg><main>
<header><div class="brand"><img class="vial" src="/assets/siphoned-energy.svg" alt="سایفوند انرژی"><div><div class="eyebrow">مدیریت خزانهٔ گیلد</div><h1>به‌روزرسانی سایفوند انرژی</h1></div></div><span class="badge"><svg class="icon" aria-hidden="true"><use href="#i-shield"/></svg> ابزار شخصی و محلی</span></header>
<div class="flow"><div><span class="number">۱</span><span>وارد کردن لاگ<small>پیست یا انتخاب فایل</small></span></div><div><span class="number">۲</span><span>بررسی و ادغام<small>حذف رکوردهای تکراری</small></span></div><div><span class="number">۳</span><span>انتشار وضعیت<small>سایت و تصویر دیسکورد</small></span></div></div>
<div class="box summary"><svg class="icon" aria-hidden="true"><use href="#i-bolt"/></svg><div id="status" role="status">در حال دریافت اطلاعات…</div></div>
<section class="box"><h2><svg class="icon" aria-hidden="true"><use href="#i-file"/></svg> لاگ جدید بانک گیلد</h2><p class="help">تراکنش‌های قبلی حفظ می‌شوند؛ هم‌پوشانی با لاگ‌های قبلی مشکلی ندارد.</p><label for="log">خروجی بازی همراه با عنوان ستون‌ها</label><textarea id="log" spellcheck="false" placeholder='"Date"&#9;"Player"&#9;"Reason"&#9;"Amount"'></textarea>
<div class="file-row"><input id="file" type="file" accept=".txt,.tsv,.csv" hidden><button id="choose"><svg class="icon" aria-hidden="true"><use href="#i-file"/></svg> انتخاب فایل لاگ</button><small id="filename">فایلی انتخاب نشده</small></div>
<div class="actions"><button id="preview"><svg class="icon" aria-hidden="true"><use href="#i-check"/></svg> بررسی لاگ</button><button id="build" class="primary" disabled><svg class="icon" aria-hidden="true"><use href="#i-bolt"/></svg> ادغام و ساخت نسخهٔ جدید</button></div><div id="result" role="status" aria-live="polite"></div></section>
<section class="box"><h2><svg class="icon" aria-hidden="true"><use href="#i-cloud"/></svg> انتشار سایت</h2><p>برای انتشار مستقیم، یک بار حساب کلودفلیر را متصل کنید. ورود و تأیید دسترسی در مرورگر خودتان انجام می‌شود.</p><div class="actions"><button id="connect"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg> اتصال حساب کلودفلیر</button><button id="deploy" class="primary" disabled><svg class="icon" aria-hidden="true"><use href="#i-cloud"/></svg> انتشار نسخهٔ آماده</button></div><div id="published"></div><div class="divider"></div><div class="upload-heading">بارگذاری از داشبورد کلودفلیر</div><p class="help">بستهٔ آماده را دانلود کنید و در صفحهٔ بارگذاری قرار دهید.</p><div class="actions"><button id="download" disabled><svg class="icon" aria-hidden="true"><use href="#i-download"/></svg> دانلود بستهٔ سایت</button><a class="link" target="_blank" rel="noreferrer" href="https://dash.cloudflare.com/1be1e22e71d56e01fe8fdbf449b341dc/pages/view/siphoned-energy/deployments/new"><svg class="icon" aria-hidden="true"><use href="#i-external"/></svg> باز کردن صفحهٔ بارگذاری</a></div><small class="steps">محیط «Production» را انتخاب کنید، فایل ZIP را بارگذاری کنید و «Save and deploy» را بزنید.</small></section>
<footer><svg class="icon" aria-hidden="true"><use href="#i-shield"/></svg> این ابزار فقط روی کامپیوتر شما اجرا می‌شود. داده‌های قبلی پیش از ادغام پشتیبان‌گیری می‌شوند.</footer></main><script>
const token='__SESSION__',$=id=>document.getElementById(id),num=n=>new Intl.NumberFormat('fa-IR').format(n);let prepared=false,working=false;
async function api(path,data){const response=await fetch(path,{method:data?'POST':'GET',headers:{'x-session':token,...(data?{'Content-Type':'application/json'}:{})},body:data?JSON.stringify(data):undefined});const value=await response.json();if(!response.ok)throw Error(value.error);return value;}
function feedback(text,error=false){$('result').textContent=text;$('result').className=error?'error':'';}
function lock(value){working=value;['preview','build','connect','deploy','download'].forEach(id=>$(id).disabled=value||(id==='build'&&!$('log').dataset.checked)||(['deploy','download'].includes(id)&&!prepared));}
async function status(){const s=await api('/status');$('status').textContent=`${num(s.transactions)} تراکنش · ${num(s.members)} عضو · بالانس ${num(s.balance)} سایفوند انرژی`+(s.auth==='waiting'?' · منتظر تأیید ورود':s.auth==='connected'?' · حساب متصل شد':s.auth==='failed'?' · اتصال انجام نشد':'');return s;}
$('log').oninput=()=>{delete $('log').dataset.checked;$('build').disabled=true;prepared=false;$('deploy').disabled=true;$('download').disabled=true;};
$('choose').onclick=()=>$('file').click();
$('file').onchange=async()=>{const f=$('file').files[0];if(f){$('filename').textContent=f.name;$('log').value=await f.text();$('log').oninput();}};
$('preview').onclick=async()=>{lock(true);try{const r=await api('/preview',{log:$('log').value});feedback(`${num(r.added)} تراکنش جدید\n${num(r.duplicates)} رکورد تکراری\nبالانس پس از ادغام: ${num(r.balance)} سایفوند انرژی`);$('log').dataset.checked='yes';}catch(e){feedback(e.message,true);}finally{lock(false);}};
$('build').onclick=async()=>{lock(true);feedback('در حال ادغام و ساخت تصویر و بستهٔ جدید…');try{const r=await api('/build',{log:$('log').value});prepared=true;feedback(r.message+`\n${num(r.added)} تراکنش اضافه شد؛ ${num(r.duplicates)} رکورد تکراری.`);await status();}catch(e){feedback(e.message,true);}finally{lock(false);}};
$('connect').onclick=async()=>{lock(true);try{const r=await api('/connect',{});feedback(r.message);const timer=setInterval(async()=>{try{const s=await status();if(!s.busy){clearInterval(timer);lock(false);feedback(s.auth==='connected'?'حساب متصل شد؛ نسخهٔ آماده را منتشر کنید.':'اتصال انجام نشد. دوباره تلاش کنید یا فایل ZIP را بارگذاری کنید.',s.auth!=='connected');}}catch(e){clearInterval(timer);lock(false);feedback(e.message,true);}},2000);}catch(e){lock(false);feedback(e.message,true);}};
$('deploy').onclick=async()=>{lock(true);feedback('در حال انتشار روی کلودفلیر…');try{const r=await api('/deploy',{});feedback(r.message);const a=document.createElement('a');a.href=r.url;a.target='_blank';a.rel='noreferrer';a.textContent='مشاهده و اشتراک‌گذاری نسخهٔ جدید';$('published').replaceChildren(a);}catch(e){feedback(e.message+' اگر هنوز متصل نیستید، ابتدا «اتصال حساب کلودفلیر» را بزنید.',true);}finally{lock(false);}};
$('download').onclick=async()=>{try{const response=await fetch('/package',{headers:{'x-session':token}});if(!response.ok)throw Error('ابتدا بسته را بسازید.');const url=URL.createObjectURL(await response.blob()),a=document.createElement('a');a.href=url;a.download='siphoned.zip';a.click();setTimeout(()=>URL.revokeObjectURL(url),10000);}catch(e){feedback(e.message,true);}};
status().catch(e=>feedback(e.message,true));
</script></html>
+54
View File
@@ -0,0 +1,54 @@
import http from 'node:http';
import fs from 'node:fs/promises';
import {randomBytes} from 'node:crypto';
import {spawn} from 'node:child_process';
import {fileURLToPath} from 'node:url';
import {parseLog,merge,summarize} from '../../lib/ledger.mjs';
const root=fileURLToPath(new URL('../../',import.meta.url));
const ledgerPath=root+'cloudflare/migration/ledger.json';
const token=randomBytes(24).toString('hex');
const port=Number(process.env.SIPHONED_TOOL_PORT||5188),origin=`http://127.0.0.1:${port}`;
let busy=false,auth='idle';
const env={...process.env,WRANGLER_SEND_METRICS:'false',CLOUDFLARE_ACCOUNT_ID:'1be1e22e71d56e01fe8fdbf449b341dc',WRANGLER_LOG_PATH:root+'cloudflare/.work/wrangler-logs'};
function run(args){return new Promise((resolve,reject)=>{let output='';const child=spawn(process.execPath,args,{cwd:root,env});child.stdout.on('data',d=>output+=d);child.stderr.on('data',d=>output+=d);child.on('error',reject);child.on('close',code=>code===0?resolve(output):reject(Error('عملیات کامل نشد. اتصال اینترنت و ورود کلودفلیر را بررسی کنید.')));});}
async function readLedger(){return JSON.parse(await fs.readFile(ledgerPath,'utf8'));}
function stats(rows){const players=summarize(rows);return {transactions:rows.length,members:players.length,balance:players.reduce((n,p)=>n+p.balance,0)};}
function candidate(before,log){const incoming=parseLog(log),rows=merge([...before.rows,...incoming]),added=rows.length-before.rows.length;return {rows,...stats(rows),added,duplicates:incoming.length-added};}
const server=http.createServer(async(req,res)=>{
const url=new URL(req.url,origin);
const send=(status,obj)=>{res.writeHead(status,{'Content-Type':'application/json; charset=utf-8','Cache-Control':'no-store'});res.end(JSON.stringify(obj));};
if(req.headers.host!==`127.0.0.1:${port}`){send(403,{error:'دسترسی مجاز نیست.'});return;}
try{
const assets={
'/assets/Vazirmatn-Regular.ttf':['lib/fonts/Vazirmatn-Regular.ttf','font/ttf'],
'/assets/Vazirmatn-Bold.ttf':['lib/fonts/Vazirmatn-Bold.ttf','font/ttf'],
'/assets/favicon.svg':['public/favicon.svg','image/svg+xml'],
'/assets/siphoned-energy.svg':['public/siphoned-energy.svg','image/svg+xml'],
};
if(req.method==='GET'&&assets[url.pathname]){const [path,type]=assets[url.pathname];res.writeHead(200,{'Content-Type':type,'Cache-Control':'no-cache'});res.end(await fs.readFile(root+path));return;}
if(req.method==='GET'&&url.pathname==='/'&&url.searchParams.get('key')===token){res.writeHead(200,{'Content-Type':'text/html; charset=utf-8','Cache-Control':'no-store','Referrer-Policy':'no-referrer'});res.end((await fs.readFile(root+'cloudflare/tool/index.html','utf8')).replace('__SESSION__',token));return;}
if(req.headers['x-session']!==token||(req.method==='POST'&&req.headers.origin!==origin)){send(403,{error:'ابزار را از میان‌بر محلی باز کنید.'});return;}
if(req.method==='GET'&&url.pathname==='/status'){send(200,{...stats((await readLedger()).rows),busy,auth});return;}
if(req.method==='GET'&&url.pathname==='/package'){res.writeHead(200,{'Content-Type':'application/zip','Content-Disposition':'attachment; filename="siphoned.zip"','Cache-Control':'no-store'});res.end(await fs.readFile(root+'cloudflare/siphoned.zip'));return;}
if(req.method!=='POST'){send(404,{error:'پیدا نشد.'});return;}
let body='';for await(const chunk of req){body+=chunk;if(body.length>2000000)throw Error('حجم لاگ بیش از حد مجاز است.');}
const data=JSON.parse(body||'{}');
if(busy){send(409,{error:'عملیات قبلی هنوز در حال انجام است.'});return;}
if(url.pathname==='/preview'){const {rows,...result}=candidate(await readLedger(),data.log);send(200,result);return;}
if(url.pathname==='/connect'){
auth='waiting';busy=true;send(200,{message:'پنجرهٔ ورود کلودفلیر باز می‌شود؛ تأیید دسترسی را خودتان انجام دهید.'});
run([root+'node_modules/wrangler/bin/wrangler.js','login']).then(()=>auth='connected').catch(()=>auth='failed').finally(()=>busy=false);return;
}
if(url.pathname==='/build'){
busy=true;const original=await fs.readFile(ledgerPath,'utf8');
try{const {rows,...result}=candidate(JSON.parse(original),data.log);await fs.mkdir(root+'cloudflare/.work',{recursive:true});await fs.copyFile(ledgerPath,root+'cloudflare/migration/ledger.backup.json');await fs.writeFile(ledgerPath,JSON.stringify({rows},null,2));await run([root+'cloudflare/build.mjs']);send(200,{...result,message:'داده‌ها ادغام شدند و بستهٔ سایت و تصویر جدید آماده است.'});}
catch(error){await fs.writeFile(ledgerPath,original);throw error;}finally{busy=false;}return;
}
if(url.pathname==='/deploy'){
busy=true;try{await run([root+'node_modules/wrangler/bin/wrangler.js','pages','deploy',root+'cloudflare/dist','--project-name','siphoned-energy','--branch','main','--commit-dirty=true']);send(200,{message:'نسخهٔ جدید منتشر شد.',url:'https://siphoned.oneup.megh.dad/?t='+Math.floor(Date.now()/1000)});}finally{busy=false;}return;
}
send(404,{error:'پیدا نشد.'});
}catch(error){send(400,{error:error.message});}
});
server.listen(port,'127.0.0.1',()=>{const url=origin+'/?key='+token;console.log('ابزار سایفوند انرژی آماده است: '+url);if(!process.env.SIPHONED_NO_OPEN)spawn('open',[url],{stdio:'ignore'});});
server.on('error',()=>{console.error('ابزار قبلاً باز است یا این پورت در دسترس نیست. پنجرهٔ قبلی را ببندید و دوباره اجرا کنید.');process.exit(1);});
+6
View File
@@ -0,0 +1,6 @@
{
"name": "siphoned-energy",
"pages_build_output_dir": "./dist",
"compatibility_date": "2026-05-15",
"account_id": "1be1e22e71d56e01fe8fdbf449b341dc"
}
+38
View File
@@ -0,0 +1,38 @@
'use client';
/* Shared with the standalone Cloudflare client, which has no Next router or image runtime. */
/* eslint-disable @next/next/no-html-link-for-pages, @next/next/no-img-element */
import {useMemo, useState} from 'react';
import {ArrowRight, ArrowDownLeft, ArrowUpRight, Trophy, Shield, Share2, Download, Search, CheckCircle2, AlertTriangle} from 'lucide-react';
import {minimum} from '../lib/ledger.mjs';
import {playerSnapshot} from '../lib/player.mjs';
import {withShareTimestamp} from '../lib/share-link.mjs';
import {persianNumber as n, persianDigits as digits} from '../lib/persian-text';
export type PlayerRow = {date:string; player:string; reason:string; amount:number};
type Profile = NonNullable<ReturnType<typeof playerSnapshot>>;
export function BalanceTimeline({profile:p}:{profile:Profile}) {
const points=[0,...p.history.slice().reverse().map(r=>r.balance)];
const min=Math.min(0,...points),max=Math.max(minimum,...points),range=max-min||1;
const y=(v:number)=>160-(v-min)/range*130;
const line=points.map((v,i)=>`${20+i/(points.length-1)*760},${y(v)}`).join(' ');
return <div className="balance-timeline"><svg viewBox="0 0 800 190" role="img" aria-label="روند بالانس از صفر تا آخرین تراکنش" preserveAspectRatio="none"><title>روند بالانس بر اساس همهٔ لاگ‌های ثبت‌شده</title><line x1="20" x2="780" y1={y(minimum)} y2={y(minimum)} stroke="#80b6a0" strokeDasharray="5 6"/><line x1="20" x2="780" y1={y(0)} y2={y(0)} stroke="#405367"/><polyline points={line} fill="none" stroke="#56d3ff" strokeWidth="3" strokeLinejoin="round"/><circle cx="780" cy={y(p.balance)} r="5" fill={p.balance<0?'#e47878':'#56d3ff'}/></svg><div className="timeline-labels"><span>شروع لاگ‌ها · <bdi>{digits(p.first.slice(0,10))}</bdi></span><span>خط‌چین: حداقل {n(minimum)}</span><span>آخرین وضعیت · <bdi>{digits(p.last.slice(0,10))}</bdi></span></div></div>;
}
export default function PlayerPage({rows,name,origin}:{rows:PlayerRow[];name:string;origin:string}) {
const p=useMemo(()=>playerSnapshot(rows,name),[rows,name]);
const [filter,setFilter]=useState('all'),[query,setQuery]=useState(''),[limit,setLimit]=useState(25),[notice,setNotice]=useState('');
if(!p)return <main className="player-layout"><div className="empty panel"><h1>بازیکن پیدا نشد</h1><p>هنوز تراکنشی برای این نام ثبت نشده است.</p><a className="primary" href="/">بازگشت به خزانه</a></div></main>;
const history=p.history.filter(r=>(filter==='all'||(filter==='deposit'?r.amount>0:r.amount<0))&&`${r.date} ${digits(r.date)} ${r.amount} ${n(r.amount)}`.includes(query.trim()));
const tone=p.balance<0?'bad':p.balance<minimum?'warn':'good';
async function share(){const url=withShareTimestamp(new URL(p!.path,origin).href,Math.floor(Date.now()/1000));try{await navigator.clipboard.writeText(url);setNotice('لینک حساب کپی شد؛ همراه تصویر وضعیت در دیسکورد یا توییتر به اشتراک بگذار.');}catch{setNotice(url);}}
function download(){
const csv='\uFEFFDate,Player,Reason,Amount,Balance\r\n'+p!.history.map(r=>[r.date,/^[=+@\-\t\r]/.test(r.player)?"'"+r.player:r.player,r.reason,r.amount,r.balance].map(v=>'"'+String(v).replaceAll('"','""')+'"').join(',')).join('\r\n');
const url=URL.createObjectURL(new Blob([csv],{type:'text/csv;charset=utf-8'}));const a=document.createElement('a');a.href=url;a.download='player-transactions.csv';a.click();setTimeout(()=>URL.revokeObjectURL(url),1000);
}
return <main className="player-layout"><header className="player-nav"><a href="/" className="player-back"><ArrowRight size={18}/> خزانهٔ گیلد</a><a className="brand" href="/"><img src="/siphoned-energy.svg" width="34" height="34" alt=""/> سایفوند انرژی</a></header>
<section className="player-hero panel"><div className="player-identity"><span className="player-monogram" aria-hidden="true">{p.name.slice(0,2).toUpperCase()}</span><div><div className="eyebrow">کارنامهٔ عضو گیلد</div><h1 dir="ltr">@{p.name}</h1><span className={'badge '+tone}><i/>{p.status}</span></div></div><div className="player-hero-actions"><button className="primary" onClick={share}><Share2 size={16}/> اشتراک حساب</button><span><Trophy size={16}/> رتبهٔ {n(p.rank)} از {n(p.members)} عضو</span></div></section>
<section className="stats player-stats" aria-label="خلاصه حساب">{[{label:'بالانس فعلی',value:p.balance,color:p.balance<0?'red':'energy',sub:'خالص واریز و برداشت'},{label:'مجموع واریز',value:p.deposits,color:'green',sub:'سهم ثبت‌شده در خزانه'},{label:'مجموع برداشت',value:p.withdrawals,color:'',sub:'سایفوند انرژی مصرف‌شده'},{label:'تراکنش ثبت‌شده',value:p.count,color:'',sub:'از '+digits(p.first.slice(0,10))}].map(s=><div className="stat" key={s.label}><div className="stat-top">{s.label}</div><strong className={s.color} dir="ltr">{n(s.value)}</strong><span>{s.sub}</span></div>)}</section>
<section className={'player-readiness panel '+tone}>{p.topUp>0?<AlertTriangle size={25}/>:<CheckCircle2 size={25}/>}<div><h2>{p.topUp>0?'قدم بعدی: شارژ حساب':'برای نبرد بعدی آماده‌ای'}</h2><p>{p.topUp>0?<>با واریز <strong>{n(p.topUp)} سایفوند انرژی</strong> به حداقل آمادگی {n(minimum)} می‌رسی.</>:<>بالانس تو <strong>{n(p.balance-minimum)} سایفوند انرژی</strong> بالاتر از حداقل آمادگی {n(minimum)} است.</>}</p></div><Shield size={36} className="readiness-shield"/></section>
<section className="panel player-chart"><div className="section-title"><div><div className="eyebrow">هر واریز و برداشت، یک قدم در مسیر</div><h2>مسیر بالانس</h2></div><span className="muted">{n(p.count)} تراکنش</span></div><BalanceTimeline profile={p}/></section>
<section className="panel player-transactions"><div className="section-title"><div><div className="eyebrow">شفاف، از اولین لاگ تا امروز</div><h2>تاریخچهٔ کامل حساب</h2></div><button className="share-button" onClick={download}><Download size={15}/> دریافت CSV</button></div><div className="filters"><div className="tabs" aria-label="نوع تراکنش">{[['all','همه'],['deposit','واریزها'],['withdrawal','برداشت‌ها']].map(([value,label])=><button key={value} aria-pressed={filter===value} className={filter===value?'selected':''} onClick={()=>{setFilter(value);setLimit(25);}}>{label}</button>)}</div><label className="search"><Search size={16}/><input aria-label="جست‌وجوی تاریخ یا مقدار" placeholder="تاریخ یا مقدار…" value={query} onChange={e=>{setQuery(e.target.value);setLimit(25);}}/></label></div>
<div className="table-wrap"><table><thead><tr><th>زمان ثبت در بازی</th><th>نوع تراکنش</th><th>مقدار</th><th>بالانس پس از تراکنش</th></tr></thead><tbody>{history.slice(0,limit).map((r,i)=><tr key={i}><td className="date" dir="ltr">{digits(r.date)}</td><td><span className={'transaction-kind '+(r.amount>0?'green':'red')}>{r.amount>0?<ArrowDownLeft size={15}/>:<ArrowUpRight size={15}/>} {r.amount>0?'واریز':'برداشت'}</span></td><td dir="ltr" className={r.amount>0?'green':'red'}>{r.amount>0?'+':''}{n(r.amount)}</td><td dir="ltr" className={r.balance<0?'red':''}>{n(r.balance)}</td></tr>)}</tbody></table>{!history.length&&<p className="empty">تراکنشی با این فیلتر پیدا نشد.</p>}</div><div className="table-footer"><span>{n(Math.min(limit,history.length))} از {n(history.length)} تراکنش · جدیدترین در بالا</span>{history.length>limit&&<button className="energy" onClick={()=>setLimit(limit+50)}>نمایش تراکنش‌های بیشتر</button>}</div></section>
<footer><span><span className="live-dot"/> آخرین تراکنش این بازیکن: <bdi>{digits(p.last)}</bdi></span><p>بالانس از صفر و بر اساس لاگ‌های ثبت‌شده محاسبه شده است؛ موجودی پیش از اولین لاگ لحاظ نشده است. زمان‌ها همان زمان ثبت‌شده در بازی هستند.</p><a href="/">مشاهدهٔ همهٔ اعضا ←</a></footer>{notice&&<div className="share-feedback" role="status" dir="auto" onClick={()=>setNotice('')}>{notice}</div>}</main>;
}
+25
View File
@@ -0,0 +1,25 @@
/* Satori renders plain image elements in social cards. */
/* eslint-disable @next/next/no-img-element */
import {playerSnapshot} from './player.mjs';
import {fa, persianNumber as n, persianDigits} from './persian-text';
import {energyArtDataUri} from './energy-art.mjs';
export const playerCardWidth=1600, playerCardHeight=900;
type Profile=NonNullable<ReturnType<typeof playerSnapshot>>;
export function PlayerCard({data:p}:{data:Profile}) {
const color=p.balance<0?'#e47878':p.topUp>0?'#e19b58':'#80b6a0';
const short=(s:string,max=34)=>s.length>max?s.slice(0,max-1)+'…':s;
return <div style={{width:'100%',height:'100%',display:'flex',flexDirection:'column',padding:'42px 56px',backgroundColor:'#080f18',color:'#e8f2fa',fontFamily:'Vazirmatn'}}>
<div style={{display:'flex',justifyContent:'space-between',alignItems:'center'}}><div style={{display:'flex',fontSize:23,color:'#90a3b5'}}>{fa(`رتبهٔ ${n(p.rank)} از ${n(p.members)} عضو`)}</div><div style={{display:'flex',alignItems:'center',gap:14,fontSize:27}}>{fa('کارنامهٔ بازیکن · خزانهٔ گیلد')}<img src={energyArtDataUri} width={54} height={54} alt=""/></div></div>
<div style={{display:'flex',justifyContent:'space-between',alignItems:'center',marginTop:14}}><div style={{display:'flex',border:'1px solid '+color,borderRadius:12,padding:'8px 20px',fontSize:24,color}}>{fa(p.status)}</div><div style={{display:'flex',fontSize:p.name.length>28?38:58,fontWeight:700}}>@{short(p.name)}</div></div>
<div style={{display:'flex',gap:20,marginTop:25,height:183}}>
<div style={{display:'flex',flexDirection:'column',flex:1,border:'1px solid #253a4d',backgroundColor:'#101c29',borderRadius:16,padding:'20px 28px',alignItems:'flex-end'}}><div style={{display:'flex',fontSize:23,color:'#90a3b5'}}>{fa('واریز لازم تا آمادگی')}</div><div style={{display:'flex',fontSize:60,fontWeight:700,color}}>{n(p.topUp)}</div><div style={{display:'flex',fontSize:20,color:'#90a3b5'}}>{fa(p.topUp>0?`برای رسیدن به حداقل ${n(10)} سایفوند انرژی`:'حساب برای نبرد بعدی آماده است')}</div></div>
<div style={{display:'flex',flexDirection:'column',flex:1,border:'1px solid #275772',backgroundColor:'#102b3e',borderRadius:16,padding:'20px 28px',alignItems:'flex-end'}}><div style={{display:'flex',fontSize:23,color:'#90a3b5'}}>{fa('بالانس فعلی · سایفوند انرژی')}</div><div style={{display:'flex',fontSize:68,fontWeight:700,color:p.balance<0?'#e47878':'#56d3ff'}}>{n(p.balance)}</div><div style={{display:'flex',fontSize:20,color:'#90a3b5'}}>{fa('خالص واریز و برداشت در لاگ‌های ثبت‌شده')}</div></div>
</div>
<div style={{display:'flex',justifyContent:'space-between',margin:'18px 0',fontSize:23,color:'#90a3b5'}}><span>{fa(`${n(p.count)} تراکنش ثبت‌شده`)}</span><span>{fa(`کل برداشت: ${n(p.withdrawals)}`)}</span><span>{fa(`کل واریز: ${n(p.deposits)}`)}</span></div>
<div style={{display:'flex',flexDirection:'column',padding:'18px 26px',border:'1px solid #294358',borderRadius:16,backgroundColor:'#101c29',flex:1}}>
<div style={{display:'flex',justifyContent:'space-between',alignItems:'center',marginBottom:10}}><div style={{display:'flex',fontSize:18,color:'#90a3b5'}}>{fa('بالانس پس از تراکنش')}</div><div style={{display:'flex',fontSize:26,fontWeight:700}}>{fa('آخرین تراکنش‌های بازیکن')}</div></div>
{p.history.slice(0,5).map((r,i)=><div key={i} style={{display:'flex',alignItems:'center',height:48,borderTop:'1px solid #253a4d',fontSize:23}}><div style={{display:'flex',width:200,color:r.balance<0?'#e47878':'#90a3b5'}}>{n(r.balance)}</div><div style={{display:'flex',width:220,color:r.amount>0?'#80b6a0':'#e47878'}}>{r.amount>0?'+':''}{n(r.amount)}</div><div style={{display:'flex',flex:1,color:r.amount>0?'#80b6a0':'#e47878'}}>{fa(r.amount>0?'واریز':'برداشت')}</div><div style={{display:'flex',fontSize:21,color:'#90a3b5'}}>{persianDigits(r.date)}</div></div>)}
</div>
<div style={{display:'flex',justifyContent:'space-between',alignItems:'center',marginTop:18,fontSize:18,color:'#90a3b5'}}><span>{fa('بالانس بر اساس لاگ‌ها · تاریخچهٔ کامل در صفحهٔ بازیکن')}</span><span>{fa('آخرین تراکنش: ')} {persianDigits(p.last)}</span></div>
</div>;
}
+24
View File
@@ -0,0 +1,24 @@
import { merge, minimum, summarize } from './ledger.mjs';
export const playerPath = name => '/@' + encodeURIComponent(name.toLowerCase());
export const playerImagePath = name => '/player-images/' + Array.from(new TextEncoder().encode(name.toLowerCase()), n => n.toString(16).padStart(2, '0')).join('') + '.png';
export function playerFromPath(path) {
const match = /^\/@([^/]+)\/?$/.exec(path);
if (!match) return null;
try { const name = decodeURIComponent(match[1]); return name.length && name.length <= 64 && !/[\x00-\x1f]/.test(name) ? name : null; } catch { return null; }
}
export const playerStatus = balance => balance < 0 ? 'بدهکار' : balance < minimum ? 'نیازمند شارژ' : 'آمادهٔ نبرد';
/**
* @param {{date:string, player:string, reason:string, amount:number}[]} rows
* @param {string} name
* @returns {{name:string, balance:number, deposits:number, withdrawals:number, count:number, last:string, rank:number, members:number, topUp:number, status:string, first:string, history:{date:string, player:string, reason:string, amount:number, balance:number}[], path:string, imagePath:string}|null}
*/
export function playerSnapshot(rows, name) {
const ordered = merge(rows), players = summarize(ordered);
const rank = players.findIndex(p => p.name.toLowerCase() === name.toLowerCase());
if (rank < 0) return null;
const player = players[rank];
let balance = 0;
const history = ordered.filter(r => r.player.toLowerCase() === name.toLowerCase()).reverse().map(row => ({...row, balance: balance += row.amount}));
return {...player, rank: rank + 1, members: players.length, topUp: Math.max(0, minimum - player.balance), status: playerStatus(player.balance), first: history[0].date, history: history.reverse(), path: playerPath(player.name), imagePath: playerImagePath(player.name)};
}
+25
View File
@@ -0,0 +1,25 @@
import {test} from 'node:test';
import assert from 'node:assert/strict';
import {seed} from './ledger.mjs';
import {playerSnapshot, playerPath, playerFromPath, playerImagePath} from './player.mjs';
test('player lookup is case insensitive and running balances reconcile in unsorted history', () => {
const p = playerSnapshot([...seed].reverse(), 'BELGHEYS');
assert.equal(p.balance,16); assert.equal(p.count,4); assert.equal(p.history[0].balance,p.balance);
assert.deepEqual(p.history.map(r=>r.balance),[16,26,0,10]);
assert.equal(p.deposits-p.withdrawals,p.balance); assert.equal(p.topUp,0);
assert.equal(p.path,'/@belgheys'); assert.equal(p.members,12);
});
test('debt, low and ready statuses include the correct required top-up',()=>{
for(const [balance,status,topUp] of [[-10,'بدهکار',20],[0,'نیازمند شارژ',10],[9,'نیازمند شارژ',1],[10,'آمادهٔ نبرد',0]]){
const p=playerSnapshot([{date:'2026-10-12 19:30:40',player:'x',reason:'Deposit',amount:balance}],'x');
assert.equal(p.status,status);assert.equal(p.topUp,topUp);
}
assert.equal(playerSnapshot(seed,'missing'),null);
});
test('routes and image paths safely handle special names and malformed paths',()=>{
for(const name of ['GODpori','a b','a/b','<script>','بازیکن','__proto__']) {
assert.equal(playerFromPath(playerPath(name)),name.toLowerCase());
assert.match(playerImagePath(name),/^\/player-images\/[a-f0-9]+\.png$/);
}
for(const path of ['/admin','/@','/@%ZZ','/@a/b','/@%00','/@'+'a'.repeat(65)])assert.equal(playerFromPath(path),null);
});