Documentation ¶
Index ¶
- Constants
- type BroadcastMessageSignatureIn
- type ChainInfoIn
- type Client
- func (c Client) AddExternalChainInfo(ctx context.Context, chainInfos ...ChainInfoIn) error
- func (c Client) AddMessageEvidence(ctx context.Context, queueTypeName string, messageID uint64, ...) error
- func (c Client) BlockHeight(ctx context.Context) (int64, error)
- func (c Client) BroadcastMessageSignatures(ctx context.Context, signatures ...BroadcastMessageSignatureIn) error
- func (c Client) DeleteJob(ctx context.Context, queueTypeName string, id uint64) error
- func (c Client) GetValidatorAddress() sdk.ValAddress
- func (c *Client) Init()
- func (c Client) KeepValidatorAlive(ctx context.Context) error
- func (c Client) Keyring() keyring.Keyring
- func (c Client) QueryGetEVMChainInfos(ctx context.Context) ([]*evm.ChainInfo, error)
- func (c Client) QueryGetEVMValsetByID(ctx context.Context, id uint64, chainReferenceID string) (*types.Valset, error)
- func (c Client) QueryGetSnapshotByID(ctx context.Context, id uint64) (*valset.Snapshot, error)
- func (c Client) QueryGetValidatorAliveUntil(ctx context.Context) (time.Time, error)
- func (c Client) QueryMessagesForSigning(ctx context.Context, queueTypeName string) ([]chain.QueuedMessage, error)
- func (c Client) QueryMessagesInQueue(ctx context.Context, queueTypeName string) ([]chain.MessageWithSignatures, error)
- func (c Client) QueryValidatorInfo(ctx context.Context) ([]*valset.ExternalChainInfo, error)
- func (c Client) SetPublicAccessData(ctx context.Context, queueTypeName string, messageID uint64, data []byte) error
- type MessageSender
Constants ¶
const ( ErrUnableToDecodeAddress = whoops.Errorf("unable to decode address: %s") ErrNodeIsNotInSync = whoops.String("paloma node is not in sync") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainInfoIn ¶
type Client ¶
type Client struct { L *chain.LensClient PalomaConfig config.Paloma GRPCClient grpc.ClientConn MessageSender MessageSender // contains filtered or unexported fields }
func (Client) AddExternalChainInfo ¶
func (c Client) AddExternalChainInfo(ctx context.Context, chainInfos ...ChainInfoIn) error
AddExternalChainInfo adds info about the external chain. It adds the chain's account addresses that the pigeon knows about.
func (Client) AddMessageEvidence ¶
func (Client) BlockHeight ¶ added in v0.4.0
func (Client) BroadcastMessageSignatures ¶
func (c Client) BroadcastMessageSignatures(ctx context.Context, signatures ...BroadcastMessageSignatureIn) error
BroadcastMessageSignatures takes a list of signatures that need to be sent over to the chain. It build the message and sends it over.
func (Client) GetValidatorAddress ¶ added in v0.4.0
func (c Client) GetValidatorAddress() sdk.ValAddress
func (Client) KeepValidatorAlive ¶ added in v0.5.0
func (Client) QueryGetEVMChainInfos ¶
TODO: this should return all chain infos. Not the ones from EVM only.
func (Client) QueryGetEVMValsetByID ¶
func (Client) QueryGetSnapshotByID ¶
QueryGetSnapshotByID returns the snapshot by id. If the ID is zero, then it returns the last snapshot.
func (Client) QueryGetValidatorAliveUntil ¶ added in v0.5.0
func (Client) QueryMessagesForSigning ¶
func (c Client) QueryMessagesForSigning( ctx context.Context, queueTypeName string, ) ([]chain.QueuedMessage, error)
QueryMessagesForSigning returns a list of messages from a given queueTypeName that need to be signed by the provided validator given the valAddress.
func (Client) QueryMessagesInQueue ¶
func (c Client) QueryMessagesInQueue(ctx context.Context, queueTypeName string) ([]chain.MessageWithSignatures, error)
QueryMessagesInQueue returns all messages that are currently in the queue.
func (Client) QueryValidatorInfo ¶
QueryValidatorInfo returns info about the validator.