-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Smart Contracts logic for Lido (#386)
* feat: add MevBoostRelayAllowedList contract and code * feat: add StakingRouter contract and code * feat: add contracts go files to package "lido" * feat: apply changes to go.sum and go.mod * feat: adjust packages for contracts * fix: adjust formatting in MEVBoostRelayAllowedList.go * fix: update go.mod and go.sum * test: create MEVBoostrelayAllowedList_test.go * feat: update go.mod, go.sum * style: adjust formatting * feat: move lido package to internal package * feat: add feeRecipient addresses for each network * feat: adjust MEVBoostRelayAllowedList_test.go for method GetRelays * style: add comments to GetRelays method * feat: separate test and logic methods * feat: put expectedRelays in .yaml file * style: rename files, adjust formatting and add comments * feat: import configs package * feat: add public rpcs to configs and create method GetPublicRPCs * style: adjust formatting
- Loading branch information
1 parent
1f75887
commit 870874f
Showing
14 changed files
with
6,190 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package configs | ||
|
||
type RPC struct { | ||
NetworkName string | ||
PublicRPCs []string | ||
} | ||
|
||
var networkRPCs = map[string]RPC{ | ||
NetworkMainnet: { | ||
NetworkName: NetworkMainnet, | ||
PublicRPCs: []string{ | ||
"https://eth.llamarpc.com", | ||
"https://eth-pokt.nodies.app", | ||
"https://rpc.mevblocker.io", | ||
"https://ethereum-rpc.publicnode.com", | ||
"https://rpc.flashbots.net", | ||
}, | ||
}, | ||
NetworkHolesky: { | ||
NetworkName: NetworkHolesky, | ||
PublicRPCs: []string{ | ||
"https://1rpc.io/holesky", | ||
"https://holesky.drpc.org", | ||
"https://ethereum-holesky-rpc.publicnode.com", | ||
"https://endpoints.omniatech.io/v1/eth/holesky/public", | ||
"https://ethereum-holesky.blockpi.network/v1/rpc/public", | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.