contractsapi

package
v0.0.0-...-f672fcd Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated by scapi/gen. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	// core-contracts smart contracts
	CheckpointManager               *artifact.Artifact
	ExitHelper                      *artifact.Artifact
	StateSender                     *artifact.Artifact
	RootERC20Predicate              *artifact.Artifact
	RootERC721Predicate             *artifact.Artifact
	RootERC1155Predicate            *artifact.Artifact
	ChildMintableERC20Predicate     *artifact.Artifact
	ChildMintableERC721Predicate    *artifact.Artifact
	ChildMintableERC1155Predicate   *artifact.Artifact
	BLS                             *artifact.Artifact
	BLS256                          *artifact.Artifact
	System                          *artifact.Artifact
	Merkle                          *artifact.Artifact
	ChildValidatorSet               *artifact.Artifact
	NativeERC20                     *artifact.Artifact
	NativeERC20Mintable             *artifact.Artifact
	StateReceiver                   *artifact.Artifact
	ChildERC20                      *artifact.Artifact
	ChildERC20Predicate             *artifact.Artifact
	ChildERC20PredicateACL          *artifact.Artifact
	RootMintableERC20Predicate      *artifact.Artifact
	RootMintableERC20PredicateACL   *artifact.Artifact
	ChildERC721                     *artifact.Artifact
	ChildERC721Predicate            *artifact.Artifact
	ChildERC721PredicateACL         *artifact.Artifact
	RootMintableERC721Predicate     *artifact.Artifact
	RootMintableERC721PredicateACL  *artifact.Artifact
	ChildERC1155                    *artifact.Artifact
	ChildERC1155Predicate           *artifact.Artifact
	ChildERC1155PredicateACL        *artifact.Artifact
	RootMintableERC1155Predicate    *artifact.Artifact
	RootMintableERC1155PredicateACL *artifact.Artifact
	L2StateSender                   *artifact.Artifact
	CustomSupernetManager           *artifact.Artifact
	StakeManager                    *artifact.Artifact
	RewardPool                      *artifact.Artifact
	ValidatorSet                    *artifact.Artifact
	RootERC721                      *artifact.Artifact
	RootERC1155                     *artifact.Artifact
	EIP1559Burn                     *artifact.Artifact

	TestWriteBlockMetadata *artifact.Artifact
	RootERC20              *artifact.Artifact
	TestSimple             *artifact.Artifact
	TestRewardToken        *artifact.Artifact
)
View Source
var BLSArtifact string = "" /* 53425-byte string literal not displayed */
View Source
var BN256G2Artifact string = "" /* 19182-byte string literal not displayed */
View Source
var CheckpointABIType = abi.MustNewType("tuple(uint256 epoch,uint256 blockNumber,bytes32 eventRoot)")
View Source
var CheckpointManagerArtifact string = "" /* 35019-byte string literal not displayed */
View Source
var CheckpointMetadataABIType = abi.MustNewType("tuple(bytes32 blockHash,uint256 blockRound,bytes32 currentValidatorSetHash)")
View Source
var ChildERC1155Artifact string = "" /* 59011-byte string literal not displayed */
View Source
var ChildERC1155PredicateACLArtifact string = "" /* 60871-byte string literal not displayed */
View Source
var ChildERC1155PredicateArtifact string = "" /* 48179-byte string literal not displayed */
View Source
var ChildERC20Artifact string = "" /* 37486-byte string literal not displayed */
View Source
var ChildERC20PredicateACLArtifact string = "" /* 45377-byte string literal not displayed */
View Source
var ChildERC20PredicateArtifact string = "" /* 32491-byte string literal not displayed */
View Source
var ChildERC721Artifact string = "" /* 51693-byte string literal not displayed */
View Source
var ChildERC721PredicateACLArtifact string = "" /* 59291-byte string literal not displayed */
View Source
var ChildERC721PredicateArtifact string = "" /* 46616-byte string literal not displayed */
View Source
var ChildMintableERC1155PredicateArtifact string = "" /* 44430-byte string literal not displayed */
View Source
var ChildMintableERC20PredicateArtifact string = "" /* 28204-byte string literal not displayed */
View Source
var ChildMintableERC721PredicateArtifact string = "" /* 42871-byte string literal not displayed */
View Source
var CustomSupernetManagerArtifact string = "" /* 46048-byte string literal not displayed */
View Source
var EIP1559BurnArtifact string = "" /* 6708-byte string literal not displayed */
View Source
var EpochABIType = abi.MustNewType("tuple(uint256 startBlock,uint256 endBlock,bytes32 epochRoot)")
View Source
var ExitHelperArtifact string = "" /* 15688-byte string literal not displayed */
View Source
var (

	// GetCheckpointBlockABIResponse is the ABI type for getCheckpointBlock function return value
	GetCheckpointBlockABIResponse = abi.MustNewType("tuple(bool isFound, uint256 checkpointBlock)")
)
View Source
var L2StateSenderArtifact string = "" /* 4791-byte string literal not displayed */

This is auto-generated file. DO NOT EDIT.

View Source
var MerkleArtifact string = "" /* 719-byte string literal not displayed */
View Source
var MockERC1155Artifact string = "" /* 61067-byte string literal not displayed */
View Source
var MockERC20Artifact string = "" /* 41917-byte string literal not displayed */
View Source
var MockERC721Artifact string = "" /* 56418-byte string literal not displayed */
View Source
var NativeERC20Artifact string = "" /* 31207-byte string literal not displayed */
View Source
var NativeERC20MintableArtifact string = "" /* 36809-byte string literal not displayed */
View Source
var RewardPoolArtifact string = "" /* 23151-byte string literal not displayed */
View Source
var RootERC1155PredicateArtifact string = "" /* 43437-byte string literal not displayed */
View Source
var RootERC20PredicateArtifact string = "" /* 28772-byte string literal not displayed */
View Source
var RootERC721PredicateArtifact string = "" /* 38377-byte string literal not displayed */
View Source
var RootMintableERC1155PredicateACLArtifact string = "" /* 60319-byte string literal not displayed */
View Source
var RootMintableERC1155PredicateArtifact string = "" /* 43700-byte string literal not displayed */
View Source
var RootMintableERC20PredicateACLArtifact string = "" /* 44997-byte string literal not displayed */
View Source
var RootMintableERC20PredicateArtifact string = "" /* 32546-byte string literal not displayed */
View Source
var RootMintableERC721PredicateACLArtifact string = "" /* 55354-byte string literal not displayed */
View Source
var RootMintableERC721PredicateArtifact string = "" /* 42622-byte string literal not displayed */
View Source
var StakeManagerArtifact string = "" /* 25058-byte string literal not displayed */
View Source
var StateReceiverArtifact string = "" /* 32484-byte string literal not displayed */
View Source
var StateSenderArtifact string = "" /* 4784-byte string literal not displayed */
View Source
var StateSyncABIType = abi.MustNewType("tuple(uint256 id,address sender,address receiver,bytes data)")
View Source
var StateSyncCommitmentABIType = abi.MustNewType("tuple(uint256 startId,uint256 endId,bytes32 root)")
View Source
var SystemArtifact string = "" /* 4483-byte string literal not displayed */
View Source
var UptimeABIType = abi.MustNewType("tuple(address validator,uint256 signedBlocks)")
View Source
var ValidatorABIType = abi.MustNewType("tuple(address _address,uint256[4] blsKey,uint256 votingPower)")
View Source
var ValidatorInitABIType = abi.MustNewType("tuple(address addr,uint256 stake)")
View Source
var ValidatorSetArtifact string = "" /* 54234-byte string literal not displayed */

Functions

This section is empty.

Types

type AddedToWhitelistEvent

type AddedToWhitelistEvent struct {
	Validator types.Address `abi:"validator"`
}

func (*AddedToWhitelistEvent) Encode

func (*AddedToWhitelistEvent) Encode(inputs interface{}) ([]byte, error)

func (*AddedToWhitelistEvent) ParseLog

func (a *AddedToWhitelistEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*AddedToWhitelistEvent) Sig

