event

package
v0.4.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 AllDeleteFileEvent struct {
	Operator string
	Owner    string
	Filehash string
}

type AllUploadDeclarationEvent added in v0.3.18

type AllUploadDeclarationEvent struct {
	Operator string
	Owner    string
	Filehash string
}

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_AlreadyFrozen struct {
	Phase  types.Phase
	Acc    types.AccountID
	Topics []types.Hash
}

type Event_Authorize added in v0.2.1

type Event_Authorize struct {
	Phase    types.Phase
	Acc      types.AccountID
	Operator types.AccountID
	Topics   []types.Hash
}

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_CalculateEnd struct {
	Phase     types.Phase
	File_hash pattern.FileHash
	Topics    []types.Hash
}

type Event_CalculateReport added in v0.4.3

type Event_CalculateReport struct {
	Phase    types.Phase
	Miner    types.AccountID
	FileHash pattern.FileHash
	Topics   []types.Hash
}

type Event_CancelAuthorize added in v0.2.1

type Event_CancelAuthorize struct {
	Phase  types.Phase
	Acc    types.AccountID
	Topics []types.Hash
}

type Event_ClaimRestoralOrder

type Event_ClaimRestoralOrder struct {
	Phase   types.Phase
	Miner   types.AccountID
	OrderId pattern.FileHash
	Topics  []types.Hash
}

type Event_CreateBucket

type Event_CreateBucket struct {
	Phase      types.Phase
	Acc        types.AccountID
	Owner      types.AccountID
	BucketName types.Bytes
	Topics     []types.Hash
}

type Event_DeleteBucket

type Event_DeleteBucket struct {
	Phase      types.Phase
	Acc        types.AccountID
	Owner      types.AccountID
	BucketName types.Bytes
	Topics     []types.Hash
}

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_Deposit struct {
	Phase   types.Phase
	Balance types.U128
	Topics  []types.Hash
}

type Event_DrawFaucetMoney

type Event_DrawFaucetMoney struct {
	Phase  types.Phase
	Topics []types.Hash
}

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_Exit struct {
	Phase  types.Phase
	Acc    types.AccountID
	Topics []types.Hash
}

type Event_ExpansionSpace

type Event_ExpansionSpace struct {
	Phase           types.Phase
	Acc             types.AccountID
	Expansion_space types.U128
	Fee             types.U128
	Topics          []types.Hash
}

type Event_FaucetTopUpMoney

type Event_FaucetTopUpMoney struct {
	Phase  types.Phase
	Acc    types.AccountID
	Topics []types.Hash
}

type Event_FillerDelete added in v0.0.74

type Event_FillerDelete struct {
	Phase      types.Phase
	Acc        types.AccountID
	FillerHash pattern.FileHash
	Topics     []types.Hash
}

type Event_FillerUpload

type Event_FillerUpload struct {
	Phase    types.Phase
	Acc      types.AccountID
	Filesize types.U64
	Topics   []types.Hash
}

type Event_GenerateChallenge

type Event_GenerateChallenge struct {
	Phase  types.Phase
	Topics []types.Hash
}

type Event_GenerateRestoralOrder

type Event_GenerateRestoralOrder struct {
	Phase        types.Phase
	Miner        types.AccountID
	FragmentHash pattern.FileHash
	Topics       []types.Hash
}

type Event_IdleSpaceCert added in v0.3.11

type Event_IdleSpaceCert struct {
	Phase  types.Phase
	Acc    types.AccountID
	Space  types.U128
	Topics []types.Hash
}

type Event_IncreaseCollateral

type Event_IncreaseCollateral struct {
	Phase   types.Phase
	Acc     types.AccountID
	Balance types.U128
	Topics  []types.Hash
}

type Event_IncreaseDeclarationSpace added in v0.4.1

type Event_IncreaseDeclarationSpace struct {
	Phase  types.Phase
	Miner  types.AccountID
	Space  types.U128
	Topics []types.Hash
}

type Event_LeaseExpireIn24Hours

type Event_LeaseExpireIn24Hours struct {
	Phase  types.Phase
	Acc    types.AccountID
	Size   types.U128
	Topics []types.Hash
}

type Event_LeaseExpired

type Event_LeaseExpired struct {
	Phase  types.Phase
	Acc    types.AccountID
	Size   types.U128
	Topics []types.Hash
}

type Event_LessThan24Hours

type Event_LessThan24Hours struct {
	Phase  types.Phase
	Last   types.U32
	Now    types.U32
	Topics []types.Hash
}

type Event_MinerClaim

