Skip to content

Instantly share code, notes, and snippets.

View DoctorNasa's full-sized avatar
🎯
Focusing

Roongroj.P DoctorNasa

🎯
Focusing
  • thailand
  • 03:35 (UTC +07:00)
View GitHub Profile
@DoctorNasa
DoctorNasa / contracts...Moodeng.sol
Created September 26, 2024 09: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.26+commit.8a97fa7a.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol";

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@DoctorNasa
DoctorNasa / DamnSimpleNftStake.sol
Created April 23, 2022 11:53 — forked from Chmarusso/DamnSimpleNftStake.sol
Super Simple NFT staking
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol";
contract NftStaker {
IERC1155 public parentNFT;
struct Stake {
@DoctorNasa
DoctorNasa / PetAdoptionMarta.sol
Created October 20, 2021 05:52 — forked from martagal/PetAdoptionMarta.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.4+commit.3f05b770.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract PetAdoption {
Adoption[16] public adoptions;
mapping(uint256 => Pet) private pet_list;
struct Adoption {
@DoctorNasa
DoctorNasa / CowBreeding Solidity
Created October 17, 2021 19:21 — forked from yuyasugano/CowBreeding Solidity
Cow breeding smart contract
pragma solidity ^0.4.23;
import "./ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
/**
* @title CowBreeding
* @dev Cow Basic Implementation to breed them and provides basic functions.
*/
contract CowBreeding is Ownable {
@DoctorNasa
DoctorNasa / ModSalary.sol
Created April 13, 2021 19:18 — forked from korrio/ModSalary.sol
ModSalary.sol
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
{"data":"Something went wrong. Please try again. \n{\"message\":\"Permissions error\",\"type\":\"OAuthException\",\"code\":200,\"error_subcode\":1373034,\"is_transient\":false,\"error_user_title\":\"Insufficient Permission\",\"error_user_msg\":\"You do not have the necessary permission for the specified Page to perform the requested action.\",\"fbtrace_id\":\"Agh4kn5yEEC\"}","status":500,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"url":"https://api-my.hbot.io/v1/graph/facebook/subscribed_apps","data":{"bot_id":"5b594d71db615b5c57aed2dc","page_name":"คลินิกทันตกรรม ศรีสุ ...","page_id":"183910861660558","access_token":"EAAadxs0eBZBUBAFrxBUnJeYs46qVNZCQGEVOrcoW7dLkk4uH1IiqHXSP9bZCaiWuMkSK6D9ZByQZCG2Up6gFZBqtF1JkxKh3e8YdFzcqacMXqzs7UqXUQhgFOigyvwdko6ipNxDbdPNdaZAJRgDZAE4jzUnDjDpDcPTxMKrLZClsQBxkZAd70vA9wZASm9ZC0rWICKoZD"},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8"}},"statusText":""}