laconicd/proto/vulcanize/nameservice/v1beta1/tx.proto

138 lines
4.2 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package vulcanize.nameservice.v1beta1;
import "gogoproto/gogo.proto";
import "vulcanize/nameservice/v1beta1/nameservice.proto";
option go_package = "github.com/cerc-io/laconicd/x/nameservice/types";
// Msg
service Msg {
// SetRecord will records a new record with given payload and bond id
2022-10-10 10:38:33 +00:00
rpc SetRecord(MsgSetRecord) returns (MsgSetRecordResponse) {}
// Renew Record will renew the expire record
2022-10-10 10:38:33 +00:00
rpc RenewRecord(MsgRenewRecord) returns (MsgRenewRecordResponse) {}
// AssociateBond
2022-10-10 10:38:33 +00:00
rpc AssociateBond(MsgAssociateBond) returns (MsgAssociateBondResponse) {}
// DissociateBond
2022-10-10 10:38:33 +00:00
rpc DissociateBond(MsgDissociateBond) returns (MsgDissociateBondResponse) {}
// DissociateRecords
2022-10-10 10:38:33 +00:00
rpc DissociateRecords(MsgDissociateRecords) returns (MsgDissociateRecordsResponse) {}
// ReAssociateRecords
2022-10-10 10:38:33 +00:00
rpc ReAssociateRecords(MsgReAssociateRecords) returns (MsgReAssociateRecordsResponse) {}
2022-04-20 07:37:38 +00:00
// SetName will store the name with given crn and name
2022-10-10 10:38:33 +00:00
rpc SetName(MsgSetName) returns (MsgSetNameResponse) {}
// Reserve name
2022-10-10 10:38:33 +00:00
rpc ReserveName(MsgReserveAuthority) returns (MsgReserveAuthorityResponse) {}
// Delete Name method will remove authority name
2022-10-10 10:38:33 +00:00
rpc DeleteName(MsgDeleteNameAuthority) returns (MsgDeleteNameAuthorityResponse) {}
// SetAuthorityBond
2022-10-10 10:38:33 +00:00
rpc SetAuthorityBond(MsgSetAuthorityBond) returns (MsgSetAuthorityBondResponse) {}
}
// 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 is SDK message for SetAuthorityBond
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 is SDK message for DeleteNameAuthority
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 {}
2022-10-10 10:38:33 +00:00
// MsgRenewRecord is SDK message for Renew a record
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 is SDK message for Msg/DissociateBond
2022-10-10 10:38:33 +00:00
message MsgDissociateBond {
string record_id = 1 [(gogoproto.moretags) = "json:\"recordId\" yaml:\"recordId\""];
string signer = 2;
}
// MsgDissociateBondResponse is response type for MsgDissociateBond
2022-10-10 10:38:33 +00:00
message MsgDissociateBondResponse {}
// MsgDissociateRecords is SDK message for Msg/DissociateRecords
2022-10-10 10:38:33 +00:00
message MsgDissociateRecords {
string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
string signer = 2;
}
// MsgDissociateRecordsResponse is response type for MsgDissociateRecords
2022-10-10 10:38:33 +00:00
message MsgDissociateRecordsResponse {}
// MsgReAssociateRecords is SDK message for Msg/ReAssociateRecords
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 is response type for MsgReAssociateRecords
2022-10-10 10:38:33 +00:00
message MsgReAssociateRecordsResponse {}