Contract 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068 7

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xca4ee0a2b89b7ef57c0a6fd752ace1dc10bcbebf52bec558dcd2c3f199371cfa0x60a06040210831582022-08-23 18:29:52160 days 15 hrs ago0x45208e8d6d09d6bfce5094083ab36f22bdfc8456 IN  Create: NonceContract0 ETH0.000535606364 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x93e4c9aa752e00e59f62d34eecdb919f7b59e404c937fab5c8b0c15134bdc216568497982023-01-31 9:47:4629 secs ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0x93e4c9aa752e00e59f62d34eecdb919f7b59e404c937fab5c8b0c15134bdc216568497982023-01-31 9:47:4629 secs ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0x5cc22fc695e13f0effd12b0727ff0d1dadd059aedef929450bb1d931d830a33a568494212023-01-31 9:45:342 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0x5cc22fc695e13f0effd12b0727ff0d1dadd059aedef929450bb1d931d830a33a568494212023-01-31 9:45:342 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0xcdcd77dd4777dc2ba2828a12ece7effb81eb6b9b5f5be60cc2fdcda759ecc5a1568493542023-01-31 9:45:113 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0xcdcd77dd4777dc2ba2828a12ece7effb81eb6b9b5f5be60cc2fdcda759ecc5a1568493542023-01-31 9:45:113 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0xe3f2a8070b32d340fb760653dbbe676925f41d903724247e726996b0726b6a0d568489452023-01-31 9:42:435 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0xe3f2a8070b32d340fb760653dbbe676925f41d903724247e726996b0726b6a0d568489452023-01-31 9:42:435 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0x6e4f8f2d538a52424ac4c9d3612301e5dabfe00f40ac4eee7a78e6e29a16769c568485142023-01-31 9:40:108 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0x6e4f8f2d538a52424ac4c9d3612301e5dabfe00f40ac4eee7a78e6e29a16769c568485142023-01-31 9:40:108 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0xa1b13f8793f48f35bf431d661aee6b8372f6fd935c6dbcff40b043c55efdbf92568483502023-01-31 9:39:188 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0xa1b13f8793f48f35bf431d661aee6b8372f6fd935c6dbcff40b043c55efdbf92568483502023-01-31 9:39:188 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0xcc0b9ebb18bbf4f0ad7a55fd41f84a28c3bad88c5599480a84e480de4ee14f3c568479072023-01-31 9:36:4311 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0xcc0b9ebb18bbf4f0ad7a55fd41f84a28c3bad88c5599480a84e480de4ee14f3c568479072023-01-31 9:36:4311 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0x0f63c47f0a134673f80c00338bb7dd67ca1894e7aac234cf7a5198a4aebdc857568476012023-01-31 9:35:0713 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0x0f63c47f0a134673f80c00338bb7dd67ca1894e7aac234cf7a5198a4aebdc857568476012023-01-31 9:35:0713 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0x7a6e5c130ec3bb1fe36994820ce445caa4006cdfe0bba21ad0d0c55db343c3a6568468892023-01-31 9:30:5217 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0x7a6e5c130ec3bb1fe36994820ce445caa4006cdfe0bba21ad0d0c55db343c3a6568468892023-01-31 9:30:5217 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0x32509409aa689298b737c3624be06d753001aa3cf624b35b4ed6af7b4491d281568464752023-01-31 9:28:2519 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0x32509409aa689298b737c3624be06d753001aa3cf624b35b4ed6af7b4491d281568464752023-01-31 9:28:2519 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0x3b4d61b8df4ee124457c9721eb28ad655a9476f78c54904e4ba873db3edcef33568462202023-01-31 9:27:0421 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0x3b4d61b8df4ee124457c9721eb28ad655a9476f78c54904e4ba873db3edcef33568462202023-01-31 9:27:0421 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0x04dcb3800b5fcaad83323342b98cb73da026330505066d6d5d1f4b715368eb73568453692023-01-31 9:22:2425 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
0x04dcb3800b5fcaad83323342b98cb73da026330505066d6d5d1f4b715368eb73568453692023-01-31 9:22:2425 mins ago 0x4d73adb72bc3dd368966edd0f0b2148401a178e2 0x5b905fe05f81f3a8ad8b28c6e17779cfabf760680 ETH
0x469a3761ddc443af473a34c6dfcb45b84a25415bcd35d4a25ee6483934bad16d568453082023-01-31 9:22:0526 mins ago 0x5b905fe05f81f3a8ad8b28c6e17779cfabf76068LayerZero: Arbitrum Endpoint0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NonceContract

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 30000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 3 : NonceContract.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.7.6;

import "./interfaces/ILayerZeroEndpoint.sol";

contract NonceContract {
    ILayerZeroEndpoint public immutable endpoint;
    // outboundNonce = [dstChainId][remoteAddress + localAddress]
    mapping(uint16 => mapping(bytes => uint64)) public outboundNonce;

    constructor(address _endpoint) {
        endpoint = ILayerZeroEndpoint(_endpoint);
    }

    function increment(uint16 _chainId, address _ua, bytes calldata _path) external returns (uint64) {
        require(endpoint.getSendLibraryAddress(_ua) == msg.sender, "NonceContract: msg.sender is not valid sendlibrary");
        return ++outboundNonce[_chainId][_path];
    }
}

