Documentation ¶
Index ¶
- Variables
- type Config
- type EVMTopologies
- func (t *EVMTopologies) GetState(k string) ([]byte, []types.StateProvider, error)
- func (t *EVMTopologies) Keys() []string
- func (t *EVMTopologies) LoadState(ctx context.Context, payload *types.Payload) ([]types.StateProvider, error)
- func (t *EVMTopologies) Namespace() types.SnapshotNamespace
- func (t *EVMTopologies) OnStateLoaded(ctx context.Context) error
- func (t *EVMTopologies) Stopped() bool
- type EthConfirmations
- type EthereumClient
- type EthereumEventSource
- type MultiSigOnChainVerifier
- type OnChainVerifier
- type Topology
- func (t *Topology) ChainID() string
- func (t *Topology) Checkpoint() ([]byte, error)
- func (t *Topology) ExcessSigners(addresses []string) bool
- func (t *Topology) GetSigners() []string
- func (t *Topology) GetState(k string) ([]byte, []types.StateProvider, error)
- func (t *Topology) GetThreshold() uint32
- func (t *Topology) IsSigner(address string) bool
- func (t *Topology) Keys() []string
- func (t *Topology) Load(ctx context.Context, data []byte) error
- func (t *Topology) LoadState(ctx context.Context, payload *types.Payload) ([]types.StateProvider, error)
- func (t *Topology) Name() types.CheckpointName
- func (t *Topology) Namespace() types.SnapshotNamespace
- func (t *Topology) OnStateLoaded(ctx context.Context) error
- func (t *Topology) OnTick(ctx context.Context, ct time.Time)
- func (t *Topology) ProcessSignerEvent(event *types.SignerEvent) error
- func (t *Topology) ProcessThresholdEvent(event *types.SignerThresholdSetEvent) error
- func (t *Topology) SetChainID(chainID string)
- func (t *Topology) SetEthereumEventSource(e EthereumEventSource)
- func (t *Topology) SetWitness(w Witness)
- func (t *Topology) Stopped() bool
- type Witness
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSignerEventFound = errors.New("no signer event found") ErrNoThresholdSetEventFound = errors.New("no threshold set event found") ErrUnsupportedSignerEvent = errors.New("unsupported signer event") )
View Source
var ( ErrDuplicatedSignerEvent = errors.New("duplicated signer event") ErrDuplicatedThresholdEvent = errors.New("duplicated threshold event") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config represents governance specific configuration.
func NewDefaultConfig ¶
func NewDefaultConfig() Config
NewDefaultConfig creates an instance of the package specific configuration.
type EVMTopologies ¶ added in v0.76.0
type EVMTopologies struct {
// contains filtered or unexported fields
}
Topology keeps track of all the validators registered in the erc20 bridge.
func NewEVMTopologies ¶ added in v0.76.0
func NewEVMTopologies( secondBridge *Topology, ) *EVMTopologies
func (*EVMTopologies) GetState ¶ added in v0.76.0
func (t *EVMTopologies) GetState(k string) ([]byte, []types.StateProvider, error)
func (*EVMTopologies) Keys ¶ added in v0.76.0
func (t *EVMTopologies) Keys() []string
func (*EVMTopologies) LoadState ¶ added in v0.76.0
func (t *EVMTopologies) LoadState(ctx context.Context, payload *types.Payload) ([]types.StateProvider, error)
func (*EVMTopologies) Namespace ¶ added in v0.76.0
func (t *EVMTopologies) Namespace() types.SnapshotNamespace
func (*EVMTopologies) OnStateLoaded ¶ added in v0.76.0
func (t *EVMTopologies) OnStateLoaded(ctx context.Context) error
func (*EVMTopologies) Stopped ¶ added in v0.76.0
func (t *EVMTopologies) Stopped() bool
type EthConfirmations ¶
type EthereumClient ¶
type EthereumClient interface { bind.ContractFilterer }
type EthereumEventSource ¶
type EthereumEventSource interface {
UpdateMultisigControlStartingBlock(uint64)
}
type MultiSigOnChainVerifier ¶
type MultiSigOnChainVerifier interface { CheckSignerEvent(*types.SignerEvent) error CheckThresholdSetEvent(*types.SignerThresholdSetEvent) error }
type OnChainVerifier ¶
type OnChainVerifier struct {
// contains filtered or unexported fields
}
func NewOnChainVerifier ¶
func NewOnChainVerifier( config Config, log *logging.Logger, ethClient EthereumClient, ethConfirmations EthConfirmations, ) *OnChainVerifier
func (*OnChainVerifier) CheckSignerEvent ¶
func (o *OnChainVerifier) CheckSignerEvent(event *types.SignerEvent) error
func (*OnChainVerifier) CheckThresholdSetEvent ¶
func (o *OnChainVerifier) CheckThresholdSetEvent( event *types.SignerThresholdSetEvent, ) error
func (*OnChainVerifier) UpdateMultiSigAddress ¶
func (o *OnChainVerifier) UpdateMultiSigAddress(multiSigAddress ethcmn.Address, chainID string)
type Topology ¶
type Topology struct {
// contains filtered or unexported fields
}
Topology keeps track of all the validators registered in the erc20 bridge.
func NewTopology ¶
func (*Topology) Checkpoint ¶
func (*Topology) ExcessSigners ¶
func (*Topology) GetSigners ¶
func (*Topology) GetThreshold ¶
func (*Topology) Name ¶
func (t *Topology) Name() types.CheckpointName
func (*Topology) Namespace ¶
func (t *Topology) Namespace() types.SnapshotNamespace
func (*Topology) ProcessSignerEvent ¶
func (t *Topology) ProcessSignerEvent(event *types.SignerEvent) error
func (*Topology) ProcessThresholdEvent ¶
func (t *Topology) ProcessThresholdEvent(event *types.SignerThresholdSetEvent) error
func (*Topology) SetChainID ¶ added in v0.76.0
SetChainID sets the chainID of the EVM chain this multisig tracker belongs to.
func (*Topology) SetEthereumEventSource ¶
func (t *Topology) SetEthereumEventSource(e EthereumEventSource)
func (*Topology) SetWitness ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.