 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type ElectionScore
- type EventRecords
- type Event_AlreadyFrozen
- type Event_Authorize
- type Event_BuySpace
- type Event_CalculateEnd
- type Event_CancelAuthorize
- type Event_ClaimRestoralOrder
- type Event_CreateBucket
- type Event_DeleteBucket
- type Event_DeleteFile
- type Event_Deposit
- type Event_DrawFaucetMoney
- type Event_ElectionFinalized
- type Event_Exit
- type Event_ExpansionSpace
- type Event_FaucetTopUpMoney
- type Event_FillerDelete
- type Event_FillerUpload
- type Event_GenerateChallenge
- type Event_GenerateRestoralOrder
- type Event_IncreaseCollateral
- type Event_LeaseExpireIn24Hours
- type Event_LeaseExpired
- type Event_LessThan24Hours
- type Event_MinerClaim
- type Event_MinerExit
- type Event_MinerExitPrep
- type Event_OssDestroy
- type Event_OssRegister
- type Event_OssUpdate
- type Event_Receive
- type Event_RecoveryCompleted
- type Event_Registered
- type Event_RegistrationTeeWorker
- type Event_RenewalSpace
- type Event_ReplaceFiller
- type Event_StorageCompleted
- type Event_SubmitProof
- type Event_TransferReport
- type Event_UpdataBeneficiary
- type Event_UpdataIp
- type Event_UpdatePeerId
- type Event_UploadDeclaration
- type Event_VerifyProof
- type Event_Withdraw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElectionScore ¶ added in v0.2.3
type ElectionScore struct {
	/// The minimal winner, in terms of total backing stake.
	///
	/// This parameter should be maximized.
	Minimal_stake types.U128
	/// The sum of the total backing of all winners.
	///
	/// This parameter should maximized
	Sum_stake types.U128
	/// The sum squared of the total backing of all winners, aka. the variance.
	///
	/// Ths parameter should be minimized.
	Sum_stake_squared types.U128
}
    *******************************************************
type EventRecords ¶
type EventRecords struct {
	// AUDIT
	Audit_VerifyProof       []Event_VerifyProof
	Audit_SubmitProof       []Event_SubmitProof
	Audit_GenerateChallenge []Event_GenerateChallenge
	// FILEBANK
	FileBank_DeleteFile            []Event_DeleteFile
	FileBank_FillerDelete          []Event_FillerDelete
	FileBank_FillerUpload          []Event_FillerUpload
	FileBank_UploadDeclaration     []Event_UploadDeclaration
	FileBank_CreateBucket          []Event_CreateBucket
	FileBank_DeleteBucket          []Event_DeleteBucket
	FileBank_TransferReport        []Event_TransferReport
	FileBank_ReplaceFiller         []Event_ReplaceFiller
	FileBank_CalculateEnd          []Event_CalculateEnd
	FileBank_GenerateRestoralOrder []Event_GenerateRestoralOrder
	FileBank_ClaimRestoralOrder    []Event_ClaimRestoralOrder
	FileBank_RecoveryCompleted     []Event_RecoveryCompleted
	FileBank_StorageCompleted      []Event_StorageCompleted
	FileBank_Withdraw              []Event_Withdraw
	// OSS
	Oss_Authorize       []Event_Authorize
	Oss_CancelAuthorize []Event_CancelAuthorize
	Oss_OssRegister     []Event_OssRegister
	Oss_OssUpdate       []Event_OssUpdate
	Oss_OssDestroy      []Event_OssDestroy
	// SMINER
	Sminer_Registered         []Event_Registered
	Sminer_DrawFaucetMoney    []Event_DrawFaucetMoney
	Sminer_FaucetTopUpMoney   []Event_FaucetTopUpMoney
	Sminer_LessThan24Hours    []Event_LessThan24Hours
	Sminer_AlreadyFrozen      []Event_AlreadyFrozen
	Sminer_IncreaseCollateral []Event_IncreaseCollateral
	Sminer_Deposit            []Event_Deposit
	Sminer_UpdataBeneficiary  []Event_UpdataBeneficiary
	Sminer_UpdataIp           []Event_UpdataIp
	Sminer_Receive            []Event_Receive
	Sminer_MinerExitPrep      []Event_MinerExitPrep
	// StorageHandler
	StorageHandler_BuySpace             []Event_BuySpace
	StorageHandler_ExpansionSpace       []Event_ExpansionSpace
	StorageHandler_RenewalSpace         []Event_RenewalSpace
	StorageHandler_LeaseExpired         []Event_LeaseExpired
	StorageHandler_LeaseExpireIn24Hours []Event_LeaseExpireIn24Hours
	// TeeWorker
	TeeWorker_RegistrationTeeWorker []Event_RegistrationTeeWorker
	TeeWorker_UpdatePeerId          []Event_UpdatePeerId
	TeeWorker_Exit                  []Event_Exit
	// system
	ElectionProviderMultiPhase_ElectionFinalized []Event_ElectionFinalized
	// system-gsrpc
	types.EventRecords
}
    Events
