mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-11-25 01:29:54 +00:00
sync: mirror deployed github repo (chains + sanitized bridge), keep GitLab CI
Make this monorepo's tracked tree identical to the deployed github repo (github.com/pezkuwichain/pezkuwi-DKS): all RC/AH/People runtimes and framework carry the mainnet fixes (incl. U128CurrencyToVote everywhere, so the staking election stall cannot recur), and tools/usdt-bridge matches the current, public-safe custody tooling (real config/deploy units gitignored, secret-file locations and server IPs stripped, sanitized *.example templates committed). Only exception to the mirror: GitLab-native CI is preserved (.gitlab-ci.yml and .gitlab/), to be rebuilt to match the github CI pipeline in a follow-up.
This commit is contained in:
1 parent
82543bdfab
commit
d285d59108
736 files changed
+15082
-16359
No files matched your search
@@ -1,5 +1,5 @@
|
||||
//! PezbridgeBot - notifies signers when the USDT bridge automation key's `Assets.approve_transfer`
|
||||
//! spending allowance needs renewal (see /home/myhez/res/validators-tiki.md and the
|
||||
//! spending allowance needs renewal (see the operator's custody notes and the
|
||||
//! usdt-bridge-multisig-migration memory for the full custody model).
|
||||
//!
|
||||
//! This process holds NO private key and cannot sign or submit anything. An earlier version of
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//! Backing:
|
||||
//! - 1:1 backed by real USDT on Polkadot Asset Hub
|
||||
//!
|
||||
//! Architecture (updated 2026-07-13 - see /home/myhez/res/validators-tiki.md for the full
|
||||
//! Architecture (updated 2026-07-13 - see the operator's custody notes for the full
|
||||
//! migration record):
|
||||
//! - Custody is a 3-of-5 multisig, NOT a single keypair. On Pezkuwi Asset Hub the multisig
|
||||
//! (5GvwxmCDp3PC33KHoeWSgj3S7ocE7nzk1jiCCZMPSDBFeNcj) now owns wUSDT (asset 1000) - it holds
|
||||
@@ -19,7 +19,7 @@
|
||||
//! submit mint/transfer calls automatically - no key this process holds has authority over
|
||||
//! the multisig account. They now only DETECT on-chain events and record them as
|
||||
//! pending_multisig_approval; an actual release requires 3 of the 5 signatories (Serok,
|
||||
//! SerokiMeclise, Xezinedar, Berdevk, Noter - see res/validators-tiki.md) to approve via
|
||||
//! SerokiMeclise, Xezinedar, Berdevk, Noter - see the operator's custody notes) to approve via
|
||||
//! `Multisig.approveAsMulti`/`asMulti`, which is expected to happen through pwap-web's
|
||||
//! existing multisig UI (shared/lib/multisig.ts, shared/lib/usdt.ts, MultisigMembers.tsx),
|
||||
//! not this relayer.
|
||||
@@ -67,7 +67,7 @@ const AUTOMATION_KEY_ADDRESS: &str = "5GQu4PFUb1f3MTJ7i7c1CtLgDk3TVvpSW1VbQCRmfk
|
||||
/// stream, the process just stops seeing new blocks forever - while staying up and logging
|
||||
/// nothing further ("Listening for deposits..." was the last line for 3+ hours while a real 1
|
||||
/// USDT deposit sat undetected at block #18250967, ~62 minutes into that silence - see
|
||||
/// res/validators-tiki.md 2026-07-15). Checkpoint + backfill only covers a gap across a
|
||||
/// the operator's custody notes 2026-07-15). Checkpoint + backfill only covers a gap across a
|
||||
/// *restart*; this covers a stall with no restart at all. If no new finalized block arrives
|
||||
/// within this window (Asset Hub blocks land every ~6-12s under normal conditions, so this is a
|
||||
/// wide margin, not a tight one), treat the subscription as stalled and force a full reconnect -
|
||||
@@ -1317,7 +1317,7 @@ async fn listen_deposits(config: &BridgeConfig, automation: &AutomationContext)
|
||||
// Checkpoint + backfill: a live block subscription alone is not a correctness guarantee - a
|
||||
// transient reconnect or subscription hiccup can silently skip blocks with zero logging (this
|
||||
// is exactly how a real user deposit went undetected in production - see
|
||||
// res/validators-tiki.md 2026-07-15). On every (re)start, explicitly scan any gap between
|
||||
// the operator's custody notes 2026-07-15). On every (re)start, explicitly scan any gap between
|
||||
// the last persisted checkpoint and the current chain head before relying on the live stream.
|
||||
let last_processed = { BridgeDatabase::load(&config.db_path)?.stats.last_polkadot_block };
|
||||
let head_hash = legacy_rpc.chain_get_finalized_head().await?;
|
||||
|
||||
Reference in new issue
Block a user