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;
@kanewallmann
kanewallmann / pinball.sol
Created October 30, 2021 02:57
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 / 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;
// 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;
@fazt
fazt / TaskContract.sol
Created July 8, 2021 23:30
A CRUD Tasks contract
pragma solidity ^0.8.6;
contract TaskCrud {
struct Task {
uint id;
string name;
string description;
}
@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