Documentation ¶
Index ¶
- Constants
- Variables
- func Clock() *mockable.Clock
- func ClockWithTime(time time.Time) *mockable.Clock
- func Config(t *testing.T, phase Phase) *config.Config
- func Context(t *testing.T) *snow.Context
- func ContextWithSharedMemory(t *testing.T, db database.Database) *snow.Context
- func Fx(t *testing.T, clk *mockable.Clock, log logging.Logger, isBootstrapped bool) fx.Fx
- func Genesis(t *testing.T, avaxAssetID ids.ID, caminoGenesisConfig api.Camino, ...) []byte
- func PhaseName(t *testing.T, phase Phase) string
- func PhaseTime(t *testing.T, phase Phase, cfg *config.Config) time.Time
- type Phase
Constants ¶
View Source
const ( MinStakingDuration = 24 * time.Hour ValidatorWeight = 2 * units.KiloAvax PreFundedBalance = 100 * ValidatorWeight TxFee = uint64(100) )
View Source
const ( PhaseFirst = PhaseSunrise PhaseLast = PhaseBerlin )
Variables ¶
View Source
var ( AVAXAssetID = ids.ID{'C', 'A', 'M'} OtherAssetID = ids.ID{'O', 'T', 'H', 'E', 'R'} GenesisTime = time.Date(1997, 1, 1, 0, 0, 0, 0, time.UTC) LatestPhaseTime = GenesisTime.Add(time.Second * 10000) ValidatorStartTime = GenesisTime ValidatorEndTime = GenesisTime.Add(10 * MinStakingDuration) GenesisTimestamp = uint64(GenesisTime.Unix()) ValidatorStartTimestamp = uint64(ValidatorStartTime.Unix()) ValidatorEndTimestamp = uint64(ValidatorEndTime.Unix()) )
View Source
var ( Keys []*secp256k1.PrivateKey KeysBech32 []string FundedKeys []*secp256k1.PrivateKey FundedKeysBech32 []string FundedNodeKeys []*secp256k1.PrivateKey FundedNodeIDs []ids.NodeID )
Functions ¶
func ContextWithSharedMemory ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.