chore: add swqos client
This commit is contained in:
19
pkg/swqos/types.go
Normal file
19
pkg/swqos/types.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user