Documentation ¶
Index ¶
- Constants
- func MakeCid(data []byte) (string, error)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ActiveProviders(c context.Context, req *types.QueryActiveProviders) (*types.QueryActiveProvidersResponse, error)
- func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) AllAttestations(c context.Context, req *types.QueryAllAttestations) (*types.QueryAllAttestationsResponse, error)
- func (k Keeper) AllFiles(c context.Context, req *types.QueryAllFiles) (*types.QueryAllFilesResponse, error)
- func (k Keeper) AllFilesByMerkle(c context.Context, req *types.QueryAllFilesByMerkle) (*types.QueryAllFilesByMerkleResponse, error)
- func (k Keeper) AllFilesByOwner(c context.Context, req *types.QueryAllFilesByOwner) (*types.QueryAllFilesByOwnerResponse, error)
- func (k Keeper) AllProofs(c context.Context, req *types.QueryAllProofs) (*types.QueryAllProofsResponse, error)
- func (k Keeper) AllProviders(c context.Context, req *types.QueryAllProviders) (*types.QueryAllProvidersResponse, error)
- func (k Keeper) AllReports(c context.Context, req *types.QueryAllReports) (*types.QueryAllReportsResponse, error)
- func (k Keeper) AllStoragePaymentInfo(c context.Context, req *types.QueryAllStoragePaymentInfo) (*types.QueryAllStoragePaymentInfoResponse, error)
- func (k Keeper) Attest(ctx sdk.Context, prover string, merkle []byte, owner string, start int64, ...) error
- func (k Keeper) Attestation(c context.Context, req *types.QueryAttestation) (*types.QueryAttestationResponse, error)
- func (k Keeper) AvailableSpace(c context.Context, req *types.QueryAvailableSpace) (*types.QueryAvailableSpaceResponse, error)
- func (k Keeper) DoReport(ctx sdk.Context, prover string, merkle []byte, owner string, start int64, ...) error
- func (k Keeper) File(c context.Context, req *types.QueryFile) (*types.QueryFileResponse, error)
- func (k Keeper) FileUploadCheck(c context.Context, req *types.QueryFileUploadCheck) (*types.QueryFileUploadCheckResponse, error)
- func (k Keeper) FilesFromNote(c context.Context, req *types.QueryFilesFromNote) (*types.QueryFilesFromNoteResponse, error)
- func (k Keeper) FindFile(goCtx context.Context, req *types.QueryFindFile) (*types.QueryFindFileResponse, error)
- func (k Keeper) FreeSpace(goCtx context.Context, req *types.QueryFreeSpace) (*types.QueryFreeSpaceResponse, error)
- func (k Keeper) Gauges(c context.Context, req *types.QueryAllGauges) (*types.QueryAllGaugesResponse, error)
- func (k Keeper) GetActiveProviders(ctx sdk.Context, filterAddress string) []types.ActiveProviders
- func (k Keeper) GetAllActiveProviders(ctx sdk.Context) (list []types.ActiveProviders)
- func (k Keeper) GetAllAttestation(ctx sdk.Context) (list []types.AttestationForm)
- func (k Keeper) GetAllCollateral(ctx sdk.Context) (list []types.Collateral)
- func (k Keeper) GetAllFileByMerkle(ctx sdk.Context) (list []types.UnifiedFile)
- func (k Keeper) GetAllFileByOwner(ctx sdk.Context) (list []types.UnifiedFile)
- func (k Keeper) GetAllFilesWithMerkle(ctx sdk.Context, merkle []byte) (list []types.UnifiedFile)
- func (k Keeper) GetAllLegacyActiveDeals(ctx sdk.Context) (list []types.LegacyActiveDeals)
- func (k Keeper) GetAllPaymentGauges(ctx sdk.Context) (list []types.PaymentGauge)
- func (k Keeper) GetAllProofs(ctx sdk.Context) (list []types.FileProof)
- func (k Keeper) GetAllProofsForProver(ctx sdk.Context, prover string) ([]types.FileProof, error)
- func (k Keeper) GetAllProviders(ctx sdk.Context) (list []types.Providers)
- func (k Keeper) GetAllReport(ctx sdk.Context) (list []types.ReportForm)
- func (k Keeper) GetAllStoragePaymentInfo(ctx sdk.Context) (list []types.StoragePaymentInfo)
- func (k Keeper) GetAttestationForm(ctx sdk.Context, prover string, merkle []byte, owner string, start int64) (val types.AttestationForm, found bool)
- func (k Keeper) GetClientFreeSpace(goCtx context.Context, req *types.QueryClientFreeSpace) (*types.QueryClientFreeSpaceResponse, error)
- func (k Keeper) GetCollateral(ctx sdk.Context, address string) (val types.Collateral, found bool)
- func (k Keeper) GetFile(ctx sdk.Context, merkle []byte, owner string, start int64) (val types.UnifiedFile, found bool)
- func (k Keeper) GetJklPrice(ctx sdk.Context) (price sdk.Dec)
- func (k Keeper) GetLegacyActiveDeals(ctx sdk.Context, cid string) (val types.LegacyActiveDeals, found bool)
- func (k Keeper) GetPaidAmount(ctx sdk.Context, address string) int64
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) GetPayData(goCtx context.Context, req *types.QueryPayData) (*types.QueryPayDataResponse, error)
- func (k Keeper) GetProof(ctx sdk.Context, prover string, merkle []byte, owner string, start int64) (val types.FileProof, found bool)
- func (k Keeper) GetProofWithBuiltKey(ctx sdk.Context, key []byte) (val types.FileProof, found bool)
- func (k Keeper) GetProviderDeals(ctx sdk.Context, provider string) int64
- func (k Keeper) GetProviderUsing(ctx sdk.Context, provider string) int64
- func (k Keeper) GetProviders(ctx sdk.Context, address string) (val types.Providers, found bool)
- func (k Keeper) GetRandomizedProviders(ctx sdk.Context) []types.Providers
- func (k Keeper) GetReportForm(ctx sdk.Context, prover string, merkle []byte, owner string, start int64) (val types.ReportForm, found bool)
- func (k Keeper) GetStorageCost(ctx sdk.Context, gbs int64, hours int64) sdk.Int
- func (k Keeper) GetStorageCostKbs(ctx sdk.Context, kbs int64, hours int64) sdk.Int
- func (k Keeper) GetStorageCostKbsWithPrice(ctx sdk.Context, kbs int64, hours int64, pricePerTBMonth int64) sdk.Int
- func (k Keeper) GetStoragePaymentInfo(ctx sdk.Context, address string) (val types.StoragePaymentInfo, found bool)
- func (k Keeper) IterateAndParseFilesByMerkle(ctx sdk.Context, reverse bool, fn func(key []byte, val types.UnifiedFile) bool)
- func (k Keeper) IterateFilesByMerkle(ctx sdk.Context, reverse bool, fn func(key []byte, val []byte) bool)
- func (k Keeper) IterateGauges(ctx sdk.Context, fn func(pg types.PaymentGauge))
- func (k Keeper) ListFileLocations(ctx sdk.Context, merkle []byte) []string
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ManageRewards(ctx sdk.Context)
- func (k Keeper) NetworkSize(c context.Context, req *types.QueryNetworkSize) (*types.QueryNetworkSizeResponse, error)
- func (k Keeper) NewGauge(ctx sdk.Context, coins sdk.Coins, end time.Time) types.PaymentGauge
- func (k Keeper) OpenFiles(c context.Context, req *types.QueryOpenFiles) (*types.QueryAllFilesResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParams) (*types.QueryParamsResponse, error)
- func (k Keeper) PaymentInfo(goCtx context.Context, req *types.QueryStoragePaymentInfo) (*types.QueryStoragePaymentInfoResponse, error)
- func (k Keeper) PriceCheck(c context.Context, req *types.QueryPriceCheck) (*types.QueryPriceCheckResponse, error)
- func (k Keeper) Proof(c context.Context, req *types.QueryProof) (*types.QueryProofResponse, error)
- func (k Keeper) ProofsByAddress(c context.Context, req *types.QueryProofsByAddress) (*types.QueryProofsByAddressResponse, error)
- func (k Keeper) Provider(c context.Context, req *types.QueryProvider) (*types.QueryProviderResponse, error)
- func (k Keeper) RemoveAllActiveProviders(ctx sdk.Context)
- func (k Keeper) RemoveAllAttestation(ctx sdk.Context)
- func (k Keeper) RemoveAttestation(ctx sdk.Context, prover string, merkle []byte, owner string, start int64)
- func (k Keeper) RemoveCollateral(ctx sdk.Context, address string)
- func (k Keeper) RemoveFile(ctx sdk.Context, merkle []byte, owner string, start int64)
- func (k Keeper) RemoveGauge(ctx sdk.Context, id []byte)
- func (k Keeper) RemoveLegacyActiveDeals(ctx sdk.Context, cid string)
- func (k Keeper) RemoveProof(ctx sdk.Context, prover string, merkle []byte, owner string, start int64)
- func (k Keeper) RemoveProofWithBuiltKey(ctx sdk.Context, key []byte)
- func (k Keeper) RemoveProviders(ctx sdk.Context, address string)
- func (k Keeper) RemoveReport(ctx sdk.Context, prover string, merkle []byte, owner string, start int64)
- func (k Keeper) RemoveStoragePaymentInfo(ctx sdk.Context, address string)
- func (k Keeper) Report(c context.Context, req *types.QueryReport) (*types.QueryReportResponse, error)
- func (k Keeper) RequestAttestation(ctx sdk.Context, merkle []byte, owner string, start int64, creator string) ([]string, error)
- func (k Keeper) RequestReport(ctx sdk.Context, prover string, merkle []byte, owner string, start int64) ([]string, error)
- func (k Keeper) RunRewardBlock(ctx sdk.Context)
- func (k Keeper) SetActiveProviders(ctx sdk.Context, providers types.ActiveProviders)
- func (k Keeper) SetAttestationForm(ctx sdk.Context, attestation types.AttestationForm)
- func (k Keeper) SetCollateral(ctx sdk.Context, collateral types.Collateral)
- func (k Keeper) SetFile(ctx sdk.Context, file types.UnifiedFile)
- func (k Keeper) SetLegacyActiveDeals(ctx sdk.Context, activeDeals types.LegacyActiveDeals)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPaymentGauge(ctx sdk.Context, gauge types.PaymentGauge)
- func (k Keeper) SetProof(ctx sdk.Context, proof types.FileProof)
- func (k Keeper) SetProviders(ctx sdk.Context, providers types.Providers)
- func (k Keeper) SetReportForm(ctx sdk.Context, report types.ReportForm)
- func (k Keeper) SetStoragePaymentInfo(ctx sdk.Context, payInfo types.StoragePaymentInfo)
- func (k Keeper) StoragePaymentInfo(c context.Context, req *types.QueryStoragePaymentInfo) (*types.QueryStoragePaymentInfoResponse, error)
- func (k Keeper) StorageStats(c context.Context, req *types.QueryStorageStats) (*types.QueryStorageStatsResponse, error)
- func (k Keeper) StoreCount(goCtx context.Context, req *types.QueryStoreCount) (*types.QueryStoreCountResponse, error)
- func (k Keeper) UpgradeStorage(ctx sdk.Context, bytes int64, payInfo types.StoragePaymentInfo, ...) (sdk.Coin, error)
- type Migrator
Constants ¶
const ( False = "false" True = "true" )
const (
Rounds = 20
)
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey sdk.StoreKey, ps paramtypes.Subspace, bankKeeper types.BankKeeper, accountKeeper types.AccountKeeper, oracleKeeper types.OracleKeeper, rnsKeeper types.RnsKeeper, feeCollectorName string, ) *Keeper
func (Keeper) ActiveProviders ¶
func (k Keeper) ActiveProviders(c context.Context, req *types.QueryActiveProviders) (*types.QueryActiveProvidersResponse, error)
func (Keeper) AddCollectedFees ¶
func (Keeper) AllAttestations ¶
func (k Keeper) AllAttestations(c context.Context, req *types.QueryAllAttestations) (*types.QueryAllAttestationsResponse, error)
func (Keeper) AllFiles ¶
func (k Keeper) AllFiles(c context.Context, req *types.QueryAllFiles) (*types.QueryAllFilesResponse, error)
func (Keeper) AllFilesByMerkle ¶
func (k Keeper) AllFilesByMerkle(c context.Context, req *types.QueryAllFilesByMerkle) (*types.QueryAllFilesByMerkleResponse, error)
func (Keeper) AllFilesByOwner ¶
func (k Keeper) AllFilesByOwner(c context.Context, req *types.QueryAllFilesByOwner) (*types.QueryAllFilesByOwnerResponse, error)
func (Keeper) AllProofs ¶
func (k Keeper) AllProofs(c context.Context, req *types.QueryAllProofs) (*types.QueryAllProofsResponse, error)
func (Keeper) AllProviders ¶
func (k Keeper) AllProviders(c context.Context, req *types.QueryAllProviders) (*types.QueryAllProvidersResponse, error)
func (Keeper) AllReports ¶
func (k Keeper) AllReports(c context.Context, req *types.QueryAllReports) (*types.QueryAllReportsResponse, error)
func (Keeper) AllStoragePaymentInfo ¶
func (k Keeper) AllStoragePaymentInfo(c context.Context, req *types.QueryAllStoragePaymentInfo) (*types.QueryAllStoragePaymentInfoResponse, error)
func (Keeper) Attestation ¶
func (k Keeper) Attestation(c context.Context, req *types.QueryAttestation) (*types.QueryAttestationResponse, error)
func (Keeper) AvailableSpace ¶ added in v4.1.0
func (k Keeper) AvailableSpace(c context.Context, req *types.QueryAvailableSpace) (*types.QueryAvailableSpaceResponse, error)
func (Keeper) FileUploadCheck ¶
func (k Keeper) FileUploadCheck(c context.Context, req *types.QueryFileUploadCheck) (*types.QueryFileUploadCheckResponse, error)
func (Keeper) FilesFromNote ¶
func (k Keeper) FilesFromNote(c context.Context, req *types.QueryFilesFromNote) (*types.QueryFilesFromNoteResponse, error)
func (Keeper) FindFile ¶
func (k Keeper) FindFile(goCtx context.Context, req *types.QueryFindFile) (*types.QueryFindFileResponse, error)
func (Keeper) FreeSpace ¶
func (k Keeper) FreeSpace(goCtx context.Context, req *types.QueryFreeSpace) (*types.QueryFreeSpaceResponse, error)
func (Keeper) Gauges ¶
func (k Keeper) Gauges(c context.Context, req *types.QueryAllGauges) (*types.QueryAllGaugesResponse, error)
func (Keeper) GetActiveProviders ¶
GetActiveProviders returns a list of recently active providers in a random order
func (Keeper) GetAllActiveProviders ¶
func (k Keeper) GetAllActiveProviders(ctx sdk.Context) (list []types.ActiveProviders)
GetAllActiveProviders returns all providers
func (Keeper) GetAllAttestation ¶
func (k Keeper) GetAllAttestation(ctx sdk.Context) (list []types.AttestationForm)
GetAllAttestation returns all attestations
func (Keeper) GetAllCollateral ¶
func (k Keeper) GetAllCollateral(ctx sdk.Context) (list []types.Collateral)
GetAllCollateral returns all collaterals
func (Keeper) GetAllFileByMerkle ¶
func (k Keeper) GetAllFileByMerkle(ctx sdk.Context) (list []types.UnifiedFile)
GetAllFileByMerkle returns all File
func (Keeper) GetAllFileByOwner ¶
func (k Keeper) GetAllFileByOwner(ctx sdk.Context) (list []types.UnifiedFile)
GetAllFileByOwner returns all File
func (Keeper) GetAllFilesWithMerkle ¶
GetAllFilesWithMerkle returns all Files that start with a specific merkle
func (Keeper) GetAllLegacyActiveDeals ¶
func (k Keeper) GetAllLegacyActiveDeals(ctx sdk.Context) (list []types.LegacyActiveDeals)
GetAllActiveDeals returns all activeDeals
func (Keeper) GetAllPaymentGauges ¶
func (k Keeper) GetAllPaymentGauges(ctx sdk.Context) (list []types.PaymentGauge)
GetAllPaymentGauges returns all payment gauges
func (Keeper) GetAllProofs ¶
GetAllProofs returns all File
func (Keeper) GetAllProofsForProver ¶
GetAllProofsForProver returns all Proofs for the given prover
func (Keeper) GetAllProviders ¶
GetAllProviders returns all providers
func (Keeper) GetAllReport ¶
func (k Keeper) GetAllReport(ctx sdk.Context) (list []types.ReportForm)
GetAllReport returns all reports
func (Keeper) GetAllStoragePaymentInfo ¶
func (k Keeper) GetAllStoragePaymentInfo(ctx sdk.Context) (list []types.StoragePaymentInfo)
GetAllStoragePaymentInfo returns all payBlocks
func (Keeper) GetAttestationForm ¶
func (k Keeper) GetAttestationForm( ctx sdk.Context, prover string, merkle []byte, owner string, start int64, ) (val types.AttestationForm, found bool)
GetAttestationForm returns an attestation from its index
func (Keeper) GetClientFreeSpace ¶
func (k Keeper) GetClientFreeSpace(goCtx context.Context, req *types.QueryClientFreeSpace) (*types.QueryClientFreeSpaceResponse, error)
func (Keeper) GetCollateral ¶
func (k Keeper) GetCollateral( ctx sdk.Context, address string, ) (val types.Collateral, found bool)
GetCollateral returns a collateral from its index
func (Keeper) GetFile ¶
func (k Keeper) GetFile( ctx sdk.Context, merkle []byte, owner string, start int64, ) (val types.UnifiedFile, found bool)
GetFile returns a File from its index
func (Keeper) GetJklPrice ¶
GetJklPrice uses oracle module to get jkl price Returns 0.20 if feed doesn't exist or failed to unmarshal data Unmarshal failure is logged
func (Keeper) GetLegacyActiveDeals ¶
func (k Keeper) GetLegacyActiveDeals( ctx sdk.Context, cid string, ) (val types.LegacyActiveDeals, found bool)
GetActiveDeals returns a activeDeals from its index
func (Keeper) GetPayData ¶
func (k Keeper) GetPayData(goCtx context.Context, req *types.QueryPayData) (*types.QueryPayDataResponse, error)
func (Keeper) GetProof ¶
func (k Keeper) GetProof( ctx sdk.Context, prover string, merkle []byte, owner string, start int64, ) (val types.FileProof, found bool)
GetProof returns a Proof from its index
func (Keeper) GetProofWithBuiltKey ¶
func (k Keeper) GetProofWithBuiltKey( ctx sdk.Context, key []byte, ) (val types.FileProof, found bool)
GetProofWithBuiltKey returns a Proof from its index using an already built key (for example from the internal file proof list)
func (Keeper) GetProviderDeals ¶
func (Keeper) GetProviderUsing ¶
func (Keeper) GetProviders ¶
GetProviders returns a providers from its index
func (Keeper) GetRandomizedProviders ¶
GetRandomizedProviders returns a list of providers in a random order
func (Keeper) GetReportForm ¶
func (k Keeper) GetReportForm( ctx sdk.Context, prover string, merkle []byte, owner string, start int64, ) (val types.ReportForm, found bool)
GetReportForm returns a report from its index
func (Keeper) GetStorageCost ¶
GetStorageCost calculates storage cost in ujkl Uses gigabytes and months to calculate how much user has to pay
func (Keeper) GetStorageCostKbs ¶
GetStorageCostKbs calculates storage cost in ujkl Uses kilobytes and months to calculate how much user has to pay
func (Keeper) GetStorageCostKbsWithPrice ¶
func (k Keeper) GetStorageCostKbsWithPrice(ctx sdk.Context, kbs int64, hours int64, pricePerTBMonth int64) sdk.Int
GetStorageCostKbs calculates storage cost in ujkl Uses kilobytes and months to calculate how much user has to pay
func (Keeper) GetStoragePaymentInfo ¶
func (k Keeper) GetStoragePaymentInfo( ctx sdk.Context, address string, ) (val types.StoragePaymentInfo, found bool)
GetStoragePaymentInfo returns StoragePaymentInfo from its address
func (Keeper) IterateAndParseFilesByMerkle ¶ added in v4.1.0
func (k Keeper) IterateAndParseFilesByMerkle(ctx sdk.Context, reverse bool, fn func(key []byte, val types.UnifiedFile) bool)
IterateAndParseFilesByMerkle iterates through every file and parses them for you
func (Keeper) IterateFilesByMerkle ¶
func (k Keeper) IterateFilesByMerkle(ctx sdk.Context, reverse bool, fn func(key []byte, val []byte) bool)
IterateFilesByMerkle iterates through every file
func (Keeper) IterateGauges ¶
func (k Keeper) IterateGauges(ctx sdk.Context, fn func(pg types.PaymentGauge))
IterateGauges iterates and runs `fn` for every gauge
func (Keeper) ListFileLocations ¶
func (Keeper) ManageRewards ¶
ManageRewards loops through every file on the network and manages it in some way.
func (Keeper) NetworkSize ¶ added in v4.1.0
func (k Keeper) NetworkSize(c context.Context, req *types.QueryNetworkSize) (*types.QueryNetworkSizeResponse, error)
func (Keeper) OpenFiles ¶
func (k Keeper) OpenFiles(c context.Context, req *types.QueryOpenFiles) (*types.QueryAllFilesResponse, error)
OpenFiles returns a paginated list of files with space that providers have yet to fill
TODO: Create unit-test cases for this
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParams) (*types.QueryParamsResponse, error)
func (Keeper) PaymentInfo ¶
func (k Keeper) PaymentInfo(goCtx context.Context, req *types.QueryStoragePaymentInfo) (*types.QueryStoragePaymentInfoResponse, error)
func (Keeper) PriceCheck ¶
func (k Keeper) PriceCheck(c context.Context, req *types.QueryPriceCheck) (*types.QueryPriceCheckResponse, error)
func (Keeper) Proof ¶
func (k Keeper) Proof(c context.Context, req *types.QueryProof) (*types.QueryProofResponse, error)
func (Keeper) ProofsByAddress ¶
func (k Keeper) ProofsByAddress(c context.Context, req *types.QueryProofsByAddress) (*types.QueryProofsByAddressResponse, error)
func (Keeper) Provider ¶
func (k Keeper) Provider(c context.Context, req *types.QueryProvider) (*types.QueryProviderResponse, error)
func (Keeper) RemoveAllActiveProviders ¶
RemoveAllActiveProviders removes all active providers
func (Keeper) RemoveAllAttestation ¶
RemoveAllAttestation removes all attestations
func (Keeper) RemoveAttestation ¶
func (k Keeper) RemoveAttestation( ctx sdk.Context, prover string, merkle []byte, owner string, start int64, )
RemoveAttestation removes an attestation from the store
func (Keeper) RemoveCollateral ¶
RemoveCollateral removes a collateral from the store
func (Keeper) RemoveFile ¶
RemoveFile removes a File from the store
func (Keeper) RemoveGauge ¶
RemoveGauge removes a PaymentGauge from the store
func (Keeper) RemoveLegacyActiveDeals ¶
RemoveActiveDeals removes a activeDeals from the store
func (Keeper) RemoveProof ¶
func (Keeper) RemoveProofWithBuiltKey ¶
func (Keeper) RemoveProviders ¶
RemoveProviders removes a providers from the store
func (Keeper) RemoveReport ¶
func (k Keeper) RemoveReport( ctx sdk.Context, prover string, merkle []byte, owner string, start int64, )
RemoveReport removes an attestation from the store
func (Keeper) RemoveStoragePaymentInfo ¶
RemoveStoragePaymentInfo removes a StoragePaymentInfo from the store
func (Keeper) Report ¶
func (k Keeper) Report(c context.Context, req *types.QueryReport) (*types.QueryReportResponse, error)
func (Keeper) RequestAttestation ¶
func (Keeper) RequestReport ¶
func (Keeper) RunRewardBlock ¶
func (Keeper) SetActiveProviders ¶
func (k Keeper) SetActiveProviders(ctx sdk.Context, providers types.ActiveProviders)
SetActiveProviders set a specific providers in the store from its index
func (Keeper) SetAttestationForm ¶
func (k Keeper) SetAttestationForm(ctx sdk.Context, attestation types.AttestationForm)
SetAttestationForm sets a specific attestation in the store from its index
func (Keeper) SetCollateral ¶
func (k Keeper) SetCollateral(ctx sdk.Context, collateral types.Collateral)
SetCollateral sets a specific collateral in the store from its index
func (Keeper) SetFile ¶
func (k Keeper) SetFile(ctx sdk.Context, file types.UnifiedFile)
SetFile set a specific File in the store from its index
func (Keeper) SetLegacyActiveDeals ¶
func (k Keeper) SetLegacyActiveDeals(ctx sdk.Context, activeDeals types.LegacyActiveDeals)
SetActiveDeals set a specific activeDeals in the store from its index
func (Keeper) SetPaymentGauge ¶
func (k Keeper) SetPaymentGauge(ctx sdk.Context, gauge types.PaymentGauge)
SetPaymentGauge set a specific payment gauge in the store from its index
func (Keeper) SetProviders ¶
SetProviders set a specific providers in the store from its index
func (Keeper) SetReportForm ¶
func (k Keeper) SetReportForm(ctx sdk.Context, report types.ReportForm)
SetReportForm sets a specific report in the store from its index
func (Keeper) SetStoragePaymentInfo ¶
func (k Keeper) SetStoragePaymentInfo(ctx sdk.Context, payInfo types.StoragePaymentInfo)
SetStoragePaymentInfo set a specific payBlocks in the store from its x
func (Keeper) StoragePaymentInfo ¶
func (k Keeper) StoragePaymentInfo(c context.Context, req *types.QueryStoragePaymentInfo) (*types.QueryStoragePaymentInfoResponse, error)
func (Keeper) StorageStats ¶
func (k Keeper) StorageStats(c context.Context, req *types.QueryStorageStats) (*types.QueryStorageStatsResponse, error)
func (Keeper) StoreCount ¶
func (k Keeper) StoreCount(goCtx context.Context, req *types.QueryStoreCount) (*types.QueryStoreCountResponse, error)
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶
NewMigrator returns a new Migrator
func (Migrator) Migrate1to2 ¶
Migrate1to2 migrates from version 1 to 2.
func (Migrator) Migrate2to3 ¶
Migrate2to3 migrates from version 2 to 3.
func (Migrator) Migrate3to4 ¶
Migrate3to4 migrates from version 3 to 4.
func (Migrator) Migrate4to5 ¶
Migrate4to5 migrates from version 4 to 5.
Source Files ¶
- active_deals.go
- attestations.go
- collateral.go
- files.go
- gauges.go
- grpc_query.go
- grpc_query_active_deals.go
- grpc_query_attestation.go
- grpc_query_file_upload_check.go
- grpc_query_find_file.go
- grpc_query_freespace.go
- grpc_query_get_client_free_space.go
- grpc_query_get_pay_data.go
- grpc_query_params.go
- grpc_query_pay_info.go
- grpc_query_payment_info.go
- grpc_query_price_check.go
- grpc_query_providers.go
- grpc_query_report.go
- grpc_query_storage_stats.go
- keeper.go
- migrations.go
- msg_server.go
- msg_server_attest.go
- msg_server_buy_storage.go
- msg_server_file_delete.go
- msg_server_init_provider.go
- msg_server_post_file.go
- msg_server_postproof.go
- msg_server_provider_claim.go
- msg_server_report.go
- msg_server_set_provider_ip.go
- msg_server_set_provider_keybase.go
- msg_server_set_provider_totalspace.go
- params.go
- payment_info.go
- proofs.go
- providers.go
- reports.go
- rewards.go
- utils.go