21 lines
443 B
Go
21 lines
443 B
Go
package swqos
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/gagliardetto/solana-go"
|
|
)
|
|
|
|
type SWQoSClientConfig struct {
|
|
Name string `json:"name"`
|
|
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
|
|
}
|