Documentation ¶
Index ¶
Constants ¶
View Source
const ( TxFailRevert = iota TxFailReject TxFailDrop TxFailSimRevert TxFailSimOther )
View Source
const ( MaxQueueLen = 1000 MaxRetryTimeMs = 250 // max tx retry time (exponential retry will taper to retry every 0.25s) MaxSigsToConfirm = 256 // max number of signatures in GetSignatureStatus call )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PendingTxContext ¶ added in v1.5.0
type PendingTxContext interface { Add(sig solana.Signature, cancel context.CancelFunc) error Remove(sig solana.Signature) ListAll() []solana.Signature Expired(sig solana.Signature, lifespan time.Duration) bool // state change hooks OnSuccess(sig solana.Signature) OnError(sig solana.Signature, errType int) // match err type using enum }
type Txm ¶
type Txm struct {
// contains filtered or unexported fields
}
Txm manages transactions for the solana blockchain. simple implementation with no persistently stored txs
func NewTxm ¶
func NewTxm(chainID string, tc func() (solanaClient.ReaderWriter, error), cfg config.Config, ks keystore.Solana, lggr logger.Logger) *Txm
NewTxm creates a txm. Uses simulation so should only be used to send txes to trusted contracts i.e. OCR.
func (*Txm) Enqueue ¶
func (txm *Txm) Enqueue(accountID string, tx *solanaGo.Transaction) error
Enqueue enqueue a msg destined for the solana chain.
func (*Txm) InflightTxs ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.