Skip to content

Commit

Permalink
feat: slashing
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsanant authored and seanmcgary committed Dec 18, 2024
1 parent e4c1ba2 commit f6c6aa0
Show file tree
Hide file tree
Showing 6 changed files with 1,847 additions and 81 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ node_modules
chart_releases
/snapshots/**/*.sql
/snapshots/**/*.csv

.env
*.sql
*.dump
.env
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ lint:
test:
./scripts/goTest.sh -v -p 1 -parallel 1 ./...

.PHONY: test-file
test-file:
@if [ -z "$(FILE)" ]; then \
echo "Error: FILE variable is not set."; \
echo "Usage: make test-file FILE=path/to/your_test_file.go"; \
exit 1; \
fi
./scripts/goTest.sh -v -p 1 -parallel 1 $(FILE)

.PHONY: staticcheck
staticcheck:
staticcheck ./...
Expand Down
3 changes: 3 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ type ContractAddresses struct {
StrategyManager string
DelegationManager string
AvsDirectory string
AllocationManager string
}

func (c *Config) GetContractsMapForChain() *ContractAddresses {
Expand All @@ -195,6 +196,7 @@ func (c *Config) GetContractsMapForChain() *ContractAddresses {
StrategyManager: "0xf9fbf2e35d8803273e214c99bf15174139f4e67a",
DelegationManager: "0x75dfe5b44c2e530568001400d3f704bc8ae350cc",
AvsDirectory: "0x141d6995556135d4997b2ff72eb443be300353bc",
AllocationManager: "0xfdd5749e11977d60850e06bf5b13221ad95eb6b4",
}
} else if c.Chain == Chain_Holesky {
return &ContractAddresses{
Expand Down Expand Up @@ -230,6 +232,7 @@ func (c *Config) GetInterestingAddressForConfigEnv() []string {
addresses.StrategyManager,
addresses.DelegationManager,
addresses.AvsDirectory,
addresses.AllocationManager,
}
}

Expand Down
35 changes: 35 additions & 0 deletions pkg/contractStore/coreContracts/preprod.json

Large diffs are not rendered by default.

Loading

0 comments on commit f6c6aa0

Please sign in to comment.