Documentation ¶
Index ¶
- func AcknowledgePacket(endpoint *ibctesting.Endpoint, packet channeltypes.Packet, ack []byte) (*sdk.Result, error)
- func GetHubSimApp(chain *ibctesting.TestChain) *furyaapp.App
- func GetRollappSimApp(chain *ibctesting.TestChain) *simapp.SimApp
- func RecvPacketWithResult(endpoint *ibctesting.Endpoint, packet channeltypes.Packet) (*sdk.Result, error)
- func SendMsgs(furyHubChain *ibctesting.TestChain, sequencerAccount ibctesting.SenderAccount, ...) (*sdk.Result, error)
- func SetupFuryenstionTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage)
- func SetupTestingApp(chainConsensusType string) (ibctesting.TestingApp, map[string]json.RawMessage)
- type FuryintTestChainClient
- func (furyintC *FuryintTestChainClient) BeginBlock()
- func (furyintC *FuryintTestChainClient) ClientConfigToState(ClientConfig ibctesting.ClientConfig) exported.ClientState
- func (furyintC *FuryintTestChainClient) GetConsensusState() exported.ConsensusState
- func (furyintC *FuryintTestChainClient) GetContext() sdk.Context
- func (furyintC *FuryintTestChainClient) GetLastHeader() interface{}
- func (furyintC *FuryintTestChainClient) GetSelfClientType() string
- func (furyintC *FuryintTestChainClient) NewConfig() ibctesting.ClientConfig
- func (furyintC *FuryintTestChainClient) NextBlock()
- func (furyintC *FuryintTestChainClient) UpdateCurrentHeaderTime(t time.Time)
- type IrcTestSuite
- func (suite *IrcTestSuite) CreateRollapp(rollapId string) (err error)
- func (suite *IrcTestSuite) CreateSequencer(rollapId string) error
- func (suite *IrcTestSuite) FinalizeState() (err error)
- func (suite *IrcTestSuite) SetupTest()
- func (suite *IrcTestSuite) UpdateRollappState(rollapId string, bds *rollapptypes.BlockDescriptors) (err error)
- func (suite *IrcTestSuite) UpdateState(rollapId string, bds *rollapptypes.BlockDescriptors) (err error)
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) *furyaapp.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 furya 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 ¶
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