Files
libsam/pkg/swqos/types.go

21 lines
443 B
Go
Raw Normal View History

2025-12-26 11:13:31 +08:00
package swqos
import (
"context"
"github.com/gagliardetto/solana-go"
)
type SWQoSClientConfig struct {
2025-12-26 13:38:06 +08:00
Name string `json:"name"`
2025-12-26 11:13:31 +08:00
SendTxUrl string `json:"sendTxUrl"`
SendBundleUrl string `json:"sendBundleUrl"`
KeepAliveUrl string `json:"keepAliveUrl"`
}
type SWQoSClient interface {
SendTransaction(ctx context.Context, tx *solana.Transaction) error
SendBundle(ctx context.Context, txs []*solana.Transaction) error
}