Compare commits

...
21 Commits
Author SHA1 Message Date
Michael 2f12715789 Merge pull request #20 from cerc-io/rebase-1.11.2-wip
update for geth 1.11.2 statediff rebase and cerc-io refactoring
2023-03-10 13:25:39 -05:00
Michael Shaw e2432b7c97 update for geth 1.11.2 statediff rebase and cerc-io refactoring 2023-03-10 13:00:21 -05:00
Michael 93baf6bc09 Merge pull request #19 from cerc-io/v0.1.9-wip
messed up go.mod declaration after cerc migration
2022-11-07 15:41:31 -05:00
Michael Shaw 88d7dabca6 messed up go.mod declaration after cerc migration 2022-11-07 15:18:34 -05:00
Michael ab847166c4 Merge pull request #18 from cerc-io/v0.1.9-wip
dependency update for geth 1.10.26 release
2022-11-07 11:40:36 -05:00
Michael Shaw 473d62b873 dependency update for geth 1.10.26 release 2022-11-07 11:39:00 -05:00
Michael ca40c021c3 Merge pull request #16 from vulcanize/geth-1.10.25-wip
dependency updates for geth 1.10.25
2022-09-23 13:42:02 -04:00
Michael Shaw b4326045df dependency updates for geth 1.10.25 2022-09-23 13:41:15 -04:00
Michael 6da0b8b3ab Merge pull request #15 from vulcanize/rebase-1.10.23-wip
updates for geth 1.10.23 rebase
2022-09-02 15:48:32 -04:00
Michael Shaw d9e5a06648 updates for geth 1.10.23 rebase 2022-09-02 15:47:10 -04:00
Michael f48d787667 Merge pull request #14 from vulcanize/geth-rebase-wip
coupling to vulcanize geth for dependencies sanity
2022-08-01 18:30:31 -04:00
Michael Shaw 4d84121b50 coupling to vulcanize geth for dependencies sanity 2022-08-01 18:29:47 -04:00
Michael Shaw 5dedfb5168 go mod tidy go mod go sum update for geth 1.10.21 2022-07-29 15:51:15 -04:00
Michael 6906429b6d Merge pull request #13 from vulcanize/release-v0.1.4
Release v0.1.4
2022-07-20 17:17:49 -04:00
Michael Shaw 33959f60d1 go-ethereum update for 1.10.20 requires node.RegisterApis change 2022-07-19 01:21:46 -04:00
Michael Shaw 884b06adf9 go-ethereum 1.10.20 update 2022-07-19 01:19:11 -04:00
erikdies 8b6985a110 Create issues-notion-sync.yml 2022-07-01 09:18:23 -04:00
Abdul Rabbani 1fbe0605f6 Merge pull request #12 from vulcanize/feature/update-geth-1.10.19
Update geth version
2022-06-17 08:14:20 -04:00
Abdul Rabbani f0c9cf78b5 Update geth version 2022-06-17 08:13:30 -04:00
Abdul Rabbani cf23cf8d21 Merge pull request #11 from vulcanize/release-0.1.2
Update go version and fix dependencies.
2022-05-31 07:34:59 -04:00
Abdul Rabbani 33d85c81a7 Update go version and fix dependencies. 2022-05-27 14:48:36 -04:00
9 changed files with 666 additions and 466 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Notion Sync
on:
workflow_dispatch:
issues:
types:
[
opened,
edited,
labeled,
unlabeled,
assigned,
unassigned,
milestoned,
demilestoned,
reopened,
closed,
]
jobs:
notion_job:
runs-on: ubuntu-latest
name: Add GitHub Issues to Notion
steps:
- name: Add GitHub Issues to Notion
uses: vulcanize/notion-github-action@v1.2.4-issueid
with:
notion-token: ${{ secrets.NOTION_TOKEN }}
notion-db: ${{ secrets.NOTION_DATABASE }}
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"fmt"
"os"
leveldb_ethdb_rpc "github.com/vulcanize/leveldb-ethdb-rpc/pkg"
leveldb_ethdb_rpc "github.com/cerc-io/leveldb-ethdb-rpc/pkg"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
+3 -3
View File
@@ -26,9 +26,9 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
leveldb_ethdb_rpc "github.com/vulcanize/leveldb-ethdb-rpc/pkg"
srpc "github.com/vulcanize/leveldb-ethdb-rpc/pkg/rpc"
"github.com/vulcanize/leveldb-ethdb-rpc/version"
leveldb_ethdb_rpc "github.com/cerc-io/leveldb-ethdb-rpc/pkg"
srpc "github.com/cerc-io/leveldb-ethdb-rpc/pkg/rpc"
"github.com/cerc-io/leveldb-ethdb-rpc/version"
)
var (
+136 -14
View File
@@ -1,20 +1,142 @@
module github.com/vulcanize/leveldb-ethdb-rpc
module github.com/cerc-io/leveldb-ethdb-rpc
go 1.16
go 1.18
require (
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
github.com/ethereum/go-ethereum v1.10.17
github.com/go-kit/kit v0.10.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/julienschmidt/httprouter v1.3.0 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.13.0 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/shirou/gopsutil v3.21.5+incompatible // indirect
github.com/sirupsen/logrus v1.7.0
github.com/ethereum/go-ethereum v1.11.2
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.1.1
github.com/spf13/viper v1.10.1
github.com/tklauser/go-sysconf v0.3.6 // indirect
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e // indirect
)
require (
github.com/DataDog/zstd v1.5.2 // indirect
github.com/VictoriaMetrics/fastcache v1.6.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cockroachdb/errors v1.9.1 // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811 // indirect
github.com/cockroachdb/redact v1.1.3 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/deepmap/oapi-codegen v1.8.2 // indirect
github.com/edsrzf/mmap-go v1.0.0 // indirect
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
github.com/georgysavva/scany v1.2.1 // indirect
github.com/getsentry/sentry-go v0.17.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v4 v4.3.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/graph-gophers/graphql-go v1.3.0 // indirect
github.com/hashicorp/go-bexpr v0.1.10 // indirect
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/holiman/big v0.0.0-20221017200358-a027dc42d04e // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/holiman/uint256 v1.2.0 // indirect
github.com/huin/goupnp v1.0.3 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/influxdata/influxdb v1.8.3 // indirect
github.com/influxdata/influxdb-client-go/v2 v2.4.0 // indirect
github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 // indirect
github.com/ipfs/bbloom v0.0.4 // indirect
github.com/ipfs/go-block-format v0.0.3 // indirect
github.com/ipfs/go-cid v0.2.0 // indirect
github.com/ipfs/go-datastore v0.5.0 // indirect
github.com/ipfs/go-ipfs-blockstore v1.2.0 // indirect
github.com/ipfs/go-ipfs-ds-help v1.1.0 // indirect
github.com/ipfs/go-ipfs-util v0.0.2 // indirect
github.com/ipfs/go-ipld-format v0.4.0 // indirect
github.com/ipfs/go-log v0.0.1 // indirect
github.com/ipfs/go-metrics-interface v0.0.1 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.10.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.1.1 // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.8.1 // indirect
github.com/jackc/pgx/v4 v4.13.0 // indirect
github.com/jackc/puddle v1.1.3 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/jbenet/goprocess v0.1.4 // indirect
github.com/jmoiron/sqlx v1.3.5 // indirect
github.com/klauspost/compress v1.15.15 // indirect
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect
github.com/minio/sha256-simd v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/mitchellh/pointerstructure v1.2.0 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
github.com/multiformats/go-base32 v0.0.3 // indirect
github.com/multiformats/go-base36 v0.1.0 // indirect
github.com/multiformats/go-multibase v0.0.3 // indirect
github.com/multiformats/go-multihash v0.1.0 // indirect
github.com/multiformats/go-varint v0.0.6 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7 // indirect
github.com/pganalyze/pg_query_go/v2 v2.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.1 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/prometheus/tsdb v0.10.0 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/rs/cors v1.7.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/status-im/keycard-go v0.2.0 // indirect
github.com/stretchr/objx v0.4.0 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect
github.com/thoas/go-funk v0.9.3 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.0 // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa // indirect
github.com/whyrusleeping/go-logging v0.0.0-20170515211332-0457bb6b88fc // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
go.uber.org/atomic v1.6.0 // indirect
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/exp v0.0.0-20230206171751-46f607a40771 // indirect
golang.org/x/net v0.6.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
lukechampine.com/blake3 v1.1.6 // indirect
)
replace github.com/ethereum/go-ethereum v1.11.2 => github.com/cerc-io/go-ethereum v1.11.2-statediff-4.3.7-alpha
+480 -444
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -16,7 +16,7 @@
package main
import "github.com/vulcanize/leveldb-ethdb-rpc/cmd"
import "github.com/cerc-io/leveldb-ethdb-rpc/cmd"
func main() {
cmd.Execute()
+9 -1
View File
@@ -17,11 +17,14 @@
package leveldb_ethdb_rpc
import (
"errors"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/ethdb/leveldb"
)
var errNotSupported = errors.New("this operation is not supported")
var _ ethdb.Database = &LevelDBBackend{}
// NewLevelDBBackend creates a new levelDB RPC server backend
@@ -66,7 +69,7 @@ func (s *LevelDBBackend) AncientRange(kind string, start, count, maxBytes uint64
return s.ethDB.AncientRange(kind, start, count, maxBytes)
}
func (s *LevelDBBackend) ReadAncients(fn func(ethdb.AncientReader) error) error {
func (s *LevelDBBackend) ReadAncients(fn func(ethdb.AncientReaderOp) error) error {
return s.ethDB.ReadAncients(fn)
}
@@ -141,3 +144,8 @@ func (s *LevelDBBackend) MigrateTable(string, func([]byte) ([]byte, error)) erro
func (s *LevelDBBackend) NewSnapshot() (ethdb.Snapshot, error) {
return s.ethDB.NewSnapshot()
}
// AncientDatadir returns an error as we don't have a backing chain freezer.
func (d *LevelDBBackend) AncientDatadir() (string, error) {
return "", errNotSupported
}
+6 -1
View File
@@ -200,7 +200,7 @@ func (d *DatabaseClient) AncientRange(kind string, start, count, maxBytes uint64
}
// ReadAncients applies the provided AncientReader function
func (d *DatabaseClient) ReadAncients(fn func(ethdb.AncientReader) error) (err error) {
func (d *DatabaseClient) ReadAncients(fn func(ethdb.AncientReaderOp) error) (err error) {
return fn(d)
}
@@ -239,3 +239,8 @@ func (d *DatabaseClient) MigrateTable(string, func([]byte) ([]byte, error)) erro
func (d *DatabaseClient) NewSnapshot() (ethdb.Snapshot, error) {
return nil, errNotSupported
}
// AncientDatadir returns an error as we don't have a backing chain freezer.
func (d *DatabaseClient) AncientDatadir() (string, error) {
return "", errNotSupported
}
+1 -1
View File
@@ -29,7 +29,7 @@ import (
func StartHTTPEndpoint(endpoint string, apis []rpc.API, modules []string, cors []string, vhosts []string, timeouts rpc.HTTPTimeouts) (*rpc.Server, error) {
srv := rpc.NewServer()
err := node.RegisterApis(apis, modules, srv, false)
err := node.RegisterApis(apis, modules, srv)
if err != nil {
utils.Fatalf("Could not register HTTP API: %w", err)
}