mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-04 20:34:26 -08:00
fully migrate to colinearcore params
- No more auctionconfig - Now includes GPU model list support - CPU vendors are still hardcoded
This commit is contained in:
@@ -4,6 +4,7 @@ package colinear.colinearcore;
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
import "colinearcore/bid.proto";
|
||||
import "colinearcore/hardware.proto";
|
||||
|
||||
message Auction {
|
||||
string index = 1;
|
||||
@@ -17,4 +18,9 @@ message Auction {
|
||||
uint64 leaseStart = 9;
|
||||
uint64 leaseEnd = 10;
|
||||
string remaining = 11;
|
||||
// hardware specs
|
||||
repeated string gpus = 12;
|
||||
CpuArchitecture cpuArch = 13;
|
||||
uint64 memMb = 14;
|
||||
uint64 storageGb = 15;
|
||||
}
|
||||
|
||||
@@ -3,15 +3,6 @@ package colinear.colinearcore;
|
||||
|
||||
option go_package = "colinear/x/colinearcore/types";
|
||||
|
||||
enum GpuModel {
|
||||
RTX_2080 = 0;
|
||||
RTX_2080_TI = 1;
|
||||
RTX_3070 = 2;
|
||||
RTX_3070_TI = 3;
|
||||
RTX_3080 = 4;
|
||||
RTX_3080_TI = 5;
|
||||
}
|
||||
|
||||
enum CpuArchitecture {
|
||||
ANY = 0;
|
||||
INTEL = 1;
|
||||
|
||||
@@ -8,5 +8,35 @@ 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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user