type Event_AlreadyFrozen ¶
type Event_Authorize ¶ added in v0.2.1
type Event_BuySpace ¶
type Event_BuySpace struct {
	Phase            types.Phase
	Acc              types.AccountID
	Storage_capacity types.U128
	Spend            types.U128
	Topics           []types.Hash
}
    ------------------------StorageHandler--------------------------------
type Event_CalculateEnd ¶
type Event_CancelAuthorize ¶ added in v0.2.1
type Event_CreateBucket ¶
type Event_DeleteBucket ¶
type Event_DeleteFile ¶
type Event_DeleteFile struct {
	Phase    types.Phase
	Operator types.AccountID
	Owner    types.AccountID
	Filehash []pattern.FileHash
	Topics   []types.Hash
}
    ------------------------FileBank----------------------
type Event_Deposit ¶
type Event_DrawFaucetMoney ¶
type Event_ElectionFinalized ¶ added in v0.2.3
type Event_ElectionFinalized struct {
	Phase   types.Phase
	Compute types.U8
	Score   ElectionScore
	Topics  []types.Hash
}
    ------------------------system------------------------
type Event_Exit ¶ added in v0.2.1
type Event_ExpansionSpace ¶
type Event_FaucetTopUpMoney ¶
type Event_FillerDelete ¶ added in v0.0.74
type Event_FillerUpload ¶
type Event_GenerateChallenge ¶
type Event_LeaseExpired ¶
type Event_LessThan24Hours ¶
type Event_MinerClaim ¶
type Event_MinerExit ¶
type Event_MinerExitPrep ¶ added in v0.2.1
type Event_OssDestroy ¶
type Event_OssRegister ¶
type Event_OssRegister struct {
	Phase    types.Phase
	Acc      types.AccountID
	Endpoint pattern.PeerId
	Topics   []types.Hash
}
    ------------------------Oss---------------------------
type Event_OssUpdate ¶
type Event_Receive ¶
type Event_RecoveryCompleted ¶
type Event_Registered ¶
type Event_Registered struct {
	Phase      types.Phase
	Acc        types.AccountID
	StakingVal types.U128
	Topics     []types.Hash
}
    ------------------------Sminer------------------------
type Event_RegistrationTeeWorker ¶
type Event_RegistrationTeeWorker struct {
	Phase  types.Phase
	Acc    types.AccountID
	PeerId pattern.PeerId
	Topics []types.Hash
}
    ------------------------TEE Worker--------------------
type Event_RenewalSpace ¶
type Event_ReplaceFiller ¶
type Event_StorageCompleted ¶ added in v0.2.1
type Event_SubmitProof ¶
type Event_TransferReport ¶
type Event_UpdataBeneficiary ¶
type Event_UpdataIp ¶
type Event_UpdatePeerId ¶ added in v0.2.1
type Event_UploadDeclaration ¶
 Click to show internal directories. 
   Click to hide internal directories.