Skip to content

Commit

Permalink
move interfaces from ledgerwatch to erigontech (#11194)
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis authored Jul 16, 2024
1 parent 51eee46 commit ce6098e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/programmers_guide/db_faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
There are 2 options exist:

1. call --private.api.addr there is grpc interface with low-level data access methods - can read any data in any order,
etc... Interface is here: https://github.com/ledgerwatch/interfaces/blob/master/remote/kv.proto
etc... Interface is here: https://github.com/erigontech/interfaces/blob/master/remote/kv.proto
Go/C++/Rust libs already exist. Names of buckets and their format you can find in `erigon-lib/kv/tables.go` You can
do such calls by network.
2. Read Erigon's db while Erigon is running - it's also ok - just need be careful - do not run too long read
Expand Down
2 changes: 1 addition & 1 deletion erigon-lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PROTOC_OS = linux
endif

PROTOC_INCLUDE = build/include/google
PROTO_PATH = vendor/github.com/ledgerwatch/interfaces
PROTO_PATH = vendor/github.com/erigontech/interfaces


default: gen
Expand Down
2 changes: 1 addition & 1 deletion erigon-lib/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ go 1.21.0
toolchain go1.22.4

require (
github.com/erigontech/interfaces v0.0.0-20240716134413-fc4152088ee6
github.com/erigontech/mdbx-go v0.38.4
github.com/ledgerwatch/erigon-snapshot v1.3.1-0.20240705135436-5d6d882b41f7
github.com/ledgerwatch/interfaces v0.0.0-20240621204041-2092c22b6ef6
github.com/ledgerwatch/secp256k1 v1.0.0
github.com/rs/dnscache v0.0.0-20211102005908-e0241e321417
)
Expand Down
4 changes: 2 additions & 2 deletions erigon-lib/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7
github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8=
github.com/ledgerwatch/erigon-snapshot v1.3.1-0.20240705135436-5d6d882b41f7 h1:N5yRJ5N5/LIVXFktADDEb6TvlwlIsZTZT0OSGb/rDg4=
github.com/ledgerwatch/erigon-snapshot v1.3.1-0.20240705135436-5d6d882b41f7/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
github.com/ledgerwatch/interfaces v0.0.0-20240621204041-2092c22b6ef6 h1:pQski/IYr3OM6iYdT3y5W6TX/uxEN79Idwbj8wacIug=
github.com/ledgerwatch/interfaces v0.0.0-20240621204041-2092c22b6ef6/go.mod h1:ugQv1QllJzBny3cKZKxUrSnykkjkBgm27eQM6dnGAcc=
github.com/erigontech/interfaces v0.0.0-20240716134413-fc4152088ee6 h1:R1AYJT2FeMEwvBcAuYw7QTezk8DpXTQjCN1y5o0YBvI=
github.com/erigontech/interfaces v0.0.0-20240716134413-fc4152088ee6/go.mod h1:N7OUkhkcagp9+7yb4ycHsG2VWCOmuJ1ONBecJshxtLE=
github.com/ledgerwatch/secp256k1 v1.0.0 h1:Usvz87YoTG0uePIV8woOof5cQnLXGYa162rFf3YnwaQ=
github.com/ledgerwatch/secp256k1 v1.0.0/go.mod h1:SPmqJFciiF/Q0mPt2jVs2dTr/1TZBTIA+kPMmKgBAak=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
Expand Down
12 changes: 6 additions & 6 deletions erigon-lib/state/iters_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions erigon-lib/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ package tools
// build tag 'trick_go_mod_tidy' - is used to hide warnings of IDEA (because we can't import `main` packages in go)

import (
_ "github.com/ledgerwatch/interfaces"
_ "github.com/ledgerwatch/interfaces/downloader"
_ "github.com/ledgerwatch/interfaces/execution"
_ "github.com/ledgerwatch/interfaces/p2psentinel"
_ "github.com/ledgerwatch/interfaces/p2psentry"
_ "github.com/ledgerwatch/interfaces/remote"
_ "github.com/ledgerwatch/interfaces/txpool"
_ "github.com/ledgerwatch/interfaces/types"
_ "github.com/ledgerwatch/interfaces/web3"
_ "github.com/erigontech/interfaces"
_ "github.com/erigontech/interfaces/downloader"
_ "github.com/erigontech/interfaces/execution"
_ "github.com/erigontech/interfaces/p2psentinel"
_ "github.com/erigontech/interfaces/p2psentry"
_ "github.com/erigontech/interfaces/remote"
_ "github.com/erigontech/interfaces/txpool"
_ "github.com/erigontech/interfaces/types"
_ "github.com/erigontech/interfaces/web3"
_ "go.uber.org/mock/mockgen"
_ "go.uber.org/mock/mockgen/model"
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
Expand Down

0 comments on commit ce6098e

Please sign in to comment.