Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chain ¶
type Chain struct {
ChainMetadata
// Client is the Soroban RPC client for interacting with the Stellar network
Client *rpcclient.Client
// Signer is the keypair used for signing transactions
Signer StellarSigner
// URL is the Soroban RPC endpoint URL
URL string
// FriendbotURL is the Friendbot endpoint URL for funding test accounts (optional, only required for testing)
FriendbotURL string
// NetworkPassphrase identifies the Stellar network
NetworkPassphrase string
}
Chain represents a Stellar network instance used by the Chainlink Deployments Framework (CLDF).
type ChainMetadata ¶
type ChainMetadata = chaincommon.ChainMetadata
type StellarSigner ¶
type StellarSigner interface {
// Sign signs the given message and returns the signature bytes.
Sign(message []byte) ([]byte, error)
// SignDecorated signs the given message and returns a decorated signature (XDR format).
SignDecorated(message []byte) (xdr.DecoratedSignature, error)
// Address returns the Stellar address derived from the signer's public key.
Address() string
}
StellarSigner is an interface that provides signing capabilities for Stellar transactions.
func NewStellarKeypairSigner ¶
func NewStellarKeypairSigner(kp *keypair.Full) StellarSigner
NewStellarKeypairSigner creates a new StellarSigner from a keypair.Full.
Click to show internal directories.
Click to hide internal directories.