temp fix for params init, finish later
parent
8b201e32de
commit
2fbd031988
|
@ -37,11 +37,10 @@ genesis:
|
||||||
- uclr
|
- uclr
|
||||||
- uusdc
|
- uusdc
|
||||||
maxVerifiedProviders: 1000
|
maxVerifiedProviders: 1000
|
||||||
providerMinLockedUClr: 500
|
providerMinLockedUClr: 500000000
|
||||||
providerLockedSlashUClr: 100
|
providerLockedSlashUClr: 100000000
|
||||||
providerAuditFrequency: 400
|
providerAuditFrequency: 400
|
||||||
providerAuditLength: 11
|
providerAuditLength: 11
|
||||||
|
|
||||||
accounts:
|
accounts:
|
||||||
- name: alice
|
- name: alice
|
||||||
coins: ["20000000000uusdc", "200000000000uclr"]
|
coins: ["20000000000uusdc", "200000000000uclr"]
|
||||||
|
|
1
go.mod
1
go.mod
|
@ -88,7 +88,6 @@ require (
|
||||||
github.com/gorilla/handlers v1.5.1 // indirect
|
github.com/gorilla/handlers v1.5.1 // indirect
|
||||||
github.com/gorilla/websocket v1.5.0 // indirect
|
github.com/gorilla/websocket v1.5.0 // indirect
|
||||||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.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/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
|
||||||
github.com/gtank/merlin v0.1.1 // indirect
|
github.com/gtank/merlin v0.1.1 // indirect
|
||||||
github.com/gtank/ristretto255 v0.1.2 // indirect
|
github.com/gtank/ristretto255 v0.1.2 // indirect
|
||||||
|
|
2
go.sum
2
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.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 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=
|
||||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
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 h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU=
|
||||||
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0=
|
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=
|
github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s=
|
||||||
|
|
|
@ -14,7 +14,26 @@ func ParamKeyTable() paramtypes.KeyTable {
|
||||||
|
|
||||||
// NewParams creates a new Params instance
|
// NewParams creates a new Params instance
|
||||||
func NewParams() Params {
|
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
|
// DefaultParams returns a default set of parameters
|
||||||
|
|
Loading…
Reference in New Issue