Skip to content

Instantly share code, notes, and snippets.

View Genesis3800's full-sized avatar

Priyank Gupta Genesis3800

View GitHub Profile
@Genesis3800
Genesis3800 / basHoHigayaBC.sol
Created August 23, 2023 10:25
transfer function se pehle ka kaam ho gaya
// 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 {
@Genesis3800
Genesis3800 / opcode
Created May 24, 2023 17:58
This gist is just a list of the opcode instructions for a simple smart contract
PUSH1 0x80
PUSH1 0x40
MSTORE
CALLVALUE
DUP1
ISZERO
PUSH2 0x0010
JUMPI
PUSH1 0x00
DUP1
@Genesis3800
Genesis3800 / foundry.default.toml
Created December 29, 2022 15:33
Default configurations for foundry.toml as listed in Foundry docs
[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
@Genesis3800
Genesis3800 / viewAndPure.sol
Last active April 22, 2022 13:00
All the Code used in 'The Solidity Sagas'
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
contract viewAndPure {
uint public tempInteger =30;
function viewFunc( ) public view returns (uint) {
return tempInteger;
}