Add service provider auctions #59
@ -103,10 +103,13 @@ func (ets *E2ETestSuite) createAuctionAndBid(createAuction, createBid bool) stri
|
|||||||
|
|
||||||
if createAuction {
|
if createAuction {
|
||||||
auctionArgs := []string{
|
auctionArgs := []string{
|
||||||
|
types.AuctionKindVickrey,
|
||||||
sampleCommitTime, sampleRevealTime,
|
sampleCommitTime, sampleRevealTime,
|
||||||
fmt.Sprintf("10%s", ets.cfg.BondDenom),
|
fmt.Sprintf("10%s", ets.cfg.BondDenom),
|
||||||
fmt.Sprintf("10%s", ets.cfg.BondDenom),
|
fmt.Sprintf("10%s", ets.cfg.BondDenom),
|
||||||
fmt.Sprintf("100%s", ets.cfg.BondDenom),
|
fmt.Sprintf("100%s", ets.cfg.BondDenom),
|
||||||
|
fmt.Sprintf("0%s", ets.cfg.BondDenom),
|
||||||
|
"0",
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := ets.executeTx(cli.GetCmdCreateAuction(), auctionArgs, ownerAccount)
|
resp, err := ets.executeTx(cli.GetCmdCreateAuction(), auctionArgs, ownerAccount)
|
||||||
|
@ -46,10 +46,13 @@ func (ets *E2ETestSuite) TestTxCommitBid() {
|
|||||||
ets.Run(fmt.Sprintf("Case %s", test.msg), func() {
|
ets.Run(fmt.Sprintf("Case %s", test.msg), func() {
|
||||||
if test.createAuction {
|
if test.createAuction {
|
||||||
auctionArgs := []string{
|
auctionArgs := []string{
|
||||||
|
auctiontypes.AuctionKindVickrey,
|
||||||
sampleCommitTime, sampleRevealTime,
|
sampleCommitTime, sampleRevealTime,
|
||||||
fmt.Sprintf("10%s", ets.cfg.BondDenom),
|
fmt.Sprintf("10%s", ets.cfg.BondDenom),
|
||||||
fmt.Sprintf("10%s", ets.cfg.BondDenom),
|
fmt.Sprintf("10%s", ets.cfg.BondDenom),
|
||||||
fmt.Sprintf("100%s", ets.cfg.BondDenom),
|
fmt.Sprintf("100%s", ets.cfg.BondDenom),
|
||||||
|
fmt.Sprintf("0%s", ets.cfg.BondDenom),
|
||||||
|
"0",
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := ets.executeTx(cli.GetCmdCreateAuction(), auctionArgs, ownerAccount)
|
resp, err := ets.executeTx(cli.GetCmdCreateAuction(), auctionArgs, ownerAccount)
|
||||||
|
@ -174,11 +174,10 @@ func GetCmdCreateAuction() *cobra.Command {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
numProvidersInt, err := strconv.Atoi(args[7])
|
numProviders, err := strconv.ParseInt(args[7], 10, 32)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
numProviders := int32(numProvidersInt)
|
|
||||||
|
|
||||||
msg := auctiontypes.NewMsgCreateAuction(
|
msg := auctiontypes.NewMsgCreateAuction(
|
||||||
kind,
|
kind,
|
||||||
@ -188,7 +187,7 @@ func GetCmdCreateAuction() *cobra.Command {
|
|||||||
revealFee,
|
revealFee,
|
||||||
minimumBid,
|
minimumBid,
|
||||||
maxPrice,
|
maxPrice,
|
||||||
numProviders,
|
int32(numProviders),
|
||||||
clientCtx.GetFromAddress(),
|
clientCtx.GetFromAddress(),
|
||||||
)
|
)
|
||||||
err = msg.ValidateBasic()
|
err = msg.ValidateBasic()
|
||||||
|
Loading…
Reference in New Issue
Block a user