2022-04-05 07:09:27 +00:00
|
|
|
syntax = "proto3";
|
2022-12-09 04:17:14 +00:00
|
|
|
package vulcanize.registry.v1beta1;
|
2022-04-05 07:09:27 +00:00
|
|
|
|
|
|
|
import "google/protobuf/duration.proto";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
2022-11-15 06:21:14 +00:00
|
|
|
import "google/protobuf/any.proto";
|
2022-04-05 07:09:27 +00:00
|
|
|
|
2022-12-09 04:17:14 +00:00
|
|
|
option go_package = "github.com/cerc-io/laconicd/x/registry/types";
|
2022-04-05 07:09:27 +00:00
|
|
|
|
2022-12-09 04:17:14 +00:00
|
|
|
// Params defines the registry module parameters
|
2022-04-05 07:09:27 +00:00
|
|
|
message Params {
|
2022-10-10 10:38:33 +00:00
|
|
|
cosmos.base.v1beta1.Coin record_rent = 1
|
|
|
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"record_rent\" yaml:\"record_rent\""];
|
2022-04-05 07:09:27 +00:00
|
|
|
google.protobuf.Duration record_rent_duration = 2 [
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.nullable) = false,
|
2022-04-05 07:09:27 +00:00
|
|
|
(gogoproto.stdduration) = true,
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.moretags) = "json:\"record_rent_duration\" yaml:\"record_rent_duration\""
|
2022-04-05 07:09:27 +00:00
|
|
|
];
|
2022-10-10 10:38:33 +00:00
|
|
|
cosmos.base.v1beta1.Coin authority_rent = 3
|
|
|
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"authority_rent\" yaml:\"authority_rent\""];
|
2022-04-05 07:09:27 +00:00
|
|
|
google.protobuf.Duration authority_rent_duration = 4 [
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.nullable) = false,
|
2022-04-05 07:09:27 +00:00
|
|
|
(gogoproto.stdduration) = true,
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.moretags) = "json:\"authority_rent_duration\" yaml:\"authority_rent_duration\""
|
2022-04-05 07:09:27 +00:00
|
|
|
];
|
|
|
|
google.protobuf.Duration authority_grace_period = 5 [
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.nullable) = false,
|
2022-04-05 07:09:27 +00:00
|
|
|
(gogoproto.stdduration) = true,
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.moretags) = "json:\"authority_grace_period\" yaml:\"authority_grace_period\""
|
2022-04-05 07:09:27 +00:00
|
|
|
];
|
2022-10-10 10:38:33 +00:00
|
|
|
bool authority_auction_enabled = 6
|
|
|
|
[(gogoproto.moretags) = "json:\"authority_auction_enabled\" yaml:\"authority_auction_enabled\""];
|
2022-04-05 07:09:27 +00:00
|
|
|
google.protobuf.Duration authority_auction_commits_duration = 7 [
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.nullable) = false,
|
2022-04-05 07:09:27 +00:00
|
|
|
(gogoproto.stdduration) = true,
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.moretags) = "json:\"authority_auction_commits_duration\" yaml:\"authority_auction_commits_duration\""
|
2022-04-05 07:09:27 +00:00
|
|
|
];
|
|
|
|
google.protobuf.Duration authority_auction_reveals_duration = 8 [
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.nullable) = false,
|
2022-04-05 07:09:27 +00:00
|
|
|
(gogoproto.stdduration) = true,
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.moretags) = "json:\"authority_auction_reveals_duration\" yaml:\"authority_auction_reveals_duration\""
|
2022-04-05 07:09:27 +00:00
|
|
|
];
|
|
|
|
cosmos.base.v1beta1.Coin authority_auction_commit_fee = 9 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.moretags) = "json:\"authority_auction_commit_fee\" yaml:\"authority_auction_commit_fee\""
|
|
|
|
];
|
|
|
|
cosmos.base.v1beta1.Coin authority_auction_reveal_fee = 10 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.moretags) = "json:\"authority_auction_reveal_fee\" yaml:\"authority_auction_reveal_fee\""
|
|
|
|
];
|
2022-10-10 10:38:33 +00:00
|
|
|
cosmos.base.v1beta1.Coin authority_auction_minimum_bid = 11 [
|
2022-04-05 07:09:27 +00:00
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.moretags) = "json:\"authority_auction_minimum_bid\" yaml:\"authority_auction_minimum_bid\""
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2022-12-09 04:17:14 +00:00
|
|
|
// Params defines the registry module records
|
2022-04-05 07:09:27 +00:00
|
|
|
message Record {
|
2022-11-15 06:21:14 +00:00
|
|
|
string id = 1 [(gogoproto.moretags) = "json:\"id\" yaml:\"id\""];
|
|
|
|
string bond_id = 2 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
|
|
|
|
string create_time = 3 [(gogoproto.moretags) = "json:\"createTime\" yaml:\"createTime\""];
|
|
|
|
string expiry_time = 4 [(gogoproto.moretags) = "json:\"expiryTime\" yaml:\"expiryTime\""];
|
|
|
|
bool deleted = 5;
|
|
|
|
repeated string owners = 6 [(gogoproto.moretags) = "json:\"owners\" yaml:\"owners\""];
|
|
|
|
google.protobuf.Any attributes = 7 [(gogoproto.moretags) = "json:\"attributes\" yaml:\"attributes\""];
|
|
|
|
repeated string names = 8 [(gogoproto.moretags) = "json:\"names\" yaml:\"names\""];
|
|
|
|
string type = 9 [(gogoproto.moretags) = "json:\"types\" yaml:\"types\""];
|
2022-04-05 07:09:27 +00:00
|
|
|
}
|
|
|
|
|
2022-12-09 04:17:14 +00:00
|
|
|
// AuthorityEntry defines the registry module AuthorityEntries
|
2022-10-10 10:38:33 +00:00
|
|
|
message AuthorityEntry {
|
|
|
|
string name = 1;
|
2022-04-05 07:09:27 +00:00
|
|
|
NameAuthority entry = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// NameAuthority
|
|
|
|
message NameAuthority {
|
|
|
|
// Owner public key.
|
2022-10-10 10:38:33 +00:00
|
|
|
string owner_public_key = 1 [(gogoproto.moretags) = "json:\"ownerPublicKey\" yaml:\"ownerPublicKey\""];
|
2022-04-05 07:09:27 +00:00
|
|
|
// Owner address.
|
2022-10-10 10:38:33 +00:00
|
|
|
string owner_address = 2 [(gogoproto.moretags) = "json:\"ownerAddress\" yaml:\"ownerAddress\""];
|
2022-04-05 07:09:27 +00:00
|
|
|
// height at which name/authority was created.
|
2022-10-10 10:38:33 +00:00
|
|
|
uint64 height = 3;
|
|
|
|
string status = 4;
|
|
|
|
string auction_id = 5 [(gogoproto.moretags) = "json:\"auctionID\" yaml:\"auctionID\""];
|
|
|
|
string bond_id = 6 [(gogoproto.moretags) = "json:\"bondID\" yaml:\"bondID\""];
|
2022-04-05 07:09:27 +00:00
|
|
|
google.protobuf.Timestamp expiry_time = 7 [
|
|
|
|
(gogoproto.nullable) = false,
|
2022-10-10 10:38:33 +00:00
|
|
|
(gogoproto.stdtime) = true,
|
2022-04-05 07:09:27 +00:00
|
|
|
(gogoproto.moretags) = "json:\"expiryTime\" yaml:\"expiryTime\""
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
// NameEntry
|
2022-10-10 10:38:33 +00:00
|
|
|
message NameEntry {
|
|
|
|
string name = 1;
|
2022-04-05 07:09:27 +00:00
|
|
|
NameRecord entry = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// NameRecord
|
|
|
|
message NameRecord {
|
2022-10-10 10:38:33 +00:00
|
|
|
NameRecordEntry latest = 1;
|
2022-04-05 07:09:27 +00:00
|
|
|
repeated NameRecordEntry history = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// NameRecordEntry
|
2022-10-10 10:38:33 +00:00
|
|
|
message NameRecordEntry {
|
|
|
|
string id = 1;
|
2022-04-05 07:09:27 +00:00
|
|
|
uint64 height = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Signature
|
2022-10-10 10:38:33 +00:00
|
|
|
message Signature {
|
|
|
|
string sig = 1 [(gogoproto.moretags) = "json:\"sig\" yaml:\"sig\""];
|
|
|
|
string pub_key = 2 [(gogoproto.moretags) = "json:\"pubKey\" yaml:\"pubKey\""];
|
2022-04-05 07:09:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// BlockChangeSet
|
2022-10-10 10:38:33 +00:00
|
|
|
message BlockChangeSet {
|
|
|
|
int64 height = 1;
|
|
|
|
repeated string records = 2;
|
|
|
|
repeated string auctions = 3;
|
|
|
|
repeated AuctionBidInfo auction_bids = 4 [(gogoproto.moretags) = "json:\"auctionBids\" yaml:\"auctionBids\""];
|
|
|
|
repeated string authorities = 5;
|
|
|
|
repeated string names = 6;
|
2022-04-05 07:09:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// AuctionBidInfo
|
|
|
|
message AuctionBidInfo {
|
2022-10-10 10:38:33 +00:00
|
|
|
string auction_id = 1 [(gogoproto.moretags) = "json:\"auctionID\" yaml:\"auctionID\""];
|
|
|
|
string bidder_address = 2 [(gogoproto.moretags) = "json:\"bidderAddress\" yaml:\"bidderAddress\""];
|
2022-04-05 07:09:27 +00:00
|
|
|
}
|