Documentation
¶
Index ¶
- func GenRandomAddr() sdk.AccAddress
- func GenRandomHexString(len int) string
- func GenRandomKeyManager() keys.KeyManager
- func ParseChallengerMnemonic(i int) string
- func ParseMnemonicFromFile(fileName string) string
- func ParseRelayerMnemonic(i int) string
- func ParseValidatorBlsMnemonic(i int) string
- func ParseValidatorMnemonic(i int) string
- func RandInt64(min, max int64) int64
- func YamlString(data interface{}) string
- type BaseSuite
- func (s *BaseSuite) GenAndChargeAccounts(n int, balance int64) (accounts []keys.KeyManager)
- func (s *BaseSuite) SendTxBlock(msg sdk.Msg, from keys.KeyManager) (txRes *sdk.TxResponse)
- func (s *BaseSuite) SendTxBlockWithExpectErrorString(msg sdk.Msg, from keys.KeyManager, expectErrorString string)
- func (s *BaseSuite) SendTxBlockWithoutCheck(msg sdk.Msg, from keys.KeyManager) (*tx.BroadcastTxResponse, error)
- func (s *BaseSuite) SetupSuite()
- func (s *BaseSuite) SimulateTx(msg sdk.Msg, from keys.KeyManager) (txRes *tx.SimulateResponse)
- type Config
- type SPKeyManagers
- type SPMnemonics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandomAddr ¶
func GenRandomAddr() sdk.AccAddress
func GenRandomHexString ¶
func GenRandomKeyManager ¶
func GenRandomKeyManager() keys.KeyManager
func ParseChallengerMnemonic ¶ added in v0.0.10
ParseChallengerMnemonic read the challenger mnemonic from file
func ParseMnemonicFromFile ¶
func ParseRelayerMnemonic ¶ added in v0.0.7
ParseRelayerMnemonic read the relayer mnemonic from file
func ParseValidatorBlsMnemonic ¶ added in v0.0.10
ParseValidatorBlsMnemonic read the validator mnemonic of bls from file
func ParseValidatorMnemonic ¶
ParseValidatorMnemonic read the validator mnemonic from file
func YamlString ¶ added in v0.0.7
func YamlString(data interface{}) string
Types ¶
type BaseSuite ¶
type BaseSuite struct {
suite.Suite
Config *Config
Client *client.GreenfieldClient
TmClient *client.TendermintClient
Validator keys.KeyManager
ValidatorBLS keys.KeyManager
Relayer keys.KeyManager
Challenger keys.KeyManager
StorageProviders []SPKeyManagers
}
func (*BaseSuite) GenAndChargeAccounts ¶
func (s *BaseSuite) GenAndChargeAccounts(n int, balance int64) (accounts []keys.KeyManager)
func (*BaseSuite) SendTxBlock ¶
func (s *BaseSuite) SendTxBlock(msg sdk.Msg, from keys.KeyManager) (txRes *sdk.TxResponse)
func (*BaseSuite) SendTxBlockWithExpectErrorString ¶ added in v0.0.10
func (*BaseSuite) SendTxBlockWithoutCheck ¶ added in v0.0.10
func (s *BaseSuite) SendTxBlockWithoutCheck(msg sdk.Msg, from keys.KeyManager) (*tx.BroadcastTxResponse, error)
func (*BaseSuite) SetupSuite ¶
func (s *BaseSuite) SetupSuite()
func (*BaseSuite) SimulateTx ¶ added in v0.1.2
func (s *BaseSuite) SimulateTx(msg sdk.Msg, from keys.KeyManager) (txRes *tx.SimulateResponse)
type Config ¶
type Config struct {
GrpcAddr string `yaml:"GrpcAddr"`
TendermintAddr string `yaml:"TendermintAddr"`
ChainId string `yaml:"ChainId"`
ValidatorMnemonic string `yaml:"Mnemonic"` // validator operator account mnemonic with enough balance
ValidatorBlsMnemonic string `yaml:"BLSMnemonic"` // validator's mnemonic for bls key
RelayerMnemonic string `yaml:"RelayerMnemonic"` // relayer mnemonic
ChallengerMnemonic string `yaml:"ChallengerMnemonic"` // challenger mnemonic
SPMnemonics []SPMnemonics `yaml:"SPMnemonics"`
Denom string `yaml:"Denom"`
}
func InitConfig ¶
func InitConfig() *Config
func InitE2eConfig ¶
func InitE2eConfig() *Config
type SPKeyManagers ¶
type SPKeyManagers struct {
OperatorKey keys.KeyManager
SealKey keys.KeyManager
FundingKey keys.KeyManager
ApprovalKey keys.KeyManager
GcKey keys.KeyManager
}
type SPMnemonics ¶
type SPMnemonics struct {
OperatorMnemonic string `yaml:"OperatorMnemonic"` // operator account mnemonic with enough balance
SealMnemonic string `yaml:"SealMnemonic"` // seal account mnemonic with enough balance
FundingMnemonic string `yaml:"FundingMnemonic"` // funding account mnemonic with enough balance
ApprovalMnemonic string `yaml:"ApprovalMnemonic"` // approval account mnemonic with enough balance
GcMnemonic string `yaml:"GcMnemonic"` // gc account mnemonic with enough balance
}
func ParseSPMnemonics ¶
func ParseSPMnemonics(i int) SPMnemonics
ParseSPMnemonics read the sp mnemonics from file
Click to show internal directories.
Click to hide internal directories.