Documentation ¶
Overview ¶
Package types go-fvm-sdk types
Index ¶
- Constants
- Variables
- func ValidateConsensusFaultType(c runtime.ConsensusFaultType) bool
- type ActorEvent
- type ActorKey
- type ActorType
- type AggregateSealVerifyInfo
- type AggregateSealVerifyProofAndInfos
- type BlockID
- type CBORBytes
- type CborInt
- type CborString
- type CborUint
- type Codec
- type Entry
- type Flags
- type InstallParams
- type InstallReturn
- type IpldOpen
- type IpldStat
- type MessageContext
- type NetworkContext
- type ParamsRaw
- type RawBytes
- type Receipt
- type ReplicaUpdateInfo
- type ResolveAddress
- type SendFlags
- type SendResult
- type StringKey
- type VerifyConsensusFault
Constants ¶
View Source
const ( //MaxCidLen The maximum supported CID size. (SPEC_AUDIT) MaxCidLen = 100 //MaxActorAddrLen The maximum actor address length (class 2 addresses). MaxActorAddrLen = 21 //UNIT block unit UNIT uint32 = 0 BLAKE2B256 uint64 = 0xb220 BLAKE2BLEN uint32 = 32 )
View Source
const ( FLAGINDEXEDKEY = 0b00000001 FLAGINDEXEDVALUE = 0b00000010 FLAGINDEXEDALL = FLAGINDEXEDKEY | FLAGINDEXEDVALUE )
View Source
const ( /// DagCBOR should be used for all IPLD-CBOR data where CIDs need to be traversable. DAGCBOR uint64 = 0x71 CBOR uint64 = 0x51 IPLDRAW uint64 = 0x55 )
View Source
const NoDataBlockID uint32 = 0
NoDataBlockID specify noblock in params and return
View Source
const ReadonlyFlag = 0b00000001
Variables ¶
View Source
var SimulatedEnvkey emptyKeyType
Functions ¶
func ValidateConsensusFaultType ¶
func ValidateConsensusFaultType(c runtime.ConsensusFaultType) bool
Types ¶
type ActorEvent ¶
type ActorEvent struct {
Entries []*Entry
}
ActorEvent An event as originally emitted by the actor.
type ActorType ¶
type ActorType int32
const ( System ActorType = 1 Init ActorType = 2 Cron ActorType = 3 Account ActorType = 4 Power ActorType = 5 Miner ActorType = 6 Market ActorType = 7 PaymentChannel ActorType = 8 Multisig ActorType = 9 Reward ActorType = 10 VerifiedRegistry ActorType = 11 PlaceHolder ActorType = 12 Evm ActorType = 13 Eam ActorType = 14 EthAccount ActorType = 15 )
func (ActorType) IsPrincipal ¶
func (ActorType) IsSingletonActor ¶
type AggregateSealVerifyInfo ¶
type AggregateSealVerifyInfo struct { Number abi.SectorNumber Randomness abi.SealRandomness InteractiveRandomness abi.InteractiveSealRandomness // Safe because we get those from the miner actor SealedCID cid.Cid `checked:"true"` // CommR UnsealedCID cid.Cid `checked:"true"` // CommD }
func (*AggregateSealVerifyInfo) MarshalCBOR ¶
func (t *AggregateSealVerifyInfo) MarshalCBOR(w io.Writer) error
func (*AggregateSealVerifyInfo) UnmarshalCBOR ¶
func (t *AggregateSealVerifyInfo) UnmarshalCBOR(r io.Reader) (err error)
type AggregateSealVerifyProofAndInfos ¶
type AggregateSealVerifyProofAndInfos struct { Miner abi.ActorID SealProof abi.RegisteredSealProof AggregateProof abi.RegisteredAggregationProof Proof []byte Infos []AggregateSealVerifyInfo }
func (*AggregateSealVerifyProofAndInfos) MarshalCBOR ¶
func (t *AggregateSealVerifyProofAndInfos) MarshalCBOR(w io.Writer) error
func (*AggregateSealVerifyProofAndInfos) UnmarshalCBOR ¶
func (t *AggregateSealVerifyProofAndInfos) UnmarshalCBOR(r io.Reader) (err error)
type CBORBytes ¶
type CBORBytes []byte
CBORBytes Wraps already-serialized bytes as CBOR-marshalable.
type CborString ¶
type CborString string
func (CborString) MarshalCBOR ¶
func (cb CborString) MarshalCBOR(w io.Writer) error
func (*CborString) UnmarshalCBOR ¶
func (cb *CborString) UnmarshalCBOR(r io.Reader) error
type Entry ¶
type Entry struct { /// A bitmap conveying metadata or hints about this entry. Flags Flags /// The key of this event. Key string /// The value's codec. Must be IPLDRAW (0x55) for now according to FIP-0049. Codec Codec /// Any DAG-CBOR encodeable type. Value RawBytes }
Entry A key value entry inside an Event.
type InstallParams ¶
type InstallParams struct {
Code []byte
}
func (*InstallParams) MarshalCBOR ¶
func (t *InstallParams) MarshalCBOR(w io.Writer) error
func (*InstallParams) UnmarshalCBOR ¶
func (t *InstallParams) UnmarshalCBOR(r io.Reader) (err error)
type InstallReturn ¶
type InstallReturn struct { CodeCid cid.Cid Installed bool }
func (*InstallReturn) MarshalCBOR ¶
func (t *InstallReturn) MarshalCBOR(w io.Writer) error
func (*InstallReturn) UnmarshalCBOR ¶
func (t *InstallReturn) UnmarshalCBOR(r io.Reader) (err error)
type MessageContext ¶
type MessageContext struct { // The current call's origin actor ID. Origin abi.ActorID // The nonce from the explicit message. Nonce uint64 // The caller's actor ID. Caller abi.ActorID // The receiver's actor ID (i.e. ourselves). Receiver abi.ActorID // The method number from the message. MethodNumber abi.MethodNum // The value that was received. ValueReceived abi.TokenAmount // The current gas premium GasPremium abi.TokenAmount // Flags pertaining to the currently executing actor's invocation context. Flags SendFlags }
type NetworkContext ¶
type NetworkContext struct { // The current epoch. Epoch abi.ChainEpoch // The current time (seconds since the unix epoch). Timestamp uint64 // The current base-fee. BaseFee abi.TokenAmount // The Chain ID of the network. ChainId uint64 // The network version. NetworkVersion uint32 }
type Receipt ¶
type ReplicaUpdateInfo ¶
type ReplicaUpdateInfo struct { UpdateProofType abi.RegisteredUpdateProof OldSealedSectorCID cid.Cid NewSealedSectorCID cid.Cid NewUnsealedSectorCID cid.Cid Proof []byte }
func (*ReplicaUpdateInfo) MarshalCBOR ¶
func (t *ReplicaUpdateInfo) MarshalCBOR(w io.Writer) error
func (*ReplicaUpdateInfo) UnmarshalCBOR ¶
func (t *ReplicaUpdateInfo) UnmarshalCBOR(r io.Reader) (err error)
type ResolveAddress ¶
type SendResult ¶
Click to show internal directories.
Click to hide internal directories.