chore: add swqos client

This commit is contained in:
2025-12-26 11:13:31 +08:00
parent b484273cba
commit 0d2e29cacf
19 changed files with 839 additions and 3 deletions

19
pkg/swqos/types.go Normal file
View File

@@ -0,0 +1,19 @@
package swqos
import (
"context"
"github.com/gagliardetto/solana-go"
)
type SWQoSClientConfig struct {
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
}