Skip to content

Instantly share code, notes, and snippets.

View yuma300's full-sized avatar

びっとぶりっと yuma300

View GitHub Profile
pragma solidity ^0.4.25;
import "./workshop/contracts/ERC20Interface.sol";
interface KyberNetworkProxyInterface {
function maxGasPrice() public view returns(uint);
function getUserCapInWei(address user) public view returns(uint);
function getUserCapInTokenWei(address user, ERC20 token) public view returns(uint);
function enabled() public view returns(bool);
function info(bytes32 id) public view returns(uint);
## 0xE126BCAA8360d3a91c72Cbf7bc50d51B7a6cbf01
Narwhalswap rNLP (rNLP)
## 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d
Binance-Peg USD Coin (USDC)
## 0x8E68f1AD3ce2E7b01EcDFD0870d645Cbe446E4B1
Narwhalswap LP Token (NLP)
@yuma300
yuma300 / binance_distribution.mac
Created September 3, 2021 13:15
binance_distribution.mac
//キーボードマクロのファイル
GoLineEnd(0); // 行末に移動(折り返し単位)
IndentTab(0); // TABインデント
Right(0); // カーソル右移動
DeleteBack(0); // カーソル前を削除
GoLineEnd(0); // 行末に移動(折り返し単位)
IndentTab(0); // TABインデント
Right(0); // カーソル右移動
DeleteBack(0); // カーソル前を削除
GoLineEnd(0); // 行末に移動(折り返し単位)
@yuma300
yuma300 / uniswap_to_caaj_0.md
Last active September 15, 2021 09:47
uniswap_to_caaj_0
# time platform transaction_id debit_title debit_amount debit_from debit_to credit_title credit_amount credit_from credit_to comment
1 2021-07-20 15:35:56 ethereum_uniswap 0x5f680be9a325c920d4036620b057962e880350e4015967d859fb5623bd9bf97c FEE {'ETH': '0.0017763328'} 0x0000000000000000000000000000000000000000 0xf6bca8257c8ed721269761c092858022fc73ce50 SPOT {'ETH': '0.0017763328'} 0xf6bca8257c8ed721269761c092858022fc73ce50 0x0000000000000000000000000000000000000000 approve transaction fee
2 2021-07-20 15:38:43 ethereum_uniswap 0x1d20d03bdec84d0335b59b32794602eb2ef14851fb3f3d1a094502df1a0a89c0 LIQUIDITY {'0xc36442b4a4522e871399cd717abdd847ab11fe88_90705': '34921385802871597257492'} 0xc36442b4a4522e871399cd717abdd847ab11fe88 0xf6bca8257c8ed721269761c092858022fc73ce50 SPOT {'0x426fc8be95573230f6e6bc4af91873f0c67b21b4': '69857977.999999999999999078'} 0xf6bca8257c8ed721269761c092858022fc73ce50 0xc36442b4a4522e871399cd717abdd847ab11f
@yuma300
yuma300 / uniswap_to_caaj_1.md
Last active September 21, 2021 07:31
uniswap_to_caaj_1
# time platform transaction_id debit_title debit_amount debit_from debit_to credit_title credit_amount credit_from credit_to comment
16 2021-07-26 04:31:58 ethereum_uniswap 0x8af9fb594bb2139397a30b00c948d4c2f03c97205b5143477dcb6919b24a5fa4 SPOT {'0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48': '2324.930491'} 0xe592427a0aece92de3edee1f18e0157c05861564 0xf6bca8257c8ed721269761c092858022fc73ce50 SPOT {'ETH': '1'} 0xf6bca8257c8ed721269761c092858022fc73ce50 0xe592427a0aece92de3edee1f18e0157c05861564 uniswap swap
17 2021-07-26 04:31:58 ethereum_uniswap 0x8af9fb594bb2139397a30b00c948d4c2f03c97205b5143477dcb6919b24a5fa4 FEE {'ETH': '0.006917097'} 0x0000000000000000000000000000000000000000 0xf6bca8257c8ed721269761c092858022fc73ce50 SPOT {'ETH': '0.006917097'} 0xf6bca8257c8ed721269761c092858022fc73ce50 0x0000000000000000000000000000000000000000 uniswap transaction fee
@yuma300
yuma300 / uniswap_to_caaj_2.md
Created September 15, 2021 11:49
uniswap_to_caaj_2
# time platform transaction_id debit_title debit_amount debit_from debit_to credit_title credit_amount credit_from credit_to comment
2 2021-07-20 15:38:43 ethereum_uniswap 0x1d20d03bdec84d0335b59b32794602eb2ef14851fb3f3d1a094502df1a0a89c0 LIQUIDITY {'0xc36442b4a4522e871399cd717abdd847ab11fe88_90705': '34921385802871597257492'} 0xc36442b4a4522e871399cd717abdd847ab11fe88 0xf6bca8257c8ed721269761c092858022fc73ce50 SPOT {'0x426fc8be95573230f6e6bc4af91873f0c67b21b4': '69857977.999999999999999078'} 0xf6bca8257c8ed721269761c092858022fc73ce50 0xc36442b4a4522e871399cd717abdd847ab11fe88 uniswap add liquidity
3 2021-07-20 15:38:43 ethereum_uniswap 0x1d20d03bdec84d0335b59b32794602eb2ef14851fb3f3d1a094502df1a0a89c0 FEE {'ETH': '0.0125902997'} 0x0000000000000000000000000000000000000000 0xf6bca8257c8ed721269761c092858022fc73ce50 SPOT {'ETH': '0.0125902997'} 0xf6bca8257c8ed721269761c092858022fc73ce50 0x000000000000000000000000000000000000000
@yuma300
yuma300 / uniswap_to_caaj_3.md
Last active September 21, 2021 09:51
uniswap_to_caaj_3
Timestamp Action Source Base Volume Price Counter Fee FeeCcy Comment
2021-07-21 00:20:22 BUY binance ETH 1.16 172413.793103448 JPY 0 JPY dummy data
2021-07-21 00:24:28 BUY binance BPLC 69857978 0.05 JPY 0 JPY dummy data
2021-07-21 00:35:56 SENDFEE ethereum_uniswap ETH 0.0017763328 JPY 0 ETH approve transaction fee 0x5f680be9a325c920d4036620b057962e880350e4015967d859fb5623bd9bf97c
2021-07-21 00:38:43 SENDFEE ethereum_uniswap ETH 0.0125902997 JPY 0 ETH uniswap transaction fee 0x1d20d03bdec84d0335b59b32794602eb2ef14851fb3f3d1a094502df1a0a89c0
2021-07-21 01:25:31 BUY binance BPLC 34922181 0.05 JPY 0 JPY dummy data
2021-07-21 01:35:13 SENDFEE ethereum_uniswap ETH 0.00124916 JPY 0 ETH approve transaction fee 0x53730f4ca73b6f29640b623a3ec8862dbae147d23457e6ed673ace36c4af3d00
2021-07-21 01:36:04 SENDFEE ethereum_uniswap ETH 0.0047555178 JPY 0 ETH uniswap transaction fee 0x75f8efd50b2ba0f9db3bcbeab04a181e831b5e74b6aa01a8ec0fc61ddd5703
@yuma300
yuma300 / caaj_balance_0.md
Last active September 21, 2021 07:31
検証用CAAJ
# time platform transaction_id debit_title debit_amount debit_from debit_to credit_title credit_amount credit_from credit_to comment
1 2021-07-20 15:20:22 binance 1 SPOT {'0x426fc8be95573230f6e6bc4af91873f0c67b21b4’: ‘69857978’} SPOT {‘JPY’: ‘3492898.9’} binance trade
2 2021-07-20 15:24:28 binance 2 SPOT {‘ETH’: ‘1.16’} SPOT {‘JPY’: ‘200000’} binance trade
3 2021-07-20 15:35:56 ethereum_uniswap 0x5f680be9a325c920d4036620b057962e880350e4015967d859fb5623bd9bf97c FEE {'ETH': '0.0017763328'} 0x0000000000000000000000000000000000000000 0xf6bca8257c8ed721269761c092858022fc73ce50 SPOT {'ETH': '0.0017763328'} 0xf6bca8257c8ed721269761c092858022fc73ce50 0x0000000000000000000000000000000000000000 approve transaction fee
4 2021-07-20 15:38:43 ethereum_uniswap 0x1d20d03bdec84d0335b59b32794602eb2ef14851fb3f3d1a094502df1a0a89c0 LIQUIDITY {'0xc36442b4a4522e871399cd717abdd847ab11fe88_90705': '34921385802871597257492'} 0xc36
@yuma300
yuma300 / caaj_balance_1.md
Created September 17, 2021 07:54
caaj_balance_1
# title token debit amount credit amount debit balance credit balance
1 FEE ETH 0.0577044677 0 0.0577044677 0
2 LIQUIDITY 0xc36442b4a4522e871399cd717abdd847ab11fe88_90705 52378675445275965720393 52378675445275965720393 0 0
3 LIQUIDITY 0xc36442b4a4522e871399cd717abdd847ab11fe88_90773 8431439711306403912302 8431439711306403912302 0 0
4 LIQUIDITY 0xc36442b4a4522e871399cd717abdd847ab11fe88_95899 235136540779661112737970 0 235136540779661112737970 0
5 SPOT ETH 2.260273002972902499 2.1577044677 0.102568535272902499 0
6 SPOT BPLC(0x426fc8be95573230f6e6bc4af91873f0c67b21b4) 209563207.674123768029459729 209560317.999999999999998332 2889.674123768029461397 0
7 SPOT USDC(0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48) 2324.930491 0 2324.930491 0
8 SPOT JPY 0 5439007.95 0 5439007.95
@yuma300
yuma300 / cosmos_sample_transaction.json
Created September 22, 2021 13:37
cosmos_sample_transaction
{
"header": {
"id": 5755050,
"chain_id": "cosmoshub-4",
"block_id": 11153513,
"timestamp": "2021-09-22T09:59:30Z"
},
"data": {
"height": "7751504",
"txhash": "5D1179B77E16EA9945F12C27BF8EE2CDA90337451B78939FDD8AC189CA0036E5",