Documentation
¶
Index ¶
- Constants
- Variables
- func BytesToQuorumNums(data []byte) types.QuorumNums
- func EcdsaAddress(key *ecdsa.PrivateKey) common.Address
- func ExpandPubkey(pubkey *bls.G1Point) ([32]byte, [32]byte)
- func FixFilepath(path string) string
- func GetAvsName(chainID *big.Int) string
- func GetTxCost(receipt *types.Receipt) float64
- func PromptEcdsaKey(path string) (*ecdsa.PrivateKey, error)
- func ProverAddrHash(url string) common.Hash
- func ReadBlsKey(path string, password string) (*bls.KeyPair, error)
- func ReadPassword(prompt string) (string, error)
- func Retry[T any](retryTime int, sleep time.Duration, fn func() (T, error), ctx ...interface{}) (out T, err error)
- func SplitPubkey(pubkey []byte) ([32]byte, [32]byte)
- func WaitTx(ctx context.Context, client *ethclient.Client, tx *types.Transaction, ...) (*types.Receipt, error)
- func WeiToF64(val *big.Int, decimals int64) float64
- type KeyLogTracer
- type KeyLogTracerSourceClient
- type LogHandler
- type LogTracer
- type LogTracerConfig
- type Logger
- func (l *Logger) Debug(msg string, tags ...any)
- func (l *Logger) Debugf(template string, args ...interface{})
- func (l *Logger) Error(msg string, tags ...any)
- func (l *Logger) Errorf(template string, args ...interface{})
- func (l *Logger) Fatal(msg string, tags ...any)
- func (l *Logger) Fatalf(template string, args ...interface{})
- func (l *Logger) Info(msg string, tags ...any)
- func (l *Logger) Infof(template string, args ...interface{})
- func (l *Logger) Warn(msg string, tags ...any)
- func (l *Logger) Warnf(template string, args ...interface{})
- func (l *Logger) With(args ...any) logging.Logger
- type OperatorAvsStateMap
- type PresetAttestationConfig
- type PresetConfig
- type QuorumAvsStateMap
- type RegistryCache
- func (c *RegistryCache) GetCheckSignaturesIndices(opts *bind.CallOpts, referenceBlockNumber types.BlockNum, ...) (opstateretriever.OperatorStateRetrieverCheckSignaturesIndices, error)
- func (c *RegistryCache) GetOperatorsAvsStateAtBlock(ctx context.Context, quorumNumbers types.QuorumNums, ...) (OperatorAvsStateMap, error)
- func (c *RegistryCache) GetQuorumsAvsStateAtBlock(ctx context.Context, quorumNumbers types.QuorumNums, ...) (QuorumAvsStateMap, error)
- type SingleFlightLruCache
Constants ¶
View Source
const ATT_AUTOMATA = "automata"
View Source
const ATT_AUTOMATA_TEST = "automata_test"
View Source
const ATT_HOLESKY = "holesky"
View Source
const ATT_OPTIMISM = "optimism"
View Source
const MULTI_PROVER_AVS_NAME = "MultiProverAVS"
Variables ¶
View Source
var HoleskyTestnetPreset = &PresetConfig{ RegistryCoordinatorAddress: common.HexToAddress("0x62c715575cE3Ad7C5a43aA325b881c70564f2215"), OperatorStateRetrieverAddress: common.HexToAddress("0xbfd43ac0a19c843e44491c3207ea13914818E214"), LineaProverURL: "https://avs-prover-staging.ata.network", ScrollProverURL: "https://avs-prover-staging.ata.network", DefaultAttestationLayer: ATT_HOLESKY, AttestationLayer: map[string]*PresetAttestationConfig{ ATT_HOLESKY: { Address: common.HexToAddress("0x2E8628F6000Ef85dea615af6Da4Fd6dF4fD149e6"), }, ATT_AUTOMATA_TEST: { URL: "https://rpc.ata.network", Address: common.HexToAddress("0x2c674af4C9B6DE266E4515Be0E2A9C1c30452026"), }, }, }
View Source
var MainnetPreset = &PresetConfig{ RegistryCoordinatorAddress: common.HexToAddress("0x414696E4F7f06273973E89bfD3499e8666D63Bd4"), OperatorStateRetrieverAddress: common.HexToAddress("0x91246253d3Bff9Ae19065A90dC3AB6e09EefD2B6"), LineaProverURL: "https://avs-prover-mainnet1.ata.network:18232", ScrollProverURL: "https://avs-prover-mainnet1.ata.network:18232", DefaultAttestationLayer: ATT_OPTIMISM, AttestationLayer: map[string]*PresetAttestationConfig{ ATT_OPTIMISM: { URL: "", Address: common.HexToAddress("0x99886d5C39c0DF3B0EAB67FcBb4CA230EF373510"), }, ATT_AUTOMATA: { URL: "https://rpc.ata.network", Address: common.HexToAddress("0x2c674af4C9B6DE266E4515Be0E2A9C1c30452026"), }, }, }
View Source
var PresetConfigs = []*PresetConfig{HoleskyTestnetPreset, MainnetPreset}
View Source
var (
ZeroAddress common.Address
)
Functions ¶
func BytesToQuorumNums ¶
func BytesToQuorumNums(data []byte) types.QuorumNums
func EcdsaAddress ¶
func EcdsaAddress(key *ecdsa.PrivateKey) common.Address
func FixFilepath ¶
func GetAvsName ¶ added in v0.2.0
func PromptEcdsaKey ¶
func PromptEcdsaKey(path string) (*ecdsa.PrivateKey, error)
func ProverAddrHash ¶ added in v0.2.0
func ReadPassword ¶
func SplitPubkey ¶
Types ¶
type KeyLogTracer ¶ added in v0.3.0
type KeyLogTracer struct{}
type KeyLogTracerSourceClient ¶ added in v0.2.0
type KeyLogTracerSourceClient struct{}
type LogHandler ¶ added in v0.2.0
type LogTracer ¶ added in v0.2.0
type LogTracer struct {
// contains filtered or unexported fields
}
func NewLogTracer ¶ added in v0.2.0
func NewLogTracer(source *ethclient.Client, cfg *LogTracerConfig) *LogTracer
type LogTracerConfig ¶ added in v0.2.0
type OperatorAvsStateMap ¶ added in v0.2.3
type OperatorAvsStateMap = map[types.OperatorId]types.OperatorAvsState
type PresetAttestationConfig ¶ added in v0.5.0
type PresetConfig ¶ added in v0.3.0
type PresetConfig struct { RegistryCoordinatorAddress common.Address OperatorStateRetrieverAddress common.Address // TEELivenessVerifierAddress common.Address DefaultAttestationLayer string AttestationLayer map[string]*PresetAttestationConfig LineaProverURL string ScrollProverURL string }
func PresetConfigByRegistryCoordinatorAddress ¶ added in v0.3.0
func PresetConfigByRegistryCoordinatorAddress(registryCoordinatorAddress common.Address) *PresetConfig
func (*PresetConfig) GetAttestationLayer ¶ added in v0.5.0
func (p *PresetConfig) GetAttestationLayer(profile string) *PresetAttestationConfig
type QuorumAvsStateMap ¶ added in v0.2.3
type QuorumAvsStateMap = map[types.QuorumNum]types.QuorumAvsState
type RegistryCache ¶ added in v0.2.3
type RegistryCache struct {
// contains filtered or unexported fields
}
func NewRegistryCache ¶ added in v0.2.3
func NewRegistryCache(avsStateCaller *avsregistry.AvsRegistryServiceChainCaller) *RegistryCache
func (*RegistryCache) GetCheckSignaturesIndices ¶ added in v0.2.3
func (c *RegistryCache) GetCheckSignaturesIndices(opts *bind.CallOpts, referenceBlockNumber types.BlockNum, quorumNumbers types.QuorumNums, nonSignerOperatorIds []types.OperatorId) (opstateretriever.OperatorStateRetrieverCheckSignaturesIndices, error)
func (*RegistryCache) GetOperatorsAvsStateAtBlock ¶ added in v0.2.3
func (c *RegistryCache) GetOperatorsAvsStateAtBlock(ctx context.Context, quorumNumbers types.QuorumNums, blockNumber types.BlockNum) (OperatorAvsStateMap, error)
func (*RegistryCache) GetQuorumsAvsStateAtBlock ¶ added in v0.2.3
func (c *RegistryCache) GetQuorumsAvsStateAtBlock(ctx context.Context, quorumNumbers types.QuorumNums, blockNumber types.BlockNum) (QuorumAvsStateMap, error)
type SingleFlightLruCache ¶ added in v0.2.3
type SingleFlightLruCache[K comparable, V any] struct { // contains filtered or unexported fields }
func NewSingleFlightLruCache ¶ added in v0.2.3
func NewSingleFlightLruCache[K comparable, V any](cap int) *SingleFlightLruCache[K, V]
func (*SingleFlightLruCache[K, V]) Get ¶ added in v0.2.3
func (s *SingleFlightLruCache[K, V]) Get(key K, getter func(key K) (V, error)) (V, error)
Click to show internal directories.
Click to hide internal directories.