Skip to content

Instantly share code, notes, and snippets.

View M4cs's full-sized avatar

Max Bridgland M4cs

View GitHub Profile
@M4cs
M4cs / ETHScriptions.js
Last active June 19, 2023 15:37
Create an ETHScription
const ethers = require('ethers');
const privatekey = '0X_PRIVATE_KEY';
const provider = new ethers.JsonRpcProvider('ALCHEMY_OR_INFURA_KEY');
const wallet = new ethers.Wallet(privatekey, provider);
// ETHScript an Image
const file = 'IMAGE_PATH.png';
const image = new Buffer(fs.readFileSync(file)).toString('base64');
const formatted = `data:image/png;base64,${b64}`

BY ADDING ETHUR BOT TO YOUR SERVER, YOU AGREE TO THE FOLLOWING CONDITIONS:

  1. ETHUR CAN TRACK ALL USER IDS IN THE DISCORD SERVER TO CREATE META-USERS FOR THEIR BALANCES TO BE TRACKED
  2. YOU MUST SIGN A MESSAGE TO CONFIRM OWNERSHIP OF A WALLET IN ORDER TO CONNECT TO ETHUR

ETHURBOT WILL NOT TRACK ANY PRIVATE KEYS OR HAVE THE ABILITY TO MAKE TRANSACTIONS FROM ANY WALLET CONNCECTED.

@M4cs
M4cs / contracts...LittleShartCollectible.sol
Created September 6, 2021 05:55
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=
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import './LittleShartsAdmins.sol';
@M4cs
M4cs / contracts...LittleShartMarketplace.sol
Created September 6, 2021 05:55
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=
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./LittleShartsAdmins.sol";
contract LittleShartMarketplace is LittleShartsAdmins {
@M4cs
M4cs / contracts...LittleShartCollectible.sol
Created September 6, 2021 05:55
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=
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import './LittleShartsAdmins.sol';
@M4cs
M4cs / .deps...npm...@openzeppelin...contracts...token...ERC20...ERC20.sol
Created September 6, 2021 03: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=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
@M4cs
M4cs / README.txt
Created September 4, 2021 00:01
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=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@M4cs
M4cs / README.txt
Created September 3, 2021 20:37
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=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@M4cs
M4cs / style.scss
Created December 25, 2020 05:26
Pecan Style
/* pecan is a bar for Ubersicht */
/* written by daniel neemann (@zzzeyez) */
/* import colors */
@import "/Users/zzzeyez/.cache/wal/colors.scss";
:root {
/* background colors */
--pecan-bg: #{$color0};
@M4cs
M4cs / dark_fuji.termcolors
Created December 23, 2020 23:04
Dark Fuji iTerm2 Colorscheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.098039202392101288</real>