84 lines
1.8 KiB
Protocol Buffer
84 lines
1.8 KiB
Protocol Buffer
syntax = "proto3";
|
|
package colinear.colinearcore;
|
|
|
|
// this line is used by starport scaffolding # proto/tx/import
|
|
|
|
option go_package = "colinear/x/colinearcore/types";
|
|
|
|
import "colinearcore/hardware.proto";
|
|
|
|
// Msg defines the Msg service.
|
|
service Msg {
|
|
rpc NewAuction(MsgNewAuction) returns (MsgNewAuctionResponse);
|
|
rpc NewBid(MsgNewBid) returns (MsgNewBidResponse);
|
|
rpc LockFunds(MsgLockFunds) returns (MsgLockFundsResponse);
|
|
rpc UnlockFunds(MsgUnlockFunds) returns (MsgUnlockFundsResponse);
|
|
rpc UnlockAllFunds(MsgUnlockAllFunds) returns (MsgUnlockAllFundsResponse);
|
|
rpc ClaimFunds(MsgClaimFunds) returns (MsgClaimFundsResponse);
|
|
// this line is used by starport scaffolding # proto/tx/rpc
|
|
}
|
|
|
|
message MsgNewAuction {
|
|
string creator = 1;
|
|
string name = 2;
|
|
string description = 3;
|
|
string ceiling = 4;
|
|
string denom = 5;
|
|
uint64 leaseEnd = 6;
|
|
// verified providers just specifies who's allowed to bid on the lease auction.
|
|
// STORED IN MEMORY. DOES NOT GET WRITTEN TO CHAIN STATE.
|
|
repeated string verifiedProviders = 7;
|
|
// hardware specs (mandatory)
|
|
repeated string gpus = 8;
|
|
uint64 cpuCores = 9;
|
|
CpuArchitecture cpuArch = 10;
|
|
uint64 memMb = 11;
|
|
uint64 storageGb = 12;
|
|
}
|
|
|
|
message MsgNewAuctionResponse {
|
|
string auctionId = 1;
|
|
}
|
|
|
|
message MsgNewBid {
|
|
string creator = 1;
|
|
string auctionIndex = 2;
|
|
string amount = 3;
|
|
}
|
|
|
|
message MsgNewBidResponse {
|
|
}
|
|
|
|
message MsgLockFunds {
|
|
string creator = 1;
|
|
string amount = 2;
|
|
}
|
|
|
|
message MsgLockFundsResponse {
|
|
}
|
|
|
|
message MsgUnlockFunds {
|
|
string creator = 1;
|
|
string amount = 2;
|
|
}
|
|
|
|
message MsgUnlockFundsResponse {
|
|
}
|
|
|
|
message MsgUnlockAllFunds {
|
|
string creator = 1;
|
|
}
|
|
|
|
message MsgUnlockAllFundsResponse {
|
|
}
|
|
|
|
message MsgClaimFunds {
|
|
string creator = 1;
|
|
string auctionId = 2;
|
|
}
|
|
|
|
message MsgClaimFundsResponse {
|
|
}
|
|
|
|
// this line is used by starport scaffolding # proto/tx/message
|