你每天都會用到的開發者工具,全都集中在同一個地方。
轉換器、格式化工具、雜湊、驗證器,以及那些你總是一再重開的小工具,都留在一起,不再散落在各個分頁裡。
分析 delegatecall 與 proxy 的 storage 佈局相容性
Delegatecall 會在呼叫合約的情境中執行另一個合約的程式碼。這表示它使用呼叫者的儲存,因此對於可升級的 proxy 模式至關重要。
Delegatecall 會在呼叫者的儲存情境中執行另一個合約的程式碼,同時保留 msg.sender 與 msg.value。儲存槽依位置(0、1、2…)而非變數名稱存取。這讓 proxy 得以…
涵蓋 Aave V3 Pool(0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2)、Compound III(0xc3d67e4b63a3c385042d8d6b13e3e0ff485e0994)與 Safe Storage Gap 模式,讓你能快速比較常見的輸入與輸出。
選定工具的原始碼,與右側的即時版本並列顯示。
// No external packages needed - pure TypeScript interface StorageSlot { name: string; type: string; slot: number; offset: number; size: number; }