type ApproveRootERC20Fn

type ApproveRootERC20Fn struct {
	Spender types.Address `abi:"spender"`
	Amount  *big.Int      `abi:"amount"`
}

func (*ApproveRootERC20Fn) DecodeAbi

func (a *ApproveRootERC20Fn) DecodeAbi(buf []byte) error

func (*ApproveRootERC20Fn) EncodeAbi

func (a *ApproveRootERC20Fn) EncodeAbi() ([]byte, error)

func (*ApproveRootERC20Fn) Sig

func (a *ApproveRootERC20Fn) Sig() []byte

type BalanceOfChildERC1155Fn

type BalanceOfChildERC1155Fn struct {
	Account types.Address `abi:"account"`
	ID      *big.Int      `abi:"id"`
}

func (*BalanceOfChildERC1155Fn) DecodeAbi

func (b *BalanceOfChildERC1155Fn) DecodeAbi(buf []byte) error

func (*BalanceOfChildERC1155Fn) EncodeAbi

func (b *BalanceOfChildERC1155Fn) EncodeAbi() ([]byte, error)

func (*BalanceOfChildERC1155Fn) Sig

func (b *BalanceOfChildERC1155Fn) Sig() []byte

type BalanceOfRootERC1155Fn

type BalanceOfRootERC1155Fn struct {
	Account types.Address `abi:"account"`
	ID      *big.Int      `abi:"id"`
}

func (*BalanceOfRootERC1155Fn) DecodeAbi

func (b *BalanceOfRootERC1155Fn) DecodeAbi(buf []byte) error

func (*BalanceOfRootERC1155Fn) EncodeAbi

func (b *BalanceOfRootERC1155Fn) EncodeAbi() ([]byte, error)

func (*BalanceOfRootERC1155Fn) Sig

func (b *BalanceOfRootERC1155Fn) Sig() []byte

type BalanceOfRootERC20Fn

type BalanceOfRootERC20Fn struct {
	Account types.Address `abi:"account"`
}

func (*BalanceOfRootERC20Fn) DecodeAbi

func (b *BalanceOfRootERC20Fn) DecodeAbi(buf []byte) error

func (*BalanceOfRootERC20Fn) EncodeAbi

func (b *BalanceOfRootERC20Fn) EncodeAbi() ([]byte, error)

func (*BalanceOfRootERC20Fn) Sig

func (b *BalanceOfRootERC20Fn) Sig() []byte

type Checkpoint

type Checkpoint struct {
	Epoch       *big.Int   `abi:"epoch"`
	BlockNumber *big.Int   `abi:"blockNumber"`
	EventRoot   types.Hash `abi:"eventRoot"`
}

func (*Checkpoint) DecodeAbi

func (c *Checkpoint) DecodeAbi(buf []byte) error

func (*Checkpoint) EncodeAbi

func (c *Checkpoint) EncodeAbi() ([]byte, error)

type CheckpointMetadata

type CheckpointMetadata struct {
	BlockHash               types.Hash `abi:"blockHash"`
	BlockRound              *big.Int   `abi:"blockRound"`
	CurrentValidatorSetHash types.Hash `abi:"currentValidatorSetHash"`
}

func (*CheckpointMetadata) DecodeAbi

func (c *CheckpointMetadata) DecodeAbi(buf []byte) error

func (*CheckpointMetadata) EncodeAbi

func (c *CheckpointMetadata) EncodeAbi() ([]byte, error)

type ChildManagerRegisteredEvent

type ChildManagerRegisteredEvent struct {
	ID      *big.Int      `abi:"id"`
	Manager types.Address `abi:"manager"`
}

func (*ChildManagerRegisteredEvent) Encode

func (*ChildManagerRegisteredEvent) Encode(inputs interface{}) ([]byte, error)

func (*ChildManagerRegisteredEvent) ParseLog

func (c *ChildManagerRegisteredEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*ChildManagerRegisteredEvent) Sig

type CommitEpochValidatorSetFn

type CommitEpochValidatorSetFn struct {
	ID    *big.Int `abi:"id"`
	Epoch *Epoch   `abi:"epoch"`
}

func (*CommitEpochValidatorSetFn) DecodeAbi

func (c *CommitEpochValidatorSetFn) DecodeAbi(buf []byte) error

func (*CommitEpochValidatorSetFn) EncodeAbi

func (c *CommitEpochValidatorSetFn) EncodeAbi() ([]byte, error)

func (*CommitEpochValidatorSetFn) Sig

func (c *CommitEpochValidatorSetFn) Sig() []byte

type CommitStateReceiverFn

type CommitStateReceiverFn struct {
	Commitment *StateSyncCommitment `abi:"commitment"`
	Signature  []byte               `abi:"signature"`
	Bitmap     []byte               `abi:"bitmap"`
}

func (*CommitStateReceiverFn) DecodeAbi

func (c *CommitStateReceiverFn) DecodeAbi(buf []byte) error

func (*CommitStateReceiverFn) EncodeAbi

func (c *CommitStateReceiverFn) EncodeAbi() ([]byte, error)

func (*CommitStateReceiverFn) Sig

func (c *CommitStateReceiverFn) Sig() []byte

type DepositBatchRootERC1155PredicateFn

type DepositBatchRootERC1155PredicateFn struct {
	RootToken types.Address   `abi:"rootToken"`
	Receivers []ethgo.Address `abi:"receivers"`
	TokenIDs  []*big.Int      `abi:"tokenIds"`
	Amounts   []*big.Int      `abi:"amounts"`
}

func (*DepositBatchRootERC1155PredicateFn) DecodeAbi

func (d *DepositBatchRootERC1155PredicateFn) DecodeAbi(buf []byte) error

func (*DepositBatchRootERC1155PredicateFn) EncodeAbi

func (d *DepositBatchRootERC1155PredicateFn) EncodeAbi() ([]byte, error)

func (*DepositBatchRootERC1155PredicateFn) Sig

type DepositBatchRootERC721PredicateFn

type DepositBatchRootERC721PredicateFn struct {
	RootToken types.Address   `abi:"rootToken"`
	Receivers []ethgo.Address `abi:"receivers"`
	TokenIDs  []*big.Int      `abi:"tokenIds"`
}

func (*DepositBatchRootERC721PredicateFn) DecodeAbi

func (d *DepositBatchRootERC721PredicateFn) DecodeAbi(buf []byte) error

func (*DepositBatchRootERC721PredicateFn) EncodeAbi

func (d *DepositBatchRootERC721PredicateFn) EncodeAbi() ([]byte, error)

func (*DepositBatchRootERC721PredicateFn) Sig

type DepositToRootERC20PredicateFn

type DepositToRootERC20PredicateFn struct {
	RootToken types.Address `abi:"rootToken"`
	Receiver  types.Address `abi:"receiver"`
	Amount    *big.Int      `abi:"amount"`
}

func (*DepositToRootERC20PredicateFn) DecodeAbi

func (d *DepositToRootERC20PredicateFn) DecodeAbi(buf []byte) error

func (*DepositToRootERC20PredicateFn) EncodeAbi

func (d *DepositToRootERC20PredicateFn) EncodeAbi() ([]byte, error)

func (*DepositToRootERC20PredicateFn) Sig

type DistributeRewardForRewardPoolFn

type DistributeRewardForRewardPoolFn struct {
	EpochID *big.Int  `abi:"epochId"`
	Uptime  []*Uptime `abi:"uptime"`
}

func (*DistributeRewardForRewardPoolFn) DecodeAbi

func (d *DistributeRewardForRewardPoolFn) DecodeAbi(buf []byte) error

func (*DistributeRewardForRewardPoolFn) EncodeAbi

func (d *DistributeRewardForRewardPoolFn) EncodeAbi() ([]byte, error)

func (*DistributeRewardForRewardPoolFn) Sig

type Epoch

type Epoch struct {
	StartBlock *big.Int   `abi:"startBlock"`
	EndBlock   *big.Int   `abi:"endBlock"`
	EpochRoot  types.Hash `abi:"epochRoot"`
}

func (*Epoch) DecodeAbi

func (e *Epoch) DecodeAbi(buf []byte) error

func (*Epoch) EncodeAbi

func (e *Epoch) EncodeAbi() ([]byte, error)

type EventAbi

type EventAbi interface {
	// Sig returns the event ABI signature or ID (which is unique for all event types)
	Sig() ethgo.Hash
	// Encode does abi encoding of given event
	Encode(inputs interface{}) ([]byte, error)
	// ParseLog parses the provided receipt log to given event type
	ParseLog(log *ethgo.Log) (bool, error)
}

EventAbi is an interface representing an event generated in contractsapi

type ExecuteStateReceiverFn

type ExecuteStateReceiverFn struct {
	Proof []types.Hash `abi:"proof"`
	Obj   *StateSync   `abi:"obj"`
}

func (*ExecuteStateReceiverFn) DecodeAbi

func (e *ExecuteStateReceiverFn) DecodeAbi(buf []byte) error

func (*ExecuteStateReceiverFn) EncodeAbi

func (e *ExecuteStateReceiverFn) EncodeAbi() ([]byte, error)

func (*ExecuteStateReceiverFn) Sig

func (e *ExecuteStateReceiverFn) Sig() []byte

type ExitExitHelperFn

type ExitExitHelperFn struct {
	BlockNumber  *big.Int     `abi:"blockNumber"`
	LeafIndex    *big.Int     `abi:"leafIndex"`
	UnhashedLeaf []byte       `abi:"unhashedLeaf"`
	Proof        []types.Hash `abi:"proof"`
}

func (*ExitExitHelperFn) DecodeAbi

func (e *ExitExitHelperFn) DecodeAbi(buf []byte) error

func (*ExitExitHelperFn) EncodeAbi

func (e *ExitExitHelperFn) EncodeAbi() ([]byte, error)

func (*ExitExitHelperFn) Sig

func (e *ExitExitHelperFn) Sig() []byte

type GetCheckpointBlockCheckpointManagerFn

type GetCheckpointBlockCheckpointManagerFn struct {
	BlockNumber *big.Int `abi:"blockNumber"`
}

func (*GetCheckpointBlockCheckpointManagerFn) DecodeAbi

func (g *GetCheckpointBlockCheckpointManagerFn) DecodeAbi(buf []byte) error

func (*GetCheckpointBlockCheckpointManagerFn) EncodeAbi

func (g *GetCheckpointBlockCheckpointManagerFn) EncodeAbi() ([]byte, error)

func (*GetCheckpointBlockCheckpointManagerFn) Sig

type GetValidatorCustomSupernetManagerFn

type GetValidatorCustomSupernetManagerFn struct {
	Validator_ types.Address `abi:"validator_"`
}

func (*GetValidatorCustomSupernetManagerFn) DecodeAbi

func (g *GetValidatorCustomSupernetManagerFn) DecodeAbi(buf []byte) error

func (*GetValidatorCustomSupernetManagerFn) EncodeAbi

func (g *GetValidatorCustomSupernetManagerFn) EncodeAbi() ([]byte, error)

func (*GetValidatorCustomSupernetManagerFn) Sig

type InitializeCheckpointManagerFn

type InitializeCheckpointManagerFn struct {
	NewBls          types.Address `abi:"newBls"`
	NewBn256G2      types.Address `abi:"newBn256G2"`
	ChainID_        *big.Int      `abi:"chainId_"`
	NewValidatorSet []*Validator  `abi:"newValidatorSet"`
}

func (*InitializeCheckpointManagerFn) DecodeAbi

func (i *InitializeCheckpointManagerFn) DecodeAbi(buf []byte) error

func (*InitializeCheckpointManagerFn) EncodeAbi

func (i *InitializeCheckpointManagerFn) EncodeAbi() ([]byte, error)

func (*InitializeCheckpointManagerFn) Sig

type InitializeChildERC1155Fn

type InitializeChildERC1155Fn struct {
	RootToken_ types.Address `abi:"rootToken_"`
	Uri_       string        `abi:"uri_"`
}

func (*InitializeChildERC1155Fn) DecodeAbi

func (i *InitializeChildERC1155Fn) DecodeAbi(buf []byte) error

func (*InitializeChildERC1155Fn) EncodeAbi

func (i *InitializeChildERC1155Fn) EncodeAbi() ([]byte, error)

func (*InitializeChildERC1155Fn) Sig

func (i *InitializeChildERC1155Fn) Sig() []byte

type InitializeChildERC1155PredicateACLFn

type InitializeChildERC1155PredicateACLFn struct {
	NewL2StateSender        types.Address `abi:"newL2StateSender"`
	NewStateReceiver        types.Address `abi:"newStateReceiver"`
	NewRootERC1155Predicate types.Address `abi:"newRootERC1155Predicate"`
	NewChildTokenTemplate   types.Address `abi:"newChildTokenTemplate"`
	NewUseAllowList         bool          `abi:"newUseAllowList"`
	NewUseBlockList         bool          `abi:"newUseBlockList"`
	NewOwner                types.Address `abi:"newOwner"`
}

func (*InitializeChildERC1155PredicateACLFn) DecodeAbi

func (i *InitializeChildERC1155PredicateACLFn) DecodeAbi(buf []byte) error

func (*InitializeChildERC1155PredicateACLFn) EncodeAbi

func (i *InitializeChildERC1155PredicateACLFn) EncodeAbi() ([]byte, error)

func (*InitializeChildERC1155PredicateACLFn) Sig

type InitializeChildERC1155PredicateFn

type InitializeChildERC1155PredicateFn struct {
	NewL2StateSender        types.Address `abi:"newL2StateSender"`
	NewStateReceiver        types.Address `abi:"newStateReceiver"`
	NewRootERC1155Predicate types.Address `abi:"newRootERC1155Predicate"`
	NewChildTokenTemplate   types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeChildERC1155PredicateFn) DecodeAbi

func (i *InitializeChildERC1155PredicateFn) DecodeAbi(buf []byte) error

func (*InitializeChildERC1155PredicateFn) EncodeAbi

func (i *InitializeChildERC1155PredicateFn) EncodeAbi() ([]byte, error)

func (*InitializeChildERC1155PredicateFn) Sig

type InitializeChildERC20PredicateACLFn

type InitializeChildERC20PredicateACLFn struct {
	NewL2StateSender          types.Address `abi:"newL2StateSender"`
	NewStateReceiver          types.Address `abi:"newStateReceiver"`
	NewRootERC20Predicate     types.Address `abi:"newRootERC20Predicate"`
	NewChildTokenTemplate     types.Address `abi:"newChildTokenTemplate"`
	NewNativeTokenRootAddress types.Address `abi:"newNativeTokenRootAddress"`
	NewUseAllowList           bool          `abi:"newUseAllowList"`
	NewUseBlockList           bool          `abi:"newUseBlockList"`
	NewOwner                  types.Address `abi:"newOwner"`
}

func (*InitializeChildERC20PredicateACLFn) DecodeAbi

func (i *InitializeChildERC20PredicateACLFn) DecodeAbi(buf []byte) error

func (*InitializeChildERC20PredicateACLFn) EncodeAbi

func (i *InitializeChildERC20PredicateACLFn) EncodeAbi() ([]byte, error)

func (*InitializeChildERC20PredicateACLFn) Sig

type InitializeChildERC20PredicateFn

type InitializeChildERC20PredicateFn struct {
	NewL2StateSender          types.Address `abi:"newL2StateSender"`
	NewStateReceiver          types.Address `abi:"newStateReceiver"`
	NewRootERC20Predicate     types.Address `abi:"newRootERC20Predicate"`
	NewChildTokenTemplate     types.Address `abi:"newChildTokenTemplate"`
	NewNativeTokenRootAddress types.Address `abi:"newNativeTokenRootAddress"`
}

func (*InitializeChildERC20PredicateFn) DecodeAbi

func (i *InitializeChildERC20PredicateFn) DecodeAbi(buf []byte) error

func (*InitializeChildERC20PredicateFn) EncodeAbi

func (i *InitializeChildERC20PredicateFn) EncodeAbi() ([]byte, error)

func (*InitializeChildERC20PredicateFn) Sig

type InitializeChildERC721Fn

type InitializeChildERC721Fn struct {
	RootToken_ types.Address `abi:"rootToken_"`
	Name_      string        `abi:"name_"`
	Symbol_    string        `abi:"symbol_"`
}

func (*InitializeChildERC721Fn) DecodeAbi

func (i *InitializeChildERC721Fn) DecodeAbi(buf []byte) error

func (*InitializeChildERC721Fn) EncodeAbi

func (i *InitializeChildERC721Fn) EncodeAbi() ([]byte, error)

func (*InitializeChildERC721Fn) Sig

func (i *InitializeChildERC721Fn) Sig() []byte

type InitializeChildERC721PredicateACLFn

type InitializeChildERC721PredicateACLFn struct {
	NewL2StateSender       types.Address `abi:"newL2StateSender"`
	NewStateReceiver       types.Address `abi:"newStateReceiver"`
	NewRootERC721Predicate types.Address `abi:"newRootERC721Predicate"`
	NewChildTokenTemplate  types.Address `abi:"newChildTokenTemplate"`
	NewUseAllowList        bool          `abi:"newUseAllowList"`
	NewUseBlockList        bool          `abi:"newUseBlockList"`
	NewOwner               types.Address `abi:"newOwner"`
}

func (*InitializeChildERC721PredicateACLFn) DecodeAbi

func (i *InitializeChildERC721PredicateACLFn) DecodeAbi(buf []byte) error

func (*InitializeChildERC721PredicateACLFn) EncodeAbi

func (i *InitializeChildERC721PredicateACLFn) EncodeAbi() ([]byte, error)

func (*InitializeChildERC721PredicateACLFn) Sig

type InitializeChildERC721PredicateFn

type InitializeChildERC721PredicateFn struct {
	NewL2StateSender       types.Address `abi:"newL2StateSender"`
	NewStateReceiver       types.Address `abi:"newStateReceiver"`
	NewRootERC721Predicate types.Address `abi:"newRootERC721Predicate"`
	NewChildTokenTemplate  types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeChildERC721PredicateFn) DecodeAbi

func (i *InitializeChildERC721PredicateFn) DecodeAbi(buf []byte) error

func (*InitializeChildERC721PredicateFn) EncodeAbi

func (i *InitializeChildERC721PredicateFn) EncodeAbi() ([]byte, error)

func (*InitializeChildERC721PredicateFn) Sig

type InitializeChildMintableERC1155PredicateFn

type InitializeChildMintableERC1155PredicateFn struct {
	NewStateSender          types.Address `abi:"newStateSender"`
	NewExitHelper           types.Address `abi:"newExitHelper"`
	NewRootERC1155Predicate types.Address `abi:"newRootERC1155Predicate"`
	NewChildTokenTemplate   types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeChildMintableERC1155PredicateFn) DecodeAbi

func (*InitializeChildMintableERC1155PredicateFn) EncodeAbi

func (*InitializeChildMintableERC1155PredicateFn) Sig

type InitializeChildMintableERC20PredicateFn

type InitializeChildMintableERC20PredicateFn struct {
	NewStateSender        types.Address `abi:"newStateSender"`
	NewExitHelper         types.Address `abi:"newExitHelper"`
	NewRootERC20Predicate types.Address `abi:"newRootERC20Predicate"`
	NewChildTokenTemplate types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeChildMintableERC20PredicateFn) DecodeAbi

func (*InitializeChildMintableERC20PredicateFn) EncodeAbi

func (*InitializeChildMintableERC20PredicateFn) Sig

type InitializeChildMintableERC721PredicateFn

type InitializeChildMintableERC721PredicateFn struct {
	NewStateSender         types.Address `abi:"newStateSender"`
	NewExitHelper          types.Address `abi:"newExitHelper"`
	NewRootERC721Predicate types.Address `abi:"newRootERC721Predicate"`
	NewChildTokenTemplate  types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeChildMintableERC721PredicateFn) DecodeAbi

func (*InitializeChildMintableERC721PredicateFn) EncodeAbi

func (*InitializeChildMintableERC721PredicateFn) Sig

type InitializeCustomSupernetManagerFn

type InitializeCustomSupernetManagerFn struct {
	NewStakeManager      types.Address `abi:"newStakeManager"`
	NewBls               types.Address `abi:"newBls"`
	NewStateSender       types.Address `abi:"newStateSender"`
	NewMatic             types.Address `abi:"newMatic"`
	NewChildValidatorSet types.Address `abi:"newChildValidatorSet"`
	NewExitHelper        types.Address `abi:"newExitHelper"`
	NewDomain            string        `abi:"newDomain"`
}

func (*InitializeCustomSupernetManagerFn) DecodeAbi

func (i *InitializeCustomSupernetManagerFn) DecodeAbi(buf []byte) error

func (*InitializeCustomSupernetManagerFn) EncodeAbi

func (i *InitializeCustomSupernetManagerFn) EncodeAbi() ([]byte, error)

func (*InitializeCustomSupernetManagerFn) Sig

type InitializeEIP1559BurnFn

type InitializeEIP1559BurnFn struct {
	NewChildERC20Predicate types.Address `abi:"newChildERC20Predicate"`
	NewBurnDestination     types.Address `abi:"newBurnDestination"`
}

func (*InitializeEIP1559BurnFn) DecodeAbi

func (i *InitializeEIP1559BurnFn) DecodeAbi(buf []byte) error

func (*InitializeEIP1559BurnFn) EncodeAbi

func (i *InitializeEIP1559BurnFn) EncodeAbi() ([]byte, error)

func (*InitializeEIP1559BurnFn) Sig

func (i *InitializeEIP1559BurnFn) Sig() []byte

type InitializeExitHelperFn

type InitializeExitHelperFn struct {
	NewCheckpointManager types.Address `abi:"newCheckpointManager"`
}

func (*InitializeExitHelperFn) DecodeAbi

func (i *InitializeExitHelperFn) DecodeAbi(buf []byte) error

func (*InitializeExitHelperFn) EncodeAbi

func (i *InitializeExitHelperFn) EncodeAbi() ([]byte, error)

func (*InitializeExitHelperFn) Sig

func (i *InitializeExitHelperFn) Sig() []byte

type InitializeNativeERC20Fn

type InitializeNativeERC20Fn struct {
	Predicate_   types.Address `abi:"predicate_"`
	RootToken_   types.Address `abi:"rootToken_"`
	Name_        string        `abi:"name_"`
	Symbol_      string        `abi:"symbol_"`
	Decimals_    uint8         `abi:"decimals_"`
	TokenSupply_ *big.Int      `abi:"tokenSupply_"`
}

func (*InitializeNativeERC20Fn) DecodeAbi

func (i *InitializeNativeERC20Fn) DecodeAbi(buf []byte) error

func (*InitializeNativeERC20Fn) EncodeAbi

func (i *InitializeNativeERC20Fn) EncodeAbi() ([]byte, error)

func (*InitializeNativeERC20Fn) Sig

func (i *InitializeNativeERC20Fn) Sig() []byte

type InitializeNativeERC20MintableFn

type InitializeNativeERC20MintableFn struct {
	Predicate_   types.Address `abi:"predicate_"`
	Owner_       types.Address `abi:"owner_"`
	RootToken_   types.Address `abi:"rootToken_"`
	Name_        string        `abi:"name_"`
	Symbol_      string        `abi:"symbol_"`
	Decimals_    uint8         `abi:"decimals_"`
	TokenSupply_ *big.Int      `abi:"tokenSupply_"`
}

func (*InitializeNativeERC20MintableFn) DecodeAbi

func (i *InitializeNativeERC20MintableFn) DecodeAbi(buf []byte) error

func (*InitializeNativeERC20MintableFn) EncodeAbi

func (i *InitializeNativeERC20MintableFn) EncodeAbi() ([]byte, error)

func (*InitializeNativeERC20MintableFn) Sig

type InitializeRewardPoolFn

type InitializeRewardPoolFn struct {
	NewRewardToken  types.Address `abi:"newRewardToken"`
	NewRewardWallet types.Address `abi:"newRewardWallet"`
	NewValidatorSet types.Address `abi:"newValidatorSet"`
	NewBaseReward   *big.Int      `abi:"newBaseReward"`
}

func (*InitializeRewardPoolFn) DecodeAbi

func (i *InitializeRewardPoolFn) DecodeAbi(buf []byte) error

func (*InitializeRewardPoolFn) EncodeAbi

func (i *InitializeRewardPoolFn) EncodeAbi() ([]byte, error)

func (*InitializeRewardPoolFn) Sig

func (i *InitializeRewardPoolFn) Sig() []byte

type InitializeRootERC1155PredicateFn

type InitializeRootERC1155PredicateFn struct {
	NewStateSender           types.Address `abi:"newStateSender"`
	NewExitHelper            types.Address `abi:"newExitHelper"`
	NewChildERC1155Predicate types.Address `abi:"newChildERC1155Predicate"`
	NewChildTokenTemplate    types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeRootERC1155PredicateFn) DecodeAbi

func (i *InitializeRootERC1155PredicateFn) DecodeAbi(buf []byte) error

func (*InitializeRootERC1155PredicateFn) EncodeAbi

func (i *InitializeRootERC1155PredicateFn) EncodeAbi() ([]byte, error)

func (*InitializeRootERC1155PredicateFn) Sig

type InitializeRootERC20PredicateFn

type InitializeRootERC20PredicateFn struct {
	NewStateSender         types.Address `abi:"newStateSender"`
	NewExitHelper          types.Address `abi:"newExitHelper"`
	NewChildERC20Predicate types.Address `abi:"newChildERC20Predicate"`
	NewChildTokenTemplate  types.Address `abi:"newChildTokenTemplate"`
	NativeTokenRootAddress types.Address `abi:"nativeTokenRootAddress"`
}

func (*InitializeRootERC20PredicateFn) DecodeAbi

func (i *InitializeRootERC20PredicateFn) DecodeAbi(buf []byte) error

func (*InitializeRootERC20PredicateFn) EncodeAbi

func (i *InitializeRootERC20PredicateFn) EncodeAbi() ([]byte, error)

func (*InitializeRootERC20PredicateFn) Sig

type InitializeRootERC721PredicateFn

type InitializeRootERC721PredicateFn struct {
	NewStateSender          types.Address `abi:"newStateSender"`
	NewExitHelper           types.Address `abi:"newExitHelper"`
	NewChildERC721Predicate types.Address `abi:"newChildERC721Predicate"`
	NewChildTokenTemplate   types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeRootERC721PredicateFn) DecodeAbi

func (i *InitializeRootERC721PredicateFn) DecodeAbi(buf []byte) error

func (*InitializeRootERC721PredicateFn) EncodeAbi

func (i *InitializeRootERC721PredicateFn) EncodeAbi() ([]byte, error)

func (*InitializeRootERC721PredicateFn) Sig

type InitializeRootMintableERC1155PredicateACLFn

type InitializeRootMintableERC1155PredicateACLFn struct {
	NewL2StateSender         types.Address `abi:"newL2StateSender"`
	NewStateReceiver         types.Address `abi:"newStateReceiver"`
	NewChildERC1155Predicate types.Address `abi:"newChildERC1155Predicate"`
	NewChildTokenTemplate    types.Address `abi:"newChildTokenTemplate"`
	NewUseAllowList          bool          `abi:"newUseAllowList"`
	NewUseBlockList          bool          `abi:"newUseBlockList"`
	NewOwner                 types.Address `abi:"newOwner"`
}

func (*InitializeRootMintableERC1155PredicateACLFn) DecodeAbi

func (*InitializeRootMintableERC1155PredicateACLFn) EncodeAbi

func (*InitializeRootMintableERC1155PredicateACLFn) Sig

type InitializeRootMintableERC1155PredicateFn

type InitializeRootMintableERC1155PredicateFn struct {
	NewL2StateSender         types.Address `abi:"newL2StateSender"`
	NewStateReceiver         types.Address `abi:"newStateReceiver"`
	NewChildERC1155Predicate types.Address `abi:"newChildERC1155Predicate"`
	NewChildTokenTemplate    types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeRootMintableERC1155PredicateFn) DecodeAbi

func (*InitializeRootMintableERC1155PredicateFn) EncodeAbi

func (*InitializeRootMintableERC1155PredicateFn) Sig

type InitializeRootMintableERC20PredicateACLFn

type InitializeRootMintableERC20PredicateACLFn struct {
	NewL2StateSender       types.Address `abi:"newL2StateSender"`
	NewStateReceiver       types.Address `abi:"newStateReceiver"`
	NewChildERC20Predicate types.Address `abi:"newChildERC20Predicate"`
	NewChildTokenTemplate  types.Address `abi:"newChildTokenTemplate"`
	NewUseAllowList        bool          `abi:"newUseAllowList"`
	NewUseBlockList        bool          `abi:"newUseBlockList"`
	NewOwner               types.Address `abi:"newOwner"`
}

func (*InitializeRootMintableERC20PredicateACLFn) DecodeAbi

func (*InitializeRootMintableERC20PredicateACLFn) EncodeAbi

func (*InitializeRootMintableERC20PredicateACLFn) Sig

type InitializeRootMintableERC20PredicateFn

type InitializeRootMintableERC20PredicateFn struct {
	NewL2StateSender       types.Address `abi:"newL2StateSender"`
	NewStateReceiver       types.Address `abi:"newStateReceiver"`
	NewChildERC20Predicate types.Address `abi:"newChildERC20Predicate"`
	NewChildTokenTemplate  types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeRootMintableERC20PredicateFn) DecodeAbi

func (*InitializeRootMintableERC20PredicateFn) EncodeAbi

func (*InitializeRootMintableERC20PredicateFn) Sig

type InitializeRootMintableERC721PredicateACLFn

type InitializeRootMintableERC721PredicateACLFn struct {
	NewL2StateSender        types.Address `abi:"newL2StateSender"`
	NewStateReceiver        types.Address `abi:"newStateReceiver"`
	NewChildERC721Predicate types.Address `abi:"newChildERC721Predicate"`
	NewChildTokenTemplate   types.Address `abi:"newChildTokenTemplate"`
	NewUseAllowList         bool          `abi:"newUseAllowList"`
	NewUseBlockList         bool          `abi:"newUseBlockList"`
	NewOwner                types.Address `abi:"newOwner"`
}

func (*InitializeRootMintableERC721PredicateACLFn) DecodeAbi

func (*InitializeRootMintableERC721PredicateACLFn) EncodeAbi

func (*InitializeRootMintableERC721PredicateACLFn) Sig

type InitializeRootMintableERC721PredicateFn

type InitializeRootMintableERC721PredicateFn struct {
	NewL2StateSender        types.Address `abi:"newL2StateSender"`
	NewStateReceiver        types.Address `abi:"newStateReceiver"`
	NewChildERC721Predicate types.Address `abi:"newChildERC721Predicate"`
	NewChildTokenTemplate   types.Address `abi:"newChildTokenTemplate"`
}

func (*InitializeRootMintableERC721PredicateFn) DecodeAbi

func (*InitializeRootMintableERC721PredicateFn) EncodeAbi

func (*InitializeRootMintableERC721PredicateFn) Sig

type InitializeStakeManagerFn

type InitializeStakeManagerFn struct {
	NewMatic types.Address `abi:"newMatic"`
}

func (*InitializeStakeManagerFn) DecodeAbi

func (i *InitializeStakeManagerFn) DecodeAbi(buf []byte) error

func (*InitializeStakeManagerFn) EncodeAbi

func (i *InitializeStakeManagerFn) EncodeAbi() ([]byte, error)

func (*InitializeStakeManagerFn) Sig

func (i *InitializeStakeManagerFn) Sig() []byte

type InitializeValidatorSetFn

type InitializeValidatorSetFn struct {
	NewStateSender      types.Address    `abi:"newStateSender"`
	NewStateReceiver    types.Address    `abi:"newStateReceiver"`
	NewRootChainManager types.Address    `abi:"newRootChainManager"`
	NewEpochSize        *big.Int         `abi:"newEpochSize"`
	InitialValidators   []*ValidatorInit `abi:"initialValidators"`
}

func (*InitializeValidatorSetFn) DecodeAbi

func (i *InitializeValidatorSetFn) DecodeAbi(buf []byte) error

func (*InitializeValidatorSetFn) EncodeAbi

func (i *InitializeValidatorSetFn) EncodeAbi() ([]byte, error)

func (*InitializeValidatorSetFn) Sig

func (i *InitializeValidatorSetFn) Sig() []byte

type L2MintableTokenMappedEvent

type L2MintableTokenMappedEvent struct {
	RootToken  types.Address `abi:"rootToken"`
	ChildToken types.Address `abi:"childToken"`
}

func (*L2MintableTokenMappedEvent) Encode

func (*L2MintableTokenMappedEvent) Encode(inputs interface{}) ([]byte, error)

func (*L2MintableTokenMappedEvent) ParseLog

func (l *L2MintableTokenMappedEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*L2MintableTokenMappedEvent) Sig

type L2StateSyncedEvent

type L2StateSyncedEvent struct {
	ID       *big.Int      `abi:"id"`
	Sender   types.Address `abi:"sender"`
	Receiver types.Address `abi:"receiver"`
	Data     []byte        `abi:"data"`
}

func (*L2StateSyncedEvent) Encode

func (*L2StateSyncedEvent) Encode(inputs interface{}) ([]byte, error)

func (*L2StateSyncedEvent) ParseLog

func (l *L2StateSyncedEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*L2StateSyncedEvent) Sig

func (*L2StateSyncedEvent) Sig() ethgo.Hash

type MintBatchRootERC1155Fn

type MintBatchRootERC1155Fn struct {
	To      types.Address `abi:"to"`
	IDs     []*big.Int    `abi:"ids"`
	Amounts []*big.Int    `abi:"amounts"`
	Data    []byte        `abi:"data"`
}

func (*MintBatchRootERC1155Fn) DecodeAbi

func (m *MintBatchRootERC1155Fn) DecodeAbi(buf []byte) error

func (*MintBatchRootERC1155Fn) EncodeAbi

func (m *MintBatchRootERC1155Fn) EncodeAbi() ([]byte, error)

func (*MintBatchRootERC1155Fn) Sig

func (m *MintBatchRootERC1155Fn) Sig() []byte

type MintRootERC20Fn

type MintRootERC20Fn struct {
	To     types.Address `abi:"to"`
	Amount *big.Int      `abi:"amount"`
}

func (*MintRootERC20Fn) DecodeAbi

func (m *MintRootERC20Fn) DecodeAbi(buf []byte) error

func (*MintRootERC20Fn) EncodeAbi

func (m *MintRootERC20Fn) EncodeAbi() ([]byte, error)

func (*MintRootERC20Fn) Sig

func (m *MintRootERC20Fn) Sig() []byte

type MintRootERC721Fn

type MintRootERC721Fn struct {
	To types.Address `abi:"to"`
}

func (*MintRootERC721Fn) DecodeAbi

func (m *MintRootERC721Fn) DecodeAbi(buf []byte) error

func (*MintRootERC721Fn) EncodeAbi

func (m *MintRootERC721Fn) EncodeAbi() ([]byte, error)

func (*MintRootERC721Fn) Sig

func (m *MintRootERC721Fn) Sig() []byte

type MintableTokenMappedEvent

type MintableTokenMappedEvent struct {
	RootToken  types.Address `abi:"rootToken"`
	ChildToken types.Address `abi:"childToken"`
}

func (*MintableTokenMappedEvent) Encode

func (*MintableTokenMappedEvent) Encode(inputs interface{}) ([]byte, error)

func (*MintableTokenMappedEvent) ParseLog

func (m *MintableTokenMappedEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*MintableTokenMappedEvent) Sig

type NewCommitmentEvent

type NewCommitmentEvent struct {
	StartID *big.Int   `abi:"startId"`
	EndID   *big.Int   `abi:"endId"`
	Root    types.Hash `abi:"root"`
}

func (*NewCommitmentEvent) Encode

func (*NewCommitmentEvent) Encode(inputs interface{}) ([]byte, error)

func (*NewCommitmentEvent) ParseLog

func (n *NewCommitmentEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*NewCommitmentEvent) Sig

func (*NewCommitmentEvent) Sig() ethgo.Hash

type OwnerOfChildERC721Fn

type OwnerOfChildERC721Fn struct {
	TokenID *big.Int `abi:"tokenId"`
}

func (*OwnerOfChildERC721Fn) DecodeAbi

func (o *OwnerOfChildERC721Fn) DecodeAbi(buf []byte) error

func (*OwnerOfChildERC721Fn) EncodeAbi

func (o *OwnerOfChildERC721Fn) EncodeAbi() ([]byte, error)

func (*OwnerOfChildERC721Fn) Sig

func (o *OwnerOfChildERC721Fn) Sig() []byte

type RegisterChildChainStakeManagerFn

type RegisterChildChainStakeManagerFn struct {
	Manager types.Address `abi:"manager"`
}

func (*RegisterChildChainStakeManagerFn) DecodeAbi

func (r *RegisterChildChainStakeManagerFn) DecodeAbi(buf []byte) error

func (*RegisterChildChainStakeManagerFn) EncodeAbi

func (r *RegisterChildChainStakeManagerFn) EncodeAbi() ([]byte, error)

func (*RegisterChildChainStakeManagerFn) Sig

type RegisterCustomSupernetManagerFn

type RegisterCustomSupernetManagerFn struct {
	Signature [2]*big.Int `abi:"signature"`
	Pubkey    [4]*big.Int `abi:"pubkey"`
}

func (*RegisterCustomSupernetManagerFn) DecodeAbi

func (r *RegisterCustomSupernetManagerFn) DecodeAbi(buf []byte) error

func (*RegisterCustomSupernetManagerFn) EncodeAbi

func (r *RegisterCustomSupernetManagerFn) EncodeAbi() ([]byte, error)

func (*RegisterCustomSupernetManagerFn) Sig

type ReleaseStakeOfStakeManagerFn

type ReleaseStakeOfStakeManagerFn struct {
	Validator types.Address `abi:"validator"`
	Amount    *big.Int      `abi:"amount"`
}

func (*ReleaseStakeOfStakeManagerFn) DecodeAbi

func (r *ReleaseStakeOfStakeManagerFn) DecodeAbi(buf []byte) error

func (*ReleaseStakeOfStakeManagerFn) EncodeAbi

func (r *ReleaseStakeOfStakeManagerFn) EncodeAbi() ([]byte, error)

func (*ReleaseStakeOfStakeManagerFn) Sig

type SetApprovalForAllRootERC1155Fn

type SetApprovalForAllRootERC1155Fn struct {
	Operator types.Address `abi:"operator"`
	Approved bool          `abi:"approved"`
}

func (*SetApprovalForAllRootERC1155Fn) DecodeAbi

func (s *SetApprovalForAllRootERC1155Fn) DecodeAbi(buf []byte) error

func (*SetApprovalForAllRootERC1155Fn) EncodeAbi

func (s *SetApprovalForAllRootERC1155Fn) EncodeAbi() ([]byte, error)

func (*SetApprovalForAllRootERC1155Fn) Sig

type SetApprovalForAllRootERC721Fn

type SetApprovalForAllRootERC721Fn struct {
	Operator types.Address `abi:"operator"`
	Approved bool          `abi:"approved"`
}

func (*SetApprovalForAllRootERC721Fn) DecodeAbi

func (s *SetApprovalForAllRootERC721Fn) DecodeAbi(buf []byte) error

func (*SetApprovalForAllRootERC721Fn) EncodeAbi

func (s *SetApprovalForAllRootERC721Fn) EncodeAbi() ([]byte, error)

func (*SetApprovalForAllRootERC721Fn) Sig

type StakeAddedEvent

type StakeAddedEvent struct {
	ID        *big.Int      `abi:"id"`
	Validator types.Address `abi:"validator"`
	Amount    *big.Int      `abi:"amount"`
}

func (*StakeAddedEvent) Encode

func (*StakeAddedEvent) Encode(inputs interface{}) ([]byte, error)

func (*StakeAddedEvent) ParseLog

func (s *StakeAddedEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*StakeAddedEvent) Sig

func (*StakeAddedEvent) Sig() ethgo.Hash

type StakeForStakeManagerFn

type StakeForStakeManagerFn struct {
	ID     *big.Int `abi:"id"`
	Amount *big.Int `abi:"amount"`
}

func (*StakeForStakeManagerFn) DecodeAbi

func (s *StakeForStakeManagerFn) DecodeAbi(buf []byte) error

func (*StakeForStakeManagerFn) EncodeAbi

func (s *StakeForStakeManagerFn) EncodeAbi() ([]byte, error)

func (*StakeForStakeManagerFn) Sig

func (s *StakeForStakeManagerFn) Sig() []byte

type StakeOfStakeManagerFn

type StakeOfStakeManagerFn struct {
	Validator types.Address `abi:"validator"`
	ID        *big.Int      `abi:"id"`
}

func (*StakeOfStakeManagerFn) DecodeAbi

func (s *StakeOfStakeManagerFn) DecodeAbi(buf []byte) error

func (*StakeOfStakeManagerFn) EncodeAbi

func (s *StakeOfStakeManagerFn) EncodeAbi() ([]byte, error)

func (*StakeOfStakeManagerFn) Sig

func (s *StakeOfStakeManagerFn) Sig() []byte

type StakeWithdrawnEvent

type StakeWithdrawnEvent struct {
	Validator types.Address `abi:"validator"`
	Recipient types.Address `abi:"recipient"`
	Amount    *big.Int      `abi:"amount"`
}

func (*StakeWithdrawnEvent) Encode

func (*StakeWithdrawnEvent) Encode(inputs interface{}) ([]byte, error)

func (*StakeWithdrawnEvent) ParseLog

func (s *StakeWithdrawnEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*StakeWithdrawnEvent) Sig

type StateSync

type StateSync struct {
	ID       *big.Int      `abi:"id"`
	Sender   types.Address `abi:"sender"`
	Receiver types.Address `abi:"receiver"`
	Data     []byte        `abi:"data"`
}

func (*StateSync) DecodeAbi

func (s *StateSync) DecodeAbi(buf []byte) error

func (*StateSync) EncodeAbi

func (s *StateSync) EncodeAbi() ([]byte, error)

type StateSyncCommitment

type StateSyncCommitment struct {
	StartID *big.Int   `abi:"startId"`
	EndID   *big.Int   `abi:"endId"`
	Root    types.Hash `abi:"root"`
}

func (*StateSyncCommitment) DecodeAbi

func (s *StateSyncCommitment) DecodeAbi(buf []byte) error

func (*StateSyncCommitment) EncodeAbi

func (s *StateSyncCommitment) EncodeAbi() ([]byte, error)

type StateSyncResultEvent

type StateSyncResultEvent struct {
	Counter *big.Int `abi:"counter"`
	Status  bool     `abi:"status"`
	Message []byte   `abi:"message"`
}

func (*StateSyncResultEvent) Encode

func (*StateSyncResultEvent) Encode(inputs interface{}) ([]byte, error)

func (*StateSyncResultEvent) ParseLog

func (s *StateSyncResultEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*StateSyncResultEvent) Sig

type StateSyncedEvent

type StateSyncedEvent struct {
	ID       *big.Int      `abi:"id"`
	Sender   types.Address `abi:"sender"`
	Receiver types.Address `abi:"receiver"`
	Data     []byte        `abi:"data"`
}

func (*StateSyncedEvent) Encode

func (*StateSyncedEvent) Encode(inputs interface{}) ([]byte, error)

func (*StateSyncedEvent) EncodeAbi

func (sse *StateSyncedEvent) EncodeAbi() ([]byte, error)

ToABI converts StateSyncEvent to ABI

func (*StateSyncedEvent) ParseLog

func (s *StateSyncedEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*StateSyncedEvent) Sig

func (*StateSyncedEvent) Sig() ethgo.Hash

type StateTransactionInput

type StateTransactionInput interface {
	// EncodeAbi contains logic for encoding arbitrary data into ABI format
	EncodeAbi() ([]byte, error)
	// DecodeAbi contains logic for decoding given ABI data
	DecodeAbi(b []byte) error
}

StateTransactionInput is an abstraction for different state transaction inputs

type SubmitCheckpointManagerFn

type SubmitCheckpointManagerFn struct {
	CheckpointMetadata *CheckpointMetadata `abi:"checkpointMetadata"`
	Checkpoint         *Checkpoint         `abi:"checkpoint"`
	Signature          [2]*big.Int         `abi:"signature"`
	NewValidatorSet    []*Validator        `abi:"newValidatorSet"`
	Bitmap             []byte              `abi:"bitmap"`
}

func (*SubmitCheckpointManagerFn) DecodeAbi

func (s *SubmitCheckpointManagerFn) DecodeAbi(buf []byte) error

func (*SubmitCheckpointManagerFn) EncodeAbi

func (s *SubmitCheckpointManagerFn) EncodeAbi() ([]byte, error)

func (*SubmitCheckpointManagerFn) Sig

func (s *SubmitCheckpointManagerFn) Sig() []byte

type SyncStateStateSenderFn

type SyncStateStateSenderFn struct {
	Receiver types.Address `abi:"receiver"`
	Data     []byte        `abi:"data"`
}

func (*SyncStateStateSenderFn) DecodeAbi

func (s *SyncStateStateSenderFn) DecodeAbi(buf []byte) error

func (*SyncStateStateSenderFn) EncodeAbi

func (s *SyncStateStateSenderFn) EncodeAbi() ([]byte, error)

func (*SyncStateStateSenderFn) Sig

func (s *SyncStateStateSenderFn) Sig() []byte

type TokenMappedEvent

type TokenMappedEvent struct {
	RootToken  types.Address `abi:"rootToken"`
	ChildToken types.Address `abi:"childToken"`
}

func (*TokenMappedEvent) Encode

func (*TokenMappedEvent) Encode(inputs interface{}) ([]byte, error)

func (*TokenMappedEvent) ParseLog

func (t *TokenMappedEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*TokenMappedEvent) Sig

func (*TokenMappedEvent) Sig() ethgo.Hash

type TransferEvent

type TransferEvent struct {
	From  types.Address `abi:"from"`
	To    types.Address `abi:"to"`
	Value *big.Int      `abi:"value"`
}

func (*TransferEvent) Encode

func (*TransferEvent) Encode(inputs interface{}) ([]byte, error)

func (*TransferEvent) IsStake

func (t *TransferEvent) IsStake() bool

IsStake indicates if transfer event (from ERC20 implementation) mints tokens to a non zero address

func (*TransferEvent) IsUnstake

func (t *TransferEvent) IsUnstake() bool

IsUnstake indicates if transfer event (from ERC20 implementation) burns tokens from a non zero address meaning, it transfers them to zero address

func (*TransferEvent) ParseLog

func (t *TransferEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*TransferEvent) Sig

func (*TransferEvent) Sig() ethgo.Hash

type UnstakeValidatorSetFn

type UnstakeValidatorSetFn struct {
	Amount *big.Int `abi:"amount"`
}

func (*UnstakeValidatorSetFn) DecodeAbi

func (u *UnstakeValidatorSetFn) DecodeAbi(buf []byte) error

func (*UnstakeValidatorSetFn) EncodeAbi