type Event_MinerClaim struct {
	Phase  types.Phase
	Acc    types.AccountID
	Topics []types.Hash
}

type Event_MinerExit

type Event_MinerExit struct {
	Phase  types.Phase
	Acc    types.AccountID
	Topics []types.Hash
}

type Event_MinerExitPrep added in v0.2.1

type Event_MinerExitPrep struct {
	Phase  types.Phase
	Miner  types.AccountID
	Topics []types.Hash
}

type Event_OssDestroy

type Event_OssDestroy struct {
	Phase  types.Phase
	Acc    types.AccountID
	Topics []types.Hash
}

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_OssUpdate struct {
	Phase       types.Phase
	Acc         types.AccountID
	NewEndpoint pattern.PeerId
	Topics      []types.Hash
}

type Event_Receive

type Event_Receive struct {
	Phase  types.Phase
	Acc    types.AccountID
	Reward types.U128
	Topics []types.Hash
}

type Event_RecoveryCompleted

type Event_RecoveryCompleted struct {
	Phase   types.Phase
	Miner   types.AccountID
	OrderId pattern.FileHash
	Topics  []types.Hash
}

type Event_RegisterPoisKey added in v0.3.20

type Event_RegisterPoisKey struct {
	Phase  types.Phase
	Miner  types.AccountID
	Topics []types.Hash
}

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_RenewalSpace struct {
	Phase        types.Phase
	Acc          types.AccountID
	Renewal_days types.U32
	Fee          types.U128
	Topics       []types.Hash
}

type Event_ReplaceFiller

type Event_ReplaceFiller struct {
	Phase       types.Phase
	Acc         types.AccountID
	Filler_list []pattern.FileHash
	Topics      []types.Hash
}

type Event_ReplaceIdleSpace added in v0.3.11

type Event_ReplaceIdleSpace struct {
	Phase  types.Phase
	Acc    types.AccountID
	Space  types.U128
	Topics []types.Hash
}

type Event_StorageCompleted added in v0.2.1

type Event_StorageCompleted struct {
	Phase    types.Phase
	FileHash pattern.FileHash
	Topics   []types.Hash
}

type Event_SubmitIdleProof added in v0.3.11

type Event_SubmitIdleProof struct {
	Phase  types.Phase
	Miner  types.AccountID
	Topics []types.Hash
}

type Event_SubmitIdleVerifyResult added in v0.3.11

type Event_SubmitIdleVerifyResult struct {
	Phase  types.Phase
	Tee    types.AccountID
	Miner  types.AccountID
	Result types.Bool
	Topics []types.Hash
}

type Event_SubmitProof

type Event_SubmitProof struct {
	Phase  types.Phase
	Miner  types.AccountID
	Topics []types.Hash
}

type Event_SubmitServiceProof added in v0.3.11

type Event_SubmitServiceProof struct {
	Phase  types.Phase
	Miner  types.AccountID
	Topics []types.Hash
}

type Event_SubmitServiceVerifyResult added in v0.3.11

type Event_SubmitServiceVerifyResult struct {
	Phase  types.Phase
	Tee    types.AccountID
	Miner  types.AccountID
	Result types.Bool
	Topics []types.Hash
}

type Event_TransferReport

type Event_TransferReport struct {
	Phase       types.Phase
	Acc         types.AccountID
	Failed_list []pattern.FileHash
	Topics      []types.Hash
}

type Event_UpdataBeneficiary

type Event_UpdataBeneficiary struct {
	Phase  types.Phase
	Acc    types.AccountID
	New    types.AccountID
	Topics []types.Hash
}

type Event_UpdataIp

type Event_UpdataIp struct {
	Phase  types.Phase
	Acc    types.AccountID
	Old    pattern.PeerId
	New    pattern.PeerId
	Topics []types.Hash
}

type Event_UpdatePeerId added in v0.2.1

type Event_UpdatePeerId struct {
	Phase  types.Phase
	Acc    types.AccountID
	Topics []types.Hash
}

type Event_UploadDeclaration

type Event_UploadDeclaration struct {
	Phase     types.Phase
	Operator  types.AccountID
	Owner     types.AccountID
	Deal_hash pattern.FileHash
	Topics    []types.Hash
}

type Event_VerifyProof

type Event_VerifyProof struct {
	Phase     types.Phase
	TeeWorker types.AccountID
	Miner     types.AccountID
	Topics    []types.Hash
}

------------------------Audit-------------------

type Event_Withdraw

type Event_Withdraw struct {
	Phase  types.Phase
	Acc    types.AccountID
	Topics []types.Hash
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL