Verified Registry Actor
Verified registry actor is responsible for managing verified clients.
The ActorCode for verified registry built-in actor is hex"0006" which will be used to call the exported methods in verified registry built-in actor. You also need to specify method number of which method you want to invoke. Please refer the each method for its method number.
AddVerifiedClient
function addVerifiedClient(VerifRegTypes.AddVerifiedClientParams memory params) internal {}
To add a verified Client address to Filecoin Plus program.
uint constant AddVerifierClientMethodNum = 3916220144.
Params:
structAddVerifierClientParamsFilAddressAddress - the verified client addressBigIntAllowance - approved DataCap for this verified client
Results:
structEmptyValue.
RemoveExpiredAllocations
function removeExpiredAllocations(
VerifRegTypes.RemoveExpiredAllocationsParams memory params
) internal returns (VerifRegTypes.RemoveExpiredAllocationsReturn memory) {}
Remove the expired DataCap allocations and reclaimed those DataCap token back to Client. If the allocation amount is not specified, all expired DataCap allocation will be removed.
uint RemoveExpiredAllocationsMethodNum = 2873373899.
Params:
structRemoveExpiredAllocationsParamsFilActorIdClient - the client address for which to expired allocations.FilActorId[]AllocationIDs - List of allocation IDs to attempt to remove. If empty, will remove all eligible expired allocations.
Results:
structRemoveExpiredAllocationsReturnFilActorId[]Considered - Allocation IDs are either specified by the caller or discovered to be expired.BatachReturnResults - results for each processed allocation.BigIntDataCapRecoverd - The amount of DataCap token reclaimed for the client.
GetClaims
function getClaims(VerifRegTypes.GetClaimsParams memory params) internal returns (VerifRegTypes.GetClaimsReturn memory) {}
Return a list of claims corresponding to the requested claim ID for specific provider.
uint GetClaimsMethodNum = 2199871187.
Params:
structGetClaimsParamsFilActorIdProvider - the provider address.FilActorId[]ClaimIDs - A list of Claim IDs for specific provider.
Results:
structGetClaimsReturn-
structBatchReturnuint32SuccessCount - total successes in the batch.structFailCode[] {uint32idx,uint32code} - list of failure code and index for all failures in batch.
-
struct Claim[]Claims - list of Claims returned.FilActorIdProvider - The provider storing the data.FilActorIdClient - The client which allocated the DataCap.bytesData - Identifier for the data committed.uint64Size - The size of the data.ChainEpochTermMin - The min period after term started which the provider must commit to storing data.ChainEpochTermMax - The max period after term started for which the provider can earn QA-power for the data.ChainEpochTermStart - the epoch at which the piece was committed.FilActorIdSector - ID of the provider's sector in which the data is committed.
-
ExtendClaimTerms
function extendClaimTerms(VerifRegTypes.ExtendClaimTermsParams memory params) internal returns (CommonTypes.BatchReturn memory) {}
Extends the maximum term of some claims up to the largest value they could have been originally allocated. This method can only be called by the claims' client.
uint ExtendClaimTermsMethodNum = 1752273514.
Params:
structExtendClaimTermsParamsstruct ClaimTerm[]TermsFilActorIdProvider - The provider address which storing the data.FilActorIdCliamID - Claim ID.ChainEpochTermMax - The max chain epoch to extend.
Results:
structExtendClaimTermsReturnstructBatchReturnuint32SuccessCount - total successes in the batch.structFailCodes[] {uint32idx,uint32code} - list of failure code and index for all failures in batch.
RemoveExpiredClaims
function removeExpiredClaims(VerifRegTypes.RemoveExpiredClaimsParams memory params) internal returns (VerifRegTypes.RemoveExpiredClaimsReturn memory) {}
To remove a claim with its maximum term has elapsed.
uint RemoveExpiredClaimsMethodNum = 2873373899.
Params:
structRemoveExpiredClaimsParamsFilActorIdProvider - the provider address.FilActorId[]ClaimIDs - A list of Claim IDs with expired term. If no claims are specified, all eligible claims will be removed.
Results:
structRemoveExpiredClaimsReturnFilActorId[]Considered - a list of IDs of the claims that were either specified by the caller or discovered to be expired.structBatchReturnuint32SuccessCount - total successes in the batchstructFailCodes[] {uint32idx,uint32code} - list of failure code and index for all failures in batch.