Documentation ¶
Overview ¶
Code generated by scapi/gen. DO NOT EDIT.
Index ¶
- Variables
- type AddToWhitelistChildValidatorSetFn
- type AddedToWhitelistEvent
- type ApproveRootERC20Fn
- type BalanceOfRootERC20Fn
- type Checkpoint
- type CheckpointMetadata
- type CommitEpochChildValidatorSetFn
- type CommitStateReceiverFn
- type DelegatedEvent
- type DepositToRootERC20PredicateFn
- type Epoch
- type ExecuteStateReceiverFn
- type ExitExitHelperFn
- type GetCheckpointBlockCheckpointManagerFn
- type InitStruct
- type InitializeCheckpointManagerFn
- type InitializeChildERC20PredicateFn
- type InitializeChildValidatorSetFn
- type InitializeExitHelperFn
- type InitializeNativeERC20Fn
- type InitializeNativeERC20MintableFn
- type InitializeRootERC20PredicateFn
- type L2StateSyncedEvent
- type MintRootERC20Fn
- type NewCommitmentEvent
- type NewValidatorEvent
- type RegisterChildValidatorSetFn
- type StakedEvent
- type StateSync
- type StateSyncCommitment
- type StateSyncResultEvent
- type StateSyncedEvent
- type StateTransactionInput
- type SubmitCheckpointManagerFn
- type SyncStateStateSenderFn
- type UndelegatedEvent
- type UnstakedEvent
- type Uptime
- type UptimeData
- type Validator
- type ValidatorInit
- type WithdrawToChildERC20PredicateFn
- type WithdrawalEvent
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 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 ChildERC721 *artifact.Artifact ChildERC721Predicate *artifact.Artifact ChildERC1155 *artifact.Artifact ChildERC1155Predicate *artifact.Artifact L2StateSender *artifact.Artifact TestWriteBlockMetadata *artifact.Artifact RootERC20 *artifact.Artifact TestSimple *artifact.Artifact RootERC721 *artifact.Artifact RootERC1155 *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 = "" /* 56604-byte string literal not displayed */
View Source
var ChildERC1155PredicateArtifact string = "" /* 46788-byte string literal not displayed */
View Source
var ChildERC20Artifact string = "" /* 36931-byte string literal not displayed */
View Source
var ChildERC20PredicateArtifact string = "" /* 31216-byte string literal not displayed */
View Source
var ChildERC721Artifact string = "" /* 52022-byte string literal not displayed */
View Source
var ChildERC721PredicateArtifact string = "" /* 44897-byte string literal not displayed */
View Source
var ChildValidatorSetArtifact string = "" /* 136304-byte string literal not displayed */
This is auto-generated file. DO NOT EDIT.
View Source
var EpochABIType = abi.MustNewType("tuple(uint256 startBlock,uint256 endBlock,bytes32 epochRoot)")
View Source
var ExitHelperArtifact string = "" /* 17032-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 InitStructABIType = abi.MustNewType("tuple(uint256 epochReward,uint256 minStake,uint256 minDelegation,uint256 epochSize)")
View Source
var L2StateSenderArtifact string = "" /* 4791-byte string literal not displayed */
View Source
var MerkleArtifact string = "" /* 719-byte string literal not displayed */
View Source
var MockERC1155Artifact string = "" /* 61115-byte string literal not displayed */
View Source
var MockERC20Artifact string = "" /* 41965-byte string literal not displayed */
View Source
var MockERC721Artifact string = "" /* 57058-byte string literal not displayed */
View Source
var NativeERC20Artifact string = "" /* 29799-byte string literal not displayed */
View Source
var NativeERC20MintableArtifact string = "" /* 35407-byte string literal not displayed */
View Source
var RootERC1155PredicateArtifact string = "" /* 42109-byte string literal not displayed */
View Source
var RootERC20PredicateArtifact string = "" /* 28644-byte string literal not displayed */
View Source
var RootERC721PredicateArtifact string = "" /* 38353-byte string literal not displayed */
View Source
var StateReceiverArtifact string = "" /* 36573-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 = "" /* 3162-byte string literal not displayed */
View Source
var UptimeABIType = abi.MustNewType("tuple(uint256 epochId,tuple(address validator,uint256 signedBlocks)[] uptimeData,uint256 totalBlocks)")
View Source
var UptimeDataABIType = 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[4] pubkey,uint256[2] signature,uint256 stake)")
Functions ¶
This section is empty.
Types ¶
type AddToWhitelistChildValidatorSetFn ¶
type AddToWhitelistChildValidatorSetFn struct {
WhitelistAddreses []ethgo.Address `abi:"whitelistAddreses"`
}
func (*AddToWhitelistChildValidatorSetFn) DecodeAbi ¶
func (a *AddToWhitelistChildValidatorSetFn) DecodeAbi(buf []byte) error
func (*AddToWhitelistChildValidatorSetFn) EncodeAbi ¶
func (a *AddToWhitelistChildValidatorSetFn) EncodeAbi() ([]byte, error)
func (*AddToWhitelistChildValidatorSetFn) Sig ¶
func (a *AddToWhitelistChildValidatorSetFn) Sig() []byte
type AddedToWhitelistEvent ¶
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 ¶
func (*AddedToWhitelistEvent) Sig() ethgo.Hash
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 BalanceOfRootERC20Fn ¶
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 CommitEpochChildValidatorSetFn ¶
type CommitEpochChildValidatorSetFn struct { ID *big.Int `abi:"id"` Epoch *Epoch `abi:"epoch"` Uptime *Uptime `abi:"uptime"` }
func (*CommitEpochChildValidatorSetFn) DecodeAbi ¶
func (c *CommitEpochChildValidatorSetFn) DecodeAbi(buf []byte) error
func (*CommitEpochChildValidatorSetFn) EncodeAbi ¶
func (c *CommitEpochChildValidatorSetFn) EncodeAbi() ([]byte, error)
func (*CommitEpochChildValidatorSetFn) Sig ¶
func (c *CommitEpochChildValidatorSetFn) 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 DelegatedEvent ¶
type DelegatedEvent struct { Delegator types.Address `abi:"delegator"` Validator types.Address `abi:"validator"` Amount *big.Int `abi:"amount"` }
func (*DelegatedEvent) Encode ¶
func (*DelegatedEvent) Encode(inputs interface{}) ([]byte, error)
func (*DelegatedEvent) Sig ¶
func (*DelegatedEvent) Sig() ethgo.Hash
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 ¶
func (d *DepositToRootERC20PredicateFn) Sig() []byte
type Epoch ¶
type ExecuteStateReceiverFn ¶
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 ¶
func (*GetCheckpointBlockCheckpointManagerFn) DecodeAbi ¶
func (g *GetCheckpointBlockCheckpointManagerFn) DecodeAbi(buf []byte) error
func (*GetCheckpointBlockCheckpointManagerFn) EncodeAbi ¶
func (g *GetCheckpointBlockCheckpointManagerFn) EncodeAbi() ([]byte, error)
func (*GetCheckpointBlockCheckpointManagerFn) Sig ¶
func (g *GetCheckpointBlockCheckpointManagerFn) Sig() []byte
type InitStruct ¶
type InitStruct struct { EpochReward *big.Int `abi:"epochReward"` MinStake *big.Int `abi:"minStake"` MinDelegation *big.Int `abi:"minDelegation"` EpochSize *big.Int `abi:"epochSize"` }
func (*InitStruct) DecodeAbi ¶
func (i *InitStruct) DecodeAbi(buf []byte) error
func (*InitStruct) EncodeAbi ¶
func (i *InitStruct) EncodeAbi() ([]byte, error)
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 ¶
func (i *InitializeCheckpointManagerFn) Sig() []byte
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 ¶
func (i *InitializeChildERC20PredicateFn) Sig() []byte
type InitializeChildValidatorSetFn ¶
type InitializeChildValidatorSetFn struct { Init *InitStruct `abi:"init"` Validators []*ValidatorInit `abi:"validators"` NewBls types.Address `abi:"newBls"` Governance types.Address `abi:"governance"` }
func (*InitializeChildValidatorSetFn) DecodeAbi ¶
func (i *InitializeChildValidatorSetFn) DecodeAbi(buf []byte) error
func (*InitializeChildValidatorSetFn) EncodeAbi ¶
func (i *InitializeChildValidatorSetFn) EncodeAbi() ([]byte, error)
func (*InitializeChildValidatorSetFn) Sig ¶
func (i *InitializeChildValidatorSetFn) 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_"` }
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_"` }
func (*InitializeNativeERC20MintableFn) DecodeAbi ¶
func (i *InitializeNativeERC20MintableFn) DecodeAbi(buf []byte) error
func (*InitializeNativeERC20MintableFn) EncodeAbi ¶
func (i *InitializeNativeERC20MintableFn) EncodeAbi() ([]byte, error)
func (*InitializeNativeERC20MintableFn) Sig ¶
func (i *InitializeNativeERC20MintableFn) Sig() []byte
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 ¶
func (i *InitializeRootERC20PredicateFn) Sig() []byte
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 MintRootERC20Fn ¶
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 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 NewValidatorEvent ¶
type NewValidatorEvent struct { Validator types.Address `abi:"validator"` BlsKey [4]*big.Int `abi:"blsKey"` }
func (*NewValidatorEvent) Encode ¶
func (*NewValidatorEvent) Encode(inputs interface{}) ([]byte, error)
func (*NewValidatorEvent) ParseLog ¶
func (n *NewValidatorEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*NewValidatorEvent) Sig ¶
func (*NewValidatorEvent) Sig() ethgo.Hash
type RegisterChildValidatorSetFn ¶
type RegisterChildValidatorSetFn struct { Signature [2]*big.Int `abi:"signature"` Pubkey [4]*big.Int `abi:"pubkey"` }
func (*RegisterChildValidatorSetFn) DecodeAbi ¶
func (r *RegisterChildValidatorSetFn) DecodeAbi(buf []byte) error
func (*RegisterChildValidatorSetFn) EncodeAbi ¶
func (r *RegisterChildValidatorSetFn) EncodeAbi() ([]byte, error)
func (*RegisterChildValidatorSetFn) Sig ¶
func (r *RegisterChildValidatorSetFn) Sig() []byte
type StakedEvent ¶
type StakedEvent struct { Validator types.Address `abi:"validator"` Amount *big.Int `abi:"amount"` }
func (*StakedEvent) Encode ¶
func (*StakedEvent) Encode(inputs interface{}) ([]byte, error)
func (*StakedEvent) Sig ¶
func (*StakedEvent) Sig() ethgo.Hash
type StateSync ¶
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 ¶
func (*StateSyncResultEvent) Sig() ethgo.Hash
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 UndelegatedEvent ¶
type UndelegatedEvent struct { Delegator types.Address `abi:"delegator"` Validator types.Address `abi:"validator"` Amount *big.Int `abi:"amount"` }
func (*UndelegatedEvent) Encode ¶
func (*UndelegatedEvent) Encode(inputs interface{}) ([]byte, error)
func (*UndelegatedEvent) ParseLog ¶
func (u *UndelegatedEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*UndelegatedEvent) Sig ¶
func (*UndelegatedEvent) Sig() ethgo.Hash
type UnstakedEvent ¶
type UnstakedEvent struct { Validator types.Address `abi:"validator"` Amount *big.Int `abi:"amount"` }
func (*UnstakedEvent) Encode ¶
func (*UnstakedEvent) Encode(inputs interface{}) ([]byte, error)
func (*UnstakedEvent) Sig ¶
func (*UnstakedEvent) Sig() ethgo.Hash
type Uptime ¶
type Uptime struct { EpochID *big.Int `abi:"epochId"` UptimeData []*UptimeData `abi:"uptimeData"` TotalBlocks *big.Int `abi:"totalBlocks"` }
func (*Uptime) AddValidatorUptime ¶
AddValidatorUptime is an extension (helper) function on a generated Uptime type that adds uptime data for given validator to Uptime struct
type UptimeData ¶
type UptimeData struct { Validator types.Address `abi:"validator"` SignedBlocks *big.Int `abi:"signedBlocks"` }
func (*UptimeData) DecodeAbi ¶
func (u *UptimeData) DecodeAbi(buf []byte) error
func (*UptimeData) EncodeAbi ¶
func (u *UptimeData) EncodeAbi() ([]byte, error)
type Validator ¶
type ValidatorInit ¶
type ValidatorInit struct { Addr types.Address `abi:"addr"` Pubkey [4]*big.Int `abi:"pubkey"` Signature [2]*big.Int `abi:"signature"` 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 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 ¶
func (w *WithdrawToChildERC20PredicateFn) Sig() []byte
type WithdrawalEvent ¶
type WithdrawalEvent struct { Account types.Address `abi:"account"` To types.Address `abi:"to"` Amount *big.Int `abi:"amount"` }
func (*WithdrawalEvent) Encode ¶
func (*WithdrawalEvent) Encode(inputs interface{}) ([]byte, error)
func (*WithdrawalEvent) Sig ¶
func (*WithdrawalEvent) Sig() ethgo.Hash
Click to show internal directories.
Click to hide internal directories.