import { ethers } from 'ethers'; import { Chain, ChainFeeData } from './Chain'; /** * Polygon mainnet (chainId 137). * * Why this class exists: Polygon enforces a hard 25 gwei minimum priority fee * at the RPC level. Transactions submitted with a lower priority fee are * rejected with "max fee per gas less than block base fee" or simply silently * dropped. ethers v5's getFeeData() does NOT know about this floor and will * happily return ~1.5 gwei from eth_feeHistory. * * The fix: clamp maxPriorityFeePerGas to at least 25 gwei (overridable via * policy.minPriorityFeeGwei in root config) and ensure maxFeePerGas >= * 2 * maxPriorityFeePerGas. */ export declare class PolygonChain extends Chain { static chainId: number; static defaults: { name: string; aliases: string[]; rpc: string; nativeCurrencyName: string; nativeCurrencySymbol: string; nativeCurrencyDecimals: number; }; protected minPriorityFee(): ethers.BigNumber; getFeeData(): Promise; } /** * Polygon Amoy testnet (chainId 80002). * * Same fee floor concerns as Polygon mainnet — Amoy is the canonical Polygon * PoS testnet and the RPC enforces an identical 25 gwei priority floor. * Subclassing PolygonChain keeps the policy in one place. */ export declare class AmoyChain extends PolygonChain { static chainId: number; static defaults: { name: string; aliases: string[]; rpc: string; nativeCurrencyName: string; nativeCurrencySymbol: string; nativeCurrencyDecimals: number; }; } //# sourceMappingURL=PolygonChain.d.ts.map