Documentation
¶
Overview ¶
Code generated by scapi/gen. DO NOT EDIT.
Index ¶
- Variables
- type AddToWhitelistChildValidatorSetFn
- type AddedToWhitelistEvent
- type ApproveRootERC20Fn
- 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 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 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 L2StateSender *artifact.Artifact TestL1StateReceiver *artifact.Artifact TestWriteBlockMetadata *artifact.Artifact RootERC20 *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 ChildERC20Artifact string = "" /* 36931-byte string literal not displayed */
View Source
var ChildERC20PredicateArtifact string = "" /* 31216-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 = "" /* 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 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 MockERC20Artifact string = "" /* 41965-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 RootERC20PredicateArtifact string = "" /* 28644-byte string literal not displayed */
View Source
var StateReceiverArtifact string = "" /* 31161-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 ¶ added in v0.8.1
type AddToWhitelistChildValidatorSetFn struct {
WhitelistAddreses []ethgo.Address `abi:"whitelistAddreses"`
}
func (*AddToWhitelistChildValidatorSetFn) DecodeAbi ¶ added in v0.8.1
func (a *AddToWhitelistChildValidatorSetFn) DecodeAbi(buf []byte) error
func (*AddToWhitelistChildValidatorSetFn) EncodeAbi ¶ added in v0.8.1
func (a *AddToWhitelistChildValidatorSetFn) EncodeAbi() ([]byte, error)
func (*AddToWhitelistChildValidatorSetFn) Sig ¶ added in v0.8.1
func (a *AddToWhitelistChildValidatorSetFn) Sig() []byte
type AddedToWhitelistEvent ¶ added in v0.8.1
func (*AddedToWhitelistEvent) Encode ¶ added in v0.8.1
func (*AddedToWhitelistEvent) Encode(inputs interface{}) ([]byte, error)
func (*AddedToWhitelistEvent) ParseLog ¶ added in v0.8.1
func (a *AddedToWhitelistEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*AddedToWhitelistEvent) Sig ¶ added in v0.8.1
func (*AddedToWhitelistEvent) Sig() ethgo.Hash
type ApproveRootERC20Fn ¶ added in v0.8.1
type ApproveRootERC20Fn struct {
Spender types.Address `abi:"spender"`
Amount *big.Int `abi:"amount"`
}
func (*ApproveRootERC20Fn) DecodeAbi ¶ added in v0.8.1
func (a *ApproveRootERC20Fn) DecodeAbi(buf []byte) error
func (*ApproveRootERC20Fn) EncodeAbi ¶ added in v0.8.1
func (a *ApproveRootERC20Fn) EncodeAbi() ([]byte, error)
func (*ApproveRootERC20Fn) Sig ¶ added in v0.8.1
func (a *ApproveRootERC20Fn) 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 ¶ added in v0.8.1
type CommitEpochChildValidatorSetFn struct {
ID *big.Int `abi:"id"`
Epoch *Epoch `abi:"epoch"`
Uptime *Uptime `abi:"uptime"`
}
func (*CommitEpochChildValidatorSetFn) DecodeAbi ¶ added in v0.8.1
func (c *CommitEpochChildValidatorSetFn) DecodeAbi(buf []byte) error
func (*CommitEpochChildValidatorSetFn) EncodeAbi ¶ added in v0.8.1
func (c *CommitEpochChildValidatorSetFn) EncodeAbi() ([]byte, error)
func (*CommitEpochChildValidatorSetFn) Sig ¶ added in v0.8.1
func (c *CommitEpochChildValidatorSetFn) Sig() []byte
type CommitStateReceiverFn ¶ added in v0.8.1
type CommitStateReceiverFn struct {
Commitment *StateSyncCommitment `abi:"commitment"`
Signature []byte `abi:"signature"`
Bitmap []byte `abi:"bitmap"`
}
func (*CommitStateReceiverFn) DecodeAbi ¶ added in v0.8.1
func (c *CommitStateReceiverFn) DecodeAbi(buf []byte) error
func (*CommitStateReceiverFn) EncodeAbi ¶ added in v0.8.1
func (c *CommitStateReceiverFn) EncodeAbi() ([]byte, error)
func (*CommitStateReceiverFn) Sig ¶ added in v0.8.1
func (c *CommitStateReceiverFn) Sig() []byte
type DelegatedEvent ¶ added in v0.8.1
type DelegatedEvent struct {
Delegator types.Address `abi:"delegator"`
Validator types.Address `abi:"validator"`
Amount *big.Int `abi:"amount"`
}
func (*DelegatedEvent) Encode ¶ added in v0.8.1
func (*DelegatedEvent) Encode(inputs interface{}) ([]byte, error)
func (*DelegatedEvent) ParseLog ¶ added in v0.8.1
func (d *DelegatedEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*DelegatedEvent) Sig ¶ added in v0.8.1
func (*DelegatedEvent) Sig() ethgo.Hash
type DepositToRootERC20PredicateFn ¶ added in v0.8.1
type DepositToRootERC20PredicateFn struct {
RootToken types.Address `abi:"rootToken"`
Receiver types.Address `abi:"receiver"`
Amount *big.Int `abi:"amount"`
}
func (*DepositToRootERC20PredicateFn) DecodeAbi ¶ added in v0.8.1
func (d *DepositToRootERC20PredicateFn) DecodeAbi(buf []byte) error
func (*DepositToRootERC20PredicateFn) EncodeAbi ¶ added in v0.8.1
func (d *DepositToRootERC20PredicateFn) EncodeAbi() ([]byte, error)
func (*DepositToRootERC20PredicateFn) Sig ¶ added in v0.8.1
func (d *DepositToRootERC20PredicateFn) Sig() []byte
type Epoch ¶
type ExecuteStateReceiverFn ¶ added in v0.8.1
func (*ExecuteStateReceiverFn) DecodeAbi ¶ added in v0.8.1
func (e *ExecuteStateReceiverFn) DecodeAbi(buf []byte) error
func (*ExecuteStateReceiverFn) EncodeAbi ¶ added in v0.8.1
func (e *ExecuteStateReceiverFn) EncodeAbi() ([]byte, error)
func (*ExecuteStateReceiverFn) Sig ¶ added in v0.8.1
func (e *ExecuteStateReceiverFn) Sig() []byte
type ExitExitHelperFn ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (e *ExitExitHelperFn) DecodeAbi(buf []byte) error
func (*ExitExitHelperFn) EncodeAbi ¶ added in v0.8.1
func (e *ExitExitHelperFn) EncodeAbi() ([]byte, error)
func (*ExitExitHelperFn) Sig ¶ added in v0.8.1
func (e *ExitExitHelperFn) Sig() []byte
type GetCheckpointBlockCheckpointManagerFn ¶ added in v0.8.1
func (*GetCheckpointBlockCheckpointManagerFn) DecodeAbi ¶ added in v0.8.1
func (g *GetCheckpointBlockCheckpointManagerFn) DecodeAbi(buf []byte) error
func (*GetCheckpointBlockCheckpointManagerFn) EncodeAbi ¶ added in v0.8.1
func (g *GetCheckpointBlockCheckpointManagerFn) EncodeAbi() ([]byte, error)
func (*GetCheckpointBlockCheckpointManagerFn) Sig ¶ added in v0.8.1
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 ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (i *InitializeCheckpointManagerFn) DecodeAbi(buf []byte) error
func (*InitializeCheckpointManagerFn) EncodeAbi ¶ added in v0.8.1
func (i *InitializeCheckpointManagerFn) EncodeAbi() ([]byte, error)
func (*InitializeCheckpointManagerFn) Sig ¶ added in v0.8.1
func (i *InitializeCheckpointManagerFn) Sig() []byte
type InitializeChildERC20PredicateFn ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (i *InitializeChildERC20PredicateFn) DecodeAbi(buf []byte) error
func (*InitializeChildERC20PredicateFn) EncodeAbi ¶ added in v0.8.1
func (i *InitializeChildERC20PredicateFn) EncodeAbi() ([]byte, error)
func (*InitializeChildERC20PredicateFn) Sig ¶ added in v0.8.1
func (i *InitializeChildERC20PredicateFn) Sig() []byte
type InitializeChildValidatorSetFn ¶ added in v0.8.1
type InitializeChildValidatorSetFn struct {
Init *InitStruct `abi:"init"`
Validators []*ValidatorInit `abi:"validators"`
NewBls types.Address `abi:"newBls"`
Governance types.Address `abi:"governance"`
}
func (*InitializeChildValidatorSetFn) DecodeAbi ¶ added in v0.8.1
func (i *InitializeChildValidatorSetFn) DecodeAbi(buf []byte) error
func (*InitializeChildValidatorSetFn) EncodeAbi ¶ added in v0.8.1
func (i *InitializeChildValidatorSetFn) EncodeAbi() ([]byte, error)
func (*InitializeChildValidatorSetFn) Sig ¶ added in v0.8.1
func (i *InitializeChildValidatorSetFn) Sig() []byte
type InitializeNativeERC20Fn ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (i *InitializeNativeERC20Fn) DecodeAbi(buf []byte) error
func (*InitializeNativeERC20Fn) EncodeAbi ¶ added in v0.8.1
func (i *InitializeNativeERC20Fn) EncodeAbi() ([]byte, error)
func (*InitializeNativeERC20Fn) Sig ¶ added in v0.8.1
func (i *InitializeNativeERC20Fn) Sig() []byte
type InitializeNativeERC20MintableFn ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (i *InitializeNativeERC20MintableFn) DecodeAbi(buf []byte) error
func (*InitializeNativeERC20MintableFn) EncodeAbi ¶ added in v0.8.1
func (i *InitializeNativeERC20MintableFn) EncodeAbi() ([]byte, error)
func (*InitializeNativeERC20MintableFn) Sig ¶ added in v0.8.1
func (i *InitializeNativeERC20MintableFn) Sig() []byte
type InitializeRootERC20PredicateFn ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (i *InitializeRootERC20PredicateFn) DecodeAbi(buf []byte) error
func (*InitializeRootERC20PredicateFn) EncodeAbi ¶ added in v0.8.1
func (i *InitializeRootERC20PredicateFn) EncodeAbi() ([]byte, error)
func (*InitializeRootERC20PredicateFn) Sig ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (*L2StateSyncedEvent) Encode(inputs interface{}) ([]byte, error)
func (*L2StateSyncedEvent) ParseLog ¶
func (l *L2StateSyncedEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*L2StateSyncedEvent) Sig ¶ added in v0.8.1
func (*L2StateSyncedEvent) Sig() ethgo.Hash
type MintRootERC20Fn ¶ added in v0.8.1
func (*MintRootERC20Fn) DecodeAbi ¶ added in v0.8.1
func (m *MintRootERC20Fn) DecodeAbi(buf []byte) error
func (*MintRootERC20Fn) EncodeAbi ¶ added in v0.8.1
func (m *MintRootERC20Fn) EncodeAbi() ([]byte, error)
func (*MintRootERC20Fn) Sig ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (*NewCommitmentEvent) Encode(inputs interface{}) ([]byte, error)
func (*NewCommitmentEvent) ParseLog ¶
func (n *NewCommitmentEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*NewCommitmentEvent) Sig ¶ added in v0.8.1
func (*NewCommitmentEvent) Sig() ethgo.Hash
type NewValidatorEvent ¶ added in v0.8.1
type NewValidatorEvent struct {
Validator types.Address `abi:"validator"`
BlsKey [4]*big.Int `abi:"blsKey"`
}
func (*NewValidatorEvent) Encode ¶ added in v0.8.1
func (*NewValidatorEvent) Encode(inputs interface{}) ([]byte, error)
func (*NewValidatorEvent) ParseLog ¶ added in v0.8.1
func (n *NewValidatorEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*NewValidatorEvent) Sig ¶ added in v0.8.1
func (*NewValidatorEvent) Sig() ethgo.Hash
type RegisterChildValidatorSetFn ¶ added in v0.8.1
type RegisterChildValidatorSetFn struct {
Signature [2]*big.Int `abi:"signature"`
Pubkey [4]*big.Int `abi:"pubkey"`
}
func (*RegisterChildValidatorSetFn) DecodeAbi ¶ added in v0.8.1
func (r *RegisterChildValidatorSetFn) DecodeAbi(buf []byte) error
func (*RegisterChildValidatorSetFn) EncodeAbi ¶ added in v0.8.1
func (r *RegisterChildValidatorSetFn) EncodeAbi() ([]byte, error)
func (*RegisterChildValidatorSetFn) Sig ¶ added in v0.8.1
func (r *RegisterChildValidatorSetFn) Sig() []byte
type StakedEvent ¶ added in v0.8.1
type StakedEvent struct {
Validator types.Address `abi:"validator"`
Amount *big.Int `abi:"amount"`
}
func (*StakedEvent) Encode ¶ added in v0.8.1
func (*StakedEvent) Encode(inputs interface{}) ([]byte, error)
func (*StakedEvent) ParseLog ¶ added in v0.8.1
func (s *StakedEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*StakedEvent) Sig ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (*StateSyncResultEvent) Encode(inputs interface{}) ([]byte, error)
func (*StateSyncResultEvent) ParseLog ¶
func (s *StateSyncResultEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*StateSyncResultEvent) Sig ¶ added in v0.8.1
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 ¶ added in v0.8.1
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 ¶ added in v0.8.1
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 ¶ added in v0.8.1
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 ¶ added in v0.8.1
func (s *SubmitCheckpointManagerFn) DecodeAbi(buf []byte) error
func (*SubmitCheckpointManagerFn) EncodeAbi ¶ added in v0.8.1
func (s *SubmitCheckpointManagerFn) EncodeAbi() ([]byte, error)
func (*SubmitCheckpointManagerFn) Sig ¶ added in v0.8.1
func (s *SubmitCheckpointManagerFn) Sig() []byte
type SyncStateStateSenderFn ¶ added in v0.8.1
type SyncStateStateSenderFn struct {
Receiver types.Address `abi:"receiver"`
Data []byte `abi:"data"`
}
func (*SyncStateStateSenderFn) DecodeAbi ¶ added in v0.8.1
func (s *SyncStateStateSenderFn) DecodeAbi(buf []byte) error
func (*SyncStateStateSenderFn) EncodeAbi ¶ added in v0.8.1
func (s *SyncStateStateSenderFn) EncodeAbi() ([]byte, error)
func (*SyncStateStateSenderFn) Sig ¶ added in v0.8.1
func (s *SyncStateStateSenderFn) Sig() []byte
type UndelegatedEvent ¶ added in v0.8.1
type UndelegatedEvent struct {
Delegator types.Address `abi:"delegator"`
Validator types.Address `abi:"validator"`
Amount *big.Int `abi:"amount"`
}
func (*UndelegatedEvent) Encode ¶ added in v0.8.1
func (*UndelegatedEvent) Encode(inputs interface{}) ([]byte, error)
func (*UndelegatedEvent) ParseLog ¶ added in v0.8.1
func (u *UndelegatedEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*UndelegatedEvent) Sig ¶ added in v0.8.1
func (*UndelegatedEvent) Sig() ethgo.Hash
type UnstakedEvent ¶ added in v0.8.1
type UnstakedEvent struct {
Validator types.Address `abi:"validator"`
Amount *big.Int `abi:"amount"`
}
func (*UnstakedEvent) Encode ¶ added in v0.8.1
func (*UnstakedEvent) Encode(inputs interface{}) ([]byte, error)
func (*UnstakedEvent) ParseLog ¶ added in v0.8.1
func (u *UnstakedEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*UnstakedEvent) Sig ¶ added in v0.8.1
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 ¶ added in v0.8.1
type WithdrawToChildERC20PredicateFn struct {
ChildToken types.Address `abi:"childToken"`
Receiver types.Address `abi:"receiver"`
Amount *big.Int `abi:"amount"`
}
func (*WithdrawToChildERC20PredicateFn) DecodeAbi ¶ added in v0.8.1
func (w *WithdrawToChildERC20PredicateFn) DecodeAbi(buf []byte) error
func (*WithdrawToChildERC20PredicateFn) EncodeAbi ¶ added in v0.8.1
func (w *WithdrawToChildERC20PredicateFn) EncodeAbi() ([]byte, error)
func (*WithdrawToChildERC20PredicateFn) Sig ¶ added in v0.8.1
func (w *WithdrawToChildERC20PredicateFn) Sig() []byte
type WithdrawalEvent ¶ added in v0.8.1
type WithdrawalEvent struct {
Account types.Address `abi:"account"`
To types.Address `abi:"to"`
Amount *big.Int `abi:"amount"`
}
func (*WithdrawalEvent) Encode ¶ added in v0.8.1
func (*WithdrawalEvent) Encode(inputs interface{}) ([]byte, error)
func (*WithdrawalEvent) ParseLog ¶ added in v0.8.1
func (w *WithdrawalEvent) ParseLog(log *ethgo.Log) (bool, error)
func (*WithdrawalEvent) Sig ¶ added in v0.8.1
func (*WithdrawalEvent) Sig() ethgo.Hash
Click to show internal directories.
Click to hide internal directories.