Documentation ¶
Index ¶
- func NewFactories() *factories
- type Applier
- type MessageFactory
- func (mf *MessageFactory) FromActorCodeCid(code vactors.ActorCodeID) cid.Cid
- func (mf *MessageFactory) FromSingletonAddress(addr vactors.SingletonActorID) vaddress.Address
- func (mf *MessageFactory) MakeMessage(from, to vaddress.Address, method vchain.MethodID, nonce uint64, ...) (interface{}, error)
- type Signer
- type StateWrapper
- func (s *StateWrapper) Actor(addr vaddress.Address) (vstate.Actor, error)
- func (s *StateWrapper) Cid() cid.Cid
- func (s *StateWrapper) NewAccountAddress() (vaddress.Address, error)
- func (s *StateWrapper) SetActor(addr vaddress.Address, code vactors.ActorCodeID, balance vtypes.BigInt) (vstate.Actor, vstate.Storage, error)
- func (s *StateWrapper) SetSingletonActor(addr vactors.SingletonActorID, balance vtypes.BigInt) (vstate.Actor, vstate.Storage, error)
- func (s *StateWrapper) Sign(ctx context.Context, addr vaddress.Address, data []byte) (*vtypes.Signature, error)
- func (s *StateWrapper) Signer() *keyStore
- func (s *StateWrapper) Storage(addr vaddress.Address) (vstate.Storage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactories ¶
func NewFactories() *factories
Types ¶
type Applier ¶
type Applier struct { }
Applier applies messages to state trees and storage.
func NewApplier ¶
func NewApplier() *Applier
func (*Applier) ApplyMessage ¶
func (a *Applier) ApplyMessage(eCtx *vchain.ExecutionContext, state vstate.Wrapper, message interface{}) (vchain.MessageReceipt, error)
type MessageFactory ¶
type MessageFactory struct {
// contains filtered or unexported fields
}
func NewMessageFactory ¶
func NewMessageFactory(signer Signer) *MessageFactory
func (*MessageFactory) FromActorCodeCid ¶
func (mf *MessageFactory) FromActorCodeCid(code vactors.ActorCodeID) cid.Cid
func (*MessageFactory) FromSingletonAddress ¶
func (mf *MessageFactory) FromSingletonAddress(addr vactors.SingletonActorID) vaddress.Address
type StateWrapper ¶
type StateWrapper struct {
// contains filtered or unexported fields
}
func NewState ¶
func NewState() *StateWrapper
func (*StateWrapper) Cid ¶
func (s *StateWrapper) Cid() cid.Cid
func (*StateWrapper) NewAccountAddress ¶
func (s *StateWrapper) NewAccountAddress() (vaddress.Address, error)
func (*StateWrapper) SetSingletonActor ¶
func (s *StateWrapper) SetSingletonActor(addr vactors.SingletonActorID, balance vtypes.BigInt) (vstate.Actor, vstate.Storage, error)
func (*StateWrapper) Signer ¶
func (s *StateWrapper) Signer() *keyStore
Click to show internal directories.
Click to hide internal directories.