Contract Overview
Balance:
2.558051891367538 AVAX

AVAX Value:
$70.83(@ $27.69/AVAX)

Token:
More Info
Tag:
Not Available. Update?

Contract Source Code Verified (Partial Match)
Contract Name:
GasZipLZ

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 20000 runs

Created At:
Wed, 13 Dec 2023 18:25:31 GMT
GasZipLZ.sol
src
GasZipLZ.sol


Contract ABI
[
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_lzEndpoint",
        "type": "address"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "inputs": [],
    "name": "AlreadyInitialized",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "NewOwnerIsZeroAddress",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "NoHandoverRequest",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "Unauthorized",
    "type": "error"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "pendingOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipHandoverCanceled",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "pendingOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipHandoverRequested",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "oldOwner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipTransferred",
    "type": "event"
  },
  {
    "inputs": [],
    "name": "cancelOwnershipHandover",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "pendingOwner",
        "type": "address"
      }
    ],
    "name": "completeOwnershipHandover",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "dstChainId",
        "type": "uint16"
      },
      {
        "internalType": "uint256",
        "name": "nativeAmount",
        "type": "uint256"
      },
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      }
    ],
    "name": "createAdapterParams",
    "outputs": [
      {
        "internalType": "bytes",
        "name": "",
        "type": "bytes"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "defaultGasLimit",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256[]",
        "name": "_depositParams",
        "type": "uint256[]"
      },
      {
        "internalType": "address",
        "name": "to",
        "type": "address"
      }
    ],
    "name": "deposit",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16[]",
        "name": "_dstChainIds",
        "type": "uint16[]"
      },
      {
        "internalType": "bytes[]",
        "name": "_adapterParams",
        "type": "bytes[]"
      }
    ],
    "name": "estimateFees",
    "outputs": [
      {
        "internalType": "uint256[]",
        "name": "nativeFees",
        "type": "uint256[]"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "_dstChainId",
        "type": "uint16"
      },
      {
        "internalType": "bytes",
        "name": "_adapterParams",
        "type": "bytes"
      }
    ],
    "name": "estimateFees",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "nativeFee",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "",
        "type": "uint16"
      }
    ],
    "name": "gasLimitLookup",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "lzEndpoint",
    "outputs": [
      {
        "internalType": "contract ILayerZeroEndpoint",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "",
        "type": "uint16"
      },
      {
        "internalType": "bytes",
        "name": "",
        "type": "bytes"
      },
      {
        "internalType": "uint64",
        "name": "",
        "type": "uint64"
      },
      {
        "internalType": "bytes",
        "name": "",
        "type": "bytes"
      }
    ],
    "name": "lzReceive",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "owner",
    "outputs": [
      {
        "internalType": "address",
        "name": "result",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "pendingOwner",
        "type": "address"
      }
    ],
    "name": "ownershipHandoverExpiresAt",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "result",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "requestOwnershipHandover",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "_version",
        "type": "uint16"
      },
      {
        "internalType": "uint16",
        "name": "_chainId",
        "type": "uint16"
      },
      {
        "internalType": "uint256",
        "name": "_configType",
        "type": "uint256"
      },
      {
        "internalType": "bytes",
        "name": "_config",
        "type": "bytes"
      }
    ],
    "name": "setConfig",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "_defaultGasLimit",
        "type": "uint256"
      }
    ],
    "name": "setDefaultGasLimit",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16[]",
        "name": "_remoteChainIds",
        "type": "uint16[]"
      },
      {
        "internalType": "uint256[]",
        "name": "_gasLimits",
        "type": "uint256[]"
      }
    ],
    "name": "setGasLimit",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16[]",
        "name": "_remoteChainIds",
        "type": "uint16[]"
      },
      {
        "internalType": "address[]",
        "name": "_remoteAddresses",
        "type": "address[]"
      }
    ],
    "name": "setTrusted",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "",
        "type": "uint16"
      }
    ],
    "name": "trustedRemoteLookup",
    "outputs": [
      {
        "internalType": "bytes",
        "name": "",
        "type": "bytes"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "token",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "withdraw",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "stateMutability": "payable",
    "type": "receive"
  }
]


