Documentation
¶
Index ¶
- type Signer
- func (signer *Signer) GetGatewayAddress() string
- func (signer *Signer) HasRelayerKey() bool
- func (signer *Signer) SetGatewayAddress(address string)
- func (signer *Signer) SetRelayerBalanceMetrics(ctx context.Context)
- func (signer *Signer) TryProcessOutbound(ctx context.Context, cctx *types.CrossChainTx, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
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 ¶
GetGatewayAddress returns the gateway address
func (*Signer) HasRelayerKey ¶
HasRelayerKey returns true if the signer has a relayer key
func (*Signer) SetGatewayAddress ¶
SetGatewayAddress sets the gateway address
func (*Signer) SetRelayerBalanceMetrics ¶
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.
Click to show internal directories.
Click to hide internal directories.