common

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRelayRequest

func BuildRelayRequest(ctx context.Context, provider string, contentHash []byte, cuSum uint64, spec string, qos *types.QualityOfServiceReport) *types.RelaySession

func BuySubscription

func BuySubscription(t *testing.T, ctx context.Context, keepers testkeeper.Keepers, servers testkeeper.Servers, acc Account, plan string)

func CreateMockPlan

func CreateMockPlan() plantypes.Plan

func CreateMockSpec

func CreateMockSpec() spectypes.Spec

func CreateMsgDetectionTest

func CreateMsgDetectionTest(ctx context.Context, consumer Account, provider0 Account, provider1 Account, spec spectypes.Spec) (detectionMsg *conflicttypes.MsgDetection, reply1 *types.RelayReply, reply2 *types.RelayReply, errRet error)

func StakeAccount

func StakeAccount(t *testing.T, ctx context.Context, keepers testkeeper.Keepers, servers testkeeper.Servers, acc Account, spec spectypes.Spec, stake int64)

Types

type Account added in v0.4.3

type Account struct {
	SK   *btcSecp256k1.PrivateKey
	Addr sdk.AccAddress
}

func CreateNewAccount

func CreateNewAccount(ctx context.Context, keepers testkeeper.Keepers, balance int64) (acc Account)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL