laconicd-deprecated/proto/vulcanize/registry/v1beta1/tx.proto

161 lines
4.8 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
2022-12-09 04:17:14 +00:00
package vulcanize.registry.v1beta1;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
2022-12-09 04:17:14 +00:00
import "vulcanize/registry/v1beta1/registry.proto";
2022-12-09 04:17:14 +00:00
option go_package = "github.com/cerc-io/laconicd/x/registry/types";
// Msg is a service which exposes the registry functionality
service Msg {
// SetRecord records a new record with given payload and bond id
rpc SetRecord(MsgSetRecord) returns (MsgSetRecordResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/set_record";
}
// Renew Record renews an expired record
rpc RenewRecord(MsgRenewRecord) returns (MsgRenewRecordResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/renew_record";
}
// AssociateBond
rpc AssociateBond(MsgAssociateBond) returns (MsgAssociateBondResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/associate_bond";
}
// DissociateBond
rpc DissociateBond(MsgDissociateBond) returns (MsgDissociateBondResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/dissociate_bond";
}
// DissociateRecords
rpc DissociateRecords(MsgDissociateRecords) returns (MsgDissociateRecordsResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/dissociate_records";
}
// ReAssociateRecords
rpc ReAssociateRecords(MsgReAssociateRecords) returns (MsgReAssociateRecordsResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/reassociate_records";
}
2022-04-20 07:37:38 +00:00
// SetName will store the name with given crn and name
rpc SetName(MsgSetName) returns (MsgSetNameResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/set_name";
}
// Reserve name
rpc ReserveName(MsgReserveAuthority) returns (MsgReserveAuthorityResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/reserve_name";
}
// Delete Name method will remove authority name
rpc DeleteName(MsgDeleteNameAuthority) returns (MsgDeleteNameAuthorityResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/delete_name";
}
// SetAuthorityBond
rpc SetAuthorityBond(MsgSetAuthorityBond) returns (MsgSetAuthorityBondResponse) {
option (google.api.http).post = "/vulcanize/registry/v1beta1/set_authority_bond";
}
}
// MsgSetRecord
2022-10-10 10:38:33 +00:00
message MsgSetRecord {
string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
string signer = 2;
Payload payload = 3 [(gogoproto.nullable) = false];
}
// MsgSetRecordResponse
2022-10-10 10:38:33 +00:00
message MsgSetRecordResponse {
string id = 1;
}
// Payload
message Payload {
2022-10-10 10:38:33 +00:00
Record record = 1;
repeated Signature signatures = 2 [
(gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"signatures\" yaml:\"signatures\""
];
}
// MsgSetName
2022-10-10 10:38:33 +00:00
message MsgSetName {
string crn = 1;
string cid = 2;
string signer = 3;
}
// MsgSetNameResponse
2022-10-10 10:38:33 +00:00
message MsgSetNameResponse {}
// MsgReserveName
2022-10-10 10:38:33 +00:00
message MsgReserveAuthority {
string name = 1;
string signer = 2;
// if creating a sub-authority.
string owner = 3;
}
// MsgReserveNameResponse
2022-10-10 10:38:33 +00:00
message MsgReserveAuthorityResponse {}
// MsgSetAuthorityBond
2022-10-10 10:38:33 +00:00
message MsgSetAuthorityBond {
string name = 1;
string bond_id = 2 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
string signer = 3;
}
// MsgSetAuthorityBondResponse
2022-10-10 10:38:33 +00:00
message MsgSetAuthorityBondResponse {}
// MsgDeleteNameAuthority
2022-10-10 10:38:33 +00:00
message MsgDeleteNameAuthority {
string crn = 1;
string signer = 2;
}
// MsgDeleteNameAuthorityResponse
2022-10-10 10:38:33 +00:00
message MsgDeleteNameAuthorityResponse {}
// MsgRenewRecord
2022-10-10 10:38:33 +00:00
message MsgRenewRecord {
string record_id = 1 [(gogoproto.moretags) = "json:\"recordId\" yaml:\"recordId\""];
string signer = 2;
}
// MsgRenewRecordResponse
2022-10-10 10:38:33 +00:00
message MsgRenewRecordResponse {}
// MsgAssociateBond
2022-10-10 10:38:33 +00:00
message MsgAssociateBond {
string record_id = 1 [(gogoproto.moretags) = "json:\"recordId\" yaml:\"recordId\""];
string bond_id = 2 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
string signer = 3;
}
// MsgAssociateBondResponse
2022-10-10 10:38:33 +00:00
message MsgAssociateBondResponse {}
// MsgDissociateBond
2022-10-10 10:38:33 +00:00
message MsgDissociateBond {
string record_id = 1 [(gogoproto.moretags) = "json:\"recordId\" yaml:\"recordId\""];
string signer = 2;
}
// MsgDissociateBondResponse
2022-10-10 10:38:33 +00:00
message MsgDissociateBondResponse {}
// MsgDissociateRecords
2022-10-10 10:38:33 +00:00
message MsgDissociateRecords {
string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
string signer = 2;
}
// MsgDissociateRecordsResponse
2022-10-10 10:38:33 +00:00
message MsgDissociateRecordsResponse {}
// MsgReAssociateRecords
2022-10-10 10:38:33 +00:00
message MsgReAssociateRecords {
string new_bond_id = 1 [(gogoproto.moretags) = "json:\"newBondId\" yaml:\"newBondId\""];
string old_bond_id = 2 [(gogoproto.moretags) = "json:\"oldBondId\" yaml:\"oldBondId\""];
string signer = 3;
}
// MsgReAssociateRecordsResponse
2022-10-10 10:38:33 +00:00
message MsgReAssociateRecordsResponse {}