File 2 of 3 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {
    // @notice send a LayerZero message to the specified address at a LayerZero endpoint.
    // @param _dstChainId - the destination chain identifier
    // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
    // @param _payload - a custom bytes payload to send to the destination contract
    // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
    // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
    // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
    function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    // @notice used by the messaging library to publish verified payload
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source contract (as bytes) at the source chain
    // @param _dstAddress - the address on destination chain
    // @param _nonce - the unbound message ordering nonce
    // @param _gasLimit - the gas limit for external contract execution
    // @param _payload - verified payload to send to the destination contract
    function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;

    // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);

    // @notice get the outboundNonce from this source chain which, consequently, is always an EVM
    // @param _srcAddress - the source chain contract address
    function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);

    // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
    // @param _dstChainId - the destination chain identifier
    // @param _userApplication - the user app address on this EVM chain
    // @param _payload - the custom message to send over LayerZero
    // @param _payInZRO - if false, user app pays the protocol fee in native token
    // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
    function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);

    // @notice get this Endpoint's immutable source identifier
    function getChainId() external view returns (uint16);

    // @notice the interface to retry failed message on this Endpoint destination
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    // @param _payload - the payload to be retried
    function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;

    // @notice query if any STORED payload (message blocking) at the endpoint.
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);

    // @notice query if the _libraryAddress is valid for sending msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getSendLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the _libraryAddress is valid for receiving msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getReceiveLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the non-reentrancy guard for send() is on
    // @return true if the guard is on. false otherwise
    function isSendingPayload() external view returns (bool);

    // @notice query if the non-reentrancy guard for receive() is on
    // @return true if the guard is on. false otherwise
    function isReceivingPayload() external view returns (bool);

    // @notice get the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _userApplication - the contract address of the user application
    // @param _configType - type of configuration. every messaging library has its own convention.
    function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);

    // @notice get the send() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getSendVersion(address _userApplication) external view returns (uint16);

    // @notice get the lzReceive() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getReceiveVersion(address _userApplication) external view returns (uint16);
}

File 3 of 3 : ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.5.0;

interface ILayerZeroUserApplicationConfig {
    // @notice set the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _configType - type of configuration. every messaging library has its own convention.
    // @param _config - configuration in the bytes. can encode arbitrary content.
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;

    // @notice set the send() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setSendVersion(uint16 _version) external;

    // @notice set the lzReceive() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setReceiveVersion(uint16 _version) external;

    // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload
    // @param _srcChainId - the chainId of the source chain
    // @param _srcAddress - the contract address of the source contract at the source chain
    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 30000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_endpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"_ua","type":"address"},{"internalType":"bytes","name":"_path","type":"bytes"}],"name":"increment","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"outboundNonce","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"}]

60a060405234801561001057600080fd5b506040516104c53803806104c58339818101604052602081101561003357600080fd5b5051606081901b6001600160601b0319166080526001600160a01b031661045961006c600039806101dd528061021a52506104596000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80635e280f11146100465780636fe7b67314610077578063c533338f1461012a575b600080fd5b61004e6101db565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61010d6004803603606081101561008d57600080fd5b61ffff8235169173ffffffffffffffffffffffffffffffffffffffff602082013516918101906060810160408201356401000000008111156100ce57600080fd5b8201836020820111156100e057600080fd5b8035906020019184600183028401116401000000008311171561010257600080fd5b5090925090506101ff565b6040805167ffffffffffffffff9092168252519081900360200190f35b61010d6004803603604081101561014057600080fd5b61ffff823516919081019060408101602082013564010000000081111561016657600080fd5b82018360208201111561017857600080fd5b8035906020019184600183028401116401000000008311171561019a57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506103bc945050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60003373ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639c729da1866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561029f57600080fd5b505afa1580156102b3573d6000803e3d6000fd5b505050506040513d60208110156102c957600080fd5b505173ffffffffffffffffffffffffffffffffffffffff1614610337576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806103f26032913960400191505060405180910390fd5b6000808661ffff1661ffff1681526020019081526020016000208383604051808383808284379190910194855250506040516020938190039390930190922080547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000008116600167ffffffffffffffff9283160191821617909155979650505050505050565b6000602081815292815260409020815180830184018051928152908401929093019190912091525467ffffffffffffffff168156fe4e6f6e6365436f6e74726163743a206d73672e73656e646572206973206e6f742076616c69642073656e646c696272617279a26469706673582212207b75dbee65cda6796c99e989b0433d8d6cd841a433b64ec28a9ef98519e7cd4b64736f6c634300070600330000000000000000000000003c2269811836af69497e5f486a85d7316753cf62

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62

-----Decoded View---------------
Arg [0] : _endpoint (address): 0x3c2269811836af69497e5f486a85d7316753cf62

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.