Documentation
¶
Index ¶
- func GetTestBlockInfo(t *testing.T) (consensus.BlockInfo, *p2pconsensus.BlockInfo)
- func GetTestDeclareTransaction(t *testing.T) (consensus.Transaction, *p2pconsensus.ConsensusTransaction)
- func GetTestDeployAccountTransaction(t *testing.T) (consensus.Transaction, *p2pconsensus.ConsensusTransaction)
- func GetTestInvokeTransaction(t *testing.T) (consensus.Transaction, *p2pconsensus.ConsensusTransaction)
- func GetTestL1HandlerTransaction(t *testing.T) (consensus.Transaction, *p2pconsensus.ConsensusTransaction)
- func GetTestProposalCommitment(t *testing.T) (consensus.ProposalCommitment, *p2pconsensus.ProposalCommitment)
- func GetTestProposalFin(t *testing.T) (consensus.ProposalFin, *p2pconsensus.ProposalFin)
- func GetTestProposalInit(t *testing.T) (consensus.ProposalInit, *p2pconsensus.ProposalInit)
- func GetTestTransactions(t *testing.T, factories []TransactionFactory) ([]consensus.Transaction, []*p2pconsensus.ConsensusTransaction)
- func StripCompilerFields(t *testing.T, transaction *consensus.Transaction)
- type TransactionFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestBlockInfo ¶
func GetTestDeclareTransaction ¶
func GetTestDeclareTransaction(t *testing.T) (consensus.Transaction, *p2pconsensus.ConsensusTransaction)
func GetTestDeployAccountTransaction ¶
func GetTestDeployAccountTransaction(t *testing.T) (consensus.Transaction, *p2pconsensus.ConsensusTransaction)
func GetTestInvokeTransaction ¶
func GetTestInvokeTransaction(t *testing.T) (consensus.Transaction, *p2pconsensus.ConsensusTransaction)
func GetTestL1HandlerTransaction ¶
func GetTestL1HandlerTransaction(t *testing.T) (consensus.Transaction, *p2pconsensus.ConsensusTransaction)
func GetTestProposalCommitment ¶
func GetTestProposalCommitment(t *testing.T) (consensus.ProposalCommitment, *p2pconsensus.ProposalCommitment)
func GetTestProposalFin ¶
func GetTestProposalFin(t *testing.T) (consensus.ProposalFin, *p2pconsensus.ProposalFin)
func GetTestProposalInit ¶
func GetTestProposalInit(t *testing.T) (consensus.ProposalInit, *p2pconsensus.ProposalInit)
func GetTestTransactions ¶
func GetTestTransactions(t *testing.T, factories []TransactionFactory) ([]consensus.Transaction, []*p2pconsensus.ConsensusTransaction)
func StripCompilerFields ¶
func StripCompilerFields(t *testing.T, transaction *consensus.Transaction)
StripCompilerFields strips the some fields related to compiler in the compiled class. It's due to the difference between the expected compiler version and the actual compiler version.
Types ¶
type TransactionFactory ¶
type TransactionFactory func(t *testing.T) (consensus.Transaction, *p2pconsensus.ConsensusTransaction)
Click to show internal directories.
Click to hide internal directories.