mapprotocol

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-3.0, GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbiFor

func AbiFor(name string) *abi.ABI

AbiFor returns the ABI for one of the core contracts

func BuildQuery

func BuildQuery(contract common.Address, sig EventSig, startBlock *big.Int, endBlock *big.Int) eth.FilterQuery

buildQuery constructs a query for the bridgeContract by hashing sig to get the event topic

func MustProxyAddressFor

func MustProxyAddressFor(name string) common.Address

func PackInput

func PackInput(abi *abi.ABI, abiMethod string, params ...interface{}) []byte

func ProxyAddressFor

func ProxyAddressFor(name string) (common.Address, error)

ProxyAddressFor obtains the address for a core contract proxy

Types

type EventSig

type EventSig string
const (
	//event ValidatorEpochPaymentDistributed(address indexed validator, uint256 validatorPayment);
	ValidatorEpochPaymentDistributed EventSig = "ValidatorEpochPaymentDistributed(address,uint256)"

	//event EpochRewardsDistributedToVoters(address indexed voterAddress, uint256 value);
	EpochRewardsDistributedToVoters EventSig = "EpochRewardsDistributedToVoters(address,uint256)"
)

func (EventSig) GetTopic

func (es EventSig) GetTopic() common.Hash

type ProposalStatus

type ProposalStatus int

Jump to

Keyboard shortcuts

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