Documentation ¶
Index ¶
- Constants
- type ActualWeightType
- type AllDeleteFileEvent
- type AllUploadDeclarationEvent
- type BlockData
- type CreateBucketInfo
- type DeleteBucketInfo
- type DeleteFileInfo
- type ElectionCompute
- type ElectionScore
- type EventRecords
- type Event_AlreadyFrozen
- type Event_Authorize
- type Event_BuySpace
- type Event_CalculateEnd
- type Event_CalculateReport
- type Event_CallDone
- 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_KeyfairyAdded
- type Event_LeaseExpireIn24Hours
- type Event_LeaseExpired
- type Event_LessThan24Hours
- type Event_Locked
- type Event_MasterKeyLaunched
- type Event_MasterKeyRotated
- type Event_MasterKeyRotationFailed
- type Event_MinerClaim
- type Event_MinerExit
- type Event_MinerExitPrep
- type Event_MinimumCesealVersionChangedTo
- type Event_OssDestroy
- type Event_OssRegister
- type Event_OssUpdate
- type Event_PhaseTransitioned
- type Event_Receive
- type Event_RecoveryCompleted
- type Event_RegisterPoisKey
- type Event_Registered
- type Event_RenewalSpace
- type Event_ReplaceFiller
- type Event_ReplaceIdleSpace
- type Event_ServiceFeePaid
- type Event_SolutionStored
- type Event_StorageCompleted
- type Event_SubmitIdleProof
- type Event_SubmitIdleVerifyResult
- type Event_SubmitProof
- type Event_SubmitServiceProof
- type Event_SubmitServiceVerifyResult
- type Event_TransactionFeePaid
- type Event_TransferReport
- type Event_UpdateBeneficiary
- type Event_UpdatePeerId
- type Event_UploadDeclaration
- type Event_ValidatorPrefsSet
- type Event_VerifyProof
- type Event_Withdraw
- type Event_WorkerAdded
- type Event_WorkerUpdated
- type ExtrinsicsInfo
- type MinerRegInfo
- type Result
- type ResultOk
- type Signed
- type SubmitIdleProve
- type SubmitIdleResult
- type SubmitServiceProve
- type SubmitServiceResult
- type TransferInfo
- type UnsignedValue
- type Unsigneds
- type UploadDecInfo
- type ValidatorPrefs
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 TeeWorkerExit = "TeeWorker.Exit" TeeWorkerMasterKeyLaunched = "TeeWorker.MasterKeyLaunched" TeeWorkerKeyfairyAdded = "TeeWorker.KeyfairyAdded" TeeWorkerWorkerAdded = "TeeWorker.WorkerAdded" TeeWorkerWorkerUpdated = "TeeWorker.WorkerUpdated" TeeWorkerMasterKeyRotated = "TeeWorker.MasterKeyRotated" TeeWorkerMasterKeyRotationFailed = "TeeWorker.MasterKeyRotationFailed" TeeWorkerMinimumCesealVersionChangedTo = "TeeWorker.MinimumCesealVersionChangedTo" // TransactionPaymentTransactionFeePaid = "TransactionPayment.TransactionFeePaid" // EvmAccountMappingTransactionFeePaid = "EvmAccountMapping.TransactionFeePaid" // BalancesWithdraw = "Balances.Withdraw" BalancesTransfer = "Balances.Transfer" // SystemExtrinsicSuccess = "System.ExtrinsicSuccess" SystemExtrinsicFailed = "System.ExtrinsicFailed" SystemNewAccount = "System.NewAccount" // StakingStakersElected = "Staking.StakersElected" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActualWeightType ¶ added in v0.5.1
type AllDeleteFileEvent ¶ added in v0.3.18
type AllUploadDeclarationEvent ¶ added in v0.3.18
type BlockData ¶ added in v0.5.1
type BlockData struct { BlockHash string PreHash string ExtHash string StHash string AllGasFee string Timestamp int64 BlockId uint32 IsNewEra bool SysEvents []string NewAccounts []string GenChallenge []string MinerReg []MinerRegInfo Extrinsics []ExtrinsicsInfo TransferInfo []TransferInfo UploadDecInfo []UploadDecInfo DeleteFileInfo []DeleteFileInfo CreateBucketInfo []CreateBucketInfo DeleteBucketInfo []DeleteBucketInfo SubmitIdleProve []SubmitIdleProve SubmitServiceProve []SubmitServiceProve SubmitIdleResult []SubmitIdleResult SubmitServiceResult []SubmitServiceResult }
type CreateBucketInfo ¶ added in v0.5.1
type DeleteBucketInfo ¶ added in v0.5.1
type DeleteFileInfo ¶ added in v0.5.1
type ElectionCompute ¶ added in v0.5.1
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_UpdateBeneficiary []Event_UpdateBeneficiary Sminer_UpdatePeerId []Event_UpdatePeerId 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_Exit []Event_Exit TeeWorker_MasterKeyLaunched []Event_MasterKeyLaunched TeeWorker_WorkerAdded []Event_WorkerAdded TeeWorker_KeyfairyAdded []Event_KeyfairyAdded TeeWorker_WorkerUpdated []Event_WorkerUpdated TeeWorker_MasterKeyRotated []Event_MasterKeyRotated TeeWorker_MasterKeyRotationFailed []Event_MasterKeyRotationFailed TeeWorker_MinimumCesealVersionChangedTo []Event_MinimumCesealVersionChangedTo // system - Staking Balances_Locked []Event_Locked // system - EvmAccountMapping EvmAccountMapping_ServiceFeePaid []Event_ServiceFeePaid EvmAccountMapping_CallDone []Event_CallDone EvmAccountMapping_TransactionFeePaid []Event_TransactionFeePaid // system - Staking Staking_ValidatorPrefsSet []Event_ValidatorPrefsSet // system - ElectionProviderMultiPhase ElectionProviderMultiPhase_ElectionFinalized []Event_ElectionFinalized ElectionProviderMultiPhase_PhaseTransitioned []Event_PhaseTransitioned ElectionProviderMultiPhase_SolutionStored []Event_SolutionStored // 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_CallDone ¶ added in v0.5.1
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
------------------------TEE Worker--------------------
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_KeyfairyAdded ¶ added in v0.4.23
type Event_LeaseExpired ¶
type Event_LessThan24Hours ¶
type Event_Locked ¶ added in v0.5.1
type Event_MasterKeyLaunched ¶ added in v0.4.23
type Event_MasterKeyRotated ¶ added in v0.4.23
type Event_MasterKeyRotationFailed ¶ added in v0.4.23
type Event_MinerClaim ¶
type Event_MinerExit ¶
type Event_MinerExitPrep ¶ added in v0.2.1
type Event_MinimumCesealVersionChangedTo ¶ added in v0.4.23
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_PhaseTransitioned ¶ added in v0.5.1
type Event_Receive ¶
type Event_RecoveryCompleted ¶
type Event_RegisterPoisKey ¶ added in v0.3.20
type Event_Registered ¶
------------------------Sminer------------------------
type Event_RenewalSpace ¶
type Event_ReplaceFiller ¶
type Event_ReplaceIdleSpace ¶ added in v0.3.11
type Event_ServiceFeePaid ¶ added in v0.5.1
type Event_SolutionStored ¶
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_TransactionFeePaid ¶ added in v0.5.1
type Event_TransferReport ¶
type Event_UpdateBeneficiary ¶ added in v0.5.1
type Event_UpdatePeerId ¶ added in v0.2.1
type Event_UploadDeclaration ¶
type Event_ValidatorPrefsSet ¶ added in v0.5.1
type Event_VerifyProof ¶
type Event_VerifyProof struct { Phase types.Phase TeeWorker pattern.WorkerPublicKey Miner types.AccountID Topics []types.Hash }
------------------------Audit-------------------
type Event_Withdraw ¶
type Event_WorkerAdded ¶ added in v0.5.1
type Event_WorkerUpdated ¶ added in v0.4.23
type ExtrinsicsInfo ¶ added in v0.5.1
type MinerRegInfo ¶ added in v0.5.1
type ResultOk ¶ added in v0.5.1
type ResultOk struct { ActualWeight types.Option[ActualWeightType] PaysFee types.U8 }
type SubmitIdleProve ¶ added in v0.5.1
type SubmitIdleResult ¶ added in v0.5.1
type SubmitServiceProve ¶ added in v0.5.1
type SubmitServiceResult ¶ added in v0.5.1
type TransferInfo ¶ added in v0.5.1
type Unsigneds ¶ added in v0.5.1
type Unsigneds struct { Index types.U8 UnsignedValue []UnsignedValue }
type UploadDecInfo ¶ added in v0.5.1
Click to show internal directories.
Click to hide internal directories.