irctesting

package
v0.2.0-gridiron Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 16 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 AcknowledgePacket

func AcknowledgePacket(endpoint *ibctesting.Endpoint, packet channeltypes.Packet, ack []byte) (*sdk.Result, error)

AcknowledgePacket sends a MsgAcknowledgement to the channel associated with the endpoint.

func GetHubSimApp

func GetHubSimApp(chain *ibctesting.TestChain) *gridironapp.App

GetHubSimApp returns the SimApp to allow usage ofnon-interface fields. CONTRACT: This function should not be called by third parties implementing their own SimApp.

func GetRollappSimApp

func GetRollappSimApp(chain *ibctesting.TestChain) *simapp.SimApp

GetRollappSimApp returns the SimApp to allow usage ofnon-interface fields. CONTRACT: This function should not be called by third parties implementing their own SimApp.

func RecvPacketWithResult

func RecvPacketWithResult(endpoint *ibctesting.Endpoint, packet channeltypes.Packet) (*sdk.Result, error)

RecvPacketWithResult receives a packet on the associated endpoint and the result of the transaction is returned.

func SendMsgs

func SendMsgs(furyHubChain *ibctesting.TestChain, sequencerAccount ibctesting.SenderAccount, msgs ...sdk.Msg) (*sdk.Result, error)

SendMsgs delivers a transaction through the application. It updates the senders sequence number and updates the TestChain's headers. It returns the result and error if one occurred.

func SetupFuryenstionTestingApp

func SetupFuryenstionTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage)

SetupFuryenstionTestingApp initializes a new SetupTestApp implements the interface for ibctesting.DefaultTestingAppInit

func SetupTestingApp

func SetupTestingApp(chainConsensusType string) (ibctesting.TestingApp, map[string]json.RawMessage)

SetupTestingApp is a callback for the ibctesting to create a chain the test creates a gridiron chain and furyint chain

Types

type FuryintTestChainClient

type FuryintTestChainClient struct {
	// contains filtered or unexported fields
}

FuryintTestChainClient is a wrapper for baseTestChainClient it is used to intersept the NextBlock() function in order to track after the app.Commit() and get an AppHash. The AppHash is used for generating BD

func (*FuryintTestChainClient) BeginBlock

func (furyintC *FuryintTestChainClient) BeginBlock()

func (*FuryintTestChainClient) ClientConfigToState

func (furyintC *FuryintTestChainClient) ClientConfigToState(ClientConfig ibctesting.ClientConfig) exported.ClientState

func (*FuryintTestChainClient) GetConsensusState

func (furyintC *FuryintTestChainClient) GetConsensusState() exported.ConsensusState

func (*FuryintTestChainClient) GetContext

func (furyintC *FuryintTestChainClient) GetContext() sdk.Context

func (*FuryintTestChainClient) GetLastHeader

func (furyintC *FuryintTestChainClient) GetLastHeader() interface{}

func (*FuryintTestChainClient) GetSelfClientType

func (furyintC *FuryintTestChainClient) GetSelfClientType() string

func (*FuryintTestChainClient) NewConfig

func (furyintC *FuryintTestChainClient) NewConfig() ibctesting.ClientConfig

func (*FuryintTestChainClient) NextBlock

func (furyintC *FuryintTestChainClient) NextBlock()

func (*FuryintTestChainClient) UpdateCurrentHeaderTime

func (furyintC *FuryintTestChainClient) UpdateCurrentHeaderTime(t time.Time)

type IrcTestSuite

type IrcTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func (*IrcTestSuite) CreateRollapp

func (suite *IrcTestSuite) CreateRollapp(rollapId string) (err error)

CreateRollapp creates a rollapp on the hub

func (*IrcTestSuite) CreateSequencer

func (suite *IrcTestSuite) CreateSequencer(rollapId string) error

CreateSequencer creates a sequencer on the hub

func (*IrcTestSuite) FinalizeState

func (suite *IrcTestSuite) FinalizeState() (err error)

FinalizeState advance the hub chain in DisputePeriodInBlocks blocks All rollapp updates will become finalized

func (*IrcTestSuite) SetupTest

func (suite *IrcTestSuite) SetupTest()

func (*IrcTestSuite) UpdateRollappState

func (suite *IrcTestSuite) UpdateRollappState(rollapId string, bds *rollapptypes.BlockDescriptors) (err error)

UpdateRollappState sends state update of all the the new blocks that were collected in the rollapp chain since the last update and finalize the state

func (*IrcTestSuite) UpdateState

func (suite *IrcTestSuite) UpdateState(rollapId string, bds *rollapptypes.BlockDescriptors) (err error)

UpdateState sends state update of all the the new blocks that were collected in the rollapp chain since the last update

Jump to

Keyboard shortcuts

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