gpu-compute-chain/proto/colinearcore/tx.proto

84 lines
1.8 KiB
Protocol Buffer
Raw Normal View History

2022-08-25 16:51:14 -07:00
syntax = "proto3";
package colinear.colinearcore;
2022-08-25 16:51:14 -07:00
// this line is used by starport scaffolding # proto/tx/import
2022-09-06 15:18:09 -07:00
option go_package = "colinear/x/colinearcore/types";
2022-08-25 16:51:14 -07:00
import "colinearcore/hardware.proto";
2022-08-25 16:51:14 -07:00
// Msg defines the Msg service.
service Msg {
2022-09-23 17:56:36 -07:00
rpc NewAuction(MsgNewAuction) returns (MsgNewAuctionResponse);
2022-08-28 10:57:06 -07:00
rpc NewBid(MsgNewBid) returns (MsgNewBidResponse);
2022-09-07 13:25:57 -07:00
rpc LockFunds(MsgLockFunds) returns (MsgLockFundsResponse);
2022-09-08 14:49:56 -07:00
rpc UnlockFunds(MsgUnlockFunds) returns (MsgUnlockFundsResponse);
2022-09-08 16:29:08 -07:00
rpc UnlockAllFunds(MsgUnlockAllFunds) returns (MsgUnlockAllFundsResponse);
rpc ClaimFunds(MsgClaimFunds) returns (MsgClaimFundsResponse);
2022-08-27 14:19:03 -07:00
// this line is used by starport scaffolding # proto/tx/rpc
}
message MsgNewAuction {
string creator = 1;
string name = 2;
string description = 3;
2022-08-31 22:52:22 -07:00
string ceiling = 4;
string denom = 5;
2022-09-01 12:13:17 -07:00
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;
2022-08-27 14:19:03 -07:00
}
message MsgNewAuctionResponse {
string auctionId = 1;
2022-08-25 16:51:14 -07:00
}
2022-08-28 10:57:06 -07:00
message MsgNewBid {
string creator = 1;
string auctionIndex = 2;
string amount = 3;
}
message MsgNewBidResponse {
}
2022-09-07 13:25:57 -07:00
message MsgLockFunds {
string creator = 1;
string amount = 2;
2022-09-07 13:25:57 -07:00
}
message MsgLockFundsResponse {
}
2022-09-08 14:49:56 -07:00
message MsgUnlockFunds {
string creator = 1;
string amount = 2;
}
message MsgUnlockFundsResponse {
}
2022-09-08 16:29:08 -07:00
message MsgUnlockAllFunds {
string creator = 1;
}
message MsgUnlockAllFundsResponse {
}
message MsgClaimFunds {
string creator = 1;
string auctionId = 2;
}
message MsgClaimFundsResponse {
}
2022-08-25 16:51:14 -07:00
// this line is used by starport scaffolding # proto/tx/message