gpu-compute-chain/proto/colinearcore/params.proto

43 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package colinear.colinearcore;
import "gogoproto/gogo.proto";
option go_package = "colinear/x/colinearcore/types";
// Params defines the parameters for the module.
message Params {
option (gogoproto.goproto_stringer) = false;
// hardware options
map<string, uint32> gpuModels = 1; // maps GPU model to puzzle difficulty
// gas config
uint32 auctionGas = 2;
// auction config
uint32 auctionTime = 3;
uint32 minLeasePeriod = 4;
uint32 maxLeasePeriod = 5;
repeated string allowedAuctionDenoms = 6;
// Maximum number of verified providers; this is to prevent buffer overflow
// attacks since provider list is not committed to chain state and costs 0 gas
uint32 maxVerifiedProviders = 7;
// Minimum required staked CLR to be a provider (i.e. to bid)
// 500 CLR
uint32 providerMinLockedUClr = 8;
// Amount slashed when a provider is offline during an audit
// 100 CLR
uint32 providerLockedSlashUClr = 9;
// Blocks between provider audits
// 400 blocks ~400-1200min
uint32 providerAuditFrequency = 10;
// Blocks before an audit ping must be returned
// 3 blocks ~4-12sec
uint32 providerAuditLength = 11;
}