Skip to content

Commit

Permalink
feat: adds a pointservice (#592)
Browse files Browse the repository at this point in the history
* chore: wip

* chore: wip

* chore: wip

* chore: revert the websocket changes

* feat: adds blocknumber to event production

* feat: adds more deregistrations

* feat: adds points computation

* feat: dynamically updates addresses being tracked

* feat: moves sql details to top of file

* feat: stores progress into DB

* feat: adds go clients for external contracts

* feat: ensures event raw feild is passed through

* feat: add in a wip vault slash

* feat: changes onslash dynamic to pull address too

* feat: adds graceful shutdown and context passing

* feat: adds really dumb api

* chore: use joins on errors

* chore: rename table to validator_records

* feat: improves offline routine run

* feat: use configs and update contract configs

* feat: pass in contracts as cli flag

* feat: adds mainnet flag

* chore: pass in an array of contracts

* feat: implements health check across services

* feat: adds query for a target blocknum

* feat: pulls versioned abi for vault

* chore: fix build

* chore: bump go.mod

* chore: cleanup

* chore: fix cliff

* feat: adds some testing

* chore: reverts publisher start signature

* chore: cleanup api and 10x points

* feat: completes symbiotic API

* feat: adds personal API as well

* chore: fix linter

* feat: fixes tests

* chore: nit comment change

* chore: nit changes indentation

* chore: adds more context to readme

* feat: remove 2x from 3rd month

* feat: updates test to reflect new points computation

* feat: update points curve and reduce 10x

* feat: switch mux used

* feat: adds some missing events
  • Loading branch information
ckartik authored Feb 13, 2025
1 parent 9c22b77 commit 6f82d06
Show file tree
Hide file tree
Showing 17 changed files with 9,457 additions and 37 deletions.
9 changes: 8 additions & 1 deletion bridge/standard/pkg/gwcontract/gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/primev/mev-commit/bridge/standard/pkg/gwcontract"
l1gateway "github.com/primev/mev-commit/contracts-abi/clients/L1Gateway"
"github.com/primev/mev-commit/x/contracts/events"
Expand Down Expand Up @@ -180,7 +181,13 @@ func TestGateway(t *testing.T) {
}
select {
case tr := <-tChan:
if diff := cmp.Diff(transfers[idx], tr, cmp.AllowUnexported(big.Int{})); diff != "" {

if diff := cmp.Diff(
transfers[idx],
tr,
cmpopts.IgnoreFields(l1gateway.L1gatewayTransferInitiated{}, "Raw"),
cmp.AllowUnexported(big.Int{}),
); diff != "" {
t.Errorf("unexpected transfer at index %d (-want +got):\n%s", idx, diff)
}
idx++
Expand Down
Loading

0 comments on commit 6f82d06

Please sign in to comment.