mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-07-22 05:05:45 +00:00
feat: P2P E2E test suite + edge function RPC fix + balance tx constraint update
- Fix process-withdraw and verify-deposit-telegram to use RPC_ENDPOINT env var defaulting to Asset Hub (wss://asset-hub-rpc.pezkuwichain.io) - Add P2P E2E test script (scripts/p2p-e2e-test.py) covering full flow: offer creation, trade accept, payment, escrow release, cancel, visa user trade, and withdrawal request - Update p2p_balance_transactions transaction_type check constraint to include withdraw_lock, withdraw_complete, dispute_refund
This commit is contained in:
@@ -26,8 +26,8 @@ function getCorsHeaders(origin: string | null): Record<string, string> {
|
||||
};
|
||||
}
|
||||
|
||||
// RPC endpoint for PezkuwiChain
|
||||
const RPC_ENDPOINT = 'wss://rpc.pezkuwichain.io';
|
||||
// RPC endpoint — defaults to Asset Hub where user balances live
|
||||
const RPC_ENDPOINT = Deno.env.get('RPC_ENDPOINT') || 'wss://asset-hub-rpc.pezkuwichain.io';
|
||||
|
||||
// Token decimals
|
||||
const DECIMALS = 12;
|
||||
|
||||
Reference in New Issue
Block a user