Documentation ¶
Index ¶
- func ExtractPartCoin(rnd *rand.Rand, coin sdk.Coin) sdk.Coin
- func RandomChoice[T any](rnd *rand.Rand, list []T) T
- func RandomChoiceMap[K comparable, V any](rnd *rand.Rand, m map[K]V) (K, V)
- func RandomRange(rnd *rand.Rand, bottom, up int64) int64
- func RandomString(rnd *rand.Rand, n int64, source string) string
- func RandomSublist[T any](rnd *rand.Rand, list []T) []T
- type Action
- type ActionGenerator
- type ActionReactor
- type BurnCoinAction
- type BurnCoinGenerator
- type BurnNFTAction
- type BurnNFTGenerator
- type BuyCoinAction
- type BuyCoinGenerator
- type CancelRedelegationAction
- type CancelRedelegationGenerator
- type CancelRedelegationNFTAction
- func (ac *CancelRedelegationNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
- func (ac *CancelRedelegationNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
- func (ac *CancelRedelegationNFTAction) String() string
- type CancelRedelegationNFTGenerator
- type CancelUndelegationAction
- type CancelUndelegationGenerator
- type CancelUndelegationNFTAction
- func (ac *CancelUndelegationNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
- func (ac *CancelUndelegationNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
- func (ac *CancelUndelegationNFTAction) String() string
- type CancelUndelegationNFTGenerator
- type CreateCoinAction
- type CreateCoinGenerator
- type CreateMultisigTransactionAction
- func (aa *CreateMultisigTransactionAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
- func (aa *CreateMultisigTransactionAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
- func (aa *CreateMultisigTransactionAction) String() string
- type CreateMultisigTransactionGenerator
- type CreateMultisigWalletAction
- func (aa *CreateMultisigWalletAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
- func (aa *CreateMultisigWalletAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
- func (aa *CreateMultisigWalletAction) String() string
- type CreateMultisigWalletGenerator
- type CreateValidatorAction
- type CreateValidatorGenerator
- type DelegateAction
- type DelegateGenerator
- type DelegateNFTAction
- type DelegateNFTGenerator
- type DepositMultisigWalletAction
- func (aa *DepositMultisigWalletAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
- func (aa *DepositMultisigWalletAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
- func (aa *DepositMultisigWalletAction) String() string
- type DepositMultisigWalletGenerator
- type EditNFTAction
- type EditNFTGenerator
- type EditValidatorAction
- type EditValidatorGenerator
- type EmptyAction
- type MintNFTAction
- type MintNFTGenerator
- type MultiSendCoinAction
- type MultiSendCoinGenerator
- type NFTSubTokenKey
- type RedeemCheckAction
- type RedeemCheckGenerator
- type RedelegateAction
- type RedelegateGenerator
- type RedelegateNFTAction
- type RedelegateNFTGenerator
- type SellCoinAction
- type SellCoinGenerator
- type SendCoinAction
- type SendCoinGenerator
- type SetOfflineValidatorAction
- type SetOfflineValidatorGenerator
- type SetOnlineValidatorAction
- type SetOnlineValidatorGenerator
- type SignMultisigTransactionAction
- func (aa *SignMultisigTransactionAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
- func (aa *SignMultisigTransactionAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
- func (aa *SignMultisigTransactionAction) String() string
- type SignMultisigTransactionGenerator
- type TPSLimiter
- type TransferNFTAction
- type TransferNFTGenerator
- type UndelegateAction
- type UndelegateGenerator
- type UndelegateNFTAction
- type UndelegateNFTGenerator
- type UpdateCoinAction
- type UpdateCoinGenerator
- type UpdateInfo
- type UpdateReserveNFTAction
- type UpdateReserveNFTGenerator
- type WeightedAG
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPartCoin ¶ added in v0.0.8
extract part of stake for un/redelegation
func RandomChoice ¶
func RandomChoiceMap ¶ added in v0.0.8
func RandomChoiceMap[K comparable, V any](rnd *rand.Rand, m map[K]V) (K, V)
func RandomRange ¶
returns random number in range [low,up)
func RandomString ¶
returns random string length n
func RandomSublist ¶
Types ¶
type Action ¶
type Action interface { // returns list of accounts than can make transaction // need to decrease count of invalid actions, required ownership of coin/nft, coin balance etc... ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount // generate signed transaction data GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error) // for debug puprposes String() string }
type ActionGenerator ¶
type ActionGenerator interface { Generate() Action Update(ui UpdateInfo) }
Generate some action with random parameters
type ActionReactor ¶
type ActionReactor struct {
// contains filtered or unexported fields
}
func (*ActionReactor) Add ¶
func (ar *ActionReactor) Add(generatorName string, weight int64, baseDenom string) error
TODO: parameters for generator
func (*ActionReactor) Generate ¶
func (ar *ActionReactor) Generate() Action
choose generator and generate action
func (*ActionReactor) Update ¶
func (ar *ActionReactor) Update(ui UpdateInfo)
type BurnCoinAction ¶ added in v0.0.8
type BurnCoinAction struct {
// contains filtered or unexported fields
}
func (*BurnCoinAction) ChooseAccounts ¶ added in v0.0.8
func (aa *BurnCoinAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*BurnCoinAction) GenerateTx ¶ added in v0.0.8
func (aa *BurnCoinAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*BurnCoinAction) String ¶ added in v0.0.8
func (aa *BurnCoinAction) String() string
type BurnCoinGenerator ¶ added in v0.0.8
type BurnCoinGenerator struct {
// contains filtered or unexported fields
}
MsgBurnCoin
func NewBurnCoinGenerator ¶ added in v0.0.8
func NewBurnCoinGenerator(bottomRange, upperRange int64) *BurnCoinGenerator
func (*BurnCoinGenerator) Generate ¶ added in v0.0.8
func (gg *BurnCoinGenerator) Generate() Action
func (*BurnCoinGenerator) Update ¶ added in v0.0.8
func (gg *BurnCoinGenerator) Update(ui UpdateInfo)
type BurnNFTAction ¶
type BurnNFTAction struct {
// contains filtered or unexported fields
}
func (*BurnNFTAction) ChooseAccounts ¶
func (aa *BurnNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*BurnNFTAction) GenerateTx ¶
func (aa *BurnNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*BurnNFTAction) String ¶
func (aa *BurnNFTAction) String() string
type BurnNFTGenerator ¶
type BurnNFTGenerator struct {
// contains filtered or unexported fields
}
MsgBurnNFT
func NewBurnNFTGenerator ¶
func NewBurnNFTGenerator() *BurnNFTGenerator
func (*BurnNFTGenerator) Generate ¶
func (gg *BurnNFTGenerator) Generate() Action
func (*BurnNFTGenerator) Update ¶
func (gg *BurnNFTGenerator) Update(ui UpdateInfo)
type BuyCoinAction ¶
type BuyCoinAction struct {
// contains filtered or unexported fields
}
func (*BuyCoinAction) ChooseAccounts ¶
func (ab *BuyCoinAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*BuyCoinAction) GenerateTx ¶
func (ab *BuyCoinAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*BuyCoinAction) String ¶
func (ab *BuyCoinAction) String() string
type BuyCoinGenerator ¶
type BuyCoinGenerator struct {
// contains filtered or unexported fields
}
MsgBuyCoin
func NewBuyCoinGenerator ¶
func NewBuyCoinGenerator( bottomRange, upperRange int64, baseCoin string) *BuyCoinGenerator
func (*BuyCoinGenerator) Generate ¶
func (abg *BuyCoinGenerator) Generate() Action
func (*BuyCoinGenerator) Update ¶
func (abg *BuyCoinGenerator) Update(ui UpdateInfo)
type CancelRedelegationAction ¶ added in v0.0.8
type CancelRedelegationAction struct {
// contains filtered or unexported fields
}
func (*CancelRedelegationAction) ChooseAccounts ¶ added in v0.0.8
func (ac *CancelRedelegationAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*CancelRedelegationAction) GenerateTx ¶ added in v0.0.8
func (ac *CancelRedelegationAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*CancelRedelegationAction) String ¶ added in v0.0.8
func (ac *CancelRedelegationAction) String() string
type CancelRedelegationGenerator ¶ added in v0.0.8
type CancelRedelegationGenerator struct {
// contains filtered or unexported fields
}
func NewCancelRedelegationGenerator ¶ added in v0.0.8
func NewCancelRedelegationGenerator() *CancelRedelegationGenerator
func (*CancelRedelegationGenerator) Generate ¶ added in v0.0.8
func (gg *CancelRedelegationGenerator) Generate() Action
func (*CancelRedelegationGenerator) Update ¶ added in v0.0.8
func (gg *CancelRedelegationGenerator) Update(ui UpdateInfo)
type CancelRedelegationNFTAction ¶ added in v0.0.8
type CancelRedelegationNFTAction struct {
// contains filtered or unexported fields
}
func (*CancelRedelegationNFTAction) ChooseAccounts ¶ added in v0.0.8
func (ac *CancelRedelegationNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*CancelRedelegationNFTAction) GenerateTx ¶ added in v0.0.8
func (ac *CancelRedelegationNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*CancelRedelegationNFTAction) String ¶ added in v0.0.8
func (ac *CancelRedelegationNFTAction) String() string
type CancelRedelegationNFTGenerator ¶ added in v0.0.8
type CancelRedelegationNFTGenerator struct {
// contains filtered or unexported fields
}
func NewCancelRedelegationNFTGenerator ¶ added in v0.0.8
func NewCancelRedelegationNFTGenerator() *CancelRedelegationNFTGenerator
func (*CancelRedelegationNFTGenerator) Generate ¶ added in v0.0.8
func (gg *CancelRedelegationNFTGenerator) Generate() Action
func (*CancelRedelegationNFTGenerator) Update ¶ added in v0.0.8
func (gg *CancelRedelegationNFTGenerator) Update(ui UpdateInfo)
type CancelUndelegationAction ¶ added in v0.0.8
type CancelUndelegationAction struct {
// contains filtered or unexported fields
}
func (*CancelUndelegationAction) ChooseAccounts ¶ added in v0.0.8
func (ac *CancelUndelegationAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*CancelUndelegationAction) GenerateTx ¶ added in v0.0.8
func (ac *CancelUndelegationAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*CancelUndelegationAction) String ¶ added in v0.0.8
func (ac *CancelUndelegationAction) String() string
type CancelUndelegationGenerator ¶ added in v0.0.8
type CancelUndelegationGenerator struct {
// contains filtered or unexported fields
}
func NewCancelUndelegationGenerator ¶ added in v0.0.8
func NewCancelUndelegationGenerator() *CancelUndelegationGenerator
func (*CancelUndelegationGenerator) Generate ¶ added in v0.0.8
func (gg *CancelUndelegationGenerator) Generate() Action
func (*CancelUndelegationGenerator) Update ¶ added in v0.0.8
func (gg *CancelUndelegationGenerator) Update(ui UpdateInfo)
type CancelUndelegationNFTAction ¶ added in v0.0.8
type CancelUndelegationNFTAction struct {
// contains filtered or unexported fields
}
func (*CancelUndelegationNFTAction) ChooseAccounts ¶ added in v0.0.8
func (ac *CancelUndelegationNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*CancelUndelegationNFTAction) GenerateTx ¶ added in v0.0.8
func (ac *CancelUndelegationNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*CancelUndelegationNFTAction) String ¶ added in v0.0.8
func (ac *CancelUndelegationNFTAction) String() string
type CancelUndelegationNFTGenerator ¶ added in v0.0.8
type CancelUndelegationNFTGenerator struct {
// contains filtered or unexported fields
}
func NewCancelUndelegationNFTGenerator ¶ added in v0.0.8
func NewCancelUndelegationNFTGenerator() *CancelUndelegationNFTGenerator
func (*CancelUndelegationNFTGenerator) Generate ¶ added in v0.0.8
func (gg *CancelUndelegationNFTGenerator) Generate() Action
func (*CancelUndelegationNFTGenerator) Update ¶ added in v0.0.8
func (gg *CancelUndelegationNFTGenerator) Update(ui UpdateInfo)
type CreateCoinAction ¶
type CreateCoinAction struct {
// contains filtered or unexported fields
}
func (*CreateCoinAction) ChooseAccounts ¶
func (ac *CreateCoinAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*CreateCoinAction) GenerateTx ¶
func (ac *CreateCoinAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*CreateCoinAction) String ¶
func (ac *CreateCoinAction) String() string
type CreateCoinGenerator ¶
type CreateCoinGenerator struct {
// contains filtered or unexported fields
}
MsgCreateCoin
func NewCreateCoinGenerator ¶
func NewCreateCoinGenerator( symbolLengthBottom, symbolLengthUp, initVolumeBottom, initVolumeUp, initReserveBottom, initReserveUp, limitVolumeBottom, limitVolumeUp int64) *CreateCoinGenerator
func (*CreateCoinGenerator) Generate ¶
func (acg *CreateCoinGenerator) Generate() Action
func (*CreateCoinGenerator) Update ¶
func (acg *CreateCoinGenerator) Update(ui UpdateInfo)
type CreateMultisigTransactionAction ¶
type CreateMultisigTransactionAction struct {
// contains filtered or unexported fields
}
func (*CreateMultisigTransactionAction) ChooseAccounts ¶
func (aa *CreateMultisigTransactionAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*CreateMultisigTransactionAction) GenerateTx ¶
func (aa *CreateMultisigTransactionAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*CreateMultisigTransactionAction) String ¶
func (aa *CreateMultisigTransactionAction) String() string
type CreateMultisigTransactionGenerator ¶
type CreateMultisigTransactionGenerator struct {
// contains filtered or unexported fields
}
func NewCreateMultisigTransactionGenerator ¶
func NewCreateMultisigTransactionGenerator(bottomRange, upperRange int64) *CreateMultisigTransactionGenerator
func (*CreateMultisigTransactionGenerator) Generate ¶
func (gg *CreateMultisigTransactionGenerator) Generate() Action
func (*CreateMultisigTransactionGenerator) Update ¶
func (gg *CreateMultisigTransactionGenerator) Update(ui UpdateInfo)
type CreateMultisigWalletAction ¶
type CreateMultisigWalletAction struct {
// contains filtered or unexported fields
}
func (*CreateMultisigWalletAction) ChooseAccounts ¶
func (aa *CreateMultisigWalletAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*CreateMultisigWalletAction) GenerateTx ¶
func (aa *CreateMultisigWalletAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*CreateMultisigWalletAction) String ¶
func (aa *CreateMultisigWalletAction) String() string
type CreateMultisigWalletGenerator ¶
type CreateMultisigWalletGenerator struct {
// contains filtered or unexported fields
}
MsgCreateWallet
func NewCreateMultisigWalletGenerator ¶
func NewCreateMultisigWalletGenerator() *CreateMultisigWalletGenerator
func (*CreateMultisigWalletGenerator) Generate ¶
func (gg *CreateMultisigWalletGenerator) Generate() Action
func (*CreateMultisigWalletGenerator) Update ¶
func (gg *CreateMultisigWalletGenerator) Update(ui UpdateInfo)
type CreateValidatorAction ¶ added in v0.0.8
type CreateValidatorAction struct {
// contains filtered or unexported fields
}
func (*CreateValidatorAction) ChooseAccounts ¶ added in v0.0.8
func (ac *CreateValidatorAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*CreateValidatorAction) GenerateTx ¶ added in v0.0.8
func (ac *CreateValidatorAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*CreateValidatorAction) String ¶ added in v0.0.8
func (ac *CreateValidatorAction) String() string
type CreateValidatorGenerator ¶ added in v0.0.8
type CreateValidatorGenerator struct {
// contains filtered or unexported fields
}
func NewCreateValidatorGenerator ¶ added in v0.0.8
func NewCreateValidatorGenerator( initialStackBottom, initialStackUp int64) *CreateValidatorGenerator
func (*CreateValidatorGenerator) Generate ¶ added in v0.0.8
func (gg *CreateValidatorGenerator) Generate() Action
func (*CreateValidatorGenerator) Update ¶ added in v0.0.8
func (gg *CreateValidatorGenerator) Update(ui UpdateInfo)
type DelegateAction ¶ added in v0.0.8
type DelegateAction struct {
// contains filtered or unexported fields
}
func (*DelegateAction) ChooseAccounts ¶ added in v0.0.8
func (ac *DelegateAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*DelegateAction) GenerateTx ¶ added in v0.0.8
func (ac *DelegateAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*DelegateAction) String ¶ added in v0.0.8
func (ac *DelegateAction) String() string
type DelegateGenerator ¶ added in v0.0.8
type DelegateGenerator struct {
// contains filtered or unexported fields
}
func NewDelegateGenerator ¶ added in v0.0.8
func NewDelegateGenerator(stackBottom, stackUp int64) *DelegateGenerator
func (*DelegateGenerator) Generate ¶ added in v0.0.8
func (gg *DelegateGenerator) Generate() Action
func (*DelegateGenerator) Update ¶ added in v0.0.8
func (gg *DelegateGenerator) Update(ui UpdateInfo)
type DelegateNFTAction ¶ added in v0.0.8
type DelegateNFTAction struct {
// contains filtered or unexported fields
}
func (*DelegateNFTAction) ChooseAccounts ¶ added in v0.0.8
func (ac *DelegateNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*DelegateNFTAction) GenerateTx ¶ added in v0.0.8
func (ac *DelegateNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*DelegateNFTAction) String ¶ added in v0.0.8
func (ac *DelegateNFTAction) String() string
type DelegateNFTGenerator ¶ added in v0.0.8
type DelegateNFTGenerator struct {
// contains filtered or unexported fields
}
func NewDelegateNFTGenerator ¶ added in v0.0.8
func NewDelegateNFTGenerator() *DelegateNFTGenerator
func (*DelegateNFTGenerator) Generate ¶ added in v0.0.8
func (gg *DelegateNFTGenerator) Generate() Action
func (*DelegateNFTGenerator) Update ¶ added in v0.0.8
func (gg *DelegateNFTGenerator) Update(ui UpdateInfo)
type DepositMultisigWalletAction ¶
type DepositMultisigWalletAction struct {
// contains filtered or unexported fields
}
func (*DepositMultisigWalletAction) ChooseAccounts ¶
func (aa *DepositMultisigWalletAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*DepositMultisigWalletAction) GenerateTx ¶
func (aa *DepositMultisigWalletAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*DepositMultisigWalletAction) String ¶
func (aa *DepositMultisigWalletAction) String() string
type DepositMultisigWalletGenerator ¶
type DepositMultisigWalletGenerator struct {
// contains filtered or unexported fields
}
like SendCoin, but for multisig wallets as recipients
func NewDepositMultisigWalletGenerator ¶
func NewDepositMultisigWalletGenerator(bottomRange, upperRange int64) *DepositMultisigWalletGenerator
func (*DepositMultisigWalletGenerator) Generate ¶
func (gg *DepositMultisigWalletGenerator) Generate() Action
func (*DepositMultisigWalletGenerator) Update ¶
func (gg *DepositMultisigWalletGenerator) Update(ui UpdateInfo)
type EditNFTAction ¶
type EditNFTAction struct {
// contains filtered or unexported fields
}
func (*EditNFTAction) ChooseAccounts ¶
func (aa *EditNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*EditNFTAction) GenerateTx ¶
func (aa *EditNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*EditNFTAction) String ¶
func (aa *EditNFTAction) String() string
type EditNFTGenerator ¶
type EditNFTGenerator struct {
// contains filtered or unexported fields
}
MsgEditNFT
func NewEditNFTGenerator ¶
func NewEditNFTGenerator(textLengthBottom, textLengthUp int64) *EditNFTGenerator
func (*EditNFTGenerator) Generate ¶
func (gg *EditNFTGenerator) Generate() Action
func (*EditNFTGenerator) Update ¶
func (gg *EditNFTGenerator) Update(ui UpdateInfo)
type EditValidatorAction ¶ added in v0.0.8
type EditValidatorAction struct {
// contains filtered or unexported fields
}
func (*EditValidatorAction) ChooseAccounts ¶ added in v0.0.8
func (ac *EditValidatorAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*EditValidatorAction) GenerateTx ¶ added in v0.0.8
func (ac *EditValidatorAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*EditValidatorAction) String ¶ added in v0.0.8
func (ac *EditValidatorAction) String() string
type EditValidatorGenerator ¶ added in v0.0.8
type EditValidatorGenerator struct {
// contains filtered or unexported fields
}
func NewEditValidatorGenerator ¶ added in v0.0.8
func NewEditValidatorGenerator() *EditValidatorGenerator
func (*EditValidatorGenerator) Generate ¶ added in v0.0.8
func (gg *EditValidatorGenerator) Generate() Action
func (*EditValidatorGenerator) Update ¶ added in v0.0.8
func (gg *EditValidatorGenerator) Update(ui UpdateInfo)
type EmptyAction ¶
type EmptyAction struct{}
EmptyAction is used if generator can't create valid action
func (*EmptyAction) ChooseAccounts ¶
func (ea *EmptyAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*EmptyAction) GenerateTx ¶
func (ea *EmptyAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*EmptyAction) String ¶
func (ea *EmptyAction) String() string
type MintNFTAction ¶
type MintNFTAction struct {
// contains filtered or unexported fields
}
func (*MintNFTAction) ChooseAccounts ¶
func (aa *MintNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*MintNFTAction) GenerateTx ¶
func (aa *MintNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*MintNFTAction) String ¶
func (aa *MintNFTAction) String() string
type MintNFTGenerator ¶
type MintNFTGenerator struct {
// contains filtered or unexported fields
}
MsgMintNFT
func NewMintNFTGenerator ¶
func NewMintNFTGenerator( textLengthBottom, textLengthUp, reserveBottom, reserveUp, quantityBottom, quantityUp int64) *MintNFTGenerator
func (*MintNFTGenerator) Generate ¶
func (gg *MintNFTGenerator) Generate() Action
func (*MintNFTGenerator) Update ¶
func (gg *MintNFTGenerator) Update(ui UpdateInfo)
type MultiSendCoinAction ¶
type MultiSendCoinAction struct {
// contains filtered or unexported fields
}
func (*MultiSendCoinAction) ChooseAccounts ¶
func (as *MultiSendCoinAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*MultiSendCoinAction) GenerateTx ¶
func (as *MultiSendCoinAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*MultiSendCoinAction) String ¶
func (as *MultiSendCoinAction) String() string
type MultiSendCoinGenerator ¶
type MultiSendCoinGenerator struct {
// contains filtered or unexported fields
}
MsgMultiSendCoin
func NewMultiSendCoinGenerator ¶
func NewMultiSendCoinGenerator(bottomRange, upperRange, sendCountBottom, sendCountUpper int64) *MultiSendCoinGenerator
func (*MultiSendCoinGenerator) Generate ¶
func (asg *MultiSendCoinGenerator) Generate() Action
func (*MultiSendCoinGenerator) Update ¶
func (asg *MultiSendCoinGenerator) Update(ui UpdateInfo)
type NFTSubTokenKey ¶
type RedeemCheckAction ¶ added in v0.0.8
type RedeemCheckAction struct {
// contains filtered or unexported fields
}
func (*RedeemCheckAction) ChooseAccounts ¶ added in v0.0.8
func (ac *RedeemCheckAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*RedeemCheckAction) GenerateTx ¶ added in v0.0.8
func (ac *RedeemCheckAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*RedeemCheckAction) String ¶ added in v0.0.8
func (ac *RedeemCheckAction) String() string
type RedeemCheckGenerator ¶ added in v0.0.8
type RedeemCheckGenerator struct {
// contains filtered or unexported fields
}
func NewRedeemCheckGenerator ¶ added in v0.0.8
func NewRedeemCheckGenerator(bottomRange, upperRange int64) *RedeemCheckGenerator
func (*RedeemCheckGenerator) Generate ¶ added in v0.0.8
func (gg *RedeemCheckGenerator) Generate() Action
func (*RedeemCheckGenerator) Update ¶ added in v0.0.8
func (gg *RedeemCheckGenerator) Update(ui UpdateInfo)
type RedelegateAction ¶ added in v0.0.8
type RedelegateAction struct {
// contains filtered or unexported fields
}
func (*RedelegateAction) ChooseAccounts ¶ added in v0.0.8
func (ac *RedelegateAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*RedelegateAction) GenerateTx ¶ added in v0.0.8
func (ac *RedelegateAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*RedelegateAction) String ¶ added in v0.0.8
func (ac *RedelegateAction) String() string
type RedelegateGenerator ¶ added in v0.0.8
type RedelegateGenerator struct {
// contains filtered or unexported fields
}
func NewRedelegateGenerator ¶ added in v0.0.8
func NewRedelegateGenerator() *RedelegateGenerator
func (*RedelegateGenerator) Generate ¶ added in v0.0.8
func (gg *RedelegateGenerator) Generate() Action
func (*RedelegateGenerator) Update ¶ added in v0.0.8
func (gg *RedelegateGenerator) Update(ui UpdateInfo)
type RedelegateNFTAction ¶ added in v0.0.8
type RedelegateNFTAction struct {
// contains filtered or unexported fields
}
func (*RedelegateNFTAction) ChooseAccounts ¶ added in v0.0.8
func (ac *RedelegateNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*RedelegateNFTAction) GenerateTx ¶ added in v0.0.8
func (ac *RedelegateNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*RedelegateNFTAction) String ¶ added in v0.0.8
func (ac *RedelegateNFTAction) String() string
type RedelegateNFTGenerator ¶ added in v0.0.8
type RedelegateNFTGenerator struct {
// contains filtered or unexported fields
}
func NewRedelegateNFTGenerator ¶ added in v0.0.8
func NewRedelegateNFTGenerator() *RedelegateNFTGenerator
func (*RedelegateNFTGenerator) Generate ¶ added in v0.0.8
func (gg *RedelegateNFTGenerator) Generate() Action
func (*RedelegateNFTGenerator) Update ¶ added in v0.0.8
func (gg *RedelegateNFTGenerator) Update(ui UpdateInfo)
type SellCoinAction ¶
type SellCoinAction struct {
// contains filtered or unexported fields
}
func (*SellCoinAction) ChooseAccounts ¶
func (as *SellCoinAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*SellCoinAction) GenerateTx ¶
func (as *SellCoinAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*SellCoinAction) String ¶
func (as *SellCoinAction) String() string
type SellCoinGenerator ¶
type SellCoinGenerator struct {
// contains filtered or unexported fields
}
MsgSellCoin
func NewSellCoinGenerator ¶
func NewSellCoinGenerator( bottomRange, upperRange int64, baseCoin string) *SellCoinGenerator
func (*SellCoinGenerator) Generate ¶
func (asg *SellCoinGenerator) Generate() Action
func (*SellCoinGenerator) Update ¶
func (asg *SellCoinGenerator) Update(ui UpdateInfo)
type SendCoinAction ¶
type SendCoinAction struct {
// contains filtered or unexported fields
}
func (*SendCoinAction) ChooseAccounts ¶
func (as *SendCoinAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*SendCoinAction) GenerateTx ¶
func (as *SendCoinAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*SendCoinAction) String ¶
func (as *SendCoinAction) String() string
type SendCoinGenerator ¶
type SendCoinGenerator struct {
// contains filtered or unexported fields
}
MsgSendCoin
func NewSendCoinGenerator ¶
func NewSendCoinGenerator(bottomRange, upperRange int64) *SendCoinGenerator
func (*SendCoinGenerator) Generate ¶
func (asg *SendCoinGenerator) Generate() Action
func (*SendCoinGenerator) Update ¶
func (asg *SendCoinGenerator) Update(ui UpdateInfo)
type SetOfflineValidatorAction ¶ added in v0.0.8
type SetOfflineValidatorAction struct {
// contains filtered or unexported fields
}
func (*SetOfflineValidatorAction) ChooseAccounts ¶ added in v0.0.8
func (ac *SetOfflineValidatorAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*SetOfflineValidatorAction) GenerateTx ¶ added in v0.0.8
func (ac *SetOfflineValidatorAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*SetOfflineValidatorAction) String ¶ added in v0.0.8
func (ac *SetOfflineValidatorAction) String() string
type SetOfflineValidatorGenerator ¶ added in v0.0.8
type SetOfflineValidatorGenerator struct {
// contains filtered or unexported fields
}
func NewSetOfflineValidatorGenerator ¶ added in v0.0.8
func NewSetOfflineValidatorGenerator() *SetOfflineValidatorGenerator
func (*SetOfflineValidatorGenerator) Generate ¶ added in v0.0.8
func (gg *SetOfflineValidatorGenerator) Generate() Action
func (*SetOfflineValidatorGenerator) Update ¶ added in v0.0.8
func (gg *SetOfflineValidatorGenerator) Update(ui UpdateInfo)
type SetOnlineValidatorAction ¶ added in v0.0.8
type SetOnlineValidatorAction struct {
// contains filtered or unexported fields
}
func (*SetOnlineValidatorAction) ChooseAccounts ¶ added in v0.0.8
func (ac *SetOnlineValidatorAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*SetOnlineValidatorAction) GenerateTx ¶ added in v0.0.8
func (ac *SetOnlineValidatorAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*SetOnlineValidatorAction) String ¶ added in v0.0.8
func (ac *SetOnlineValidatorAction) String() string
type SetOnlineValidatorGenerator ¶ added in v0.0.8
type SetOnlineValidatorGenerator struct {
// contains filtered or unexported fields
}
func NewSetOnlineValidatorGenerator ¶ added in v0.0.8
func NewSetOnlineValidatorGenerator() *SetOnlineValidatorGenerator
func (*SetOnlineValidatorGenerator) Generate ¶ added in v0.0.8
func (gg *SetOnlineValidatorGenerator) Generate() Action
func (*SetOnlineValidatorGenerator) Update ¶ added in v0.0.8
func (gg *SetOnlineValidatorGenerator) Update(ui UpdateInfo)
type SignMultisigTransactionAction ¶
type SignMultisigTransactionAction struct {
// contains filtered or unexported fields
}
func (*SignMultisigTransactionAction) ChooseAccounts ¶
func (aa *SignMultisigTransactionAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*SignMultisigTransactionAction) GenerateTx ¶
func (aa *SignMultisigTransactionAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*SignMultisigTransactionAction) String ¶
func (aa *SignMultisigTransactionAction) String() string
type SignMultisigTransactionGenerator ¶
type SignMultisigTransactionGenerator struct {
// contains filtered or unexported fields
}
func NewSignMultisigTransactionGenerator ¶
func NewSignMultisigTransactionGenerator() *SignMultisigTransactionGenerator
func (*SignMultisigTransactionGenerator) Generate ¶
func (gg *SignMultisigTransactionGenerator) Generate() Action
func (*SignMultisigTransactionGenerator) Update ¶
func (gg *SignMultisigTransactionGenerator) Update(ui UpdateInfo)
type TPSLimiter ¶
type TPSLimiter struct {
// contains filtered or unexported fields
}
TPS (transactions per second) limiter
func NewTPSLimiter ¶
func NewTPSLimiter(limit int64) *TPSLimiter
func (*TPSLimiter) CanMake ¶
func (t *TPSLimiter) CanMake() bool
func (*TPSLimiter) Limit ¶ added in v0.0.8
func (t *TPSLimiter) Limit() int64
type TransferNFTAction ¶
type TransferNFTAction struct {
// contains filtered or unexported fields
}
func (*TransferNFTAction) ChooseAccounts ¶
func (aa *TransferNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*TransferNFTAction) GenerateTx ¶
func (aa *TransferNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*TransferNFTAction) String ¶
func (aa *TransferNFTAction) String() string
type TransferNFTGenerator ¶
type TransferNFTGenerator struct {
// contains filtered or unexported fields
}
MsgTransferNFT
func NewTransferNFTGenerator ¶
func NewTransferNFTGenerator() *TransferNFTGenerator
func (*TransferNFTGenerator) Generate ¶
func (gg *TransferNFTGenerator) Generate() Action
func (*TransferNFTGenerator) Update ¶
func (gg *TransferNFTGenerator) Update(ui UpdateInfo)
type UndelegateAction ¶ added in v0.0.8
type UndelegateAction struct {
// contains filtered or unexported fields
}
func (*UndelegateAction) ChooseAccounts ¶ added in v0.0.8
func (ac *UndelegateAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*UndelegateAction) GenerateTx ¶ added in v0.0.8
func (ac *UndelegateAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*UndelegateAction) String ¶ added in v0.0.8
func (ac *UndelegateAction) String() string
type UndelegateGenerator ¶ added in v0.0.8
type UndelegateGenerator struct {
// contains filtered or unexported fields
}
func NewUndelegateGenerator ¶ added in v0.0.8
func NewUndelegateGenerator() *UndelegateGenerator
func (*UndelegateGenerator) Generate ¶ added in v0.0.8
func (gg *UndelegateGenerator) Generate() Action
func (*UndelegateGenerator) Update ¶ added in v0.0.8
func (gg *UndelegateGenerator) Update(ui UpdateInfo)
type UndelegateNFTAction ¶ added in v0.0.8
type UndelegateNFTAction struct {
// contains filtered or unexported fields
}
func (*UndelegateNFTAction) ChooseAccounts ¶ added in v0.0.8
func (ac *UndelegateNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*UndelegateNFTAction) GenerateTx ¶ added in v0.0.8
func (ac *UndelegateNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*UndelegateNFTAction) String ¶ added in v0.0.8
func (ac *UndelegateNFTAction) String() string
type UndelegateNFTGenerator ¶ added in v0.0.8
type UndelegateNFTGenerator struct {
// contains filtered or unexported fields
}
func NewUndelegateNFTGenerator ¶ added in v0.0.8
func NewUndelegateNFTGenerator() *UndelegateNFTGenerator
func (*UndelegateNFTGenerator) Generate ¶ added in v0.0.8
func (gg *UndelegateNFTGenerator) Generate() Action
func (*UndelegateNFTGenerator) Update ¶ added in v0.0.8
func (gg *UndelegateNFTGenerator) Update(ui UpdateInfo)
type UpdateCoinAction ¶
type UpdateCoinAction struct {
// contains filtered or unexported fields
}
func (*UpdateCoinAction) ChooseAccounts ¶
func (au *UpdateCoinAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*UpdateCoinAction) GenerateTx ¶
func (au *UpdateCoinAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*UpdateCoinAction) String ¶
func (au *UpdateCoinAction) String() string
type UpdateCoinGenerator ¶
type UpdateCoinGenerator struct {
// contains filtered or unexported fields
}
MsgUpdateCoin
func NewUpdateCoinGenerator ¶
func NewUpdateCoinGenerator( bottomRange, upperRange int64, baseCoin string) *UpdateCoinGenerator
func (*UpdateCoinGenerator) Generate ¶
func (aug *UpdateCoinGenerator) Generate() Action
func (*UpdateCoinGenerator) Update ¶
func (aug *UpdateCoinGenerator) Update(ui UpdateInfo)
type UpdateInfo ¶
type UpdateInfo struct { Coins []string Addresses []string FullCoins []dscApi.Coin NFTs []*dscApi.NFTToken NFTSubTokenReserves map[NFTSubTokenKey]sdk.Coin MultisigWallets []dscApi.MultisigWallet MultisigTransactions []dscApi.MultisigTransactionInfo MultisigBalances map[string]sdk.Coins Validators []dscApi.Validator Delegations []dscApi.Delegation Redelegations []dscApi.Redelegation Undelegations []dscApi.Undelegation }
UpdateInfo contains all external updatable data for generators
type UpdateReserveNFTAction ¶
type UpdateReserveNFTAction struct {
// contains filtered or unexported fields
}
func (*UpdateReserveNFTAction) ChooseAccounts ¶
func (aa *UpdateReserveNFTAction) ChooseAccounts(saList []*stormTypes.StormAccount) []*stormTypes.StormAccount
func (*UpdateReserveNFTAction) GenerateTx ¶
func (aa *UpdateReserveNFTAction) GenerateTx(sa *stormTypes.StormAccount, feeConfig *stormTypes.FeeConfiguration) ([]byte, error)
func (*UpdateReserveNFTAction) String ¶
func (aa *UpdateReserveNFTAction) String() string
type UpdateReserveNFTGenerator ¶
type UpdateReserveNFTGenerator struct {
// contains filtered or unexported fields
}
MsgUpdateReserveNFT
func NewUpdateReserveNFTGenerator ¶
func NewUpdateReserveNFTGenerator(increaseBottom, increaseUp int64) *UpdateReserveNFTGenerator
func (*UpdateReserveNFTGenerator) Generate ¶
func (gg *UpdateReserveNFTGenerator) Generate() Action
func (*UpdateReserveNFTGenerator) Update ¶
func (gg *UpdateReserveNFTGenerator) Update(ui UpdateInfo)
type WeightedAG ¶
type WeightedAG struct { Weight int64 AG ActionGenerator }
Source Files ¶
- action_reactor.go
- actions_base.go
- coin_burn.go
- coin_buycoin.go
- coin_checks.go
- coin_createcoin.go
- coin_multisend.go
- coin_sellcoin.go
- coin_sendcoin.go
- coin_updatecoin.go
- helpers.go
- multisig_create_transaction.go
- multisig_create_wallet.go
- multisig_deposit_wallet.go
- multisig_sign_transaction.go
- nft_burn.go
- nft_edit.go
- nft_mint.go
- nft_transfer.go
- nft_updatereserve.go
- validator_cancel_redelegation.go
- validator_cancel_redelegation_nft.go
- validator_cancel_undelegation.go
- validator_cancel_undelegation_nft.go
- validator_create.go
- validator_delegate.go
- validator_delegate_nft.go
- validator_edt.go
- validator_offline.go
- validator_online.go
- validator_redelegate.go
- validator_redelegate_nft.go
- validator_undelegate.go
- validator_undelegate_nft.go
Click to show internal directories.
Click to hide internal directories.