Skip to content

Instantly share code, notes, and snippets.

{
"openrpc": "1.2.4",
"info": null,
"methods": [
{
"name": "MyCalculator.PlusOne",
"description": "```go\nfunc (c *MyCalculator) PlusOne(arg *PlusOneArg, reply *PlusOneReply) error {\n\tif arg == nil {\n\t\treturn errBadUse\n\t}\n\tanswer := *arg + 1\n\tc.history = append(c.history, int(answer))\n\t*reply = (PlusOneReply)(answer)\n\treturn nil\n}// PlusOne is deceivingly simple function that increments any value by 1.\n\n```",
"summary": "PlusOne is deceivingly simple function that increments any value by 1.\n",
"paramStructure": "by-position",
"params": [
84: cumulative: 5505330 gas: 280358 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0x05cf5ec99628ed509e2f1bd38055eaec8c1e3c84d125fb154b2d502d0552c657 logs: [0xc0000d3ce0] bloom: 00000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000200000000000000100000000000000000000004000000000008000000000000100000000000040000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000220000000000000000000800000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000 state:
85: cumulative: 5526330 gas: 21000 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0x97ea613d80a11d900b059324815d75c218ae4a150b3cd44afba3c7f4d96d4491 logs: [] bloom: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
#!/usr/bin/env bash
SO_SSVM=/home/ia/dev/second-state/SSVM/build/tools/ssvm-evmc/libssvmEVMC.so
SO_HERA=/home/ia/dev/ewasm/hera/build/src/libhera.so
SO_PATH=''
if [[ $1 = ssvm ]]; then
SO_PATH="$SO_SSVM"
elif [[ $1 = hera ]]; then
@meowsbits
meowsbits / EIP1884.md
Created March 2, 2020 12:47 — forked from ritzdorf/EIP1884.md
Recently Executed Transactions affected by EIP1884

Recently Executed Contracts with Issues in EIP 1884

EIP 1884 is set to be implemented into the upcoming Ethereum 'Istanbul' hard fork. It

  • increases the cost of opcode SLOAD from 200 to 800 gas
  • increases the cost of BALANCE and EXTCODEHASH from 400 to 700 gas
  • adds a new opcode SELFBALANCE with cost 5.

The interrelated stories of at least but not limited to EIP1283, EIP1706, EIP2200, EIP1884, ECIP1061, ECIP1078, and ECIP1086.

EIP1283 comes into existence. Has way of net gas metering. Gets Finalized.

EIP____ ("Constantinople") comes into existence specifying enabling EIP1283 on ETH (and testnets).

EIP1283 enabled on Ropsten and other testnets.

Uh oh! EIP1283 has bugs.

@meowsbits
meowsbits / main.go
Created January 28, 2020 00:35 — forked from cryptix/main.go
using go/ast to find specific function calls and the values of a parameter
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"log"
)
@meowsbits
meowsbits / sort-big-csv.sh
Created December 31, 2019 17:09
Script sorts a big (90GB+) CSV file
#!/usr/bin/env bash
# Sorts a big CSV file by breaking it into small pieces, sorting those, then merging (while sorting) those
# small pieces back into a big one.
# Largely (get it?) taken from https://stackoverflow.com/a/34092506/4401322
# Break big file into small chunk files.
# Set how many lines per chunk file you want.
split -l 1000000 "$1" chunk-
func TestGenerateCases(t *testing.T) {
type testcase struct {
head uint64
want ID
}
tests := []struct {
name string
config ctypes.ChainConfigurator
genesis common.Hash
enode://c72df580434982156ff1c713bed3b70f146a4aca5221f2912398fcc3f7060ec5898a7b9a365f691fdc2e09b893574c84acbc501b9fb91512deee950df540949b@104.215.6.163:32303
enode://111bd28d5b2c1378d748383fd83ff59572967c317c3063a9f475a26ad3f1517642a164338fb5268d4e32ea1cc48e663bd627dec572f1d201c7198518e5a506b1@88.99.216.30:54568
enode://07fa944c83597d5e935a2abe6194ed40fc7239e86111c971a43537a33d0184d1cd1b3f1291b8dd3bcfaebfbb802de77c843465a00065b39120c338fdd877ca4a@35.238.126.60:53660
enode://17e7589e71013b05a48ef4edb33ac4a73ec0a7c45f8515729ec3e97d8d881a81c31a36a42933453440e5aa51c2c9e413f930c9684dbfbb878a54e80c30949cca@40.74.75.180:45706
enode://88867ca902de01ecbaa7faf6058316480e4566126cd4e63f4efd83d3a3b014316ca2056573efbad45ea097936ad139079b0298f599a255ca50e0a5a7558916fd@98.11.188.110:32994
enode://0c4dd99f9b230c6be3988fe9bc031097789749835e8ca447092de002cd90db737fb8cf66edf7269b043e3bc49fc8aa800c9e30b685c86d54b6fd8b7d59c577d6@13.71.140.242:30303
enode://f50f52b5fe18fd281748905bf5dad5439471f32cc02d99fecf960a983c1f4eba701ffca96afd
@meowsbits
meowsbits / LICENSE
Last active December 4, 2019 21:10
Github Discourse Archiver
GPLv3.