Skip to content

Instantly share code, notes, and snippets.

View legaciespanda's full-sized avatar
🏠
Working from home

Ernest Obot legaciespanda

🏠
Working from home
View GitHub Profile
@legaciespanda
legaciespanda / onion-address-gen.go
Created July 5, 2024 18:32 — forked from nektro/onion-address-gen.go
Golang Vanity v3 Onion Address Generator
package main
import (
"crypto"
"crypto/ed25519"
"encoding/base32"
"encoding/base64"
"encoding/hex"
"flag"
"fmt"
0x031B104934827D60aA9C4B6B579082ae090d9A51
@legaciespanda
legaciespanda / PaymentSplitter.sol
Created June 23, 2022 08:43 — forked from Chmarusso/PaymentSplitter.sol
This smart contract will automatically divide the payment amount and push it to specified recipients.
pragma solidity ^0.8.15;
// SPDX-License-Identifier: MIT
contract PaymentSplitter {
address payable [] public recipients;
event TransferReceived(address _from, uint _amount);
constructor(address payable [] memory _addrs) {
for(uint i=0; i<_addrs.length; i++){
recipients.push(_addrs[i]);
@legaciespanda
legaciespanda / .deps...npm...@openzeppelin...contracts...token...ERC20...ERC20.sol
Created January 16, 2022 03:30
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
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
@legaciespanda
legaciespanda / .deps...npm...@openzeppelin...contracts...token...ERC20...ERC20.sol
Created January 16, 2022 03: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.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**