Skip to content

Instantly share code, notes, and snippets.

View HarukaH001's full-sized avatar

Natasit Saragan HarukaH001

  • Thailand
View GitHub Profile
@HarukaH001
HarukaH001 / Context.sol
Created February 8, 2022 22:02
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.11+commit.d7f03943.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and

Keybase proof

I hereby claim:

  • I am harukah001 on github.
  • I am harukah001 (https://keybase.io/harukah001) on keybase.
  • I have a public key ASCmkHAgHgqkOOcbXjBG8fazEEGfEa7eEnvwWqlQ5XlWNQo

To claim this, I am signing this object:

@HarukaH001
HarukaH001 / Training...Advanced Logistic...logistic_advance.sol
Created October 13, 2021 14:18
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.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import "./SafeMath.sol";
import "./ownable.sol";
enum StateType { Idle, Created, InTransit, Complete, Cancel, Done }
struct Deal {