https://medium.com/@walkert/fun-building-shared-libraries-in-go-639500a6a669
https://www.darkcoding.net/software/building-shared-libraries-in-go-part-2/
package main | |
import ( | |
"fmt" | |
"math/big" | |
"github.com/ethereum/go-ethereum/accounts/abi" | |
"github.com/ethereum/go-ethereum/common" | |
"github.com/ethereum/go-ethereum/common/hexutil" | |
) |
from collections import defaultdict | |
GETH_LOGFILE = 'geth-log.txt' | |
def extract_parameter(source_str, before_str, after_str): | |
start_pos = source_str.find(before_str) + len(before_str) | |
return source_str[start_pos:source_str.find(after_str, start_pos)] | |
pragma solidity ^0.4.24; | |
contract ECDSA { | |
function verify() public returns (bool) { | |
bytes32 message = ethMessageHash("TEST"); | |
bytes memory sig = hex"bceab59162da5e511fb9c37fda207d443d05e438e5c843c57b2d5628580ce9216ffa0335834d8bb63d86fb42a8dd4d18f41bc3a301546e2c47aa1041c3a1823701"; | |
address addr = 0x999471bb43b9c9789050386f90c1ad63dca89106; |
pragma solidity ^0.7.6; | |
interface IStableSwapAave { | |
function A_precise() external view returns (uint256); | |
function balances(uint256 i) external view returns (uint256); | |
function underlying_coins(uint256 arg0) external view returns (address); | |
function admin_balances(uint256 arg0) external view returns (uint256); |
'use strict'; | |
const WEB3_URL = process.env.WEB3_URL; | |
const prom = require('util').promisify; | |
const ethABI = require('ethereumjs-abi'); | |
const Web3 = require('web3'); | |
const provider = new Web3.providers.HttpProvider(WEB3_URL); | |
const web3 = module.exports = new Web3(provider); | |
const sendAsync = prom(web3.currentProvider.sendAsync).bind(web3.currentProvider); |
See also, http://libraryofalexandria.io/cgo/
cgo
has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src
. IDE's(vim) Goto command not works.
So, Here collect materials.
// RLP encoded transaction | |
const rawTxHex = '0xed8205fc843b9aca00825208944592d8f8d7b001e72cb26a73e4fa1806a51ac79d88016345785d8a000080808080' | |
// using rlp package to decode values | |
const rlp = require('rlp') | |
const decoded = rlp.decode(rawTxHex) | |
console.log(decoded) | |
/* | |
[ <Buffer 05 fc>, | |
<Buffer 3b 9a ca 00>, |
import timeit | |
import threading | |
import asyncio | |
import contextlib | |
import requests | |
from aiohttp import ClientSession | |
from web3.providers.base import JSONBaseProvider | |
from web3.providers import HTTPProvider |
const puppeteer = require('puppeteer'); | |
const spawn = require('@expo/spawn-async'); | |
const v4 = require('uuid').v4; | |
const UserAgent = require('user-agents'); | |
const faucet = 'https://explorer.certik.foundation/faucet'; | |
const address_query = 'input[name=address]'; | |
const button_click = 'form button[type=submit]'; |