From 2fbd0319881cf05b9570f8231852eb0e6113274d Mon Sep 17 00:00:00 2001 From: turtlebasket Date: Thu, 22 Sep 2022 21:48:07 +0000 Subject: [PATCH] temp fix for params init, finish later --- config.yml | 5 ++--- go.mod | 1 - go.sum | 2 -- x/colinearcore/types/params.go | 21 ++++++++++++++++++++- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/config.yml b/config.yml index 96b9e8c..67d8c89 100644 --- a/config.yml +++ b/config.yml @@ -37,11 +37,10 @@ genesis: - uclr - uusdc maxVerifiedProviders: 1000 - providerMinLockedUClr: 500 - providerLockedSlashUClr: 100 + providerMinLockedUClr: 500000000 + providerLockedSlashUClr: 100000000 providerAuditFrequency: 400 providerAuditLength: 11 - accounts: - name: alice coins: ["20000000000uusdc", "200000000000uclr"] diff --git a/go.mod b/go.mod index 30cc3b9..4774928 100644 --- a/go.mod +++ b/go.mod @@ -88,7 +88,6 @@ require ( github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/gtank/merlin v0.1.1 // indirect github.com/gtank/ristretto255 v0.1.2 // indirect diff --git a/go.sum b/go.sum index ad897ba..07b1083 100644 --- a/go.sum +++ b/go.sum @@ -734,8 +734,6 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 h1:lLT7ZLSzGLI08vc9cpd+tYmNWjdKDqyr/2L+f6U12Fk= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= diff --git a/x/colinearcore/types/params.go b/x/colinearcore/types/params.go index 357196a..a266d3f 100644 --- a/x/colinearcore/types/params.go +++ b/x/colinearcore/types/params.go @@ -14,7 +14,26 @@ func ParamKeyTable() paramtypes.KeyTable { // NewParams creates a new Params instance func NewParams() Params { - return Params{} + // return Params{} + + // temp fix + + return Params{ + GpuModels: map[string]uint32{ + "gtx-1050-ti": 0, + "gtx-1650-ti": 0, + }, + AuctionTime: 10, + ProviderMinLockedUClr: 500_000_000, + ProviderLockedSlashUClr: 100_000_000, + AuctionGas: 10, + MinLeasePeriod: 3_600, // 1 hour + MaxLeasePeriod: 8_035_200, // 3 months + MaxVerifiedProviders: 1000, + ProviderAuditFrequency: 400, + ProviderAuditLength: 4, + AllowedAuctionDenoms: []string{"uclr", "uusdc"}, + } } // DefaultParams returns a default set of parameters