common

package
v0.8.0-RC1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 CreateRelay added in v0.8.1

func CreateRelay(t *testing.T, provider Account, consumer Account, data []byte, seassionID uint64, chainID string, cuSum uint64, blockHeight int64, relayNum uint64, requestBlock int64, dataReliability *types.VRFData) types.RelayRequest

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