mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-22 20:45:51 +00:00
dd58fe9164
- calculateMultisigAddress was completely broken (hex-decoded an SS58 string and never hashed the preimage) - fixed via @pezkuwi/util-crypto's real encodeMultiAddress/createKeyMulti, verified against the actual known multisig address on-chain. - ReservesDashboardPage had stale Noter/Berdevk addresses that don't match the real signers - centralized as BRIDGE_MULTISIG_SPECIFIC_ADDRESSES. - USDTBridge withdrawal called assets.burn directly as a single-signer extrinsic (always fails - only the multisig is Admin) while only checking status.isFinalized (a failed dispatch is still finalized, so it silently did nothing) - replaced with the correct transfer-to-custody flow the relayer actually watches for. - New MultisigOperationsPage (/multisig/pending) lists pending calls from real Multisig.Multisigs storage and lets any of the 5 signers approve/reject with their own wallet extension. - New standalone sign/ app (deployed separately at pezbridge-sign.pex.mom) - a dedicated, gated signing portal for the same operations, so signing isn't dependent on this app alone.
13 lines
753 B
TypeScript
13 lines
753 B
TypeScript
// Production Rollup alias for vite-plugin-node-polyfills/shims/process (mirrors web/'s copy -
|
|
// see its comment for why: Rollup can't resolve the plugin's virtual module during a real
|
|
// build, only in dev). IMPORTANT: must not reference the `process` identifier at runtime -
|
|
// vite-plugin-node-polyfills rewrites it to `__process_polyfill`, creating a circular TDZ. Use
|
|
// bracket notation so the plugin leaves this file alone.
|
|
const g: Record<string, unknown> =
|
|
typeof globalThis !== 'undefined' ? (globalThis as Record<string, unknown>)
|
|
: typeof window !== 'undefined' ? (window as unknown as Record<string, unknown>)
|
|
: {};
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
export default (g['process'] ?? { env: {} }) as any;
|