Documentation ¶
Overview ¶
Copyright 2022 Nethermind
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Nethermind ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Nethermind ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Nethermind ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Nethermind ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func ConnectClient(network string, websocket bool, RPCs ...string) (*ethclient.Client, error)
- func ContractAddressByNetwork(contractName, network string) (string, error)
- func DeployedAddresses(contractName string) address
- func FeeRecipient(network string) (string, bool)
- func LidoSupportedNetworks() []string
- func LidoWithdrawalSupportedNetworks() []string
- func NetworkSupportedByLidoWithdrawal(network string) bool
- func StakingModuleID(network string) (*big.Int, error)
- func WithdrawalAddress(network string) (string, bool)
Constants ¶
const ( // Contract names CSModule = "csmodule" CSAccounting = "csaccounting" CSFeeDistributor = "csfeedistributor" MEVBoostRelayAllowedList = "mevboostrelayallowedlist" Vebo = "vebo" )
Variables ¶
This section is empty.
Functions ¶
func ConnectClient ¶ added in v1.5.0
ConnectClient returns a new Ethereum client connected to the given network. If websocket is true, it will try to connect to the first available WS RPC. If websocket is false, it will try to connect to the first available HTTP RPC. If no RPCs are provided, it will use the public RPCs or WSs for the given network. The RPCs are shuffled to avoid the same RPC being used by multiple clients.
func ContractAddressByNetwork ¶ added in v1.5.0
func DeployedAddresses ¶ added in v1.5.0
func DeployedAddresses(contractName string) address
func FeeRecipient ¶
FeeRecipient returns the fee recipient address for the given network
func LidoSupportedNetworks ¶
func LidoSupportedNetworks() []string
LidoSupportedNetworks returns the supported networks for Lido
func LidoWithdrawalSupportedNetworks ¶
func LidoWithdrawalSupportedNetworks() []string
LidoWithdrawalSupportedNetworks returns the supported networks for Lido withdrawal
func NetworkSupportedByLidoWithdrawal ¶
NetworkSupportedByLidoWithdrawal checks if the given network is supported by Lido
func WithdrawalAddress ¶
WithdrawalAddress returns the withdrawal address for the given network
Types ¶
This section is empty.