Documentation ¶
Index ¶
- Constants
- type AllDeleteFileEvent
- type AllUploadDeclarationEvent
- type ElectionScore
- type EventRecords
- type Event_AlreadyFrozen
- type Event_Authorize
- type Event_BuySpace
- type Event_CalculateEnd
- type Event_CalculateReport
- 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_IdleSpaceCert
- type Event_IncreaseCollateral
- type Event_IncreaseDeclarationSpace
- 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_RegisterPoisKey
- type Event_Registered
- type Event_RegistrationTeeWorker
- type Event_RenewalSpace
- type Event_ReplaceFiller
- type Event_ReplaceIdleSpace
- type Event_StorageCompleted
- type Event_SubmitIdleProof
- type Event_SubmitIdleVerifyResult
- type Event_SubmitProof
- type Event_SubmitServiceProof
- type Event_SubmitServiceVerifyResult
- type Event_TransferReport
- type Event_UpdataBeneficiary
- type Event_UpdataIp
- type Event_UpdatePeerId
- type Event_UploadDeclaration
- type Event_VerifyProof
- type Event_Withdraw
Constants ¶
View Source
const ( // AUDIT AuditVerifyProof = "Audit.VerifyProof" AuditSubmitProof = "Audit.SubmitProof" AuditGenerateChallenge = "Audit.GenerateChallenge" AuditSubmitIdleProof = "Audit.SubmitIdleProof" AuditSubmitServiceProof = "Audit.SubmitServiceProof" AuditSubmitIdleVerifyResult = "Audit.SubmitIdleVerifyResult" AuditSubmitServiceVerifyResult = "Audit.SubmitServiceVerifyResult" // BALANCE BalanceTransfer = "Balances.Transfer" // FILEBANK FileBankDeleteFile = "FileBank.DeleteFile" FileBankFillerDelete = "FileBank.FillerDelete" FileBankFillerUpload = "FileBank.FillerUpload" FileBankUploadDeclaration = "FileBank.UploadDeclaration" FileBankCreateBucket = "FileBank.CreateBucket" FileBankDeleteBucket = "FileBank.DeleteBucket" FileBankTransferReport = "FileBank.TransferReport" FileBankReplaceFiller = "FileBank.ReplaceFiller" FileBankGenerateRestoralOrder = "FileBank.GenerateRestoralOrder" FileBankClaimRestoralOrder = "FileBank.ClaimRestoralOrder" FileBankRecoveryCompleted = "FileBank.RecoveryCompleted" FileBankStorageCompleted = "FileBank.StorageCompleted" FileBankIdleSpaceCert = "FileBank.IdleSpaceCert" FileBankReplaceIdleSpace = "FileBank.ReplaceIdleSpace" FileBankCalculateReport = "FileBank.CalculateReport" // OSS OssAuthorize = "Oss.Authorize" OssCancelAuthorize = "Oss.CancelAuthorize" OssOssRegister = "Oss.OssRegister" OssOssUpdate = "Oss.OssUpdate" OssOssDestroy = "Oss.OssDestroy" // SMINER SminerRegistered = "Sminer.Registered" SminerRegisterPoisKey = "Sminer.RegisterPoisKey" SminerDrawFaucetMoney = "Sminer.DrawFaucetMoney" SminerFaucetTopUpMoney = "Sminer.FaucetTopUpMoney" SminerIncreaseCollateral = "Sminer.IncreaseCollateral" SminerDeposit = "Sminer.Deposit" SminerUpdateBeneficiary = "Sminer.UpdateBeneficiary" SminerUpdatePeerId = "Sminer.UpdatePeerId" SminerReceive = "Sminer.Receive" SminerMinerExitPrep = "Sminer.MinerExitPrep" SminerWithdraw = "Sminer.Withdraw" SminerIncreaseDeclarationSpace = "Sminer.IncreaseDeclarationSpace" // StorageHandler StorageHandlerBuySpace = "StorageHandler.BuySpace" StorageHandlerExpansionSpace = "StorageHandler.ExpansionSpace" StorageHandlerRenewalSpace = "StorageHandler.RenewalSpace" // TeeWorker TeeWorkerRegistrationTeeWorker = "TeeWorker.RegistrationTeeWorker" TeeWorkerUpdatePeerId = "TeeWorker.UpdatePeerId" TeeWorkerExit = "TeeWorker.Exit" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllDeleteFileEvent ¶ added in v0.3.18
type AllUploadDeclarationEvent ¶ added in v0.3.18
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 Audit_SubmitIdleProof []Event_SubmitIdleProof Audit_SubmitServiceProof []Event_SubmitServiceProof Audit_SubmitIdleVerifyResult []Event_SubmitIdleVerifyResult Audit_SubmitServiceVerifyResult []Event_SubmitServiceVerifyResult // 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_IdleSpaceCert []Event_IdleSpaceCert FileBank_ReplaceIdleSpace []Event_ReplaceIdleSpace FileBank_CalculateReport []Event_CalculateReport // 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_RegisterPoisKey []Event_RegisterPoisKey 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 Sminer_Withdraw []Event_Withdraw Sminer_IncreaseDeclarationSpace []Event_IncreaseDeclarationSpace // 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_CalculateReport ¶ added in v0.4.3
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_IdleSpaceCert ¶ added in v0.3.11
type Event_IncreaseDeclarationSpace ¶ added in v0.4.1
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_RegisterPoisKey ¶ added in v0.3.20
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_ReplaceIdleSpace ¶ added in v0.3.11
type Event_StorageCompleted ¶ added in v0.2.1
type Event_SubmitIdleProof ¶ added in v0.3.11
type Event_SubmitIdleVerifyResult ¶ added in v0.3.11
type Event_SubmitProof ¶
type Event_SubmitServiceProof ¶ added in v0.3.11
type Event_SubmitServiceVerifyResult ¶ added in v0.3.11
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.