func (u *UnstakeValidatorSetFn) EncodeAbi() ([]byte, error)

func (*UnstakeValidatorSetFn) Sig

func (u *UnstakeValidatorSetFn) Sig() []byte

type Uptime

type Uptime struct {
	Validator    types.Address `abi:"validator"`
	SignedBlocks *big.Int      `abi:"signedBlocks"`
}

func (*Uptime) DecodeAbi

func (u *Uptime) DecodeAbi(buf []byte) error

func (*Uptime) EncodeAbi

func (u *Uptime) EncodeAbi() ([]byte, error)

type Validator

type Validator struct {
	Address     types.Address `abi:"_address"`
	BlsKey      [4]*big.Int   `abi:"blsKey"`
	VotingPower *big.Int      `abi:"votingPower"`
}

func (*Validator) DecodeAbi

func (v *Validator) DecodeAbi(buf []byte) error

func (*Validator) EncodeAbi

func (v *Validator) EncodeAbi() ([]byte, error)

type ValidatorInit

type ValidatorInit struct {
	Addr  types.Address `abi:"addr"`
	Stake *big.Int      `abi:"stake"`
}

func (*ValidatorInit) DecodeAbi

func (v *ValidatorInit) DecodeAbi(buf []byte) error

func (*ValidatorInit) EncodeAbi

func (v *ValidatorInit) EncodeAbi() ([]byte, error)

type ValidatorRegisteredEvent

type ValidatorRegisteredEvent struct {
	Validator types.Address `abi:"validator"`
	BlsKey    [4]*big.Int   `abi:"blsKey"`
}

func (*ValidatorRegisteredEvent) Encode

func (*ValidatorRegisteredEvent) Encode(inputs interface{}) ([]byte, error)

func (*ValidatorRegisteredEvent) ParseLog

func (v *ValidatorRegisteredEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*ValidatorRegisteredEvent) Sig

type WhitelistValidatorsCustomSupernetManagerFn

type WhitelistValidatorsCustomSupernetManagerFn struct {
	Validators_ []ethgo.Address `abi:"validators_"`
}

func (*WhitelistValidatorsCustomSupernetManagerFn) DecodeAbi

func (*WhitelistValidatorsCustomSupernetManagerFn) EncodeAbi

func (*WhitelistValidatorsCustomSupernetManagerFn) Sig

type WithdrawBatchChildERC1155PredicateACLFn

type WithdrawBatchChildERC1155PredicateACLFn struct {
	ChildToken types.Address   `abi:"childToken"`
	Receivers  []ethgo.Address `abi:"receivers"`
	TokenIDs   []*big.Int      `abi:"tokenIds"`
	Amounts    []*big.Int      `abi:"amounts"`
}

func (*WithdrawBatchChildERC1155PredicateACLFn) DecodeAbi

func (*WithdrawBatchChildERC1155PredicateACLFn) EncodeAbi

func (*WithdrawBatchChildERC1155PredicateACLFn) Sig

type WithdrawBatchChildERC1155PredicateFn

type WithdrawBatchChildERC1155PredicateFn struct {
	ChildToken types.Address   `abi:"childToken"`
	Receivers  []ethgo.Address `abi:"receivers"`
	TokenIDs   []*big.Int      `abi:"tokenIds"`
	Amounts    []*big.Int      `abi:"amounts"`
}

func (*WithdrawBatchChildERC1155PredicateFn) DecodeAbi

func (w *WithdrawBatchChildERC1155PredicateFn) DecodeAbi(buf []byte) error

func (*WithdrawBatchChildERC1155PredicateFn) EncodeAbi

func (w *WithdrawBatchChildERC1155PredicateFn) EncodeAbi() ([]byte, error)

func (*WithdrawBatchChildERC1155PredicateFn) Sig

type WithdrawBatchChildERC721PredicateACLFn

type WithdrawBatchChildERC721PredicateACLFn struct {
	ChildToken types.Address   `abi:"childToken"`
	Receivers  []ethgo.Address `abi:"receivers"`
	TokenIDs   []*big.Int      `abi:"tokenIds"`
}

func (*WithdrawBatchChildERC721PredicateACLFn) DecodeAbi

func (*WithdrawBatchChildERC721PredicateACLFn) EncodeAbi

func (*WithdrawBatchChildERC721PredicateACLFn) Sig

type WithdrawBatchChildERC721PredicateFn

type WithdrawBatchChildERC721PredicateFn struct {
	ChildToken types.Address   `abi:"childToken"`
	Receivers  []ethgo.Address `abi:"receivers"`
	TokenIDs   []*big.Int      `abi:"tokenIds"`
}

func (*WithdrawBatchChildERC721PredicateFn) DecodeAbi

func (w *WithdrawBatchChildERC721PredicateFn) DecodeAbi(buf []byte) error

func (*WithdrawBatchChildERC721PredicateFn) EncodeAbi

func (w *WithdrawBatchChildERC721PredicateFn) EncodeAbi() ([]byte, error)

func (*WithdrawBatchChildERC721PredicateFn) Sig

type WithdrawStakeStakeManagerFn

type WithdrawStakeStakeManagerFn struct {
	To     types.Address `abi:"to"`
	Amount *big.Int      `abi:"amount"`
}

func (*WithdrawStakeStakeManagerFn) DecodeAbi

func (w *WithdrawStakeStakeManagerFn) DecodeAbi(buf []byte) error

func (*WithdrawStakeStakeManagerFn) EncodeAbi

func (w *WithdrawStakeStakeManagerFn) EncodeAbi() ([]byte, error)

func (*WithdrawStakeStakeManagerFn) Sig

func (w *WithdrawStakeStakeManagerFn) Sig() []byte

type WithdrawToChildERC20PredicateACLFn

type WithdrawToChildERC20PredicateACLFn struct {
	ChildToken types.Address `abi:"childToken"`
	Receiver   types.Address `abi:"receiver"`
	Amount     *big.Int      `abi:"amount"`
}

func (*WithdrawToChildERC20PredicateACLFn) DecodeAbi

func (w *WithdrawToChildERC20PredicateACLFn) DecodeAbi(buf []byte) error

func (*WithdrawToChildERC20PredicateACLFn) EncodeAbi

func (w *WithdrawToChildERC20PredicateACLFn) EncodeAbi() ([]byte, error)

func (*WithdrawToChildERC20PredicateACLFn) Sig

type WithdrawToChildERC20PredicateFn

type WithdrawToChildERC20PredicateFn struct {
	ChildToken types.Address `abi:"childToken"`
	Receiver   types.Address `abi:"receiver"`
	Amount     *big.Int      `abi:"amount"`
}

func (*WithdrawToChildERC20PredicateFn) DecodeAbi

func (w *WithdrawToChildERC20PredicateFn) DecodeAbi(buf []byte) error

func (*WithdrawToChildERC20PredicateFn) EncodeAbi

func (w *WithdrawToChildERC20PredicateFn) EncodeAbi() ([]byte, error)

func (*WithdrawToChildERC20PredicateFn) Sig

type WithdrawalEvent

type WithdrawalEvent struct {
	Account types.Address `abi:"account"`
	Amount  *big.Int      `abi:"amount"`
}

func (*WithdrawalEvent) Encode

func (*WithdrawalEvent) Encode(inputs interface{}) ([]byte, error)

func (*WithdrawalEvent) ParseLog

func (w *WithdrawalEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*WithdrawalEvent) Sig

func (*WithdrawalEvent) Sig() ethgo.Hash

type WithdrawalRegisteredEvent

type WithdrawalRegisteredEvent struct {
	Account types.Address `abi:"account"`
	Amount  *big.Int      `abi:"amount"`
}

func (*WithdrawalRegisteredEvent) Encode

func (*WithdrawalRegisteredEvent) Encode(inputs interface{}) ([]byte, error)

func (*WithdrawalRegisteredEvent) ParseLog

func (w *WithdrawalRegisteredEvent) ParseLog(log *ethgo.Log) (bool, error)

func (*WithdrawalRegisteredEvent) Sig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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