Skip to content

Instantly share code, notes, and snippets.

@nola11
nola11 / MindchainswapFactory_flat.sol
Created October 21, 2022 10:41
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.1+commit.df193b15.js&optimize=true&runs=200&gist=
// File: interfaces/IMindchainswapCallee.sol
pragma solidity >=0.5.0;
interface IMindchainswapCallee {
function mindCall(
address sender,
uint256 amount0,
@nola11
nola11 / AdminUpgradeabilityProxy_flat.sol
Created October 15, 2022 16:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=true&runs=200&gist=
// File: contracts/zeppelin/AddressUtils.sol
pragma solidity ^0.4.24;
/**
* Utility library of inline functions on addresses
*/
library AddressUtils {
@nola11
nola11 / PAXImplementationV2_flat.sol
Created October 15, 2022 16:12
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=true&runs=200&gist=
// File: contracts/zeppelin/SafeMath.sol
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
@nola11
nola11 / MindchainswapFactory_flat.sol
Created October 14, 2022 09:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.16+commit.9c3226ce.js&optimize=true&runs=200&gist=
// File: interfaces/IMindchainswapCallee.sol
pragma solidity >=0.5.0;
interface IMindchainswapCallee {
function mindCall(
address sender,
uint256 amount0,
@nola11
nola11 / Usst.sol
Created September 29, 2022 16:28
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.16+commit.9c3226ce.js&optimize=true&runs=200&gist=
/**
*Submitted for verification at BscScan.com on 2020-09-04
*/
pragma solidity 0.5.16;
interface IMRC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
@nola11
nola11 / GPCv1.sol
Created September 28, 2022 17:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=true&runs=200&gist=
pragma solidity ^0.4.24;
// File: contracts/zeppelin/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
pragma experimental "v0.5.0";
library SafeMath {
@nola11
nola11 / imp.sol
Created September 27, 2022 05:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=true&runs=200&gist=
/**
*Submitted for verification at BscScan.com on 2022-01-05
*/
/**
* The MIT License (MIT)
*
* OpenZeppelin <https://github.com/OpenZeppelin/openzeppelin-solidity/>
* Copyright (c) 2016 Smart Contract Solutions, Inc.
*
@nola11
nola11 / MDC_flat.sol
Created September 26, 2022 03:21
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.16+commit.9c3226ce.js&optimize=true&runs=200&gist=
// File: https://github.com/Nlg-deltaforce/Mindchainswap-Contracts-/blob/main/interfaces/IMindchainswapCallee.sol
pragma solidity >=0.5.0;
interface IMindchainswapCallee {
function mindCall(
address sender,
uint256 amount0,
@nola11
nola11 / contracts...archive...PAXImplementationV1.sol
Created September 23, 2022 17:54
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=true&runs=200&gist=
pragma solidity ^0.4.24;
// File: contracts/zeppelin/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
pragma experimental "v0.5.0";
library SafeMath {
@nola11
nola11 / Metaviral.sol
Created September 16, 2022 08:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// File: @openzeppelin/contracts@4.7.3/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters