contracts

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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.

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.

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.

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.

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

View Source
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

func ConnectClient(network string, websocket bool, RPCs ...string) (*ethclient.Client, error)

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 ContractAddressByNetwork(contractName, network string) (string, error)

func DeployedAddresses added in v1.5.0

func DeployedAddresses(contractName string) address

func FeeRecipient

func FeeRecipient(network string) (string, bool)

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

func NetworkSupportedByLidoWithdrawal(network string) bool

NetworkSupportedByLidoWithdrawal checks if the given network is supported by Lido

func StakingModuleID added in v1.6.0

func StakingModuleID(network string) (*big.Int, error)

func WithdrawalAddress

func WithdrawalAddress(network string) (string, bool)

WithdrawalAddress returns the withdrawal address for the given network

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL