Documentation ¶
Index ¶
- Constants
- type Signer
- func (signer *Signer) GetERC20CustodyAddress() ethcommon.Address
- func (signer *Signer) GetGatewayAddress() string
- func (signer *Signer) GetZetaConnectorAddress() ethcommon.Address
- func (signer *Signer) HasRelayerKey() bool
- func (signer *Signer) SetERC20CustodyAddress(_ ethcommon.Address)
- func (signer *Signer) SetGatewayAddress(address string)
- func (signer *Signer) SetRelayerBalanceMetrics(ctx context.Context)
- func (signer *Signer) SetZetaConnectorAddress(_ ethcommon.Address)
- func (signer *Signer) TryProcessOutbound(ctx context.Context, cctx *types.CrossChainTx, ...)
Constants ¶
View Source
const ( // SolanaTransactionTimeout is the timeout for waiting for an outbound to be confirmed // Transaction referencing a blockhash older than 150 blocks will expire and be rejected by Solana. SolanaTransactionTimeout = 2 * time.Minute )
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 NewSigner ¶
func NewSigner( chain chains.Chain, chainParams observertypes.ChainParams, solClient interfaces.SolanaRPCClient, tss interfaces.TSSSigner, relayerKey *keys.RelayerKey, ts *metrics.TelemetryServer, logger base.Logger, ) (*Signer, error)
NewSigner creates a new Solana signer
func (*Signer) GetERC20CustodyAddress ¶
func (*Signer) GetGatewayAddress ¶
GetGatewayAddress returns the gateway address
func (*Signer) GetZetaConnectorAddress ¶
func (*Signer) HasRelayerKey ¶
HasRelayerKey returns true if the signer has a relayer key
func (*Signer) SetERC20CustodyAddress ¶
func (*Signer) SetGatewayAddress ¶
SetGatewayAddress sets the gateway address
func (*Signer) SetRelayerBalanceMetrics ¶
SetRelayerBalanceMetrics sets the relayer balance metrics
func (*Signer) SetZetaConnectorAddress ¶
TODO: get rid of below four functions for Solana and Bitcoin https://github.com/zeta-chain/node/issues/2532
func (*Signer) TryProcessOutbound ¶
func (signer *Signer) TryProcessOutbound( ctx context.Context, cctx *types.CrossChainTx, outboundProc *outboundprocessor.Processor, outboundID string, _ interfaces.ChainObserver, 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.