Documentation
¶
Index ¶
- Variables
- func CheckAllValidatorList(t *testing.T, accountName string, isInAllValidatorList bool, ...)
- func CheckBalance(t *testing.T, accountName string, lb *app.LinoBlockchain, ...)
- func CheckGlobalAllocation(t *testing.T, lb *app.LinoBlockchain, ...)
- func CheckOncallValidatorList(t *testing.T, accountName string, isInOnCallValidatorList bool, ...)
- func CheckValidatorDeposit(t *testing.T, accountName string, lb *app.LinoBlockchain, ...)
- func CoinToString(coin types.Coin) string
- func CreateAccount(t *testing.T, accountName string, lb *app.LinoBlockchain, seq int64, ...)
- func CreateTestPost(t *testing.T, lb *app.LinoBlockchain, username, postID string, seq int64, ...)
- func GetGenesisAccountCoin(numOfValidator int) types.Coin
- func NewTestLinoBlockchain(t *testing.T, numOfValidators int) *app.LinoBlockchain
- func SignCheckDeliver(t *testing.T, lb *app.LinoBlockchain, msg sdk.Msg, seq int64, expPass bool, ...)
- func SimulateOneBlock(lb *app.LinoBlockchain, headTime int64)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GenesisUser = "genesis" GenesisPriv = secp256k1.GenPrivKey() GenesisTransactionPriv = secp256k1.GenPrivKey() GenesisAppPriv = secp256k1.GenPrivKey() GenesisAddr = GenesisPriv.PubKey().Address() DefaultNumOfVal int = 21 GenesisTotalLino types.LNO = "10000000000" LNOPerValidator types.LNO = "100000000" PenaltyMissVote types.Coin = types.NewCoinFromInt64(20000 * types.Decimals) ChangeParamMinDeposit types.Coin = types.NewCoinFromInt64(100000 * types.Decimals) ProposalDecideHr int64 = 24 * 7 ParamChangeHr int64 = 24 CoinReturnIntervalHr int64 = 24 * 7 CoinReturnTimes int64 = 7 ConsumptionFrictionRate sdk.Rat = sdk.NewRat(5, 100) ConsumptionFreezingPeriodHr int64 = 24 * 7 )
construct some global keys and addrs.
Functions ¶
func CheckAllValidatorList ¶
func CheckBalance ¶
func CheckGlobalAllocation ¶
func CheckGlobalAllocation(t *testing.T, lb *app.LinoBlockchain, expectAllocation param.GlobalAllocationParam)
func CheckValidatorDeposit ¶
func CoinToString ¶
func CreateAccount ¶
func CreateAccount( t *testing.T, accountName string, lb *app.LinoBlockchain, seq int64, resetPriv, transactionPriv, appPriv secp256k1.PrivKeySecp256k1, numOfLino string)
func CreateTestPost ¶
func GetGenesisAccountCoin ¶
func NewTestLinoBlockchain ¶
func NewTestLinoBlockchain(t *testing.T, numOfValidators int) *app.LinoBlockchain
func SignCheckDeliver ¶
func SimulateOneBlock ¶
func SimulateOneBlock(lb *app.LinoBlockchain, headTime int64)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.