Versions in this module Expand all Collapse all v0 v0.5.0-rc1 Nov 25, 2024 v0.5.0-beta7 Dec 3, 2024 v0.5.0-beta6 Dec 2, 2024 v0.5.0-beta5 Nov 27, 2024 v0.5.0-beta4 Nov 27, 2024 v0.5.0-beta3 Nov 26, 2024 v0.5.0-beta2 Nov 25, 2024 v0.4.1 Nov 28, 2024 v0.4.0 Nov 20, 2024 Changes in this version + const BalanceOverflowErrorType + const BalanceOverflowInBridgeExitErrorType + const BalanceProofGenerationFailedErrorType + const BalanceUnderflowErrorType + const BalanceUnderflowInBridgeExitErrorType + const CannotExitToSameNetworkErrorType + const CoreErrorType + const DuplicateTokenBalanceProofErrorType + const Groth16ErrorType + const InvalidBalancePathErrorType + const InvalidImportedBridgeExitErrorType + const InvalidImportedExitsRootErrorType + const InvalidL1TokenInfoErrorType + const InvalidMessageOriginNetworkErrorType + const InvalidNewBalanceRootErrorType + const InvalidNewLocalExitRootErrorType + const InvalidNewNullifierRootErrorType + const InvalidNullifierPathErrorType + const InvalidPreviousBalanceRootErrorType + const InvalidPreviousLERErrorType + const InvalidPreviousNullifierRootErrorType + const InvalidPublicValuesErrorType + const InvalidSignatureErrorType + const InvalidSignerErrorType + const L1InfoRootIncorrectErrorType + const MismatchImportedExitsRootErrorType + const MismatchNewLocalExitRootErrorType + const MissingTokenBalanceProofErrorType + const MultipleL1InfoRootErrorType + const NullifierPathGenerationFailedErrorType + const PlankErrorType + const RecursionErrorType + const UnknownErrorType + const VersionMismatchErrorType + var ErrAgglayerRateLimitExceeded = fmt.Errorf("agglayer rate limit exceeded") + type AggLayerClient struct + func NewAggLayerClient(url string) *AggLayerClient + func (c *AggLayerClient) GetCertificateHeader(certificateHash common.Hash) (*CertificateHeader, error) + func (c *AggLayerClient) GetEpochConfiguration() (*ClockConfiguration, error) + func (c *AggLayerClient) SendCertificate(certificate *SignedCertificate) (common.Hash, error) + func (c *AggLayerClient) SendTx(signedTx SignedTx) (common.Hash, error) + func (c *AggLayerClient) WaitTxToBeMined(hash common.Hash, ctx context.Context) error + type AggLayerClientGetEpochConfiguration interface + GetEpochConfiguration func() (*ClockConfiguration, error) + type AgglayerClientInterface interface + GetCertificateHeader func(certificateHash common.Hash) (*CertificateHeader, error) + SendCertificate func(certificate *SignedCertificate) (common.Hash, error) + SendTx func(signedTx SignedTx) (common.Hash, error) + WaitTxToBeMined func(hash common.Hash, ctx context.Context) error + type AgglayerClientMock struct + func NewAgglayerClientMock(t interface{ ... }) *AgglayerClientMock + func (_m *AgglayerClientMock) EXPECT() *AgglayerClientMock_Expecter + func (_m *AgglayerClientMock) GetCertificateHeader(certificateHash common.Hash) (*CertificateHeader, error) + func (_m *AgglayerClientMock) GetEpochConfiguration() (*ClockConfiguration, error) + func (_m *AgglayerClientMock) SendCertificate(certificate *SignedCertificate) (common.Hash, error) + func (_m *AgglayerClientMock) SendTx(signedTx SignedTx) (common.Hash, error) + func (_m *AgglayerClientMock) WaitTxToBeMined(hash common.Hash, ctx context.Context) error + type AgglayerClientMock_Expecter struct + func (_e *AgglayerClientMock_Expecter) GetCertificateHeader(certificateHash interface{}) *AgglayerClientMock_GetCertificateHeader_Call + func (_e *AgglayerClientMock_Expecter) GetEpochConfiguration() *AgglayerClientMock_GetEpochConfiguration_Call + func (_e *AgglayerClientMock_Expecter) SendCertificate(certificate interface{}) *AgglayerClientMock_SendCertificate_Call + func (_e *AgglayerClientMock_Expecter) SendTx(signedTx interface{}) *AgglayerClientMock_SendTx_Call + func (_e *AgglayerClientMock_Expecter) WaitTxToBeMined(hash interface{}, ctx interface{}) *AgglayerClientMock_WaitTxToBeMined_Call + type AgglayerClientMock_GetCertificateHeader_Call struct + func (_c *AgglayerClientMock_GetCertificateHeader_Call) Return(_a0 *CertificateHeader, _a1 error) *AgglayerClientMock_GetCertificateHeader_Call + func (_c *AgglayerClientMock_GetCertificateHeader_Call) Run(run func(certificateHash common.Hash)) *AgglayerClientMock_GetCertificateHeader_Call + func (_c *AgglayerClientMock_GetCertificateHeader_Call) RunAndReturn(run func(common.Hash) (*CertificateHeader, error)) *AgglayerClientMock_GetCertificateHeader_Call + type AgglayerClientMock_GetEpochConfiguration_Call struct + func (_c *AgglayerClientMock_GetEpochConfiguration_Call) Return(_a0 *ClockConfiguration, _a1 error) *AgglayerClientMock_GetEpochConfiguration_Call + func (_c *AgglayerClientMock_GetEpochConfiguration_Call) Run(run func()) *AgglayerClientMock_GetEpochConfiguration_Call + func (_c *AgglayerClientMock_GetEpochConfiguration_Call) RunAndReturn(run func() (*ClockConfiguration, error)) *AgglayerClientMock_GetEpochConfiguration_Call + type AgglayerClientMock_SendCertificate_Call struct + func (_c *AgglayerClientMock_SendCertificate_Call) Return(_a0 common.Hash, _a1 error) *AgglayerClientMock_SendCertificate_Call + func (_c *AgglayerClientMock_SendCertificate_Call) Run(run func(certificate *SignedCertificate)) *AgglayerClientMock_SendCertificate_Call + func (_c *AgglayerClientMock_SendCertificate_Call) RunAndReturn(run func(*SignedCertificate) (common.Hash, error)) *AgglayerClientMock_SendCertificate_Call + type AgglayerClientMock_SendTx_Call struct + func (_c *AgglayerClientMock_SendTx_Call) Return(_a0 common.Hash, _a1 error) *AgglayerClientMock_SendTx_Call + func (_c *AgglayerClientMock_SendTx_Call) Run(run func(signedTx SignedTx)) *AgglayerClientMock_SendTx_Call + func (_c *AgglayerClientMock_SendTx_Call) RunAndReturn(run func(SignedTx) (common.Hash, error)) *AgglayerClientMock_SendTx_Call + type AgglayerClientMock_WaitTxToBeMined_Call struct + func (_c *AgglayerClientMock_WaitTxToBeMined_Call) Return(_a0 error) *AgglayerClientMock_WaitTxToBeMined_Call + func (_c *AgglayerClientMock_WaitTxToBeMined_Call) Run(run func(hash common.Hash, ctx context.Context)) *AgglayerClientMock_WaitTxToBeMined_Call + func (_c *AgglayerClientMock_WaitTxToBeMined_Call) RunAndReturn(run func(common.Hash, context.Context) error) *AgglayerClientMock_WaitTxToBeMined_Call + type BalanceOverflow struct + func NewBalanceOverflow() *BalanceOverflow + func (e *BalanceOverflow) String() string + type BalanceOverflowInBridgeExit struct + func (e *BalanceOverflowInBridgeExit) String() string + type BalanceProofGenerationFailed struct + func NewBalanceProofGenerationFailed() *BalanceProofGenerationFailed + func (e *BalanceProofGenerationFailed) String() string + func (e *BalanceProofGenerationFailed) UnmarshalFromMap(data interface{}) error + type BalanceUnderflow struct + func NewBalanceUnderflow() *BalanceUnderflow + func (e *BalanceUnderflow) String() string + type BalanceUnderflowInBridgeExit struct + func (e *BalanceUnderflowInBridgeExit) String() string + type BridgeExit struct + Amount *big.Int + DestinationAddress common.Address + DestinationNetwork uint32 + LeafType LeafType + Metadata []byte + TokenInfo *TokenInfo + func (b *BridgeExit) Hash() common.Hash + func (b *BridgeExit) MarshalJSON() ([]byte, error) + func (b *BridgeExit) String() string + type CannotExitToSameNetwork struct + func (e *CannotExitToSameNetwork) String() string + type Certificate struct + BridgeExits []*BridgeExit + Height uint64 + ImportedBridgeExits []*ImportedBridgeExit + Metadata common.Hash + NetworkID uint32 + NewLocalExitRoot [32]byte + PrevLocalExitRoot [32]byte + func (c *Certificate) Hash() common.Hash + func (c *Certificate) HashToSign() common.Hash + func (c *Certificate) String() string + type CertificateHeader struct + CertificateID common.Hash + CertificateIndex *uint64 + EpochNumber *uint64 + Error PPError + Height uint64 + Metadata common.Hash + NetworkID uint32 + NewLocalExitRoot common.Hash + Status CertificateStatus + func (c *CertificateHeader) UnmarshalJSON(data []byte) error + func (c CertificateHeader) String() string + type CertificateStatus int + const Candidate + const InError + const Pending + const Proven + const Settled + func (c *CertificateStatus) UnmarshalJSON(data []byte) error + func (c CertificateStatus) String() string + type Claim interface + Hash func() common.Hash + MarshalJSON func() ([]byte, error) + String func() string + Type func() string + type ClaimFromMainnnet struct + L1Leaf *L1InfoTreeLeaf + ProofGERToL1Root *MerkleProof + ProofLeafMER *MerkleProof + func (c *ClaimFromMainnnet) Hash() common.Hash + func (c *ClaimFromMainnnet) MarshalJSON() ([]byte, error) + func (c *ClaimFromMainnnet) String() string + func (c ClaimFromMainnnet) Type() string + type ClaimFromRollup struct + L1Leaf *L1InfoTreeLeaf + ProofGERToL1Root *MerkleProof + ProofLERToRER *MerkleProof + ProofLeafLER *MerkleProof + func (c *ClaimFromRollup) Hash() common.Hash + func (c *ClaimFromRollup) MarshalJSON() ([]byte, error) + func (c *ClaimFromRollup) String() string + func (c ClaimFromRollup) Type() string + type ClockConfiguration struct + EpochDuration uint64 + GenesisBlock uint64 + func (c ClockConfiguration) String() string + type Core struct + func (e *Core) String() string + type DeclaredComputedError struct + Computed common.Hash + Declared common.Hash + ErrType string + func (e *DeclaredComputedError) String() string + func (e *DeclaredComputedError) UnmarshalFromMap(data interface{}) error + type DuplicateTokenBalanceProof struct + func NewDuplicateTokenBalanceProof() *DuplicateTokenBalanceProof + func (e *DuplicateTokenBalanceProof) String() string + type GlobalIndex struct + LeafIndex uint32 + MainnetFlag bool + RollupIndex uint32 + func (g *GlobalIndex) Hash() common.Hash + func (g *GlobalIndex) String() string + func (g *GlobalIndex) UnmarshalFromMap(data map[string]interface{}) error + type Groth16 struct + func (e *Groth16) String() string + type ImportedBridgeExit struct + BridgeExit *BridgeExit + ClaimData Claim + GlobalIndex *GlobalIndex + func (c *ImportedBridgeExit) Hash() common.Hash + func (c *ImportedBridgeExit) String() string + type InvalidBalancePath struct + func (e *InvalidBalancePath) String() string + type InvalidImportedBridgeExit struct + ErrorType string + GlobalIndex *GlobalIndex + func (e *InvalidImportedBridgeExit) String() string + func (e *InvalidImportedBridgeExit) UnmarshalFromMap(data interface{}) error + type InvalidImportedExitsRoot struct + func NewInvalidImportedExitsRoot() *InvalidImportedExitsRoot + type InvalidL1TokenInfo struct + func NewInvalidL1TokenInfo() *InvalidL1TokenInfo + func (e *InvalidL1TokenInfo) String() string + type InvalidMessageOriginNetwork struct + func (e *InvalidMessageOriginNetwork) String() string + type InvalidNewBalanceRoot struct + func NewInvalidNewBalanceRoot() *InvalidNewBalanceRoot + type InvalidNewLocalExitRoot struct + func NewInvalidNewLocalExitRoot() *InvalidNewLocalExitRoot + type InvalidNewNullifierRoot struct + func NewInvalidNewNullifierRoot() *InvalidNewNullifierRoot + type InvalidNullifierPath struct + func (e *InvalidNullifierPath) String() string + type InvalidPreviousBalanceRoot struct + func NewInvalidPreviousBalanceRoot() *InvalidPreviousBalanceRoot + type InvalidPreviousLocalExitRoot struct + func NewInvalidPreviousLocalExitRoot() *InvalidPreviousLocalExitRoot + type InvalidPreviousNullifierRoot struct + func NewInvalidPreviousNullifierRoot() *InvalidPreviousNullifierRoot + type InvalidPublicValues struct + func (e *InvalidPublicValues) String() string + type InvalidSignature struct + func (e *InvalidSignature) String() string + type InvalidSignerError struct + Declared common.Address + Recovered common.Address + func (e *InvalidSignerError) String() string + func (e *InvalidSignerError) UnmarshalFromMap(data interface{}) error + type L1InfoRootIncorrect struct + Declared common.Hash + LeafCount uint32 + Retrieved common.Hash + func (e *L1InfoRootIncorrect) String() string + func (e *L1InfoRootIncorrect) Unmarshal(data interface{}) error + type L1InfoTreeLeaf struct + Inner *L1InfoTreeLeafInner + L1InfoTreeIndex uint32 + MainnetExitRoot [32]byte + RollupExitRoot [32]byte + func (l *L1InfoTreeLeaf) Hash() common.Hash + func (l *L1InfoTreeLeaf) String() string + type L1InfoTreeLeafInner struct + BlockHash common.Hash + GlobalExitRoot common.Hash + Timestamp uint64 + func (l *L1InfoTreeLeafInner) Hash() common.Hash + func (l *L1InfoTreeLeafInner) MarshalJSON() ([]byte, error) + func (l *L1InfoTreeLeafInner) String() string + type LeafType uint8 + const LeafTypeAsset + const LeafTypeMessage + func (l LeafType) String() string + func (l LeafType) Uint8() uint8 + type MerkleProof struct + Proof [types.DefaultHeight]common.Hash + Root common.Hash + func (m *MerkleProof) Hash() common.Hash + func (m *MerkleProof) MarshalJSON() ([]byte, error) + func (m *MerkleProof) String() string + type MismatchImportedExitsRoot struct + func (e *MismatchImportedExitsRoot) String() string + type MismatchNewLocalExitRoot struct + func NewMismatchNewLocalExitRoot() *MismatchNewLocalExitRoot + type MissingTokenBalanceProof struct + func NewMissingTokenBalanceProof() *MissingTokenBalanceProof + func (e *MissingTokenBalanceProof) String() string + type MultipleL1InfoRoot struct + func (e *MultipleL1InfoRoot) String() string + type NullifierPathGenerationFailed struct + GlobalIndex *GlobalIndex + func NewNullifierPathGenerationFailed() *NullifierPathGenerationFailed + func (e *NullifierPathGenerationFailed) String() string + func (e *NullifierPathGenerationFailed) UnmarshalFromMap(data interface{}) error + type PPError interface + String func() string + type Plank struct + func (e *Plank) String() string + type ProofGenerationError struct + GenerationType string + InnerErrors []PPError + func (p *ProofGenerationError) String() string + func (p *ProofGenerationError) Unmarshal(data interface{}) error + type ProofVerificationError struct + InnerErrors []PPError + func (p *ProofVerificationError) String() string + func (p *ProofVerificationError) Unmarshal(data interface{}) error + type Recursion struct + func (e *Recursion) String() string + type Signature struct + OddParity bool + R common.Hash + S common.Hash + func (s *Signature) String() string + type SignedCertificate struct + Signature *Signature + func (s *SignedCertificate) CopyWithDefaulting() *SignedCertificate + func (s *SignedCertificate) String() string + type SignedTx struct + Signature types.ArgBytes + Tx Tx + func (s *SignedTx) Signer() (common.Address, error) + type SmtError struct + Error string + ErrorCode string + func (e *SmtError) Unmarshal(data interface{}) error + type StringError string + func (e *StringError) Unmarshal(data interface{}) error + type TokenInfo struct + OriginNetwork uint32 + OriginTokenAddress common.Address + func (t *TokenInfo) String() string + type TokenInfoError struct + TokenInfo *TokenInfo + func (e *TokenInfoError) UnmarshalFromMap(data interface{}) error + type Tx struct + LastVerifiedBatch types.ArgUint64 + NewVerifiedBatch types.ArgUint64 + RollupID uint32 + ZKP ZKP + func (t *Tx) Hash() common.Hash + func (t *Tx) Sign(privateKey *ecdsa.PrivateKey) (*SignedTx, error) + type TypeConversionError struct + InnerErrors []PPError + func (p *TypeConversionError) String() string + func (p *TypeConversionError) Unmarshal(data interface{}) error + type UnknownError struct + func (e *UnknownError) String() string + type VersionMismatch struct + func (e *VersionMismatch) String() string + type ZKP struct + NewLocalExitRoot common.Hash + NewStateRoot common.Hash + Proof types.ArgBytes v0.4.0-rc2 Nov 20, 2024 v0.4.0-beta9 Nov 14, 2024 v0.4.0-beta8 Nov 12, 2024 v0.4.0-beta7 Nov 12, 2024 v0.4.0-beta6 Nov 8, 2024 v0.4.0-beta5 Nov 7, 2024 v0.4.0-beta4 Nov 6, 2024 v0.4.0-beta3 Oct 31, 2024 v0.4.0-beta2 Oct 31, 2024 v0.4.0-beta10 Nov 15, 2024