contracts

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MULTICALL3_CONTRACT_ABI = `` /* 7882-byte string literal not displayed */

	K2_LENDING_CONTRACT_ABI       = `` /* 28553-byte string literal not displayed */
	K2_NODE_OPERATOR_CONTRACT_ABI = `` /* 15289-byte string literal not displayed */

	PROPOSER_REGISTRY_CONTRACT_ABI = `` /* 21200-byte string literal not displayed */

)
View Source
const (
	MULTICALL3_CONTRACT_ADDRESS = "0xcA11bde05977b3631167028862bE2a173976CA11"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateResult

type AggregateResult struct {
	BlockNumber *big.Int `json:"blockNumber"`
	ReturnData  []string `json:"returnData"`
}

type BlsPublicKeyToProposerResult

type BlsPublicKeyToProposerResult struct {
	ActivationBlock *big.Int       `json:"activationBlock"`
	ExitClaimAmount *big.Int       `json:"exitClaimAmount"`
	ExitBlock       *big.Int       `json:"exitBlock"`
	PayoutRecipient common.Address `json:"payoutRecipient"`
	Representative  common.Address `json:"representative"`
	Status          uint8          `json:"status"`
	ReportCount     uint8          `json:"reportCount"`
	OpenClaim       bool           `json:"openClaim"`
}

func (*BlsPublicKeyToProposerResult) StatusString

func (b *BlsPublicKeyToProposerResult) StatusString() string

type Call

type Call struct {
	Target   common.Address `json:"target"`
	CallData []byte         `json:"callData"`
}

type Call3

type Call3 struct {
	Target       common.Address `json:"target"`
	AllowFailure bool           `json:"allowFailure"`
	CallData     []byte         `json:"callData"`
}

type Call3Value

type Call3Value struct {
	Target       common.Address `json:"target"`
	AllowFailure bool           `json:"allowFailure"`
	Value        *big.Int       `json:"value"`
	CallData     []byte         `json:"callData"`
}

type Multicall3AggregateArgs

type Multicall3AggregateArgs struct {
	Calls []Call3 `json:"calls"`
}

type Multicall3AggregateResult

type Multicall3AggregateResult struct {
	ReturnData []Result `json:"returnData"`
}

type Multicall3AggregateValueResult

type Multicall3AggregateValueResult struct {
	ReturnData []Result `json:"returnData"`
}

type Multicall3BlockAndAggregateArgs

type Multicall3BlockAndAggregateArgs struct {
	Calls []Call3 `json:"calls"`
}

type Multicall3BlockAndAggregateResult

type Multicall3BlockAndAggregateResult struct {
	BlockNumber *big.Int `json:"blockNumber"`
	BlockHash   string   `json:"blockHash"`
	ReturnData  []Result `json:"returnData"`
}

type MulticallArgs

type MulticallArgs struct {
	Calls []Call `json:"calls"`
}

type Result

type Result struct {
	Success    bool   `json:"success"`
	ReturnData []byte `json:"returnData"`
}

Jump to

Keyboard shortcuts

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