Standard ecosystem contracts¶
Most Ethereum tooling assumes that a handful of contracts exist at the same address on every EVM chain. Wallets batch reads through Multicall3, DEXes and aggregators use Permit2 for approvals, deployment tools use the CREATE2 factory to give contracts the same address everywhere, and DeFi expects a wrapped ERC-20 version of the native coin. PQWERAI provides all four (CR-0083), so these tools work without PQWERAI-specific configuration.
Chain 20778: deployed 27 November 2026
All four contracts were deployed on chain 20778 on 27 November 2026 (blocks 187-194); the deployment tool re-read every runtime and compared it with the built artifact
(verify PASS). This is an author record, not an independent audit. Check the code at each address yourself with
eth_getCode or on the explorer before you rely on it.
| Contract | Address on chain 20778 | What it is for |
|---|---|---|
| Deterministic deployment proxy | 0x4e59b44847b379578588920cA78FbF26c0B4956C |
CREATE2 factory used by Foundry (forge create --salt, CREATE2_FACTORY), Hardhat Ignition and Safe tooling |
| Multicall3 | 0xcA11bde05977b3631167028862bE2a173976CA11 |
Batches many eth_call reads into one; used by viem, ethers, wagmi, Uniswap and most dapp front ends |
| Permit2 | 0x000000000022D473030F116dDEE9F6B43aC78BA3 |
Uniswap's signature-based token approvals; used by Uniswap, 1inch, 0x, CowSwap and other routers |
| tWPQAI (Wrapped tPQAI) | 0xae14c8C74ff10F7fe43E7ADe4306E5257fdA02b4 |
ERC-20 version of the native tPQAI coin, 1:1, WETH9-compatible interface |
Testnet
Testnet coins carry a "t": tPQAI and tWPQAI have no value. Because the deployments are deterministic, the proxy, Multicall3 and Permit2 addresses are the same on chain 20778 and are expected to be the same on a future mainnet; the mainnet wrapped coin (WPQAI, wrapping mainnet PQAI) is a different build and gets its own address. Chain 20778 has no legacy wrapper: tWPQAI is the only wrapped coin.
Why the addresses match Ethereum¶
The deterministic deployment proxy and Multicall3 are deployed with their authors' pre-signed transactions: a
transaction signed once, by a key nobody holds, without a chain id. Anyone can submit it on any chain after funding the
one-time deployer address, and the contract lands at the same address as on Ethereum. Permit2 is deployed through the
proxy with Uniswap's original salt and creation code, so its address also matches. The deployed runtime bytes are
checked against Ethereum mainnet (Permit2 differs only in its chain-id-specific immutables, which are checked through
DOMAIN_SEPARATOR()).
The bytes, their sources and licenses (Unlicense, MIT, MIT) are kept unmodified in
contracts/canonical/upstream/ with a provenance file; contracts/canonical/build.py --verify-upstream re-checks every
signer and derived address offline.
tWPQAI¶
tWPQAI holds native tPQAI and issues the same amount of tWPQAI. It has the WETH9 interface, so anything written for WETH works unchanged:
| Function | Effect |
|---|---|
deposit() payable, or plain transfer of tPQAI to the contract |
Mint tWPQAI 1:1 to the sender |
withdraw(uint256 wad) |
Burn wad tWPQAI and send wad tPQAI back |
transfer, transferFrom, approve, allowance, balanceOf, totalSupply |
Standard ERC-20; approve(spender, type(uint256).max) is an unlimited allowance |
| Events | Transfer, Approval, Deposit, Withdrawal (same signatures as WETH9) |
Two deliberate differences from WETH9: withdraw sends tPQAI with call rather than transfer, so smart-contract
wallets (Safe, account-abstraction wallets) can unwrap; and totalSupply counts deposits instead of reading the
contract balance, so tPQAI forced into the contract cannot inflate it. There is no owner, upgrade, pause or fee.
import { createPublicClient, http, parseAbi } from "viem";
const pqwerai = {
id: 20778, name: "PQWERAI Testnet 20778", nativeCurrency: { name: "tPQAI", symbol: "tPQAI", decimals: 18 },
rpcUrls: { default: { http: ["https://rpc-testnet.pqwerai.com"] } },
contracts: { multicall3: { address: "0xcA11bde05977b3631167028862bE2a173976CA11" } },
} as const;
const client = createPublicClient({ chain: pqwerai, transport: http() });
const tWPQAI = "0xae14c8C74ff10F7fe43E7ADe4306E5257fdA02b4";
const abi = parseAbi(["function balanceOf(address) view returns (uint256)", "function totalSupply() view returns (uint256)"]);
// One RPC request, thanks to Multicall3:
const [supply, mine] = await client.multicall({ contracts: [
{ address: tWPQAI, abi, functionName: "totalSupply" },
{ address: tWPQAI, abi, functionName: "balanceOf", args: ["0xYourAddress"] },
]});
# Deterministic address on every PQWERAI network through the CREATE2 proxy:
SALT=0x0000000000000000000000000000000000000000000000000000000000000001
forge create src/MyContract.sol:MyContract --rpc-url https://rpc-testnet.pqwerai.com \
--salt $SALT --private-key $KEY
# Wrap 0.1 tPQAI (tWPQAI on 20778):
TWPQAI=0xae14c8C74ff10F7fe43E7ADe4306E5257fdA02b4
cast send $TWPQAI "deposit()" --value 0.1ether \
--rpc-url https://rpc-testnet.pqwerai.com --private-key $KEY
Not yet available¶
| Contract | Status |
|---|---|
| Safe (multisig) at its canonical addresses | Needs the Safe singleton factory, which Safe deploys per chain on request |
| CreateX | Pending a license decision (AGPL-3.0) |
Until then, Safe contracts can be deployed through the deterministic deployment proxy at non-canonical addresses.
Compiler settings¶
Chain 20778 supports PUSH0 (Shanghai) and Cancun's TSTORE/TLOAD (EIP-1153) and MCOPY (EIP-5656), but not the
blob opcodes (BLOBHASH, BLOBBASEFEE), the EIP-6780 SELFDESTRUCT change or anything from Prague onwards. Compile
with evmVersion: "shanghai" (what the PQWERAI system contracts use), or "cancun" if the code uses no blob opcodes and
does not depend on SELFDESTRUCT semantics. Solidity 0.8.30 and later default to Prague, so set the EVM version
explicitly. See Solidity.
Found a problem? Report a documentation issue · Build testnet-20778+83ff5b69f0