Documentation
¶
Index ¶
- func ConvertOperationsToBase64XDR(operations []txnbuild.Operation) ([]string, error)
- func RenderResult(useCase *UseCase) string
- func SCAccountID(address string) (xdr.ScAddress, error)
- func WaitForRPCHealthAndRun(ctx context.Context, rpcService services.RPCService, timeout time.Duration, ...) error
- func WaitForTransactionConfirmation(ctx context.Context, rpcService services.RPCService, hash string, ...) (txResult entities.RPCGetTransactionResult, err error)
- type Fixtures
- type IntegrationTests
- type IntegrationTestsOptions
- type Set
- type UseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertOperationsToBase64XDR ¶
ConvertOperationsToBase64XDR converts a slice of operations to their base64 XDR representations.
func RenderResult ¶
RenderResult renders a result string for a use case.
func WaitForRPCHealthAndRun ¶
func WaitForRPCHealthAndRun(ctx context.Context, rpcService services.RPCService, timeout time.Duration, onReady func() error) error
WaitForRPCHealthAndRun waits for the RPC service to become healthy and then runs the given function.
func WaitForTransactionConfirmation ¶
func WaitForTransactionConfirmation(ctx context.Context, rpcService services.RPCService, hash string, retryOptions ...retry.Option) (txResult entities.RPCGetTransactionResult, err error)
Types ¶
type Fixtures ¶
type IntegrationTests ¶
type IntegrationTests struct { BaseFee int64 NetworkPassphrase string RPCService services.RPCService PrimaryAccountKP *keypair.Full SecondaryAccountKP *keypair.Full WBClient *wbclient.Client ChannelAccountStore store.ChannelAccountStore DBConnectionPool db.ConnectionPool DistributionAccountSignatureClient signing.SignatureClient Fixtures Fixtures }
func NewIntegrationTests ¶
func NewIntegrationTests(ctx context.Context, opts IntegrationTestsOptions) (*IntegrationTests, error)
type IntegrationTestsOptions ¶
type IntegrationTestsOptions struct { BaseFee int64 NetworkPassphrase string RPCService services.RPCService PrimaryAccountKP *keypair.Full SecondaryAccountKP *keypair.Full WBClient *wbclient.Client DBConnectionPool db.ConnectionPool DistributionAccountSignatureClient signing.SignatureClient }
func (*IntegrationTestsOptions) Validate ¶
func (o *IntegrationTestsOptions) Validate() error
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
func NewSet ¶
func NewSet[T comparable](values ...T) *Set[T]
Click to show internal directories.
Click to hide internal directories.