Skip to content

Instantly share code, notes, and snippets.

@hm0429
hm0429 / .deps...npm...@openzeppelin...contracts...interfaces...IERC5267.sol
Created December 23, 2023 14:49
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.23+commit.f704f362.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)
pragma solidity ^0.8.20;
interface IERC5267 {
/**
* @dev MAY be emitted to signal that the domain could have changed.
*/
event EIP712DomainChanged();
@hm0429
hm0429 / gist:928de8f7d603b70eb087372cdf031201
Last active June 17, 2020 12:42
new sdkconfig for 4.0.1
#
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) Project Configuration
#
CONFIG_IDF_TARGET_ESP32=y
CONFIG_IDF_TARGET="esp32"
CONFIG_IDF_FIRMWARE_CHIP_ID=0x0000
#
# SDK tool configuration
#
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) Project Configuration
#
CONFIG_IDF_CMAKE=y
CONFIG_IDF_TARGET="esp32"
CONFIG_IDF_TARGET_ESP32=y
CONFIG_IDF_FIRMWARE_CHIP_ID=0x0000
#

Keybase proof

I hereby claim:

  • I am hm0429 on github.
  • I am piyo (https://keybase.io/piyo) on keybase.
  • I have a public key ASBsbsOfbf8OEhqk9v1NchF7lE1pRFdt6gNETBuopBodEAo

To claim this, I am signing this object:

@hm0429
hm0429 / MintableERC20Token.sol
Created October 2, 2018 19:57
MintableERC20Token
pragma solidity ^0.4.24;
contract MintableERC20Token {
/***************************************************************************
* Public Variables
***************************************************************************/
// Ether と トークンの交換レート
uint8 public constant rate = 100; // 1 Ether = 100 トークン
@hm0429
hm0429 / gist:35b8471fce2d7a0e2d2f646e8b4aba43
Last active May 12, 2018 22:04
List of Ethereum's Major Network and Chain IDs (Public)
network_id network_name chain_id note
1 Mainnet 1 Ethereum 本番環境ネットワーク
3 Ropsten 3 Ethereum テストネットワーク (PoW)
4 Rinkeby 4 Ethereum テストネットワーク (PoA)
42 Kovan 42 Ethereum テストネットワーク (PoA)
1 Geth private chain (default) 1337 Geth の初期値
1 Ethereum Classic Mainnet 61 Ethereum Classic 本番ネットワーク
2 Morden 62 Ethereum Classic テストネットワーク
@hm0429
hm0429 / eth_account_creation.swift
Created April 30, 2018 08:57
How to create Ethereum accounts on iOS with the mobile Geth framework
// Get a path to save keystore files
let dataDir = NSSearchPathForDirectoriesInDomains(.documentDirectory,
.userDomainMask,
true)[0]
let keyStorePath = dataDir + "/keystore"
print("keyStorePath: \(keyStorePath)")
// Get an instance which manages keystore files
let keyStoreManager = GethNewKeyStore(keyStorePath, GethLightScryptN, GethLightScryptP)
@hm0429
hm0429 / example.swift
Created April 30, 2018 06:17
iOS で Ethereum のアカウントを作成
import Geth
// keystore ファイルを保存するディレクトリのパスを取得
let dataDir = NSSearchPathForDirectoriesInDomains(.documentDirectory,
.userDomainMask,
true)[0]
let keyStorePath = dataDir + "/keystore"
print("keyStorePath: \(keyStorePath)")
@hm0429
hm0429 / Podfile
Created April 30, 2018 05:37
Install Geth pod
pod 'Geth', '1.8.6' 
@hm0429
hm0429 / tip_eth.html
Created April 28, 2018 07:24
tip_eth.html
<a href="#" id="eth_tip_button" onclick="onEthTipButtonClick();">
TIP $ETH
</a>
<script type="text/javascript">
// set your Ethereum wallet address.
var ETH_ADDRESS = '0x96e530a7a5fdAf3b041BdB8c3ABF30EeD1621eA9';
// set ETH amount that you want to receive
var ETH_VALUE = '0.01';