fully migrate to colinearcore params

- No more auctionconfig
- Now includes GPU model list support
- CPU vendors are still hardcoded
This commit is contained in:
2022-09-22 00:16:09 +00:00
parent bfa30082f1
commit 5ebc67bfd6
14 changed files with 1087 additions and 144 deletions

View File

@@ -3,7 +3,6 @@ package cli
import (
"strconv"
"colinear/x/colinearcore/auctionconfig"
"colinear/x/colinearcore/types"
"github.com/cosmos/cosmos-sdk/client"
@@ -19,7 +18,9 @@ func CmdNewAuction() *cobra.Command {
Use: "new-auction [name] [description] [ceiling] [denom] [end date] [verified providers (separated by spaces)...]",
Short: "Broadcast message newAuction",
// Args: cobra.ExactArgs(5),
Args: cobra.RangeArgs(5, auctionconfig.MaxVerifiedProviders+5),
// below: we're hardcoding the max providers param since we
// can't check chain params locally
Args: cobra.RangeArgs(5, 1005),
RunE: func(cmd *cobra.Command, args []string) (err error) {
argName := args[0]
argDescription := args[1]