Skip to content

Instantly share code, notes, and snippets.

View KenMan79's full-sized avatar
🌎
How wonderful to speak the language of code with word of love!

Kenneth Luster KenMan79

🌎
How wonderful to speak the language of code with word of love!
View GitHub Profile
@KenMan79
KenMan79 / pinball.sol
Created November 12, 2021 21:02 — forked from kanewallmann/pinball.sol
Pineball Contract
/**
*Submitted for verification at Etherscan.io on 2021-10-21
*/
pragma solidity 0.8.9;
library LibPinball {
struct State {
bytes ball;
pragma solidity >=0.7.0 <0.9.0;
contract Base {
uint public num;
address public sender;
function setNum(uint _num) public {
num = _num;
sender = msg.sender;
}
@KenMan79
KenMan79 / README.md
Created August 10, 2021 13:53 — forked from obahareth/README.md
GitHub GraphQL API Starred Repositories With Pagination

GitHub GraphQL API Starred Repositories Examples With Pagination

You can play with the GraphQL API live here. It's pretty nice and has autocompletion based on the GraphQL schema.

The first example gets your first 3 starred repos, the cursor values can be used for pagination.

Here's an example response from the first query:

{
@KenMan79
KenMan79 / CryptoKitties.sol
Created July 24, 2021 00:37 — forked from yogin/CryptoKitties.sol
CryptoKitties
// Copied from: https://ethfiddle.com/09YbyJRfiI
// CryptoKitties Source code
// Copied from: https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
@KenMan79
KenMan79 / Rinkeby.md
Created July 14, 2021 19:54 — forked from learner-long-life/Rinkeby.md
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/access/Ownable.sol";
contract EthMover is Ownable {
uint public totalDonations;
@KenMan79
KenMan79 / BSB_SmartSwapETHBNB_report.md
Created June 28, 2021 05:22 — forked from yuriy77k/BSB_SmartSwapETHBNB_report.md
SmartSwap ETHBNB Security Audit Report

SmartSwap ETHBNB Security Audit Report

1. Summary

SmartSwap ETHBNB smart contract security audit report performed by Callisto Security Audit Department

The Smart Swap contract allows swapping ETH <> BNB and ERC20 <> BEP20 tokens by face value. It uses Oracle to get the price of tokens at the moment of swap.

2. In scope

@KenMan79
KenMan79 / ETH_Dirham_report.md
Created June 28, 2021 03:38 — forked from yuriy77k/ETH_Dirham_report.md
Dirham Token Security Audit Report

Dirham Token Security Audit Report

1. Summary

@openzeppelin/contracts-ethereum-package Token smart contract security audit report performed by Callisto Security Audit Department

Dirham is a fiat collateralized stablecoin backed by AED. It is the native to Dirham crypto where bonds are introduced to blockchain for the first time ever. Dirham holders earn 4% interest every week. Paying interest done by calling the rebase function in smart contract.

@KenMan79
KenMan79 / ETH_Frax_stake_v2_report.md
Created June 28, 2021 03:37 — forked from yuriy77k/ETH_Frax_stake_v2_report.md
Frax-stake Security Audit Report v.2
@KenMan79
KenMan79 / BSC_CryptoCafe_report.md
Created June 28, 2021 03:37 — forked from yuriy77k/BSC_CryptoCafe_report.md
Crypto Cafe Security Audit Report

Crypto Cafe Security Audit Report

1. Summary

Crypto Cafe smart contract security audit report performed by Callisto Security Audit Department

The audited contract is a BEP20 token "CAFE" with a total supply 7,500,000 tokens. The entire total supply pre-mints to contract owner.

2. In scope