This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.19; | |
pragma abicoder v2; | |
import "https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/lzApp/NonblockingLzApp.sol"; | |
/// @title A LayerZero example sending a cross chain message from a source chain to a destination chain to increment a counter | |
contract LayerZeroSwap_Mumbai is NonblockingLzApp { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUSH1 0x80 | |
PUSH1 0x40 | |
MSTORE | |
CALLVALUE | |
DUP1 | |
ISZERO | |
PUSH2 0x0010 | |
JUMPI | |
PUSH1 0x00 | |
DUP1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[profile.default] | |
# The source directory | |
src = 'src' | |
# The test directory | |
test = 'test' | |
# The script directory | |
script = 'script' | |
# The artifact directory | |
out = 'out' | |
# A list of paths to look for libraries in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.10; | |
contract viewAndPure { | |
uint public tempInteger =30; | |
function viewFunc( ) public view returns (uint) { | |
return tempInteger; | |
} |