Skip to content

Instantly share code, notes, and snippets.

View AliWisam's full-sized avatar
🎯
Focusing

Ali Wisam AliWisam

🎯
Focusing
View GitHub Profile
@AliWisam
AliWisam / BEP20DAI.sol
Created April 15, 2022 12:47
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.13+commit.abaa5c0e.js&optimize=true&runs=200&gist=
/**
*Submitted for verification at BscScan.com on 2020-09-09
*/
pragma solidity 0.5.16;
interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
@AliWisam
AliWisam / strings.sol
Created March 25, 2022 14:18
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=true&runs=200&gist=
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
contract RepeatedWords {
// string what = "s";
// where = solidity
////////////////
@AliWisam
AliWisam / strings.sol
Created March 25, 2022 14:15
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=true&runs=200&gist=
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
// https://github.com/HermesAteneo/
import "https://github.com/Arachnid/solidity-stringutils/blob/master/src/strings.sol";
contract RepeatedWords {
//using library
using strings for *;
@AliWisam
AliWisam / strings.sol
Created March 25, 2022 12: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.8.3+commit.8d00100c.js&optimize=true&runs=400&gist=
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
// https://github.com/HermesAteneo/
import "https://github.com/Arachnid/solidity-stringutils/blob/master/src/strings.sol";
contract RepeatedWords {
//using library
using strings for *;
@AliWisam
AliWisam / sign-tx.html
Created January 26, 2022 13:35 — forked from DeRain/sign-tx.html
Sign transaction without sending via Metamask
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Metamask sign tx poc</title>
</head>
<body>
<button class="enableEthereumButton btn" type="button">Enable Ethereum</button>
<button class="sendEthButton btn" type="button">Sign Transaction</button>
<p>Signed transaction:</p>
@AliWisam
AliWisam / GXB.sol
Created December 25, 2021 18:50
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.11+commit.d7f03943.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
contract GXBb is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, PausableUpgradeable, OwnableUpgradeable {
@AliWisam
AliWisam / gist-5487f8748e8207ba72133bfc94aed31f...NFT.sol
Created November 19, 2021 11:01 — forked from demondvn/gist-5487f8748e8207ba72133bfc94aed31f...NFT.sol
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.7.6+commit.7338295f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./ERC721.sol";
contract CryptoZooNFT is ERC721 {
@AliWisam
AliWisam / Assignment1.sol
Created October 25, 2021 11:04
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=true&runs=200&gist=
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
contract ParentVehicle {
function start() public pure virtual returns(string memory){
string memory message = "The Vehicle has just Started";
return message;
}
@AliWisam
AliWisam / Context.sol
Last active August 2, 2021 16:36
externalWallet BNB , RecoverBNB and upgraded to ^0.8.5
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.5;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
@AliWisam
AliWisam / Context.sol
Created August 2, 2021 15:24
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.6+commit.11564f7e.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.5;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application