Documentation ¶
Index ¶
- Constants
- Variables
- func AccountValueTransferFromKnownToUnknownAccount(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferFromUnknownToKnownAccount(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferFromUnknownToUnknownAccount(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferOverBalanceNonZero(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferOverBalanceZero(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferSuccess(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferToSelf(t *testing.T, factory Factories, expGasUsed uint64)
- func AccountValueTransferZeroFunds(t *testing.T, factory Factories, expGasUsed uint64)
- func CreateStorageMinerAndUpdatePeerID(t testing.TB, factory Factories)
- func MultiSigActorConstructor(t testing.TB, factory Factories)
- func MultiSigActorProposeApprove(t testing.TB, factory Factories)
- func MultiSigActorProposeCancel(t testing.TB, factory Factories)
- func PayChActorConstructor(t testing.TB, factory Factories)
- func PayChActorUpdate(t testing.TB, factory Factories)
- func RequireIntPeerID(t testing.TB, i int64) peer.ID
- type Factories
- type StateDriver
- func (d *StateDriver) AssertBalance(addr address.Address, expected uint64)
- func (d *StateDriver) AssertMinerInfo(miner, expected strgminr.MinerInfo)
- func (d *StateDriver) AssertMultisigState(multisigAddr address.Address, expected multsig.MultiSigActorState)
- func (d *StateDriver) AssertPayChState(paychAddr address.Address, expected paych.PaymentChannelActorState)
- func (d *StateDriver) AssertReceipt(receipt, expected chain.MessageReceipt)
- func (d *StateDriver) NewAccountActor(balanceAttoFil uint64) address.Address
- func (d *StateDriver) NewAccountActorBigBalance(balanceAttoFil types.BigInt) address.Address
- func (d *StateDriver) State() state.Wrapper
Constants ¶
View Source
const PaymentChannelClosingDelay = 6 * 60 * 2 // six hours
taken from lotus /build/params_shared.go
Variables ¶
Functions ¶
func MultiSigActorConstructor ¶ added in v0.0.2
func MultiSigActorProposeApprove ¶ added in v0.0.2
func MultiSigActorProposeCancel ¶ added in v0.0.2
func PayChActorConstructor ¶ added in v0.0.3
func PayChActorUpdate ¶ added in v0.0.3
Types ¶
type Factories ¶
type Factories interface { NewState() state.Wrapper NewMessageFactory(wrapper state.Wrapper) chain.MessageFactory chain.Applier }
Factories wraps up all the implementation-specific integration points.
type StateDriver ¶
type StateDriver struct {
// contains filtered or unexported fields
}
StateDriver mutates and inspects a state.
func NewStateDriver ¶
func NewStateDriver(tb testing.TB, w state.Wrapper) *StateDriver
NewStateDriver creates a new state driver for a state.
func (*StateDriver) AssertBalance ¶
func (d *StateDriver) AssertBalance(addr address.Address, expected uint64)
TODO add an assertBalancChanged method that can be used until gas is worked out. will need to track previous balances, could be tricky. AssertBalance checks an actor has an expected balance.
func (*StateDriver) AssertMinerInfo ¶
func (d *StateDriver) AssertMinerInfo(miner, expected strgminr.MinerInfo)
func (*StateDriver) AssertMultisigState ¶ added in v0.0.2
func (d *StateDriver) AssertMultisigState(multisigAddr address.Address, expected multsig.MultiSigActorState)
func (*StateDriver) AssertPayChState ¶ added in v0.0.3
func (d *StateDriver) AssertPayChState(paychAddr address.Address, expected paych.PaymentChannelActorState)
func (*StateDriver) AssertReceipt ¶
func (d *StateDriver) AssertReceipt(receipt, expected chain.MessageReceipt)
AssertReceipt checks that a receipt is not nill and has values equal to `expected`.
func (*StateDriver) NewAccountActor ¶
func (d *StateDriver) NewAccountActor(balanceAttoFil uint64) address.Address
NewAccountActor installs a new account actor, returning the address.
func (*StateDriver) NewAccountActorBigBalance ¶
func (d *StateDriver) NewAccountActorBigBalance(balanceAttoFil types.BigInt) address.Address
Click to show internal directories.
Click to hide internal directories.