common

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

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 CreateMockPlan

func CreateMockPlan() plantypes.Plan

func CreateMockSpec

func CreateMockSpec() spectypes.Spec

func CreateMsgDetection added in v0.4.3

func CreateMsgDetection(ctx context.Context, consumer Account, provider0 Account, provider1 Account, spec spectypes.Spec) (conflicttypes.MsgDetection, error)

func StakeAccount

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

Types

type Account added in v0.4.3

type Account struct {
	SK    *btcSecp256k1.PrivateKey
	Addr  sdk.AccAddress
	VrfSk vrf.PrivateKey
	VrfPk vrf.PublicKey
}

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