Documentation ¶
Index ¶
- func GenRandomAddr() sdk.AccAddress
- func GenRandomBucketName() string
- func GenRandomHexString(len int) string
- func GenRandomKeyManager() keys.KeyManager
- func GenRandomObjectName() string
- func ParseMnemonicFromFile(fileName string) string
- func ParseValidatorMnemonic(i int) string
- type BaseSuite
- type Config
- type SPKeyManagers
- type SPMnemonics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandomAddr ¶
func GenRandomAddr() sdk.AccAddress
func GenRandomBucketName ¶
func GenRandomBucketName() string
GenRandomBucketName generate random bucket name.
func GenRandomHexString ¶
func GenRandomKeyManager ¶
func GenRandomKeyManager() keys.KeyManager
func GenRandomObjectName ¶
func GenRandomObjectName() string
GenRandomObjectName generate random object name.
func ParseMnemonicFromFile ¶
func ParseValidatorMnemonic ¶
ParseValidatorMnemonic read the validator mnemonic from file
Types ¶
type BaseSuite ¶
type BaseSuite struct { suite.Suite Config *Config Client *client.GreenfieldClient Validator keys.KeyManager StorageProvider 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) SetupSuite ¶
func (s *BaseSuite) SetupSuite()
type Config ¶
type Config struct { GrpcAddr string `yaml:"GrpcAddr"` ChainId string `yaml:"ChainId"` ValidatorMnemonic string `yaml:"Mnemonic"` // validator operator account mnemonic with enough balance 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 }
type SPMnemonics ¶
type SPMnemonics struct { OperatorMnemonic string `yaml:"Mnemonic"` // operator account mnemonic with enough balance SealMnemonic string `yaml:"Mnemonic"` // seal account mnemonic with enough balance FundingMnemonic string `yaml:"Mnemonic"` // funding account mnemonic with enough balance ApprovalMnemonic string `yaml:"Mnemonic"` // approval 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.