Contract Creation Code
60a0604052614e2060025534801561001657600080fd5b5060405162001b4538038062001b458339810160408190526100379161008f565b6001600160a01b03811660805261004d33610053565b506100bf565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b6000602082840312156100a157600080fd5b81516001600160a01b03811681146100b857600080fd5b9392505050565b608051611a55620000f060003960008181610311015281816107be015281816108860152610f390152611a556000f3fe60806040526004361061016d5760003560e01c8063b0bf07c6116100cb578063e32bb67b1161007f578063f2fde38b11610059578063f2fde38b146103d9578063f3fef3a3146103ec578063fee81cf41461040c57600080fd5b8063e32bb67b14610393578063f04e283e146103b3578063f2cac920146103c657600080fd5b8063cbed8b9c116100b0578063cbed8b9c14610333578063d191f54914610353578063d2f1e34b1461037357600080fd5b8063b0bf07c6146102d2578063b353aaa7146102ff57600080fd5b8063715018a6116101225780638da5cb5b116101075780638da5cb5b1461023957806395368d2e1461028e5780639753df2c146102b257600080fd5b8063715018a6146102045780637533d7881461020c57600080fd5b8063256929621161015357806325692962146101d457806352b0896a146101dc57806354d1f13d146101fc57600080fd5b80621d35671461017957806309efa2851461019e57600080fd5b3661017457005b600080fd5b34801561018557600080fd5b5061019c610194366004611131565b505050505050565b005b3480156101aa57600080fd5b506101be6101b9366004611210565b61043f565b6040516101cb919061127c565b60405180910390f35b61019c610551565b3480156101e857600080fd5b5061019c6101f7366004611210565b6105a1565b61019c610694565b61019c6106d0565b34801561021857600080fd5b5061022c6102273660046112c0565b6106e4565b6040516101cb9190611350565b34801561024557600080fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927545b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101cb565b34801561029a57600080fd5b506102a460025481565b6040519081526020016101cb565b3480156102be57600080fd5b506102a46102cd366004611392565b61077e565b3480156102de57600080fd5b506102a46102ed3660046112c0565b60016020526000908152604090205481565b34801561030b57600080fd5b506102697f000000000000000000000000000000000000000000000000000000000000000081565b34801561033f57600080fd5b5061019c61034e366004611472565b610841565b34801561035f57600080fd5b5061022c61036e366004611505565b6108fc565b34801561037f57600080fd5b5061019c61038e366004611210565b61098c565b34801561039f57600080fd5b5061019c6103ae366004611541565b610ad9565b61019c6103c136600461155a565b610ae6565b61019c6103d4366004611575565b610b26565b61019c6103e736600461155a565b610be3565b3480156103f857600080fd5b5061019c6104073660046115c0565b610c0a565b34801561041857600080fd5b506102a461042736600461155a565b63389a75e1600c908152600091909152602090205490565b60608367ffffffffffffffff81111561045a5761045a611363565b604051908082528060200260200182016040528015610483578160200160208202803683370190505b50905060005b84811015610548576105198686838181106104a6576104a66115ea565b90506020020160208101906104bb91906112c0565b8585848181106104cd576104cd6115ea565b90506020028101906104df9190611619565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061077e92505050565b82828151811061052b5761052b6115ea565b602090810291909101015280610540816116ad565b915050610489565b50949350505050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6105a9610ddf565b828114610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4c656e677468204d69736d61746368000000000000000000000000000000000060448201526064015b60405180910390fd5b60005b8381101561068d57828282818110610634576106346115ea565b9050602002013560016000878785818110610651576106516115ea565b905060200201602081019061066691906112c0565b61ffff16815260208101919091526040016000205580610685816116ad565b91505061061a565b5050505050565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b6106d8610ddf565b6106e26000610e15565b565b600060208190529081526040902080546106fd906116e5565b80601f0160208091040260200160405190810160405280929190818152602001828054610729906116e5565b80156107765780601f1061074b57610100808354040283529160200191610776565b820191906000526020600020905b81548152906001019060200180831161075957829003601f168201915b505050505081565b6040517f40a7bb1000000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906340a7bb10906107f9908690309086908890600401611732565b6040805180830381865afa158015610815573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610839919061178b565b509392505050565b610849610ddf565b6040517fcbed8b9c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c906108c390889088908890889088906004016117af565b600060405180830381600087803b1580156108dd57600080fd5b505af11580156108f1573d6000803e3d6000fd5b505050505050505050565b6060600261090985610e7b565b60405160f09290921b7fffff000000000000000000000000000000000000000000000000000000000000166020830152602282015260428101849052606083901b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016606282015260760160405160208183030381529060405290509392505050565b610994610ddf565b8281146109fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f4c656e677468204d69736d617463680000000000000000000000000000000000604482015260640161060e565b60005b8381101561068d57828282818110610a1a57610a1a6115ea565b9050602002016020810190610a2f919061155a565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301523090921b9091166034820152604801604051602081830303815290604052600080878785818110610a9257610a926115ea565b9050602002016020810190610aa791906112c0565b61ffff168152602081019190915260400160002090610ac69082611862565b5080610ad1816116ad565b915050610a00565b610ae1610ddf565b600255565b610aee610ddf565b63389a75e1600c52806000526020600c208054421115610b1657636f5e88186000526004601cfd5b60009055610b2381610e15565b50565b6000805b83811015610b7257610b54858583818110610b4757610b476115ea565b9050602002013584610eac565b610b5e908361197c565b915080610b6a816116ad565b915050610b2a565b5080341015610bdd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f466565204e6f74204d6574000000000000000000000000000000000000000000604482015260640161060e565b50505050565b610beb610ddf565b8060601b610c0157637448fbae6000526004601cfd5b610b2381610e15565b610c12610ddf565b600073ffffffffffffffffffffffffffffffffffffffff8316610c7f5760405133904790600081818185875af1925050503d8060008114610c6f576040519150601f19603f3d011682016040523d82523d6000602084013e610c74565b606091505b505080915050610d73565b6040513360248201526044810183905273ffffffffffffffffffffffffffffffffffffffff841690606401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905251610d2b919061198f565b6000604051808303816000865af19150503d8060008114610d68576040519150601f19603f3d011682016040523d82523d6000602084013e610d6d565b606091505b50909150505b80610dda576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5769746864726177204661696c65640000000000000000000000000000000000604482015260640161060e565b505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146106e2576382b429006000526004601cfd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b61ffff8116600090815260016020526040812054808203610ea0575050600254919050565b92915050565b50919050565b6000806000610ebb8585610eef565b91509150610ec9828261077e565b9250610ee78260405180602001604052806000815250308487610f2a565b505092915050565b60f082901c6060610f21827dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8616856108fc565b90509250929050565b6000610f3586610fd6565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c5803100838884898960008a6040518863ffffffff1660e01b8152600401610f9c969594939291906119ab565b6000604051808303818588803b158015610fb557600080fd5b505af1158015610fc9573d6000803e3d6000fd5b5050505050505050505050565b61ffff8116600090815260208190526040812080546060929190610ff9906116e5565b80601f0160208091040260200160405190810160405280929190818152602001828054611025906116e5565b80156110725780601f1061104757610100808354040283529160200191611072565b820191906000526020600020905b81548152906001019060200180831161105557829003601f168201915b505050505090508051600003610ea0576040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003060601b16602082018190526034820152604801604051602081830303815290604052915050919050565b803561ffff811681146110e357600080fd5b919050565b60008083601f8401126110fa57600080fd5b50813567ffffffffffffffff81111561111257600080fd5b60208301915083602082850101111561112a57600080fd5b9250929050565b6000806000806000806080878903121561114a57600080fd5b611153876110d1565b9550602087013567ffffffffffffffff8082111561117057600080fd5b61117c8a838b016110e8565b909750955060408901359150808216821461119657600080fd5b909350606088013590808211156111ac57600080fd5b506111b989828a016110e8565b979a9699509497509295939492505050565b60008083601f8401126111dd57600080fd5b50813567ffffffffffffffff8111156111f557600080fd5b6020830191508360208260051b850101111561112a57600080fd5b6000806000806040858703121561122657600080fd5b843567ffffffffffffffff8082111561123e57600080fd5b61124a888389016111cb565b9096509450602087013591508082111561126357600080fd5b50611270878288016111cb565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b818110156112b457835183529284019291840191600101611298565b50909695505050505050565b6000602082840312156112d257600080fd5b6112db826110d1565b9392505050565b60005b838110156112fd5781810151838201526020016112e5565b50506000910152565b6000815180845261131e8160208601602086016112e2565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006112db6020830184611306565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080604083850312156113a557600080fd5b6113ae836110d1565b9150602083013567ffffffffffffffff808211156113cb57600080fd5b818501915085601f8301126113df57600080fd5b8135818111156113f1576113f1611363565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561143757611437611363565b8160405282815288602084870101111561145057600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060008060006080868803121561148a57600080fd5b611493866110d1565b94506114a1602087016110d1565b935060408601359250606086013567ffffffffffffffff8111156114c457600080fd5b6114d0888289016110e8565b969995985093965092949392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146110e357600080fd5b60008060006060848603121561151a57600080fd5b611523846110d1565b925060208401359150611538604085016114e1565b90509250925092565b60006020828403121561155357600080fd5b5035919050565b60006020828403121561156c57600080fd5b6112db826114e1565b60008060006040848603121561158a57600080fd5b833567ffffffffffffffff8111156115a157600080fd5b6115ad868287016111cb565b90945092506115389050602085016114e1565b600080604083850312156115d357600080fd5b6115dc836114e1565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261164e57600080fd5b83018035915067ffffffffffffffff82111561166957600080fd5b60200191503681900382131561112a57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036116de576116de61167e565b5060010190565b600181811c908216806116f957607f821691505b602082108103610ea6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61ffff8516815273ffffffffffffffffffffffffffffffffffffffff8416602082015260a06040820152600060a0820152821515606082015260c06080820152600061178160c0830184611306565b9695505050505050565b6000806040838503121561179e57600080fd5b505080516020909101519092909150565b600061ffff808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011683010190509695505050505050565b601f821115610dda57600081815260208120601f850160051c810160208610156118435750805b601f850160051c820191505b818110156101945782815560010161184f565b815167ffffffffffffffff81111561187c5761187c611363565b6118908161188a84546116e5565b8461181c565b602080601f8311600181146118e357600084156118ad5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555610194565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561193057888601518255948401946001909101908401611911565b508582101561196c57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115610ea057610ea061167e565b600082516119a18184602087016112e2565b9190910192915050565b61ffff8716815260c0602082015260006119c860c0830188611306565b82810360408401526119da8188611306565b73ffffffffffffffffffffffffffffffffffffffff87811660608601528616608085015283810360a08501529050611a128185611306565b999850505050505050505056fea2646970667358221220a7b9f213db84f551024f6407a836ae7fda747923cd937eb32c4e764c651c6c6464736f6c634300081500330000000000000000000000003c2269811836af69497e5f486a85d7316753cf62