signer

package
v0.0.0-...-290478e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	*base.Signer
	// contains filtered or unexported fields
}

Signer deals with signing Solana transactions and implements the ChainSigner interface

func New

func New(
	baseSigner *base.Signer,
	solClient interfaces.SolanaRPCClient,
	gatewayAddress string,
	relayerKey *keys.RelayerKey,
) (*Signer, error)

New Signer constructor.

func (*Signer) GetGatewayAddress

func (signer *Signer) GetGatewayAddress() string

GetGatewayAddress returns the gateway address

func (*Signer) HasRelayerKey

func (signer *Signer) HasRelayerKey() bool

HasRelayerKey returns true if the signer has a relayer key

func (*Signer) SetGatewayAddress

func (signer *Signer) SetGatewayAddress(address string)

SetGatewayAddress sets the gateway address

func (*Signer) SetRelayerBalanceMetrics

func (signer *Signer) SetRelayerBalanceMetrics(ctx context.Context)

SetRelayerBalanceMetrics sets the relayer balance metrics

func (*Signer) TryProcessOutbound

func (signer *Signer) TryProcessOutbound(
	ctx context.Context,
	cctx *types.CrossChainTx,
	zetacoreClient interfaces.ZetacoreClient,
	height uint64,
)

TryProcessOutbound - signer interface implementation This function will attempt to build and sign a Solana transaction using the TSS signer. It will then broadcast the signed transaction to the Solana chain.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL