utils

package
v0.0.0-...-35166d2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pass              error = nil
	NotImplementError       = fmt.Errorf("Not Implemented.")
)
View Source
var CasperT *testing.T

Functions

func AssertExpectedAndActual

func AssertExpectedAndActual(a expectedAndActualAssertion, expected, actual interface{}) error

func BuildStandardTransferDeploy

func BuildStandardTransferDeploy(namedArgs types.Args) (*types.Deploy, error)

func CreateComplexValue

func CreateComplexValue(typeName string, innerTypes []string, strValues []string) (*clvalue.CLValue, error)

func CreateExpectError

func CreateExpectError(attribute string, actual any, expected any) error

func CreateValue

func CreateValue(typeName string, strValue string) (*clvalue.CLValue, error)

func ExpectEqual

func ExpectEqual(t *testing.T, attribute string, actual any, expected any) error

func GetAccountHash

func GetAccountHash(publicKey string, blockHash string) (string, error)

func GetAuctionInfoByHash

func GetAuctionInfoByHash(hash string) (string, error)

func GetByJsonPath

func GetByJsonPath(jsonStr string, path string) (string, error)

func GetChainName

func GetChainName() string

func GetConfigChainName

func GetConfigChainName() string

func GetEraSummary

func GetEraSummary(blockHash string) (rpc.ChainGetEraSummaryResult, error)

func GetLatestBlock

func GetLatestBlock() (casper.Block, error)

func GetNodeByJsonPath

func GetNodeByJsonPath(jsonStr string, path string) (*jsonquery.Node, error)

func GetNodeStatus

func GetNodeStatus(nodeId int) (casper.InfoGetStatusResult, error)

func GetRPCClient

func GetRPCClient() casper.RPCClient

func GetRpcError

func GetRpcError(err interface{}) rpc.RpcError

func GetSpeculativeClient

func GetSpeculativeClient() *rpc.SpeculativeClient

func GetSseClient

func GetSseClient() *sse.Client

func GetStateAccountInfo

func GetStateAccountInfo(publicKey string, blockHash string) (string, error)

func GetStateRootHash

func GetStateRootHash(nodeId int) (string, error)

func GetUserKeyAssetPath

func GetUserKeyAssetPath(networkId int, userId int, keyFilename string) string

func QueryBalance

func QueryBalance(purseIdentifierName string, identifier string) (string, error)

func ReadConfig

func ReadConfig()

func StateGetBalance

func StateGetBalance(stateRootHash string, purseUref string) (big.Int, error)

func TestFeatures

func TestFeatures(t *testing.T, featureName string, scenarioInitializer func(*godog.ScenarioContext))

func WaitForBlockAdded

func WaitForBlockAdded(deployHash string, timeoutSeconds int) (sse.BlockAddedEvent, error)

func WaitForDeploy

func WaitForDeploy(deployHash string, timeoutSeconds int) (casper.InfoGetDeployResult, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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