Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Explorer Indexer cleanups #1420

Closed
wants to merge 167 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
dc00a2b
Init
nautsimon Jul 18, 2023
a1d1801
gen
nautsimon Jul 18, 2023
4b8808d
Update go.sum
nautsimon Jul 18, 2023
d40c774
Update explorer_test.go
nautsimon Jul 18, 2023
5ae8358
gen
nautsimon Jul 19, 2023
e7f617c
gen
nautsimon Jul 19, 2023
c794fac
[goreleaser]
nautsimon Jul 19, 2023
f9b03c1
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Jul 19, 2023
93c4eaa
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Jul 19, 2023
3bae5ba
[goreleaser]
nautsimon Jul 19, 2023
16f63f5
[goreleaser]
nautsimon Jul 19, 2023
31894a9
[goreleaser]
nautsimon Jul 20, 2023
639ce9f
test
nautsimon Jul 20, 2023
c779d0d
scanning for mariadb
nautsimon Jul 20, 2023
2c24800
prune columns
nautsimon Jul 20, 2023
15cd00b
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Jul 20, 2023
d5a56ad
lint
nautsimon Jul 20, 2023
acf67c7
gen
nautsimon Jul 20, 2023
fb0775a
more tests and cleaning indexer
nautsimon Jul 21, 2023
329c939
clean
nautsimon Jul 21, 2023
21a1ab7
logging
nautsimon Jul 21, 2023
dc7e16e
lint
nautsimon Jul 21, 2023
05f32f0
better readability when storing last indexed
nautsimon Jul 21, 2023
686ee3c
More readability
nautsimon Jul 21, 2023
2e1fdb5
comments
nautsimon Jul 21, 2023
9b1804c
livefill at tip, more tests
nautsimon Jul 21, 2023
966f721
mariadb
nautsimon Jul 24, 2023
a57afa8
mariadb ssql
nautsimon Jul 24, 2023
0992990
lint
nautsimon Jul 24, 2023
0f99102
sql syntax for mariadb
nautsimon Jul 24, 2023
7a47c03
[goreleaser]
nautsimon Jul 24, 2023
5516a18
lint + [goreleaser]
nautsimon Jul 24, 2023
70416cd
omnirpc
nautsimon Jul 24, 2023
723bd35
readme
nautsimon Jul 24, 2023
8c44820
revert network flake
nautsimon Jul 24, 2023
519fca2
test timeouts
nautsimon Jul 24, 2023
e784449
api test
nautsimon Jul 24, 2023
b71b8c5
migration skip
nautsimon Jul 24, 2023
519553d
[goreleaser]
nautsimon Jul 24, 2023
dbb4654
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Jul 25, 2023
4610f50
enforce start and end
nautsimon Jul 25, 2023
6079978
[goreleaser]
nautsimon Jul 25, 2023
8a4cb9c
better backend test
nautsimon Jul 27, 2023
901d22e
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Jul 27, 2023
e53a237
cleaning
nautsimon Jul 28, 2023
8d79ff2
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Jul 28, 2023
896695e
[goreleaser]
nautsimon Jul 28, 2023
c3f1e4a
[goreleaser]
nautsimon Jul 28, 2023
a029dc0
[goreleaser]
nautsimon Jul 28, 2023
be8a616
timeout fix
nautsimon Jul 29, 2023
9dae494
[goreleaser]
nautsimon Jul 29, 2023
c17e977
report state + [goreleaser]
nautsimon Jul 29, 2023
580f0b8
[goreleaser] + head
nautsimon Jul 29, 2023
ad08eb3
add gin tracing
trajan0x Jul 29, 2023
d750c1a
[goreleaser] + read
nautsimon Jul 29, 2023
59d5f41
Merge branch 'feat/scribe-v2-final-updates' of github.com:synapsecns/…
nautsimon Jul 29, 2023
fdad521
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Jul 29, 2023
207fa88
metrics
nautsimon Jul 29, 2023
e9a5c26
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Jul 30, 2023
e49c214
Scribe gql tracing (#1178)
trajan0x Jul 30, 2023
a256864
queries + [goreleaser]
nautsimon Jul 30, 2023
6560151
instrument latency checks
trajan0x Jul 31, 2023
03df28d
[goreleaser] lint
trajan0x Jul 31, 2023
abee759
use metrics port (#1188)
trajan0x Jul 31, 2023
76e1d43
[goreleaser] metrics endpoint on omnirpc
trajan0x Jul 31, 2023
4cbd8a0
Merge branch 'feat/scribe-v2-final-updates' of github.com:synapsecns/…
nautsimon Jul 31, 2023
f53029d
add test for bytes
trajan0x Jul 31, 2023
b8d81b4
Merge branch 'master' into feat/instrument-latency-checks
trajan0x Jul 31, 2023
2ed77c7
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Jul 31, 2023
32cbf16
[goreleaser]
nautsimon Jul 31, 2023
49ee697
more logging, gen, lint, readablity + [goreleaser]
nautsimon Jul 31, 2023
3d28f1b
lint
nautsimon Jul 31, 2023
5dc2ea4
log + [goreleaser]
nautsimon Jul 31, 2023
a1e09ee
adding logging + [goreleaser]
nautsimon Jul 31, 2023
872f9d2
Update lastindexed.go
nautsimon Jul 31, 2023
5cb85dc
[goreleaser]
nautsimon Jul 31, 2023
cacbbf5
init
nautsimon Aug 1, 2023
6d4fa68
tests, error handling, refresh rates, deprecate old code.
nautsimon Aug 1, 2023
ce4e61f
lint
nautsimon Aug 1, 2023
53afa13
start of updated fetcher
nautsimon Aug 1, 2023
a4f8090
update client
nautsimon Aug 1, 2023
aa2d9d1
Merge branch 'master' into feat/scribe-v2-final-updates
nautsimon Aug 1, 2023
c98195c
Merge branch 'feat/scribe-v2-final-updates' into feat/cctp-indexer-up…
nautsimon Aug 1, 2023
4681447
Merge branch 'master' into feat/instrument-latency-checks
trajan0x Aug 1, 2023
39ffcf6
deploy checkpoint: updated tests, updated model, ran locally
nautsimon Aug 1, 2023
d864ba3
update config
nautsimon Aug 1, 2023
318ac49
adding basic pending cctp query, added event type to partial info for…
nautsimon Aug 1, 2023
57b2b6d
update filter generator
nautsimon Aug 1, 2023
c4fc2d5
account for Recipient descrpeancy with cctp/vanilla bridge events + […
nautsimon Aug 1, 2023
0cb75e4
lint
nautsimon Aug 1, 2023
0218683
[goreleaser]
nautsimon Aug 1, 2023
f4a4aeb
adding nonmv query + [goreleaser]
nautsimon Aug 1, 2023
f51091f
ci, skip rehydration, adding fallbacks
nautsimon Aug 1, 2023
beddabe
update base + [goreleaser]
nautsimon Aug 2, 2023
c983cdb
Revert "ci, skip rehydration, adding fallbacks"
nautsimon Aug 2, 2023
7ca2201
[goreleaser]
nautsimon Aug 2, 2023
219934f
add base + [goreleaser]
nautsimon Aug 2, 2023
626e58d
client + [goreleaser]
nautsimon Aug 2, 2023
aee7f0a
gen + [goreleaser]
nautsimon Aug 2, 2023
58960fa
Merge branch 'master' into feat/instrument-latency-checks
trajan0x Aug 7, 2023
c5c81b2
[goreleaser] temporarily re-add metrics
trajan0x Aug 7, 2023
1248a4b
omnirpc metric fixes [goreleaser]
trajan0x Aug 7, 2023
1966d4b
wraph [goreleaser]
trajan0x Aug 7, 2023
3550692
spellcheck [goreleaser]
trajan0x Aug 7, 2023
6626382
remove endpoint [goreleaser]
trajan0x Aug 7, 2023
3cf9ea0
[goreleaser] fix callback registration memory leak
trajan0x Aug 7, 2023
74048f7
[goreleaser] error count
trajan0x Aug 7, 2023
f913855
bar gauges
trajan0x Aug 7, 2023
4a57aa3
omnirpc final
trajan0x Aug 7, 2023
07b35a1
bug
trajan0x Aug 7, 2023
4f3ecc9
remove dead metric
trajan0x Aug 7, 2023
58e74ba
fix explorer
trajan0x Aug 7, 2023
292e336
Merge branch 'master' into feat/explorer-hotfix
trajan0x Aug 7, 2023
7eb9861
remove middleware
trajan0x Aug 7, 2023
696ea5a
more explorer fixes
trajan0x Aug 7, 2023
0f5d58a
more fixes
trajan0x Aug 7, 2023
7ddcedb
propogator
trajan0x Aug 7, 2023
e31549b
more tidy
trajan0x Aug 7, 2023
100d5dd
[goreleaser]
trajan0x Aug 7, 2023
c4cca75
Merge branch 'master' into feat/explorer-server-updates
nautsimon Aug 7, 2023
ad179b2
lint
nautsimon Aug 7, 2023
bf900e7
merge
nautsimon Aug 7, 2023
196140e
gen + lint + mod + [goreleaser]
nautsimon Aug 7, 2023
ab66748
gen + [goreleaser]
nautsimon Aug 7, 2023
d483b40
local work - [goreleaser]
nautsimon Aug 7, 2023
a9a0937
Merge branch 'master' into feat/explorer-server-updates
nautsimon Aug 8, 2023
dfe98d3
Update go.work.sum
nautsimon Aug 8, 2023
b8be034
Update server.go
nautsimon Aug 8, 2023
c0506be
Merge branch 'master' into feat/explorer-server-updates
nautsimon Aug 8, 2023
3d25328
Add RPC head check + [goreleaser]
nautsimon Aug 8, 2023
7818a65
lint + [goreleaser]
nautsimon Aug 8, 2023
dd911fb
Merge branch 'master' into feat/explorer-server-updates
nautsimon Aug 9, 2023
b31db31
stashing before completing reformatting + cleaning
nautsimon Aug 12, 2023
0dcbf69
Merge branch 'master' into feat/bw-final
nautsimon Aug 12, 2023
b5120e1
hold
nautsimon Aug 15, 2023
18a7dca
historical + kappa exists
nautsimon Aug 15, 2023
3be9fcc
partially lint
nautsimon Aug 15, 2023
6f44ee8
fallbacks working
nautsimon Aug 15, 2023
853ab13
lint update
nautsimon Aug 18, 2023
4b744dd
gofmt
nautsimon Aug 18, 2023
bda7be2
updating tests, config, testing optimisim, updating block search
nautsimon Aug 19, 2023
c047d79
Merge branch 'master' into feat/bw-final
nautsimon Aug 19, 2023
da9934c
add tests back
nautsimon Aug 19, 2023
3578823
lint + test
nautsimon Aug 19, 2023
0470e28
more tests + lint
nautsimon Aug 19, 2023
025478c
ethergo gen
nautsimon Aug 19, 2023
67717db
[goreleaser] + no network based tests on ga
nautsimon Aug 19, 2023
07376d6
Merge branch 'feat/scribe-check-headblock-flake' into feat/bw-final
nautsimon Aug 19, 2023
9c7e824
[goreleaser]
nautsimon Aug 19, 2023
b390279
update cmd, parser + [goreleaser]
nautsimon Aug 19, 2023
c5b6dbb
config update
nautsimon Aug 21, 2023
e7310c2
[goreleaser] + config fixes
nautsimon Aug 22, 2023
5e36085
[goreleaser] + config
nautsimon Aug 22, 2023
e471eb4
[goreleaser] scribe log
nautsimon Aug 24, 2023
343ff6a
[goreleaser]
nautsimon Aug 24, 2023
488024f
[goreleaser]
nautsimon Aug 24, 2023
176a01d
update idle conn + [goreleaser]
nautsimon Aug 24, 2023
169bb63
gorm + [goreleaser]
nautsimon Aug 24, 2023
f1b3e70
update block search [gorelaser]
nautsimon Aug 24, 2023
3a53cbb
Create config2.yaml
nautsimon Aug 24, 2023
8374e5b
[goreleaser]
nautsimon Aug 25, 2023
e850c9e
kappa status + [goreleaser]
nautsimon Aug 25, 2023
56f5c31
settings [goreleaser]
nautsimon Aug 25, 2023
d4870d1
temp + [goreleaser]
nautsimon Aug 25, 2023
ba69b01
de + [goreleaser]
nautsimon Aug 25, 2023
55fc993
some updates
nautsimon Oct 3, 2023
a0e1c52
Merge branch 'master' into feat/explorer-rf
nautsimon Oct 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions contrib/promexporter/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBA
github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8=
github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo=
github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 h1:smF2tmSOzy2Mm+0dGI2AIUHY+w0BUc+4tn40djz7+6U=
github.com/alecthomas/chroma v0.7.1 h1:G1i02OhUbRi2nJxcNkwJaY/J1gHXj9tt72qN6ZouLFQ=
github.com/alecthomas/colour v0.0.0-20160524082231-60882d9e2721 h1:JHZL0hZKJ1VENNfmXvHbgYlbUOvpzYzvy2aZU5gXVeo=
github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897 h1:p9Sln00KOTlrYkxI1zYWl1QLnEqAqEARBEYa8FQnQcY=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
Expand Down Expand Up @@ -264,6 +268,7 @@ github.com/creasty/defaults v1.7.0/go.mod h1:iGzKe6pbEHnpMPtfDXZEr0NVxWnPTjb1bbD
github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4=
github.com/danielkov/gin-helmet v0.0.0-20171108135313-1387e224435e h1:5jVSh2l/ho6ajWhSPNN84eHEdq3dp0T7+f6r3Tc6hsk=
github.com/danielkov/gin-helmet v0.0.0-20171108135313-1387e224435e/go.mod h1:IJgIiGUARc4aOr4bOQ85klmjsShkEEfiRc6q/yBSfo8=
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 h1:y5HC9v93H5EPKqaS1UYVg1uYah5Xf51mBfIoWehClUQ=
github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg=
github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand All @@ -287,6 +292,7 @@ github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8
github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g=
github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA=
github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc=
github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 h1:Izz0+t1Z5nI16/II7vuEo/nHjodOg0p7+OiDpjX5t1E=
github.com/docker/cli v20.10.17+incompatible h1:eO2KS7ZFeov5UJeaDmIs1NFEDRf32PaqRpvoEkKBy5M=
github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/docker v20.10.23+incompatible h1:1ZQUUYAdh+oylOT85aA2ZcfRp22jmLhoaEcVEfK8dyA=
Expand Down
10 changes: 5 additions & 5 deletions ethergo/backends/mocks/simulated_test_backend.go

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

10 changes: 5 additions & 5 deletions ethergo/chain/mocks/chain.go

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

46 changes: 22 additions & 24 deletions services/explorer/api/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ import (

func TestHandleJSONAmountStat(t *testing.T) {
valueString := gofakeit.Word()
// nolint
valueStruct := gqlClient.GetAmountStatistic{
Response: &struct {
Value *string `json:"value" graphql:"value"`
Value *string "json:\"value\" graphql:\"value\""
}{
Value: &valueString,
},
Expand All @@ -31,30 +30,29 @@ func TestHandleJSONAmountStat(t *testing.T) {

func TestHandleJSONDailyStat(t *testing.T) {
valueFloat := gofakeit.Float64()
// nolint
valueStruct := gqlClient.GetDailyStatisticsByChain{
Response: []*struct {
Date *string `json:"date" graphql:"date"`
Ethereum *float64 `json:"ethereum" graphql:"ethereum"`
Optimism *float64 `json:"optimism" graphql:"optimism"`
Cronos *float64 `json:"cronos" graphql:"cronos"`
Bsc *float64 `json:"bsc" graphql:"bsc"`
Polygon *float64 `json:"polygon" graphql:"polygon"`
Fantom *float64 `json:"fantom" graphql:"fantom"`
Boba *float64 `json:"boba" graphql:"boba"`
Metis *float64 `json:"metis" graphql:"metis"`
Moonbeam *float64 `json:"moonbeam" graphql:"moonbeam"`
Moonriver *float64 `json:"moonriver" graphql:"moonriver"`
Klaytn *float64 `json:"klaytn" graphql:"klaytn"`
Arbitrum *float64 `json:"arbitrum" graphql:"arbitrum"`
Avalanche *float64 `json:"avalanche" graphql:"avalanche"`
Dfk *float64 `json:"dfk" graphql:"dfk"`
Aurora *float64 `json:"aurora" graphql:"aurora"`
Harmony *float64 `json:"harmony" graphql:"harmony"`
Canto *float64 `json:"canto" graphql:"canto"`
Dogechain *float64 `json:"dogechain" graphql:"dogechain"`
Base *float64 `json:"base" graphql:"base"`
Total *float64 `json:"total" graphql:"total"`
Date *string "json:\"date\" graphql:\"date\""
Ethereum *float64 "json:\"ethereum\" graphql:\"ethereum\""
Optimism *float64 "json:\"optimism\" graphql:\"optimism\""
Cronos *float64 "json:\"cronos\" graphql:\"cronos\""
Bsc *float64 "json:\"bsc\" graphql:\"bsc\""
Polygon *float64 "json:\"polygon\" graphql:\"polygon\""
Fantom *float64 "json:\"fantom\" graphql:\"fantom\""
Boba *float64 "json:\"boba\" graphql:\"boba\""
Metis *float64 "json:\"metis\" graphql:\"metis\""
Moonbeam *float64 "json:\"moonbeam\" graphql:\"moonbeam\""
Moonriver *float64 "json:\"moonriver\" graphql:\"moonriver\""
Klaytn *float64 "json:\"klaytn\" graphql:\"klaytn\""
Arbitrum *float64 "json:\"arbitrum\" graphql:\"arbitrum\""
Avalanche *float64 "json:\"avalanche\" graphql:\"avalanche\""
Dfk *float64 "json:\"dfk\" graphql:\"dfk\""
Aurora *float64 "json:\"aurora\" graphql:\"aurora\""
Harmony *float64 "json:\"harmony\" graphql:\"harmony\""
Canto *float64 "json:\"canto\" graphql:\"canto\""
Dogechain *float64 "json:\"dogechain\" graphql:\"dogechain\""
Base *float64 "json:\"base\" graphql:\"base\""
Total *float64 "json:\"total\" graphql:\"total\""
}{
{
Total: &valueFloat,
Expand Down
Loading
Loading