Documentation ¶
Index ¶
- Constants
- func CreateTestApp(isCheckTx bool) (*sifapp.SifchainApp, sdk.Context)
- func CreateTestAppClp(isCheckTx bool) (sdk.Context, *sifapp.SifchainApp)
- func CreateTestAppClpFromGenesis(isCheckTx bool, ...) (sdk.Context, *sifapp.SifchainApp)
- func CreateTestAppClpWithBlacklist(isCheckTx bool, blacklist []sdk.AccAddress) (sdk.Context, *sifapp.SifchainApp)
- func GenerateAddress(key string) sdk.AccAddress
- func GenerateAddress2(key string) sdk.AccAddress
- func GeneratePoolsAndLPs(keeper clpkeeper.Keeper, ctx sdk.Context, tokens []string) ([]types.Pool, []types.LiquidityProvider)
- func GeneratePoolsFromFile(keeper clpkeeper.Keeper, ctx sdk.Context) []*types.Pool
- func GeneratePoolsSetLPs(keeper clpkeeper.Keeper, ctx sdk.Context, nPools, nLPs int) []*types.Pool
- func GenerateRandomLP(numberOfLp int) []types.LiquidityProvider
- func GenerateRandomLPWithUnits(poolUnitss []uint64) []*types.LiquidityProvider
- func GenerateRandomLPWithUnitsAndAsset(poolUnitss []uint64, asset types.Asset) []*types.LiquidityProvider
- func GenerateRandomPool(numberOfPools int) []types.Pool
- func GenerateWhitelistAddress(key string) sdk.AccAddress
- func TrimFirstRune(s string) string
Constants ¶
View Source
const ( AddressKey1 = "A58856F0FD53BF058B4909A21AEC019107BA6" AddressKey2 = "A58856F0FD53BF058B4909A21AEC019107BA7" AddressKey3 = "A58856F0FD53BF058B4909A21AEC019107BA9" )
Constants for test scripts only .
Variables ¶
This section is empty.
Functions ¶
func CreateTestApp ¶
func CreateTestApp(isCheckTx bool) (*sifapp.SifchainApp, sdk.Context)
CreateTestApp returns context and app with params set on account keeper
func CreateTestAppClp ¶
func CreateTestAppClp(isCheckTx bool) (sdk.Context, *sifapp.SifchainApp)
func CreateTestAppClpFromGenesis ¶ added in v0.13.0
func CreateTestAppClpFromGenesis(isCheckTx bool, genesisTransformer func(*sifapp.SifchainApp, sifapp.GenesisState) sifapp.GenesisState) (sdk.Context, *sifapp.SifchainApp)
func CreateTestAppClpWithBlacklist ¶ added in v0.13.4
func CreateTestAppClpWithBlacklist(isCheckTx bool, blacklist []sdk.AccAddress) (sdk.Context, *sifapp.SifchainApp)
func GenerateAddress ¶
func GenerateAddress(key string) sdk.AccAddress
func GenerateAddress2 ¶ added in v0.13.6
func GenerateAddress2(key string) sdk.AccAddress
func GeneratePoolsAndLPs ¶
func GeneratePoolsFromFile ¶ added in v0.13.0
func GeneratePoolsSetLPs ¶ added in v0.13.4
func GenerateRandomLP ¶
func GenerateRandomLP(numberOfLp int) []types.LiquidityProvider
func GenerateRandomLPWithUnits ¶ added in v0.13.4
func GenerateRandomLPWithUnits(poolUnitss []uint64) []*types.LiquidityProvider
func GenerateRandomLPWithUnitsAndAsset ¶ added in v0.13.4
func GenerateRandomLPWithUnitsAndAsset(poolUnitss []uint64, asset types.Asset) []*types.LiquidityProvider
func GenerateRandomPool ¶
func GenerateWhitelistAddress ¶
func GenerateWhitelistAddress(key string) sdk.AccAddress
func TrimFirstRune ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.