Documentation ¶
Index ¶
- Variables
- type Actor
- func (a Actor) AddVerifiedClient(rt runtime.Runtime, params *AddVerifiedClientParams) *abi.EmptyValue
- func (a Actor) AddVerifier(rt runtime.Runtime, params *AddVerifierParams) *abi.EmptyValue
- func (a Actor) Code() cid.Cid
- func (a Actor) Constructor(rt runtime.Runtime, rootKey *addr.Address) *abi.EmptyValue
- func (a Actor) Exports() []interface{}
- func (a Actor) IsSingleton() bool
- func (a Actor) RemoveVerifier(rt runtime.Runtime, verifierAddr *addr.Address) *abi.EmptyValue
- func (a Actor) RestoreBytes(rt runtime.Runtime, params *RestoreBytesParams) *abi.EmptyValue
- func (a Actor) State() cbor.Er
- func (a Actor) UseBytes(rt runtime.Runtime, params *UseBytesParams) *abi.EmptyValue
- type AddVerifiedClientParams
- type AddVerifierParams
- type DataCap
- type RestoreBytesParams
- type State
- type StateSummary
- type UseBytesParams
Constants ¶
This section is empty.
Variables ¶
View Source
var MinVerifiedDealSize = abi.NewStoragePower(1 << 20)
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct{}
func (Actor) AddVerifiedClient ¶
func (a Actor) AddVerifiedClient(rt runtime.Runtime, params *AddVerifiedClientParams) *abi.EmptyValue
func (Actor) AddVerifier ¶
func (a Actor) AddVerifier(rt runtime.Runtime, params *AddVerifierParams) *abi.EmptyValue
func (Actor) Constructor ¶
func (Actor) IsSingleton ¶
func (Actor) RemoveVerifier ¶
func (Actor) RestoreBytes ¶
func (a Actor) RestoreBytes(rt runtime.Runtime, params *RestoreBytesParams) *abi.EmptyValue
Called by HandleInitTimeoutDeals from StorageMarketActor when a VerifiedDeal fails to init. Restore allowable cap for the client, creating new entry if the client has been deleted.
func (Actor) UseBytes ¶
func (a Actor) UseBytes(rt runtime.Runtime, params *UseBytesParams) *abi.EmptyValue
Called by StorageMarketActor during PublishStorageDeals. Do not allow partially verified deals (DealSize must be greater than equal to allowed cap). Delete VerifiedClient if remaining DataCap is smaller than minimum VerifiedDealSize.
type AddVerifiedClientParams ¶
type AddVerifiedClientParams = verifreg0.AddVerifiedClientParams
type AddVerifiedClientParams struct { Address addr.Address Allowance DataCap }
type AddVerifierParams ¶
type AddVerifierParams = verifreg0.AddVerifierParams
type AddVerifierParams struct { Address addr.Address Allowance DataCap }
type DataCap ¶
type DataCap = abi.StoragePower
DataCap is an integer number of bytes. We can introduce policy changes and replace this in the future.
type RestoreBytesParams ¶
type RestoreBytesParams = verifreg0.RestoreBytesParams
type RestoreBytesParams struct { Address addr.Address DealSize abi.StoragePower }
type State ¶
type State struct { // Root key holder multisig. // Authorize and remove verifiers. RootKey addr.Address // Verifiers authorize VerifiedClients. // Verifiers delegate their DataCap. Verifiers cid.Cid // HAMT[addr.Address]DataCap // VerifiedClients can add VerifiedClientData, up to DataCap. VerifiedClients cid.Cid // HAMT[addr.Address]DataCap }
func ConstructState ¶
rootKeyAddress comes from genesis.
type StateSummary ¶
func CheckStateInvariants ¶
func CheckStateInvariants(st *State, store adt.Store) (*StateSummary, *builtin.MessageAccumulator)
Checks internal invariants of verified registry state.
type UseBytesParams ¶
type UseBytesParams = verifreg0.UseBytesParams
type UseBytesParams struct { Address addr.Address // Address of verified client. DealSize abi.StoragePower // Number of bytes to use. }
Click to show internal directories.
Click to hide internal directories.