Documentation ¶
Overview ¶
Code generated by scapi/gen. DO NOT EDIT.
Index ¶
- Variables
- type Checkpoint
- type CheckpointMetadata
- type CommitEpochFunction
- type CommitFunction
- type Epoch
- type ExecuteFunction
- type InitStruct
- type InitializeCheckpointManagerFunction
- type InitializeChildValidatorSetFunction
- type NewCommitmentEvent
- type StateSync
- type StateSyncCommitment
- type StateSyncResultEvent
- type StateSyncedEvent
- type StateTransactionInput
- type SubmitFunction
- type SyncStateFunction
- type Uptime
- type UptimeData
- type Validator
- type ValidatorInit
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // core-contracts smart contracts CheckpointManager *artifact.Artifact ExitHelper *artifact.Artifact L2StateSender *artifact.Artifact StateSender *artifact.Artifact StateReceiver *artifact.Artifact BLS *artifact.Artifact BLS256 *artifact.Artifact System *artifact.Artifact Merkle *artifact.Artifact ChildValidatorSet *artifact.Artifact MRC20 *artifact.Artifact TestL1StateReceiver *artifact.Artifact TestWriteBlockMetadata *artifact.Artifact )
View Source
var BLSArtifact string = "" /* 53849-byte string literal not displayed */
View Source
var BN256G2Artifact string = "" /* 19246-byte string literal not displayed */
View Source
var CheckpointABIType = abi.MustNewType("tuple(uint256 epoch,uint256 blockNumber,bytes32 eventRoot)")
View Source
var CheckpointManagerArtifact string = "" /* 33802-byte string literal not displayed */
This is auto-generated file. DO NOT EDIT.
View Source
var CheckpointMetadataABIType = abi.MustNewType("tuple(bytes32 blockHash,uint256 blockRound,bytes32 currentValidatorSetHash)")
View Source
var ChildValidatorSetArtifact string = "" /* 134364-byte string literal not displayed */
View Source
var EpochABIType = abi.MustNewType("tuple(uint256 startBlock,uint256 endBlock,bytes32 epochRoot)")
View Source
var ExitHelperArtifact string = "" /* 15852-byte string literal not displayed */
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 MRC20Artifact string = "" /* 28348-byte string literal not displayed */
View Source
var MerkleArtifact string = "" /* 719-byte string literal not displayed */
View Source
var StateReceiverArtifact string = "" /* 30549-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 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 CommitEpochFunction ¶
type CommitEpochFunction struct { ID *big.Int `abi:"id"` Epoch *Epoch `abi:"epoch"` Uptime *Uptime `abi:"uptime"` }
func (*CommitEpochFunction) DecodeAbi ¶
func (c *CommitEpochFunction) DecodeAbi(buf []byte) error
func (*CommitEpochFunction) EncodeAbi ¶
func (c *CommitEpochFunction) EncodeAbi() ([]byte, error)
type CommitFunction ¶
type CommitFunction struct { Commitment *StateSyncCommitment `abi:"commitment"` Signature []byte `abi:"signature"` Bitmap []byte `abi:"bitmap"` }
func (*CommitFunction) DecodeAbi ¶
func (c *CommitFunction) DecodeAbi(buf []byte) error
func (*CommitFunction) EncodeAbi ¶
func (c *CommitFunction) EncodeAbi() ([]byte, error)
type Epoch ¶
type ExecuteFunction ¶
func (*ExecuteFunction) DecodeAbi ¶
func (e *ExecuteFunction) DecodeAbi(buf []byte) error
func (*ExecuteFunction) EncodeAbi ¶
func (e *ExecuteFunction) EncodeAbi() ([]byte, error)
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 InitializeCheckpointManagerFunction ¶
type InitializeCheckpointManagerFunction struct { NewBls types.Address `abi:"newBls"` NewBn256G2 types.Address `abi:"newBn256G2"` ChainID_ *big.Int `abi:"chainId_"` NewValidatorSet []*Validator `abi:"newValidatorSet"` }
func (*InitializeCheckpointManagerFunction) DecodeAbi ¶
func (i *InitializeCheckpointManagerFunction) DecodeAbi(buf []byte) error
func (*InitializeCheckpointManagerFunction) EncodeAbi ¶
func (i *InitializeCheckpointManagerFunction) EncodeAbi() ([]byte, error)
type InitializeChildValidatorSetFunction ¶
type InitializeChildValidatorSetFunction struct { Init *InitStruct `abi:"init"` Validators []*ValidatorInit `abi:"validators"` NewBls types.Address `abi:"newBls"` Governance types.Address `abi:"governance"` }
func (*InitializeChildValidatorSetFunction) DecodeAbi ¶
func (i *InitializeChildValidatorSetFunction) DecodeAbi(buf []byte) error
func (*InitializeChildValidatorSetFunction) EncodeAbi ¶
func (i *InitializeChildValidatorSetFunction) EncodeAbi() ([]byte, error)
type NewCommitmentEvent ¶
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 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) EncodeAbi ¶
func (sse *StateSyncedEvent) EncodeAbi() ([]byte, error)
ToABI converts StateSyncEvent to ABI
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 SubmitFunction ¶
type SubmitFunction struct { CheckpointMetadata *CheckpointMetadata `abi:"checkpointMetadata"` Checkpoint *Checkpoint `abi:"checkpoint"` Signature [2]*big.Int `abi:"signature"` NewValidatorSet []*Validator `abi:"newValidatorSet"` Bitmap []byte `abi:"bitmap"` }
func (*SubmitFunction) DecodeAbi ¶
func (s *SubmitFunction) DecodeAbi(buf []byte) error
func (*SubmitFunction) EncodeAbi ¶
func (s *SubmitFunction) EncodeAbi() ([]byte, error)
type SyncStateFunction ¶
func (*SyncStateFunction) DecodeAbi ¶
func (s *SyncStateFunction) DecodeAbi(buf []byte) error
func (*SyncStateFunction) EncodeAbi ¶
func (s *SyncStateFunction) EncodeAbi() ([]byte, error)
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)
Click to show internal directories.
Click to hide internal directories.