forked from cerc-io/laconic-sdk
rename to registry
This commit is contained in:
parent
43593c15b2
commit
eaafeb9107
@ -1,30 +0,0 @@
|
|||||||
syntax = "proto3";
|
|
||||||
package vulcanize.nameservice.v1beta1;
|
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
|
||||||
import "vulcanize/nameservice/v1beta1/nameservice.proto";
|
|
||||||
|
|
||||||
option go_package = "github.com/tharsis/ethermint/x/nameservice/types";
|
|
||||||
|
|
||||||
// GenesisState defines the nameservice module's genesis state.
|
|
||||||
message GenesisState {
|
|
||||||
// params defines all the params of nameservice module.
|
|
||||||
Params params = 1 [
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
// records
|
|
||||||
repeated Record records = 2 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.moretags) = "json:\"records\" yaml:\"records\""
|
|
||||||
];
|
|
||||||
// authorities
|
|
||||||
repeated AuthorityEntry authorities = 3 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.moretags) = "json:\"authorities\" yaml:\"authorities\""
|
|
||||||
];
|
|
||||||
// names
|
|
||||||
repeated NameEntry names = 4 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.moretags) = "json:\"names\" yaml:\"names\""
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,170 +0,0 @@
|
|||||||
syntax = "proto3";
|
|
||||||
package vulcanize.nameservice.v1beta1;
|
|
||||||
|
|
||||||
import "google/protobuf/duration.proto";
|
|
||||||
import "google/protobuf/timestamp.proto";
|
|
||||||
import "google/protobuf/any.proto";
|
|
||||||
import "cosmos/base/v1beta1/coin.proto";
|
|
||||||
import "gogoproto/gogo.proto";
|
|
||||||
|
|
||||||
option go_package = "github.com/tharsis/ethermint/x/nameservice/types";
|
|
||||||
|
|
||||||
// Params defines the nameservice module parameters
|
|
||||||
message Params {
|
|
||||||
cosmos.base.v1beta1.Coin record_rent = 1 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.moretags) = "json:\"record_rent\" yaml:\"record_rent\""
|
|
||||||
];
|
|
||||||
google.protobuf.Duration record_rent_duration = 2 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.stdduration) = true,
|
|
||||||
(gogoproto.moretags) = "json:\"record_rent_duration\" yaml:\"record_rent_duration\""
|
|
||||||
];
|
|
||||||
cosmos.base.v1beta1.Coin authority_rent = 3 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.moretags) = "json:\"authority_rent\" yaml:\"authority_rent\""
|
|
||||||
];
|
|
||||||
google.protobuf.Duration authority_rent_duration = 4 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.stdduration) = true,
|
|
||||||
(gogoproto.moretags) = "json:\"authority_rent_duration\" yaml:\"authority_rent_duration\""
|
|
||||||
];
|
|
||||||
google.protobuf.Duration authority_grace_period = 5 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.stdduration) = true,
|
|
||||||
(gogoproto.moretags) = "json:\"authority_grace_period\" yaml:\"authority_grace_period\""
|
|
||||||
];
|
|
||||||
bool authority_auction_enabled = 6 [
|
|
||||||
(gogoproto.moretags) = "json:\"authority_auction_enabled\" yaml:\"authority_auction_enabled\""
|
|
||||||
];
|
|
||||||
google.protobuf.Duration authority_auction_commits_duration = 7 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.stdduration) = true,
|
|
||||||
(gogoproto.moretags) = "json:\"authority_auction_commits_duration\" yaml:\"authority_auction_commits_duration\""
|
|
||||||
];
|
|
||||||
google.protobuf.Duration authority_auction_reveals_duration = 8 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.stdduration) = true,
|
|
||||||
(gogoproto.moretags) = "json:\"authority_auction_reveals_duration\" yaml:\"authority_auction_reveals_duration\""
|
|
||||||
];
|
|
||||||
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\""
|
|
||||||
];
|
|
||||||
cosmos.base.v1beta1.Coin authority_auction_minimum_bid = 11 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.moretags) = "json:\"authority_auction_minimum_bid\" yaml:\"authority_auction_minimum_bid\""
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Params defines the nameservice module records
|
|
||||||
message Record {
|
|
||||||
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\""
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuthorityEntry defines the nameservice module AuthorityEntries
|
|
||||||
message AuthorityEntry{
|
|
||||||
string name = 1;
|
|
||||||
NameAuthority entry = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// NameAuthority
|
|
||||||
message NameAuthority {
|
|
||||||
// Owner public key.
|
|
||||||
string owner_public_key = 1 [
|
|
||||||
(gogoproto.moretags) = "json:\"ownerPublicKey\" yaml:\"ownerPublicKey\""
|
|
||||||
];
|
|
||||||
// Owner address.
|
|
||||||
string owner_address = 2 [
|
|
||||||
(gogoproto.moretags) = "json:\"ownerAddress\" yaml:\"ownerAddress\""
|
|
||||||
];
|
|
||||||
// height at which name/authority was created.
|
|
||||||
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\""
|
|
||||||
];
|
|
||||||
google.protobuf.Timestamp expiry_time = 7 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.stdtime) = true,
|
|
||||||
(gogoproto.moretags) = "json:\"expiryTime\" yaml:\"expiryTime\""
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// NameEntry
|
|
||||||
message NameEntry{
|
|
||||||
string name = 1;
|
|
||||||
NameRecord entry = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// NameRecord
|
|
||||||
message NameRecord {
|
|
||||||
NameRecordEntry latest = 1;
|
|
||||||
repeated NameRecordEntry history = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// NameRecordEntry
|
|
||||||
message NameRecordEntry{
|
|
||||||
string id = 1;
|
|
||||||
uint64 height = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Signature
|
|
||||||
message Signature{
|
|
||||||
string sig = 1 [
|
|
||||||
(gogoproto.moretags) = "json:\"sig\" yaml:\"sig\""
|
|
||||||
];
|
|
||||||
string pub_key = 2 [
|
|
||||||
(gogoproto.moretags) = "json:\"pubKey\" yaml:\"pubKey\""
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// BlockChangeSet
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuctionBidInfo
|
|
||||||
message AuctionBidInfo {
|
|
||||||
string auction_id = 1 [
|
|
||||||
(gogoproto.moretags) = "json:\"auctionID\" yaml:\"auctionID\""
|
|
||||||
];
|
|
||||||
string bidder_address = 2 [
|
|
||||||
(gogoproto.moretags) = "json:\"bidderAddress\" yaml:\"bidderAddress\""
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,231 +0,0 @@
|
|||||||
syntax = "proto3";
|
|
||||||
package vulcanize.nameservice.v1beta1;
|
|
||||||
|
|
||||||
import "vulcanize/nameservice/v1beta1/nameservice.proto";
|
|
||||||
import "google/api/annotations.proto";
|
|
||||||
import "cosmos/base/query/v1beta1/pagination.proto";
|
|
||||||
import "gogoproto/gogo.proto";
|
|
||||||
import "cosmos/base/v1beta1/coin.proto";
|
|
||||||
|
|
||||||
option go_package = "github.com/tharsis/ethermint/x/nameservice/types";
|
|
||||||
|
|
||||||
// Query defines the gRPC querier service for nameservice module
|
|
||||||
service Query {
|
|
||||||
// Params queries the nameservice module params.
|
|
||||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/params";
|
|
||||||
}
|
|
||||||
// List records
|
|
||||||
rpc ListRecords(QueryListRecordsRequest) returns (QueryListRecordsResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/records";
|
|
||||||
}
|
|
||||||
// Get record by id
|
|
||||||
rpc GetRecord(QueryRecordByIdRequest) returns (QueryRecordByIdResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/records/{id}";
|
|
||||||
}
|
|
||||||
// Get records by bond id
|
|
||||||
rpc GetRecordByBondId(QueryRecordByBondIdRequest) returns (QueryRecordByBondIdResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/records-by-bond-id/{id}";
|
|
||||||
}
|
|
||||||
// Get nameservice module balance
|
|
||||||
rpc GetNameServiceModuleBalance(GetNameServiceModuleBalanceRequest) returns (GetNameServiceModuleBalanceResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/balance";
|
|
||||||
}
|
|
||||||
// List name records
|
|
||||||
rpc ListNameRecords(QueryListNameRecordsRequest) returns (QueryListNameRecordsResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/names";
|
|
||||||
}
|
|
||||||
// Whois method retrieve the name authority info
|
|
||||||
rpc Whois(QueryWhoisRequest) returns (QueryWhoisResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/whois/{name}";
|
|
||||||
}
|
|
||||||
// LookupCrn
|
|
||||||
rpc LookupCrn(QueryLookupCrn) returns (QueryLookupCrnResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/lookup";
|
|
||||||
}
|
|
||||||
// ResolveCrn
|
|
||||||
rpc ResolveCrn(QueryResolveCrn) returns (QueryResolveCrnResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/resolve";
|
|
||||||
}
|
|
||||||
// GetRecordExpiryQueue
|
|
||||||
rpc GetRecordExpiryQueue(QueryGetRecordExpiryQueue) returns (QueryGetRecordExpiryQueueResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/record-expiry";
|
|
||||||
}
|
|
||||||
// GetAuthorityExpiryQueue
|
|
||||||
rpc GetAuthorityExpiryQueue(QueryGetAuthorityExpiryQueue) returns (QueryGetAuthorityExpiryQueueResponse){
|
|
||||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/authority-expiry";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryParamsRequest is request type for nameservice params
|
|
||||||
message QueryParamsRequest{
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryParamsResponse is response type for nameservice params
|
|
||||||
message QueryParamsResponse{
|
|
||||||
Params params = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryListRecordsRequest is request type for nameservice records list
|
|
||||||
message QueryListRecordsRequest{
|
|
||||||
message ReferenceInput {
|
|
||||||
string id = 1;
|
|
||||||
}
|
|
||||||
message ValueInput {
|
|
||||||
string type = 1;
|
|
||||||
string string = 2;
|
|
||||||
int64 int = 3;
|
|
||||||
double float = 4;
|
|
||||||
bool boolean = 5;
|
|
||||||
ReferenceInput reference = 6;
|
|
||||||
repeated ValueInput values = 7;
|
|
||||||
}
|
|
||||||
message KeyValueInput {
|
|
||||||
string key = 1;
|
|
||||||
ValueInput value = 2;
|
|
||||||
}
|
|
||||||
repeated KeyValueInput attributes = 1;
|
|
||||||
|
|
||||||
bool all = 2;
|
|
||||||
|
|
||||||
// pagination defines an optional pagination for the request.
|
|
||||||
cosmos.base.query.v1beta1.PageRequest pagination = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryListRecordsResponse is response type for nameservice records list
|
|
||||||
message QueryListRecordsResponse{
|
|
||||||
repeated Record records = 1 [
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
// pagination defines the pagination in the response.
|
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
//QueryRecordByIdRequest is request type for nameservice records by id
|
|
||||||
message QueryRecordByIdRequest{
|
|
||||||
string id = 1 ;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryRecordByIdResponse is response type for nameservice records by id
|
|
||||||
message QueryRecordByIdResponse{
|
|
||||||
Record record = 1[
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryRecordByBondIdRequest is request type for get the records by bond-id
|
|
||||||
message QueryRecordByBondIdRequest{
|
|
||||||
string id = 1;
|
|
||||||
// pagination defines an optional pagination for the request.
|
|
||||||
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryRecordByBondIdResponse is response type for records list by bond-id
|
|
||||||
message QueryRecordByBondIdResponse{
|
|
||||||
repeated Record records = 1 [
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
// pagination defines the pagination in the response.
|
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetNameServiceModuleBalanceRequest is request type for nameservice module accounts balance
|
|
||||||
message GetNameServiceModuleBalanceRequest{
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetNameServiceModuleBalanceResponse is response type for nameservice module accounts balance
|
|
||||||
message GetNameServiceModuleBalanceResponse{
|
|
||||||
repeated AccountBalance balances = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccountBalance is nameservice module account balance
|
|
||||||
message AccountBalance {
|
|
||||||
string account_name = 1 [
|
|
||||||
(gogoproto.moretags) = "json:\"accountName\" yaml:\"accountName\""
|
|
||||||
];
|
|
||||||
repeated cosmos.base.v1beta1.Coin balance = 3 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
|
||||||
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryListNameRecordsRequest is request type for nameservice names records
|
|
||||||
message QueryListNameRecordsRequest{
|
|
||||||
// pagination defines an optional pagination for the request.
|
|
||||||
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryListNameRecordsResponse is response type for nameservice names records
|
|
||||||
message QueryListNameRecordsResponse{
|
|
||||||
repeated NameEntry names = 1 [
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
// pagination defines the pagination in the response.
|
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryWhoisRequest is request type for Get NameAuthority
|
|
||||||
message QueryWhoisRequest{
|
|
||||||
string name = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryWhoisResponse is response type for whois request
|
|
||||||
message QueryWhoisResponse{
|
|
||||||
NameAuthority name_authority = 1 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.moretags) = "json:\"nameAuthority\" yaml:\"nameAuthority\""
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryLookupCrn is request type for LookupCrn
|
|
||||||
message QueryLookupCrn{
|
|
||||||
string crn = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryLookupCrnResponse is response type for QueryLookupCrn
|
|
||||||
message QueryLookupCrnResponse{
|
|
||||||
NameRecord name = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryResolveCrn is request type for ResolveCrn
|
|
||||||
message QueryResolveCrn{
|
|
||||||
string crn = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryResolveCrnResponse is response type for QueryResolveCrn
|
|
||||||
message QueryResolveCrnResponse{
|
|
||||||
Record record = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryGetRecordExpiryQueue
|
|
||||||
message QueryGetRecordExpiryQueue{
|
|
||||||
// pagination defines an optional pagination for the request.
|
|
||||||
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryGetRecordExpiryQueueResponse
|
|
||||||
message QueryGetRecordExpiryQueueResponse{
|
|
||||||
repeated ExpiryQueueRecord records = 1;
|
|
||||||
// pagination defines the pagination in the response.
|
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ExpiryQueueRecord
|
|
||||||
message ExpiryQueueRecord{
|
|
||||||
string id = 1;
|
|
||||||
repeated string value = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryGetAuthorityExpiryQueue
|
|
||||||
message QueryGetAuthorityExpiryQueue{
|
|
||||||
// pagination defines an optional pagination for the request.
|
|
||||||
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryGetAuthorityExpiryQueueResponse
|
|
||||||
message QueryGetAuthorityExpiryQueueResponse{
|
|
||||||
repeated ExpiryQueueRecord authorities = 1;
|
|
||||||
// pagination defines the pagination in the response.
|
|
||||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
||||||
}
|
|
@ -1,168 +0,0 @@
|
|||||||
syntax = "proto3";
|
|
||||||
package vulcanize.nameservice.v1beta1;
|
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
|
||||||
import "vulcanize/nameservice/v1beta1/nameservice.proto";
|
|
||||||
|
|
||||||
option go_package = "github.com/tharsis/ethermint/x/nameservice/types";
|
|
||||||
|
|
||||||
// Msg
|
|
||||||
service Msg {
|
|
||||||
// SetRecord will records a new record with given payload and bond id
|
|
||||||
rpc SetRecord(MsgSetRecord) returns(MsgSetRecordResponse){}
|
|
||||||
// Renew Record will renew the expire record
|
|
||||||
rpc RenewRecord(MsgRenewRecord) returns (MsgRenewRecordResponse){}
|
|
||||||
// AssociateBond
|
|
||||||
rpc AssociateBond(MsgAssociateBond) returns (MsgAssociateBondResponse){}
|
|
||||||
// DissociateBond
|
|
||||||
rpc DissociateBond(MsgDissociateBond) returns (MsgDissociateBondResponse){}
|
|
||||||
// DissociateRecords
|
|
||||||
rpc DissociateRecords(MsgDissociateRecords) returns (MsgDissociateRecordsResponse){}
|
|
||||||
// ReAssociateRecords
|
|
||||||
rpc ReAssociateRecords(MsgReAssociateRecords) returns (MsgReAssociateRecordsResponse){}
|
|
||||||
// SetName will store the name with given crn and name
|
|
||||||
rpc SetName(MsgSetName) returns (MsgSetNameResponse){}
|
|
||||||
// Reserve name
|
|
||||||
rpc ReserveName(MsgReserveAuthority) returns (MsgReserveAuthorityResponse){}
|
|
||||||
// Delete Name method will remove authority name
|
|
||||||
rpc DeleteName(MsgDeleteNameAuthority) returns (MsgDeleteNameAuthorityResponse){}
|
|
||||||
// SetAuthorityBond
|
|
||||||
rpc SetAuthorityBond(MsgSetAuthorityBond) returns (MsgSetAuthorityBondResponse){}
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgSetRecord
|
|
||||||
message MsgSetRecord{
|
|
||||||
string bond_id = 1 [
|
|
||||||
(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""
|
|
||||||
];
|
|
||||||
string signer = 2;
|
|
||||||
Payload payload = 3 [
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgSetRecordResponse
|
|
||||||
message MsgSetRecordResponse{
|
|
||||||
string id = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Payload
|
|
||||||
message Payload {
|
|
||||||
Record record = 1;
|
|
||||||
repeated Signature signatures = 2 [
|
|
||||||
(gogoproto.nullable) = false,
|
|
||||||
(gogoproto.moretags) = "json:\"signatures\" yaml:\"signatures\""
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgSetName
|
|
||||||
message MsgSetName{
|
|
||||||
string crn = 1;
|
|
||||||
string cid = 2;
|
|
||||||
string signer = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgSetNameResponse
|
|
||||||
message MsgSetNameResponse{
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgReserveName
|
|
||||||
message MsgReserveAuthority{
|
|
||||||
string name = 1;
|
|
||||||
string signer = 2;
|
|
||||||
// if creating a sub-authority.
|
|
||||||
string owner = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgReserveNameResponse
|
|
||||||
message MsgReserveAuthorityResponse{
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgSetAuthorityBond is SDK message for SetAuthorityBond
|
|
||||||
message MsgSetAuthorityBond{
|
|
||||||
string name = 1;
|
|
||||||
string bond_id = 2 [
|
|
||||||
(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""
|
|
||||||
];
|
|
||||||
string signer = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgSetAuthorityBondResponse
|
|
||||||
message MsgSetAuthorityBondResponse{
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgDeleteNameAuthority is SDK message for DeleteNameAuthority
|
|
||||||
message MsgDeleteNameAuthority{
|
|
||||||
string crn = 1;
|
|
||||||
string signer = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgDeleteNameAuthorityResponse
|
|
||||||
message MsgDeleteNameAuthorityResponse{
|
|
||||||
}
|
|
||||||
|
|
||||||
//MsgRenewRecord is SDK message for Renew a record
|
|
||||||
message MsgRenewRecord{
|
|
||||||
string record_id = 1 [
|
|
||||||
(gogoproto.moretags) = "json:\"recordId\" yaml:\"recordId\""
|
|
||||||
];
|
|
||||||
string signer = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgRenewRecordResponse
|
|
||||||
message MsgRenewRecordResponse{
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgAssociateBond
|
|
||||||
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
|
|
||||||
message MsgAssociateBondResponse{
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgDissociateBond is SDK message for Msg/DissociateBond
|
|
||||||
message MsgDissociateBond{
|
|
||||||
string record_id = 1 [
|
|
||||||
(gogoproto.moretags) = "json:\"recordId\" yaml:\"recordId\""
|
|
||||||
];
|
|
||||||
string signer = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgDissociateBondResponse is response type for MsgDissociateBond
|
|
||||||
message MsgDissociateBondResponse{
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgDissociateRecords is SDK message for Msg/DissociateRecords
|
|
||||||
message MsgDissociateRecords{
|
|
||||||
string bond_id = 1 [
|
|
||||||
(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""
|
|
||||||
];
|
|
||||||
string signer = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgDissociateRecordsResponse is response type for MsgDissociateRecords
|
|
||||||
message MsgDissociateRecordsResponse{
|
|
||||||
}
|
|
||||||
|
|
||||||
// MsgReAssociateRecords is SDK message for Msg/ReAssociateRecords
|
|
||||||
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
|
|
||||||
message MsgReAssociateRecordsResponse{
|
|
||||||
}
|
|
@ -1,9 +1,9 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package vulcanize.nameservice.v1beta1;
|
package vulcanize.registry.v1beta1;
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
|
|
||||||
option go_package = "github.com/cerc-io/laconicd/x/nameservice/types";
|
option go_package = "github.com/cerc-io/laconicd/x/registry/types";
|
||||||
|
|
||||||
message ServiceProviderRegistration {
|
message ServiceProviderRegistration {
|
||||||
string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
|
string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
|
21
proto/vulcanize/registry/v1beta1/genesis.proto
Normal file
21
proto/vulcanize/registry/v1beta1/genesis.proto
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
package vulcanize.registry.v1beta1;
|
||||||
|
|
||||||
|
import "gogoproto/gogo.proto";
|
||||||
|
import "vulcanize/registry/v1beta1/registry.proto";
|
||||||
|
|
||||||
|
option go_package = "github.com/cerc-io/laconicd/x/registry/types";
|
||||||
|
|
||||||
|
// GenesisState defines the registry module's genesis state.
|
||||||
|
message GenesisState {
|
||||||
|
// params defines all the params of registry module.
|
||||||
|
Params params = 1 [(gogoproto.nullable) = false];
|
||||||
|
// records
|
||||||
|
repeated Record records = 2
|
||||||
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"records\" yaml:\"records\""];
|
||||||
|
// authorities
|
||||||
|
repeated AuthorityEntry authorities = 3
|
||||||
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"authorities\" yaml:\"authorities\""];
|
||||||
|
// names
|
||||||
|
repeated NameEntry names = 4 [(gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"names\" yaml:\"names\""];
|
||||||
|
}
|
217
proto/vulcanize/registry/v1beta1/query.proto
Normal file
217
proto/vulcanize/registry/v1beta1/query.proto
Normal file
@ -0,0 +1,217 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
package vulcanize.registry.v1beta1;
|
||||||
|
|
||||||
|
import "vulcanize/registry/v1beta1/registry.proto";
|
||||||
|
import "google/api/annotations.proto";
|
||||||
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
||||||
|
import "gogoproto/gogo.proto";
|
||||||
|
import "cosmos/base/v1beta1/coin.proto";
|
||||||
|
|
||||||
|
option go_package = "github.com/cerc-io/laconicd/x/registry/types";
|
||||||
|
|
||||||
|
// Query defines the gRPC querier service for registry module
|
||||||
|
service Query {
|
||||||
|
// Params queries the registry module params.
|
||||||
|
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/params";
|
||||||
|
}
|
||||||
|
// List records
|
||||||
|
rpc ListRecords(QueryListRecordsRequest) returns (QueryListRecordsResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/records";
|
||||||
|
}
|
||||||
|
// Get record by id
|
||||||
|
rpc GetRecord(QueryRecordByIDRequest) returns (QueryRecordByIDResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/records/{id}";
|
||||||
|
}
|
||||||
|
// Get records by bond id
|
||||||
|
rpc GetRecordByBondID(QueryRecordByBondIDRequest) returns (QueryRecordByBondIDResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/records-by-bond-id/{id}";
|
||||||
|
}
|
||||||
|
// Get registry module balance
|
||||||
|
rpc GetRegistryModuleBalance(GetRegistryModuleBalanceRequest) returns (GetRegistryModuleBalanceResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/balance";
|
||||||
|
}
|
||||||
|
// List name records
|
||||||
|
rpc ListNameRecords(QueryListNameRecordsRequest) returns (QueryListNameRecordsResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/names";
|
||||||
|
}
|
||||||
|
// Whois method retrieve the name authority info
|
||||||
|
rpc Whois(QueryWhoisRequest) returns (QueryWhoisResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/whois/{name}";
|
||||||
|
}
|
||||||
|
// LookupCrn
|
||||||
|
rpc LookupCrn(QueryLookupCrn) returns (QueryLookupCrnResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/lookup";
|
||||||
|
}
|
||||||
|
// ResolveCrn
|
||||||
|
rpc ResolveCrn(QueryResolveCrn) returns (QueryResolveCrnResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/resolve";
|
||||||
|
}
|
||||||
|
// GetRecordExpiryQueue
|
||||||
|
rpc GetRecordExpiryQueue(QueryGetRecordExpiryQueue) returns (QueryGetRecordExpiryQueueResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/record-expiry";
|
||||||
|
}
|
||||||
|
// GetAuthorityExpiryQueue
|
||||||
|
rpc GetAuthorityExpiryQueue(QueryGetAuthorityExpiryQueue) returns (QueryGetAuthorityExpiryQueueResponse) {
|
||||||
|
option (google.api.http).get = "/vulcanize/registry/v1beta1/authority-expiry";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryParamsRequest is request type for registry params
|
||||||
|
message QueryParamsRequest {}
|
||||||
|
|
||||||
|
// QueryParamsResponse is response type for registry params
|
||||||
|
message QueryParamsResponse {
|
||||||
|
Params params = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryListRecordsRequest is request type for registry records list
|
||||||
|
message QueryListRecordsRequest {
|
||||||
|
message ReferenceInput {
|
||||||
|
string id = 1;
|
||||||
|
}
|
||||||
|
message ValueInput {
|
||||||
|
string type = 1;
|
||||||
|
string string = 2;
|
||||||
|
int64 int = 3;
|
||||||
|
double float = 4;
|
||||||
|
bool boolean = 5;
|
||||||
|
ReferenceInput reference = 6;
|
||||||
|
repeated ValueInput values = 7;
|
||||||
|
}
|
||||||
|
message KeyValueInput {
|
||||||
|
string key = 1;
|
||||||
|
ValueInput value = 2;
|
||||||
|
}
|
||||||
|
repeated KeyValueInput attributes = 1;
|
||||||
|
|
||||||
|
bool all = 2;
|
||||||
|
|
||||||
|
// pagination defines an optional pagination for the request.
|
||||||
|
cosmos.base.query.v1beta1.PageRequest pagination = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryListRecordsResponse is response type for registry records list
|
||||||
|
message QueryListRecordsResponse {
|
||||||
|
repeated Record records = 1 [(gogoproto.nullable) = false];
|
||||||
|
// pagination defines the pagination in the response.
|
||||||
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryRecordByIDRequest is request type for registry records by id
|
||||||
|
message QueryRecordByIDRequest {
|
||||||
|
string id = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryRecordByIDResponse is response type for registry records by id
|
||||||
|
message QueryRecordByIDResponse {
|
||||||
|
Record record = 1 [(gogoproto.nullable) = false];
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryRecordByBondIdRequest is request type for get the records by bond-id
|
||||||
|
message QueryRecordByBondIDRequest {
|
||||||
|
string id = 1;
|
||||||
|
// pagination defines an optional pagination for the request.
|
||||||
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryRecordByBondIdResponse is response type for records list by bond-id
|
||||||
|
message QueryRecordByBondIDResponse {
|
||||||
|
repeated Record records = 1 [(gogoproto.nullable) = false];
|
||||||
|
// pagination defines the pagination in the response.
|
||||||
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetRegistryModuleBalanceRequest is request type for registry module accounts balance
|
||||||
|
message GetRegistryModuleBalanceRequest {}
|
||||||
|
|
||||||
|
// GetRegistryModuleBalanceResponse is response type for registry module accounts balance
|
||||||
|
message GetRegistryModuleBalanceResponse {
|
||||||
|
repeated AccountBalance balances = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// AccountBalance is registry module account balance
|
||||||
|
message AccountBalance {
|
||||||
|
string account_name = 1 [(gogoproto.moretags) = "json:\"accountName\" yaml:\"accountName\""];
|
||||||
|
repeated cosmos.base.v1beta1.Coin balance = 3 [
|
||||||
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
||||||
|
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryListNameRecordsRequest is request type for registry names records
|
||||||
|
message QueryListNameRecordsRequest {
|
||||||
|
// pagination defines an optional pagination for the request.
|
||||||
|
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryListNameRecordsResponse is response type for registry names records
|
||||||
|
message QueryListNameRecordsResponse {
|
||||||
|
repeated NameEntry names = 1 [(gogoproto.nullable) = false];
|
||||||
|
// pagination defines the pagination in the response.
|
||||||
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryWhoisRequest is request type for Get NameAuthority
|
||||||
|
message QueryWhoisRequest {
|
||||||
|
string name = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryWhoisResponse is response type for whois request
|
||||||
|
message QueryWhoisResponse {
|
||||||
|
NameAuthority name_authority = 1
|
||||||
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"nameAuthority\" yaml:\"nameAuthority\""];
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryLookupCrn is request type for LookupCrn
|
||||||
|
message QueryLookupCrn {
|
||||||
|
string crn = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryLookupCrnResponse is response type for QueryLookupCrn
|
||||||
|
message QueryLookupCrnResponse {
|
||||||
|
NameRecord name = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryResolveCrn is request type for ResolveCrn
|
||||||
|
message QueryResolveCrn {
|
||||||
|
string crn = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryResolveCrnResponse is response type for QueryResolveCrn
|
||||||
|
message QueryResolveCrnResponse {
|
||||||
|
Record record = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryGetRecordExpiryQueue
|
||||||
|
message QueryGetRecordExpiryQueue {
|
||||||
|
// pagination defines an optional pagination for the request.
|
||||||
|
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryGetRecordExpiryQueueResponse
|
||||||
|
message QueryGetRecordExpiryQueueResponse {
|
||||||
|
repeated ExpiryQueueRecord records = 1;
|
||||||
|
// pagination defines the pagination in the response.
|
||||||
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ExpiryQueueRecord
|
||||||
|
message ExpiryQueueRecord {
|
||||||
|
string id = 1;
|
||||||
|
repeated string value = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryGetAuthorityExpiryQueue
|
||||||
|
message QueryGetAuthorityExpiryQueue {
|
||||||
|
// pagination defines an optional pagination for the request.
|
||||||
|
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// QueryGetAuthorityExpiryQueueResponse
|
||||||
|
message QueryGetAuthorityExpiryQueueResponse {
|
||||||
|
repeated ExpiryQueueRecord authorities = 1;
|
||||||
|
// pagination defines the pagination in the response.
|
||||||
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||||
|
}
|
134
proto/vulcanize/registry/v1beta1/registry.proto
Normal file
134
proto/vulcanize/registry/v1beta1/registry.proto
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
package vulcanize.registry.v1beta1;
|
||||||
|
|
||||||
|
import "google/protobuf/duration.proto";
|
||||||
|
import "google/protobuf/timestamp.proto";
|
||||||
|
import "gogoproto/gogo.proto";
|
||||||
|
import "cosmos/base/v1beta1/coin.proto";
|
||||||
|
import "google/protobuf/any.proto";
|
||||||
|
|
||||||
|
option go_package = "github.com/cerc-io/laconicd/x/registry/types";
|
||||||
|
|
||||||
|
// Params defines the registry module parameters
|
||||||
|
message Params {
|
||||||
|
cosmos.base.v1beta1.Coin record_rent = 1
|
||||||
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"record_rent\" yaml:\"record_rent\""];
|
||||||
|
google.protobuf.Duration record_rent_duration = 2 [
|
||||||
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.stdduration) = true,
|
||||||
|
(gogoproto.moretags) = "json:\"record_rent_duration\" yaml:\"record_rent_duration\""
|
||||||
|
];
|
||||||
|
cosmos.base.v1beta1.Coin authority_rent = 3
|
||||||
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"authority_rent\" yaml:\"authority_rent\""];
|
||||||
|
google.protobuf.Duration authority_rent_duration = 4 [
|
||||||
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.stdduration) = true,
|
||||||
|
(gogoproto.moretags) = "json:\"authority_rent_duration\" yaml:\"authority_rent_duration\""
|
||||||
|
];
|
||||||
|
google.protobuf.Duration authority_grace_period = 5 [
|
||||||
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.stdduration) = true,
|
||||||
|
(gogoproto.moretags) = "json:\"authority_grace_period\" yaml:\"authority_grace_period\""
|
||||||
|
];
|
||||||
|
bool authority_auction_enabled = 6
|
||||||
|
[(gogoproto.moretags) = "json:\"authority_auction_enabled\" yaml:\"authority_auction_enabled\""];
|
||||||
|
google.protobuf.Duration authority_auction_commits_duration = 7 [
|
||||||
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.stdduration) = true,
|
||||||
|
(gogoproto.moretags) = "json:\"authority_auction_commits_duration\" yaml:\"authority_auction_commits_duration\""
|
||||||
|
];
|
||||||
|
google.protobuf.Duration authority_auction_reveals_duration = 8 [
|
||||||
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.stdduration) = true,
|
||||||
|
(gogoproto.moretags) = "json:\"authority_auction_reveals_duration\" yaml:\"authority_auction_reveals_duration\""
|
||||||
|
];
|
||||||
|
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\""
|
||||||
|
];
|
||||||
|
cosmos.base.v1beta1.Coin authority_auction_minimum_bid = 11 [
|
||||||
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.moretags) = "json:\"authority_auction_minimum_bid\" yaml:\"authority_auction_minimum_bid\""
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Params defines the registry module records
|
||||||
|
message Record {
|
||||||
|
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\""];
|
||||||
|
}
|
||||||
|
|
||||||
|
// AuthorityEntry defines the registry module AuthorityEntries
|
||||||
|
message AuthorityEntry {
|
||||||
|
string name = 1;
|
||||||
|
NameAuthority entry = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// NameAuthority
|
||||||
|
message NameAuthority {
|
||||||
|
// Owner public key.
|
||||||
|
string owner_public_key = 1 [(gogoproto.moretags) = "json:\"ownerPublicKey\" yaml:\"ownerPublicKey\""];
|
||||||
|
// Owner address.
|
||||||
|
string owner_address = 2 [(gogoproto.moretags) = "json:\"ownerAddress\" yaml:\"ownerAddress\""];
|
||||||
|
// height at which name/authority was created.
|
||||||
|
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\""];
|
||||||
|
google.protobuf.Timestamp expiry_time = 7 [
|
||||||
|
(gogoproto.nullable) = false,
|
||||||
|
(gogoproto.stdtime) = true,
|
||||||
|
(gogoproto.moretags) = "json:\"expiryTime\" yaml:\"expiryTime\""
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
// NameEntry
|
||||||
|
message NameEntry {
|
||||||
|
string name = 1;
|
||||||
|
NameRecord entry = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// NameRecord
|
||||||
|
message NameRecord {
|
||||||
|
NameRecordEntry latest = 1;
|
||||||
|
repeated NameRecordEntry history = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// NameRecordEntry
|
||||||
|
message NameRecordEntry {
|
||||||
|
string id = 1;
|
||||||
|
uint64 height = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Signature
|
||||||
|
message Signature {
|
||||||
|
string sig = 1 [(gogoproto.moretags) = "json:\"sig\" yaml:\"sig\""];
|
||||||
|
string pub_key = 2 [(gogoproto.moretags) = "json:\"pubKey\" yaml:\"pubKey\""];
|
||||||
|
}
|
||||||
|
|
||||||
|
// BlockChangeSet
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
// AuctionBidInfo
|
||||||
|
message AuctionBidInfo {
|
||||||
|
string auction_id = 1 [(gogoproto.moretags) = "json:\"auctionID\" yaml:\"auctionID\""];
|
||||||
|
string bidder_address = 2 [(gogoproto.moretags) = "json:\"bidderAddress\" yaml:\"bidderAddress\""];
|
||||||
|
}
|
137
proto/vulcanize/registry/v1beta1/tx.proto
Normal file
137
proto/vulcanize/registry/v1beta1/tx.proto
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
package vulcanize.registry.v1beta1;
|
||||||
|
|
||||||
|
import "gogoproto/gogo.proto";
|
||||||
|
import "vulcanize/registry/v1beta1/registry.proto";
|
||||||
|
|
||||||
|
option go_package = "github.com/cerc-io/laconicd/x/registry/types";
|
||||||
|
|
||||||
|
// Msg
|
||||||
|
service Msg {
|
||||||
|
// SetRecord will records a new record with given payload and bond id
|
||||||
|
rpc SetRecord(MsgSetRecord) returns (MsgSetRecordResponse) {}
|
||||||
|
// Renew Record will renew the expire record
|
||||||
|
rpc RenewRecord(MsgRenewRecord) returns (MsgRenewRecordResponse) {}
|
||||||
|
// AssociateBond
|
||||||
|
rpc AssociateBond(MsgAssociateBond) returns (MsgAssociateBondResponse) {}
|
||||||
|
// DissociateBond
|
||||||
|
rpc DissociateBond(MsgDissociateBond) returns (MsgDissociateBondResponse) {}
|
||||||
|
// DissociateRecords
|
||||||
|
rpc DissociateRecords(MsgDissociateRecords) returns (MsgDissociateRecordsResponse) {}
|
||||||
|
// ReAssociateRecords
|
||||||
|
rpc ReAssociateRecords(MsgReAssociateRecords) returns (MsgReAssociateRecordsResponse) {}
|
||||||
|
// SetName will store the name with given crn and name
|
||||||
|
rpc SetName(MsgSetName) returns (MsgSetNameResponse) {}
|
||||||
|
// Reserve name
|
||||||
|
rpc ReserveName(MsgReserveAuthority) returns (MsgReserveAuthorityResponse) {}
|
||||||
|
// Delete Name method will remove authority name
|
||||||
|
rpc DeleteName(MsgDeleteNameAuthority) returns (MsgDeleteNameAuthorityResponse) {}
|
||||||
|
// SetAuthorityBond
|
||||||
|
rpc SetAuthorityBond(MsgSetAuthorityBond) returns (MsgSetAuthorityBondResponse) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgSetRecord
|
||||||
|
message MsgSetRecord {
|
||||||
|
string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
|
||||||
|
string signer = 2;
|
||||||
|
Payload payload = 3 [(gogoproto.nullable) = false];
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgSetRecordResponse
|
||||||
|
message MsgSetRecordResponse {
|
||||||
|
string id = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Payload
|
||||||
|
message Payload {
|
||||||
|
Record record = 1;
|
||||||
|
repeated Signature signatures = 2
|
||||||
|
[(gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"signatures\" yaml:\"signatures\""];
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgSetName
|
||||||
|
message MsgSetName {
|
||||||
|
string crn = 1;
|
||||||
|
string cid = 2;
|
||||||
|
string signer = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgSetNameResponse
|
||||||
|
message MsgSetNameResponse {}
|
||||||
|
|
||||||
|
// MsgReserveName
|
||||||
|
message MsgReserveAuthority {
|
||||||
|
string name = 1;
|
||||||
|
string signer = 2;
|
||||||
|
// if creating a sub-authority.
|
||||||
|
string owner = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgReserveNameResponse
|
||||||
|
message MsgReserveAuthorityResponse {}
|
||||||
|
|
||||||
|
// MsgSetAuthorityBond is SDK message for SetAuthorityBond
|
||||||
|
message MsgSetAuthorityBond {
|
||||||
|
string name = 1;
|
||||||
|
string bond_id = 2 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
|
||||||
|
string signer = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgSetAuthorityBondResponse
|
||||||
|
message MsgSetAuthorityBondResponse {}
|
||||||
|
|
||||||
|
// MsgDeleteNameAuthority is SDK message for DeleteNameAuthority
|
||||||
|
message MsgDeleteNameAuthority {
|
||||||
|
string crn = 1;
|
||||||
|
string signer = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgDeleteNameAuthorityResponse
|
||||||
|
message MsgDeleteNameAuthorityResponse {}
|
||||||
|
|
||||||
|
// MsgRenewRecord is SDK message for Renew a record
|
||||||
|
message MsgRenewRecord {
|
||||||
|
string record_id = 1 [(gogoproto.moretags) = "json:\"recordId\" yaml:\"recordId\""];
|
||||||
|
string signer = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgRenewRecordResponse
|
||||||
|
message MsgRenewRecordResponse {}
|
||||||
|
|
||||||
|
// MsgAssociateBond
|
||||||
|
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
|
||||||
|
message MsgAssociateBondResponse {}
|
||||||
|
|
||||||
|
// MsgDissociateBond is SDK message for Msg/DissociateBond
|
||||||
|
message MsgDissociateBond {
|
||||||
|
string record_id = 1 [(gogoproto.moretags) = "json:\"recordId\" yaml:\"recordId\""];
|
||||||
|
string signer = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgDissociateBondResponse is response type for MsgDissociateBond
|
||||||
|
message MsgDissociateBondResponse {}
|
||||||
|
|
||||||
|
// MsgDissociateRecords is SDK message for Msg/DissociateRecords
|
||||||
|
message MsgDissociateRecords {
|
||||||
|
string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
|
||||||
|
string signer = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// MsgDissociateRecordsResponse is response type for MsgDissociateRecords
|
||||||
|
message MsgDissociateRecordsResponse {}
|
||||||
|
|
||||||
|
// MsgReAssociateRecords is SDK message for Msg/ReAssociateRecords
|
||||||
|
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
|
||||||
|
message MsgReAssociateRecordsResponse {}
|
@ -45,7 +45,7 @@ import {
|
|||||||
MessageMsgSetRecord,
|
MessageMsgSetRecord,
|
||||||
NAMESERVICE_ERRORS,
|
NAMESERVICE_ERRORS,
|
||||||
parseMsgSetRecordResponse
|
parseMsgSetRecordResponse
|
||||||
} from './messages/nameservice';
|
} from './messages/registry';
|
||||||
import {
|
import {
|
||||||
createTxMsgCommitBid,
|
createTxMsgCommitBid,
|
||||||
createTxMsgRevealBid,
|
createTxMsgRevealBid,
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
} from '@tharsis/transactions'
|
} from '@tharsis/transactions'
|
||||||
|
|
||||||
import * as bondTx from '../proto/vulcanize/bond/v1beta1/tx'
|
import * as bondTx from '../proto/vulcanize/bond/v1beta1/tx'
|
||||||
import * as nameserviceTx from '../proto/vulcanize/nameservice/v1beta1/tx'
|
import * as registryTx from '../proto/vulcanize/registry/v1beta1/tx'
|
||||||
import * as coin from '../proto/cosmos/base/v1beta1/coin'
|
import * as coin from '../proto/cosmos/base/v1beta1/coin'
|
||||||
import { createTx } from './util'
|
import { createTx } from './util'
|
||||||
|
|
||||||
@ -475,7 +475,7 @@ function createMsgAssociateBond(
|
|||||||
signer: string
|
signer: string
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: 'nameservice/AssociateBond',
|
type: 'registry/AssociateBond',
|
||||||
value: {
|
value: {
|
||||||
record_id: recordId,
|
record_id: recordId,
|
||||||
bond_id: bondId,
|
bond_id: bondId,
|
||||||
@ -489,7 +489,7 @@ const protoCreateMsgAssociateBond = (
|
|||||||
bondId: string,
|
bondId: string,
|
||||||
signer: string
|
signer: string
|
||||||
) => {
|
) => {
|
||||||
const associateBondMessage = new nameserviceTx.vulcanize.nameservice.v1beta1.MsgAssociateBond({
|
const associateBondMessage = new registryTx.vulcanize.registry.v1beta1.MsgAssociateBond({
|
||||||
record_id: recordId,
|
record_id: recordId,
|
||||||
bond_id: bondId,
|
bond_id: bondId,
|
||||||
signer
|
signer
|
||||||
@ -497,7 +497,7 @@ const protoCreateMsgAssociateBond = (
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
message: associateBondMessage,
|
message: associateBondMessage,
|
||||||
path: 'vulcanize.nameservice.v1beta1.MsgAssociateBond',
|
path: 'vulcanize.registry.v1beta1.MsgAssociateBond',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -506,7 +506,7 @@ function createMsgDissociateBond(
|
|||||||
signer: string
|
signer: string
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: 'nameservice/DissociateBond',
|
type: 'registry/DissociateBond',
|
||||||
value: {
|
value: {
|
||||||
record_id: recordId,
|
record_id: recordId,
|
||||||
signer
|
signer
|
||||||
@ -518,14 +518,14 @@ const protoCreateMsgDissociateBond = (
|
|||||||
recordId: string,
|
recordId: string,
|
||||||
signer: string
|
signer: string
|
||||||
) => {
|
) => {
|
||||||
const dissociateBondMessage = new nameserviceTx.vulcanize.nameservice.v1beta1.MsgDissociateBond({
|
const dissociateBondMessage = new registryTx.vulcanize.registry.v1beta1.MsgDissociateBond({
|
||||||
record_id: recordId,
|
record_id: recordId,
|
||||||
signer
|
signer
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
message: dissociateBondMessage,
|
message: dissociateBondMessage,
|
||||||
path: 'vulcanize.nameservice.v1beta1.MsgDissociateBond',
|
path: 'vulcanize.registry.v1beta1.MsgDissociateBond',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -534,7 +534,7 @@ function createMsgDissociateRecords(
|
|||||||
signer: string
|
signer: string
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: 'nameservice/DissociateRecords',
|
type: 'registry/DissociateRecords',
|
||||||
value: {
|
value: {
|
||||||
bond_id: bondId,
|
bond_id: bondId,
|
||||||
signer
|
signer
|
||||||
@ -546,14 +546,14 @@ const protoCreateMsgDissociateRecords = (
|
|||||||
bondId: string,
|
bondId: string,
|
||||||
signer: string
|
signer: string
|
||||||
) => {
|
) => {
|
||||||
const dissociateRecordsMessage = new nameserviceTx.vulcanize.nameservice.v1beta1.MsgDissociateRecords({
|
const dissociateRecordsMessage = new registryTx.vulcanize.registry.v1beta1.MsgDissociateRecords({
|
||||||
bond_id: bondId,
|
bond_id: bondId,
|
||||||
signer
|
signer
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
message: dissociateRecordsMessage,
|
message: dissociateRecordsMessage,
|
||||||
path: 'vulcanize.nameservice.v1beta1.MsgDissociateRecords',
|
path: 'vulcanize.registry.v1beta1.MsgDissociateRecords',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -563,7 +563,7 @@ function createMsgReAssociateRecords(
|
|||||||
signer: string
|
signer: string
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: 'nameservice/ReassociateRecords',
|
type: 'registry/ReassociateRecords',
|
||||||
value: {
|
value: {
|
||||||
new_bond_id: newBondId,
|
new_bond_id: newBondId,
|
||||||
old_bond_id: oldBondId,
|
old_bond_id: oldBondId,
|
||||||
@ -577,7 +577,7 @@ const protoCreateMsgReAssociateRecords = (
|
|||||||
oldBondId: string,
|
oldBondId: string,
|
||||||
signer: string
|
signer: string
|
||||||
) => {
|
) => {
|
||||||
const reAssociateRecordsMessage = new nameserviceTx.vulcanize.nameservice.v1beta1.MsgReAssociateRecords({
|
const reAssociateRecordsMessage = new registryTx.vulcanize.registry.v1beta1.MsgReAssociateRecords({
|
||||||
new_bond_id: newBondId,
|
new_bond_id: newBondId,
|
||||||
old_bond_id: oldBondId,
|
old_bond_id: oldBondId,
|
||||||
signer
|
signer
|
||||||
@ -585,6 +585,6 @@ const protoCreateMsgReAssociateRecords = (
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
message: reAssociateRecordsMessage,
|
message: reAssociateRecordsMessage,
|
||||||
path: 'vulcanize.nameservice.v1beta1.MsgReAssociateRecords',
|
path: 'vulcanize.registry.v1beta1.MsgReAssociateRecords',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,8 @@ import {
|
|||||||
Fee,
|
Fee,
|
||||||
} from '@tharsis/transactions'
|
} from '@tharsis/transactions'
|
||||||
|
|
||||||
import * as nameserviceTx from '../proto/vulcanize/nameservice/v1beta1/tx'
|
import * as registryTx from '../proto/vulcanize/registry/v1beta1/tx'
|
||||||
import * as nameservice from '../proto/vulcanize/nameservice/v1beta1/nameservice'
|
import * as registry from '../proto/vulcanize/registry/v1beta1/registry'
|
||||||
import { createTx } from './util'
|
import { createTx } from './util'
|
||||||
import { Payload } from '../types'
|
import { Payload } from '../types'
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ function createMsgReserveAuthority(
|
|||||||
owner: string
|
owner: string
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: 'nameservice/ReserveAuthority',
|
type: 'registry/ReserveAuthority',
|
||||||
value: {
|
value: {
|
||||||
name,
|
name,
|
||||||
signer,
|
signer,
|
||||||
@ -249,7 +249,7 @@ const protoCreateMsgReserveAuthority = (
|
|||||||
signer: string,
|
signer: string,
|
||||||
owner: string,
|
owner: string,
|
||||||
) => {
|
) => {
|
||||||
const reserveAuthorityMessage = new nameserviceTx.vulcanize.nameservice.v1beta1.MsgReserveAuthority({
|
const reserveAuthorityMessage = new registryTx.vulcanize.registry.v1beta1.MsgReserveAuthority({
|
||||||
name,
|
name,
|
||||||
signer,
|
signer,
|
||||||
owner
|
owner
|
||||||
@ -257,7 +257,7 @@ const protoCreateMsgReserveAuthority = (
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
message: reserveAuthorityMessage,
|
message: reserveAuthorityMessage,
|
||||||
path: 'vulcanize.nameservice.v1beta1.MsgReserveAuthority',
|
path: 'vulcanize.registry.v1beta1.MsgReserveAuthority',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -267,7 +267,7 @@ function createMsgSetName(
|
|||||||
signer: string
|
signer: string
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: 'nameservice/SetName',
|
type: 'registry/SetName',
|
||||||
value: {
|
value: {
|
||||||
crn,
|
crn,
|
||||||
cid,
|
cid,
|
||||||
@ -281,7 +281,7 @@ const protoCreateMsgSetName = (
|
|||||||
cid: string,
|
cid: string,
|
||||||
signer: string
|
signer: string
|
||||||
) => {
|
) => {
|
||||||
const setNameMessage = new nameserviceTx.vulcanize.nameservice.v1beta1.MsgSetName({
|
const setNameMessage = new registryTx.vulcanize.registry.v1beta1.MsgSetName({
|
||||||
crn,
|
crn,
|
||||||
cid,
|
cid,
|
||||||
signer,
|
signer,
|
||||||
@ -289,7 +289,7 @@ const protoCreateMsgSetName = (
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
message: setNameMessage,
|
message: setNameMessage,
|
||||||
path: 'vulcanize.nameservice.v1beta1.MsgSetName',
|
path: 'vulcanize.registry.v1beta1.MsgSetName',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -299,7 +299,7 @@ function createMsgSetRecord(
|
|||||||
signer: string
|
signer: string
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: 'nameservice/SetRecord',
|
type: 'registry/SetRecord',
|
||||||
value: {
|
value: {
|
||||||
bond_id: bondId,
|
bond_id: bondId,
|
||||||
signer,
|
signer,
|
||||||
@ -313,20 +313,20 @@ const protoCreateMsgSetRecord = (
|
|||||||
payloadData: Payload,
|
payloadData: Payload,
|
||||||
signer: string
|
signer: string
|
||||||
) => {
|
) => {
|
||||||
const record = new nameservice.vulcanize.nameservice.v1beta1.Record(payloadData.record.serialize())
|
const record = new registry.vulcanize.registry.v1beta1.Record(payloadData.record.serialize())
|
||||||
|
|
||||||
const signatures = payloadData.signatures.map(
|
const signatures = payloadData.signatures.map(
|
||||||
signature => new nameservice.vulcanize.nameservice.v1beta1.Signature(
|
signature => new registry.vulcanize.registry.v1beta1.Signature(
|
||||||
signature.serialize()
|
signature.serialize()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
const payload = new nameserviceTx.vulcanize.nameservice.v1beta1.Payload({
|
const payload = new registryTx.vulcanize.registry.v1beta1.Payload({
|
||||||
record,
|
record,
|
||||||
signatures
|
signatures
|
||||||
})
|
})
|
||||||
|
|
||||||
const setNameMessage = new nameserviceTx.vulcanize.nameservice.v1beta1.MsgSetRecord({
|
const setNameMessage = new registryTx.vulcanize.registry.v1beta1.MsgSetRecord({
|
||||||
bond_id: bondId,
|
bond_id: bondId,
|
||||||
signer,
|
signer,
|
||||||
payload
|
payload
|
||||||
@ -334,7 +334,7 @@ const protoCreateMsgSetRecord = (
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
message: setNameMessage,
|
message: setNameMessage,
|
||||||
path: 'vulcanize.nameservice.v1beta1.MsgSetRecord',
|
path: 'vulcanize.registry.v1beta1.MsgSetRecord',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -344,7 +344,7 @@ function createMsgSetAuthorityBond(
|
|||||||
signer: string
|
signer: string
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: 'nameservice/SetAuthorityBond',
|
type: 'registry/SetAuthorityBond',
|
||||||
value: {
|
value: {
|
||||||
name,
|
name,
|
||||||
bond_id: bondId,
|
bond_id: bondId,
|
||||||
@ -358,7 +358,7 @@ const protoCreateMsgSetAuthorityBond = (
|
|||||||
bondId: string,
|
bondId: string,
|
||||||
signer: string
|
signer: string
|
||||||
) => {
|
) => {
|
||||||
const setAuthorityBondMessage = new nameserviceTx.vulcanize.nameservice.v1beta1.MsgSetAuthorityBond({
|
const setAuthorityBondMessage = new registryTx.vulcanize.registry.v1beta1.MsgSetAuthorityBond({
|
||||||
name,
|
name,
|
||||||
bond_id: bondId,
|
bond_id: bondId,
|
||||||
signer,
|
signer,
|
||||||
@ -366,7 +366,7 @@ const protoCreateMsgSetAuthorityBond = (
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
message: setAuthorityBondMessage,
|
message: setAuthorityBondMessage,
|
||||||
path: 'vulcanize.nameservice.v1beta1.MsgSetAuthorityBond',
|
path: 'vulcanize.registry.v1beta1.MsgSetAuthorityBond',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,7 +375,7 @@ function createMsgDeleteName(
|
|||||||
signer: string
|
signer: string
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: 'nameservice/DeleteAuthority',
|
type: 'registry/DeleteAuthority',
|
||||||
value: {
|
value: {
|
||||||
crn,
|
crn,
|
||||||
signer
|
signer
|
||||||
@ -387,13 +387,13 @@ const protoCreateMsgDeleteName = (
|
|||||||
crn: string,
|
crn: string,
|
||||||
signer: string
|
signer: string
|
||||||
) => {
|
) => {
|
||||||
const deleteNameAutorityMessage = new nameserviceTx.vulcanize.nameservice.v1beta1.MsgDeleteNameAuthority({
|
const deleteNameAutorityMessage = new registryTx.vulcanize.registry.v1beta1.MsgDeleteNameAuthority({
|
||||||
crn,
|
crn,
|
||||||
signer,
|
signer,
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
message: deleteNameAutorityMessage,
|
message: deleteNameAutorityMessage,
|
||||||
path: 'vulcanize.nameservice.v1beta1.MsgDeleteNameAuthority',
|
path: 'vulcanize.registry.v1beta1.MsgDeleteNameAuthority',
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3,11 +3,11 @@
|
|||||||
/**
|
/**
|
||||||
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
||||||
* compiler version: 3.12.4
|
* compiler version: 3.12.4
|
||||||
* source: vulcanize/nameservice/v1beta1/attributes.proto
|
* source: vulcanize/registry/v1beta1/attributes.proto
|
||||||
* git: https://github.com/thesayyn/protoc-gen-ts */
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
||||||
import * as dependency_1 from "./../../../gogoproto/gogo";
|
import * as dependency_1 from "./../../../gogoproto/gogo";
|
||||||
import * as pb_1 from "google-protobuf";
|
import * as pb_1 from "google-protobuf";
|
||||||
export namespace vulcanize.nameservice.v1beta1 {
|
export namespace vulcanize.registry.v1beta1 {
|
||||||
export class ServiceProviderRegistration extends pb_1.Message {
|
export class ServiceProviderRegistration extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
@ -3,19 +3,19 @@
|
|||||||
/**
|
/**
|
||||||
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
||||||
* compiler version: 3.12.4
|
* compiler version: 3.12.4
|
||||||
* source: vulcanize/nameservice/v1beta1/genesis.proto
|
* source: vulcanize/registry/v1beta1/genesis.proto
|
||||||
* git: https://github.com/thesayyn/protoc-gen-ts */
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
||||||
import * as dependency_1 from "./../../../gogoproto/gogo";
|
import * as dependency_1 from "./../../../gogoproto/gogo";
|
||||||
import * as dependency_2 from "./nameservice";
|
import * as dependency_2 from "./registry";
|
||||||
import * as pb_1 from "google-protobuf";
|
import * as pb_1 from "google-protobuf";
|
||||||
export namespace vulcanize.nameservice.v1beta1 {
|
export namespace vulcanize.registry.v1beta1 {
|
||||||
export class GenesisState extends pb_1.Message {
|
export class GenesisState extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
params?: dependency_2.vulcanize.nameservice.v1beta1.Params;
|
params?: dependency_2.vulcanize.registry.v1beta1.Params;
|
||||||
records?: dependency_2.vulcanize.nameservice.v1beta1.Record[];
|
records?: dependency_2.vulcanize.registry.v1beta1.Record[];
|
||||||
authorities?: dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry[];
|
authorities?: dependency_2.vulcanize.registry.v1beta1.AuthorityEntry[];
|
||||||
names?: dependency_2.vulcanize.nameservice.v1beta1.NameEntry[];
|
names?: dependency_2.vulcanize.registry.v1beta1.NameEntry[];
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 3, 4], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 3, 4], this.#one_of_decls);
|
||||||
@ -35,71 +35,71 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get params() {
|
get params() {
|
||||||
return pb_1.Message.getWrapperField(this, dependency_2.vulcanize.nameservice.v1beta1.Params, 1) as dependency_2.vulcanize.nameservice.v1beta1.Params;
|
return pb_1.Message.getWrapperField(this, dependency_2.vulcanize.registry.v1beta1.Params, 1) as dependency_2.vulcanize.registry.v1beta1.Params;
|
||||||
}
|
}
|
||||||
set params(value: dependency_2.vulcanize.nameservice.v1beta1.Params) {
|
set params(value: dependency_2.vulcanize.registry.v1beta1.Params) {
|
||||||
pb_1.Message.setWrapperField(this, 1, value);
|
pb_1.Message.setWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get has_params() {
|
get has_params() {
|
||||||
return pb_1.Message.getField(this, 1) != null;
|
return pb_1.Message.getField(this, 1) != null;
|
||||||
}
|
}
|
||||||
get records() {
|
get records() {
|
||||||
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.nameservice.v1beta1.Record, 2) as dependency_2.vulcanize.nameservice.v1beta1.Record[];
|
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.registry.v1beta1.Record, 2) as dependency_2.vulcanize.registry.v1beta1.Record[];
|
||||||
}
|
}
|
||||||
set records(value: dependency_2.vulcanize.nameservice.v1beta1.Record[]) {
|
set records(value: dependency_2.vulcanize.registry.v1beta1.Record[]) {
|
||||||
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
||||||
}
|
}
|
||||||
get authorities() {
|
get authorities() {
|
||||||
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry, 3) as dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry[];
|
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.registry.v1beta1.AuthorityEntry, 3) as dependency_2.vulcanize.registry.v1beta1.AuthorityEntry[];
|
||||||
}
|
}
|
||||||
set authorities(value: dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry[]) {
|
set authorities(value: dependency_2.vulcanize.registry.v1beta1.AuthorityEntry[]) {
|
||||||
pb_1.Message.setRepeatedWrapperField(this, 3, value);
|
pb_1.Message.setRepeatedWrapperField(this, 3, value);
|
||||||
}
|
}
|
||||||
get names() {
|
get names() {
|
||||||
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.nameservice.v1beta1.NameEntry, 4) as dependency_2.vulcanize.nameservice.v1beta1.NameEntry[];
|
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.registry.v1beta1.NameEntry, 4) as dependency_2.vulcanize.registry.v1beta1.NameEntry[];
|
||||||
}
|
}
|
||||||
set names(value: dependency_2.vulcanize.nameservice.v1beta1.NameEntry[]) {
|
set names(value: dependency_2.vulcanize.registry.v1beta1.NameEntry[]) {
|
||||||
pb_1.Message.setRepeatedWrapperField(this, 4, value);
|
pb_1.Message.setRepeatedWrapperField(this, 4, value);
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
params?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.Params.prototype.toObject>;
|
params?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Params.prototype.toObject>;
|
||||||
records?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.Record.prototype.toObject>[];
|
records?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Record.prototype.toObject>[];
|
||||||
authorities?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry.prototype.toObject>[];
|
authorities?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.AuthorityEntry.prototype.toObject>[];
|
||||||
names?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.NameEntry.prototype.toObject>[];
|
names?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.NameEntry.prototype.toObject>[];
|
||||||
}): GenesisState {
|
}): GenesisState {
|
||||||
const message = new GenesisState({});
|
const message = new GenesisState({});
|
||||||
if (data.params != null) {
|
if (data.params != null) {
|
||||||
message.params = dependency_2.vulcanize.nameservice.v1beta1.Params.fromObject(data.params);
|
message.params = dependency_2.vulcanize.registry.v1beta1.Params.fromObject(data.params);
|
||||||
}
|
}
|
||||||
if (data.records != null) {
|
if (data.records != null) {
|
||||||
message.records = data.records.map(item => dependency_2.vulcanize.nameservice.v1beta1.Record.fromObject(item));
|
message.records = data.records.map(item => dependency_2.vulcanize.registry.v1beta1.Record.fromObject(item));
|
||||||
}
|
}
|
||||||
if (data.authorities != null) {
|
if (data.authorities != null) {
|
||||||
message.authorities = data.authorities.map(item => dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry.fromObject(item));
|
message.authorities = data.authorities.map(item => dependency_2.vulcanize.registry.v1beta1.AuthorityEntry.fromObject(item));
|
||||||
}
|
}
|
||||||
if (data.names != null) {
|
if (data.names != null) {
|
||||||
message.names = data.names.map(item => dependency_2.vulcanize.nameservice.v1beta1.NameEntry.fromObject(item));
|
message.names = data.names.map(item => dependency_2.vulcanize.registry.v1beta1.NameEntry.fromObject(item));
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
params?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.Params.prototype.toObject>;
|
params?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Params.prototype.toObject>;
|
||||||
records?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.Record.prototype.toObject>[];
|
records?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Record.prototype.toObject>[];
|
||||||
authorities?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry.prototype.toObject>[];
|
authorities?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.AuthorityEntry.prototype.toObject>[];
|
||||||
names?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.NameEntry.prototype.toObject>[];
|
names?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.NameEntry.prototype.toObject>[];
|
||||||
} = {};
|
} = {};
|
||||||
if (this.params != null) {
|
if (this.params != null) {
|
||||||
data.params = this.params.toObject();
|
data.params = this.params.toObject();
|
||||||
}
|
}
|
||||||
if (this.records != null) {
|
if (this.records != null) {
|
||||||
data.records = this.records.map((item: dependency_2.vulcanize.nameservice.v1beta1.Record) => item.toObject());
|
data.records = this.records.map((item: dependency_2.vulcanize.registry.v1beta1.Record) => item.toObject());
|
||||||
}
|
}
|
||||||
if (this.authorities != null) {
|
if (this.authorities != null) {
|
||||||
data.authorities = this.authorities.map((item: dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry) => item.toObject());
|
data.authorities = this.authorities.map((item: dependency_2.vulcanize.registry.v1beta1.AuthorityEntry) => item.toObject());
|
||||||
}
|
}
|
||||||
if (this.names != null) {
|
if (this.names != null) {
|
||||||
data.names = this.names.map((item: dependency_2.vulcanize.nameservice.v1beta1.NameEntry) => item.toObject());
|
data.names = this.names.map((item: dependency_2.vulcanize.registry.v1beta1.NameEntry) => item.toObject());
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
@ -110,11 +110,11 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
if (this.has_params)
|
if (this.has_params)
|
||||||
writer.writeMessage(1, this.params, () => this.params.serialize(writer));
|
writer.writeMessage(1, this.params, () => this.params.serialize(writer));
|
||||||
if (this.records.length)
|
if (this.records.length)
|
||||||
writer.writeRepeatedMessage(2, this.records, (item: dependency_2.vulcanize.nameservice.v1beta1.Record) => item.serialize(writer));
|
writer.writeRepeatedMessage(2, this.records, (item: dependency_2.vulcanize.registry.v1beta1.Record) => item.serialize(writer));
|
||||||
if (this.authorities.length)
|
if (this.authorities.length)
|
||||||
writer.writeRepeatedMessage(3, this.authorities, (item: dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry) => item.serialize(writer));
|
writer.writeRepeatedMessage(3, this.authorities, (item: dependency_2.vulcanize.registry.v1beta1.AuthorityEntry) => item.serialize(writer));
|
||||||
if (this.names.length)
|
if (this.names.length)
|
||||||
writer.writeRepeatedMessage(4, this.names, (item: dependency_2.vulcanize.nameservice.v1beta1.NameEntry) => item.serialize(writer));
|
writer.writeRepeatedMessage(4, this.names, (item: dependency_2.vulcanize.registry.v1beta1.NameEntry) => item.serialize(writer));
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -125,16 +125,16 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.params, () => message.params = dependency_2.vulcanize.nameservice.v1beta1.Params.deserialize(reader));
|
reader.readMessage(message.params, () => message.params = dependency_2.vulcanize.registry.v1beta1.Params.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
reader.readMessage(message.records, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_2.vulcanize.nameservice.v1beta1.Record.deserialize(reader), dependency_2.vulcanize.nameservice.v1beta1.Record));
|
reader.readMessage(message.records, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_2.vulcanize.registry.v1beta1.Record.deserialize(reader), dependency_2.vulcanize.registry.v1beta1.Record));
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
reader.readMessage(message.authorities, () => pb_1.Message.addToRepeatedWrapperField(message, 3, dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry.deserialize(reader), dependency_2.vulcanize.nameservice.v1beta1.AuthorityEntry));
|
reader.readMessage(message.authorities, () => pb_1.Message.addToRepeatedWrapperField(message, 3, dependency_2.vulcanize.registry.v1beta1.AuthorityEntry.deserialize(reader), dependency_2.vulcanize.registry.v1beta1.AuthorityEntry));
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
reader.readMessage(message.names, () => pb_1.Message.addToRepeatedWrapperField(message, 4, dependency_2.vulcanize.nameservice.v1beta1.NameEntry.deserialize(reader), dependency_2.vulcanize.nameservice.v1beta1.NameEntry));
|
reader.readMessage(message.names, () => pb_1.Message.addToRepeatedWrapperField(message, 4, dependency_2.vulcanize.registry.v1beta1.NameEntry.deserialize(reader), dependency_2.vulcanize.registry.v1beta1.NameEntry));
|
||||||
break;
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
@ -3,15 +3,15 @@
|
|||||||
/**
|
/**
|
||||||
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
||||||
* compiler version: 3.12.4
|
* compiler version: 3.12.4
|
||||||
* source: vulcanize/nameservice/v1beta1/query.proto
|
* source: vulcanize/registry/v1beta1/query.proto
|
||||||
* git: https://github.com/thesayyn/protoc-gen-ts */
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
||||||
import * as dependency_1 from "./nameservice";
|
import * as dependency_1 from "./registry";
|
||||||
import * as dependency_2 from "./../../../google/api/annotations";
|
import * as dependency_2 from "./../../../google/api/annotations";
|
||||||
import * as dependency_3 from "./../../../cosmos/base/query/v1beta1/pagination";
|
import * as dependency_3 from "./../../../cosmos/base/query/v1beta1/pagination";
|
||||||
import * as dependency_4 from "./../../../gogoproto/gogo";
|
import * as dependency_4 from "./../../../gogoproto/gogo";
|
||||||
import * as dependency_5 from "./../../../cosmos/base/v1beta1/coin";
|
import * as dependency_5 from "./../../../cosmos/base/v1beta1/coin";
|
||||||
import * as pb_1 from "google-protobuf";
|
import * as pb_1 from "google-protobuf";
|
||||||
export namespace vulcanize.nameservice.v1beta1 {
|
export namespace vulcanize.registry.v1beta1 {
|
||||||
export class QueryParamsRequest extends pb_1.Message {
|
export class QueryParamsRequest extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {}) {
|
constructor(data?: any[] | {}) {
|
||||||
@ -55,7 +55,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
export class QueryParamsResponse extends pb_1.Message {
|
export class QueryParamsResponse extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
params?: dependency_1.vulcanize.nameservice.v1beta1.Params;
|
params?: dependency_1.vulcanize.registry.v1beta1.Params;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||||
@ -66,26 +66,26 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get params() {
|
get params() {
|
||||||
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.nameservice.v1beta1.Params, 1) as dependency_1.vulcanize.nameservice.v1beta1.Params;
|
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.registry.v1beta1.Params, 1) as dependency_1.vulcanize.registry.v1beta1.Params;
|
||||||
}
|
}
|
||||||
set params(value: dependency_1.vulcanize.nameservice.v1beta1.Params) {
|
set params(value: dependency_1.vulcanize.registry.v1beta1.Params) {
|
||||||
pb_1.Message.setWrapperField(this, 1, value);
|
pb_1.Message.setWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get has_params() {
|
get has_params() {
|
||||||
return pb_1.Message.getField(this, 1) != null;
|
return pb_1.Message.getField(this, 1) != null;
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
params?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Params.prototype.toObject>;
|
params?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Params.prototype.toObject>;
|
||||||
}): QueryParamsResponse {
|
}): QueryParamsResponse {
|
||||||
const message = new QueryParamsResponse({});
|
const message = new QueryParamsResponse({});
|
||||||
if (data.params != null) {
|
if (data.params != null) {
|
||||||
message.params = dependency_1.vulcanize.nameservice.v1beta1.Params.fromObject(data.params);
|
message.params = dependency_1.vulcanize.registry.v1beta1.Params.fromObject(data.params);
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
params?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Params.prototype.toObject>;
|
params?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Params.prototype.toObject>;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.params != null) {
|
if (this.params != null) {
|
||||||
data.params = this.params.toObject();
|
data.params = this.params.toObject();
|
||||||
@ -108,7 +108,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.params, () => message.params = dependency_1.vulcanize.nameservice.v1beta1.Params.deserialize(reader));
|
reader.readMessage(message.params, () => message.params = dependency_1.vulcanize.registry.v1beta1.Params.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
@ -611,7 +611,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
export class QueryListRecordsResponse extends pb_1.Message {
|
export class QueryListRecordsResponse extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
records?: dependency_1.vulcanize.nameservice.v1beta1.Record[];
|
records?: dependency_1.vulcanize.registry.v1beta1.Record[];
|
||||||
pagination?: dependency_3.cosmos.base.query.v1beta1.PageResponse;
|
pagination?: dependency_3.cosmos.base.query.v1beta1.PageResponse;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
@ -626,9 +626,9 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get records() {
|
get records() {
|
||||||
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.vulcanize.nameservice.v1beta1.Record, 1) as dependency_1.vulcanize.nameservice.v1beta1.Record[];
|
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.vulcanize.registry.v1beta1.Record, 1) as dependency_1.vulcanize.registry.v1beta1.Record[];
|
||||||
}
|
}
|
||||||
set records(value: dependency_1.vulcanize.nameservice.v1beta1.Record[]) {
|
set records(value: dependency_1.vulcanize.registry.v1beta1.Record[]) {
|
||||||
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get pagination() {
|
get pagination() {
|
||||||
@ -641,12 +641,12 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
return pb_1.Message.getField(this, 2) != null;
|
return pb_1.Message.getField(this, 2) != null;
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
records?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Record.prototype.toObject>[];
|
records?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Record.prototype.toObject>[];
|
||||||
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
||||||
}): QueryListRecordsResponse {
|
}): QueryListRecordsResponse {
|
||||||
const message = new QueryListRecordsResponse({});
|
const message = new QueryListRecordsResponse({});
|
||||||
if (data.records != null) {
|
if (data.records != null) {
|
||||||
message.records = data.records.map(item => dependency_1.vulcanize.nameservice.v1beta1.Record.fromObject(item));
|
message.records = data.records.map(item => dependency_1.vulcanize.registry.v1beta1.Record.fromObject(item));
|
||||||
}
|
}
|
||||||
if (data.pagination != null) {
|
if (data.pagination != null) {
|
||||||
message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.fromObject(data.pagination);
|
message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.fromObject(data.pagination);
|
||||||
@ -655,11 +655,11 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
records?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Record.prototype.toObject>[];
|
records?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Record.prototype.toObject>[];
|
||||||
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.records != null) {
|
if (this.records != null) {
|
||||||
data.records = this.records.map((item: dependency_1.vulcanize.nameservice.v1beta1.Record) => item.toObject());
|
data.records = this.records.map((item: dependency_1.vulcanize.registry.v1beta1.Record) => item.toObject());
|
||||||
}
|
}
|
||||||
if (this.pagination != null) {
|
if (this.pagination != null) {
|
||||||
data.pagination = this.pagination.toObject();
|
data.pagination = this.pagination.toObject();
|
||||||
@ -671,7 +671,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
||||||
const writer = w || new pb_1.BinaryWriter();
|
const writer = w || new pb_1.BinaryWriter();
|
||||||
if (this.records.length)
|
if (this.records.length)
|
||||||
writer.writeRepeatedMessage(1, this.records, (item: dependency_1.vulcanize.nameservice.v1beta1.Record) => item.serialize(writer));
|
writer.writeRepeatedMessage(1, this.records, (item: dependency_1.vulcanize.registry.v1beta1.Record) => item.serialize(writer));
|
||||||
if (this.has_pagination)
|
if (this.has_pagination)
|
||||||
writer.writeMessage(2, this.pagination, () => this.pagination.serialize(writer));
|
writer.writeMessage(2, this.pagination, () => this.pagination.serialize(writer));
|
||||||
if (!w)
|
if (!w)
|
||||||
@ -684,7 +684,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.records, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_1.vulcanize.nameservice.v1beta1.Record.deserialize(reader), dependency_1.vulcanize.nameservice.v1beta1.Record));
|
reader.readMessage(message.records, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_1.vulcanize.registry.v1beta1.Record.deserialize(reader), dependency_1.vulcanize.registry.v1beta1.Record));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
reader.readMessage(message.pagination, () => message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.deserialize(reader));
|
reader.readMessage(message.pagination, () => message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.deserialize(reader));
|
||||||
@ -701,7 +701,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
return QueryListRecordsResponse.deserialize(bytes);
|
return QueryListRecordsResponse.deserialize(bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class QueryRecordByIdRequest extends pb_1.Message {
|
export class QueryRecordByIDRequest extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
id?: string;
|
id?: string;
|
||||||
@ -722,8 +722,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
id?: string;
|
id?: string;
|
||||||
}): QueryRecordByIdRequest {
|
}): QueryRecordByIDRequest {
|
||||||
const message = new QueryRecordByIdRequest({});
|
const message = new QueryRecordByIDRequest({});
|
||||||
if (data.id != null) {
|
if (data.id != null) {
|
||||||
message.id = data.id;
|
message.id = data.id;
|
||||||
}
|
}
|
||||||
@ -747,8 +747,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryRecordByIdRequest {
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryRecordByIDRequest {
|
||||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryRecordByIdRequest();
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryRecordByIDRequest();
|
||||||
while (reader.nextField()) {
|
while (reader.nextField()) {
|
||||||
if (reader.isEndGroup())
|
if (reader.isEndGroup())
|
||||||
break;
|
break;
|
||||||
@ -764,14 +764,14 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
serializeBinary(): Uint8Array {
|
serializeBinary(): Uint8Array {
|
||||||
return this.serialize();
|
return this.serialize();
|
||||||
}
|
}
|
||||||
static deserializeBinary(bytes: Uint8Array): QueryRecordByIdRequest {
|
static deserializeBinary(bytes: Uint8Array): QueryRecordByIDRequest {
|
||||||
return QueryRecordByIdRequest.deserialize(bytes);
|
return QueryRecordByIDRequest.deserialize(bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class QueryRecordByIdResponse extends pb_1.Message {
|
export class QueryRecordByIDResponse extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
record?: dependency_1.vulcanize.nameservice.v1beta1.Record;
|
record?: dependency_1.vulcanize.registry.v1beta1.Record;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||||
@ -782,26 +782,26 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get record() {
|
get record() {
|
||||||
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.nameservice.v1beta1.Record, 1) as dependency_1.vulcanize.nameservice.v1beta1.Record;
|
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.registry.v1beta1.Record, 1) as dependency_1.vulcanize.registry.v1beta1.Record;
|
||||||
}
|
}
|
||||||
set record(value: dependency_1.vulcanize.nameservice.v1beta1.Record) {
|
set record(value: dependency_1.vulcanize.registry.v1beta1.Record) {
|
||||||
pb_1.Message.setWrapperField(this, 1, value);
|
pb_1.Message.setWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get has_record() {
|
get has_record() {
|
||||||
return pb_1.Message.getField(this, 1) != null;
|
return pb_1.Message.getField(this, 1) != null;
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
record?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Record.prototype.toObject>;
|
record?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Record.prototype.toObject>;
|
||||||
}): QueryRecordByIdResponse {
|
}): QueryRecordByIDResponse {
|
||||||
const message = new QueryRecordByIdResponse({});
|
const message = new QueryRecordByIDResponse({});
|
||||||
if (data.record != null) {
|
if (data.record != null) {
|
||||||
message.record = dependency_1.vulcanize.nameservice.v1beta1.Record.fromObject(data.record);
|
message.record = dependency_1.vulcanize.registry.v1beta1.Record.fromObject(data.record);
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
record?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Record.prototype.toObject>;
|
record?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Record.prototype.toObject>;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.record != null) {
|
if (this.record != null) {
|
||||||
data.record = this.record.toObject();
|
data.record = this.record.toObject();
|
||||||
@ -817,14 +817,14 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryRecordByIdResponse {
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryRecordByIDResponse {
|
||||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryRecordByIdResponse();
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryRecordByIDResponse();
|
||||||
while (reader.nextField()) {
|
while (reader.nextField()) {
|
||||||
if (reader.isEndGroup())
|
if (reader.isEndGroup())
|
||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.record, () => message.record = dependency_1.vulcanize.nameservice.v1beta1.Record.deserialize(reader));
|
reader.readMessage(message.record, () => message.record = dependency_1.vulcanize.registry.v1beta1.Record.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
@ -834,11 +834,11 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
serializeBinary(): Uint8Array {
|
serializeBinary(): Uint8Array {
|
||||||
return this.serialize();
|
return this.serialize();
|
||||||
}
|
}
|
||||||
static deserializeBinary(bytes: Uint8Array): QueryRecordByIdResponse {
|
static deserializeBinary(bytes: Uint8Array): QueryRecordByIDResponse {
|
||||||
return QueryRecordByIdResponse.deserialize(bytes);
|
return QueryRecordByIDResponse.deserialize(bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class QueryRecordByBondIdRequest extends pb_1.Message {
|
export class QueryRecordByBondIDRequest extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
id?: string;
|
id?: string;
|
||||||
@ -873,8 +873,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
id?: string;
|
id?: string;
|
||||||
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageRequest.prototype.toObject>;
|
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageRequest.prototype.toObject>;
|
||||||
}): QueryRecordByBondIdRequest {
|
}): QueryRecordByBondIDRequest {
|
||||||
const message = new QueryRecordByBondIdRequest({});
|
const message = new QueryRecordByBondIDRequest({});
|
||||||
if (data.id != null) {
|
if (data.id != null) {
|
||||||
message.id = data.id;
|
message.id = data.id;
|
||||||
}
|
}
|
||||||
@ -907,8 +907,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryRecordByBondIdRequest {
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryRecordByBondIDRequest {
|
||||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryRecordByBondIdRequest();
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryRecordByBondIDRequest();
|
||||||
while (reader.nextField()) {
|
while (reader.nextField()) {
|
||||||
if (reader.isEndGroup())
|
if (reader.isEndGroup())
|
||||||
break;
|
break;
|
||||||
@ -927,14 +927,14 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
serializeBinary(): Uint8Array {
|
serializeBinary(): Uint8Array {
|
||||||
return this.serialize();
|
return this.serialize();
|
||||||
}
|
}
|
||||||
static deserializeBinary(bytes: Uint8Array): QueryRecordByBondIdRequest {
|
static deserializeBinary(bytes: Uint8Array): QueryRecordByBondIDRequest {
|
||||||
return QueryRecordByBondIdRequest.deserialize(bytes);
|
return QueryRecordByBondIDRequest.deserialize(bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class QueryRecordByBondIdResponse extends pb_1.Message {
|
export class QueryRecordByBondIDResponse extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
records?: dependency_1.vulcanize.nameservice.v1beta1.Record[];
|
records?: dependency_1.vulcanize.registry.v1beta1.Record[];
|
||||||
pagination?: dependency_3.cosmos.base.query.v1beta1.PageResponse;
|
pagination?: dependency_3.cosmos.base.query.v1beta1.PageResponse;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
@ -949,9 +949,9 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get records() {
|
get records() {
|
||||||
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.vulcanize.nameservice.v1beta1.Record, 1) as dependency_1.vulcanize.nameservice.v1beta1.Record[];
|
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.vulcanize.registry.v1beta1.Record, 1) as dependency_1.vulcanize.registry.v1beta1.Record[];
|
||||||
}
|
}
|
||||||
set records(value: dependency_1.vulcanize.nameservice.v1beta1.Record[]) {
|
set records(value: dependency_1.vulcanize.registry.v1beta1.Record[]) {
|
||||||
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get pagination() {
|
get pagination() {
|
||||||
@ -964,12 +964,12 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
return pb_1.Message.getField(this, 2) != null;
|
return pb_1.Message.getField(this, 2) != null;
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
records?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Record.prototype.toObject>[];
|
records?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Record.prototype.toObject>[];
|
||||||
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
||||||
}): QueryRecordByBondIdResponse {
|
}): QueryRecordByBondIDResponse {
|
||||||
const message = new QueryRecordByBondIdResponse({});
|
const message = new QueryRecordByBondIDResponse({});
|
||||||
if (data.records != null) {
|
if (data.records != null) {
|
||||||
message.records = data.records.map(item => dependency_1.vulcanize.nameservice.v1beta1.Record.fromObject(item));
|
message.records = data.records.map(item => dependency_1.vulcanize.registry.v1beta1.Record.fromObject(item));
|
||||||
}
|
}
|
||||||
if (data.pagination != null) {
|
if (data.pagination != null) {
|
||||||
message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.fromObject(data.pagination);
|
message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.fromObject(data.pagination);
|
||||||
@ -978,11 +978,11 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
records?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Record.prototype.toObject>[];
|
records?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Record.prototype.toObject>[];
|
||||||
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.records != null) {
|
if (this.records != null) {
|
||||||
data.records = this.records.map((item: dependency_1.vulcanize.nameservice.v1beta1.Record) => item.toObject());
|
data.records = this.records.map((item: dependency_1.vulcanize.registry.v1beta1.Record) => item.toObject());
|
||||||
}
|
}
|
||||||
if (this.pagination != null) {
|
if (this.pagination != null) {
|
||||||
data.pagination = this.pagination.toObject();
|
data.pagination = this.pagination.toObject();
|
||||||
@ -994,20 +994,20 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
||||||
const writer = w || new pb_1.BinaryWriter();
|
const writer = w || new pb_1.BinaryWriter();
|
||||||
if (this.records.length)
|
if (this.records.length)
|
||||||
writer.writeRepeatedMessage(1, this.records, (item: dependency_1.vulcanize.nameservice.v1beta1.Record) => item.serialize(writer));
|
writer.writeRepeatedMessage(1, this.records, (item: dependency_1.vulcanize.registry.v1beta1.Record) => item.serialize(writer));
|
||||||
if (this.has_pagination)
|
if (this.has_pagination)
|
||||||
writer.writeMessage(2, this.pagination, () => this.pagination.serialize(writer));
|
writer.writeMessage(2, this.pagination, () => this.pagination.serialize(writer));
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryRecordByBondIdResponse {
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryRecordByBondIDResponse {
|
||||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryRecordByBondIdResponse();
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryRecordByBondIDResponse();
|
||||||
while (reader.nextField()) {
|
while (reader.nextField()) {
|
||||||
if (reader.isEndGroup())
|
if (reader.isEndGroup())
|
||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.records, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_1.vulcanize.nameservice.v1beta1.Record.deserialize(reader), dependency_1.vulcanize.nameservice.v1beta1.Record));
|
reader.readMessage(message.records, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_1.vulcanize.registry.v1beta1.Record.deserialize(reader), dependency_1.vulcanize.registry.v1beta1.Record));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
reader.readMessage(message.pagination, () => message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.deserialize(reader));
|
reader.readMessage(message.pagination, () => message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.deserialize(reader));
|
||||||
@ -1020,19 +1020,19 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
serializeBinary(): Uint8Array {
|
serializeBinary(): Uint8Array {
|
||||||
return this.serialize();
|
return this.serialize();
|
||||||
}
|
}
|
||||||
static deserializeBinary(bytes: Uint8Array): QueryRecordByBondIdResponse {
|
static deserializeBinary(bytes: Uint8Array): QueryRecordByBondIDResponse {
|
||||||
return QueryRecordByBondIdResponse.deserialize(bytes);
|
return QueryRecordByBondIDResponse.deserialize(bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class GetNameServiceModuleBalanceRequest extends pb_1.Message {
|
export class GetRegistryModuleBalanceRequest extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {}) {
|
constructor(data?: any[] | {}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||||
if (!Array.isArray(data) && typeof data == "object") { }
|
if (!Array.isArray(data) && typeof data == "object") { }
|
||||||
}
|
}
|
||||||
static fromObject(data: {}): GetNameServiceModuleBalanceRequest {
|
static fromObject(data: {}): GetRegistryModuleBalanceRequest {
|
||||||
const message = new GetNameServiceModuleBalanceRequest({});
|
const message = new GetRegistryModuleBalanceRequest({});
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
@ -1046,8 +1046,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetNameServiceModuleBalanceRequest {
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetRegistryModuleBalanceRequest {
|
||||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetNameServiceModuleBalanceRequest();
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetRegistryModuleBalanceRequest();
|
||||||
while (reader.nextField()) {
|
while (reader.nextField()) {
|
||||||
if (reader.isEndGroup())
|
if (reader.isEndGroup())
|
||||||
break;
|
break;
|
||||||
@ -1060,11 +1060,11 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
serializeBinary(): Uint8Array {
|
serializeBinary(): Uint8Array {
|
||||||
return this.serialize();
|
return this.serialize();
|
||||||
}
|
}
|
||||||
static deserializeBinary(bytes: Uint8Array): GetNameServiceModuleBalanceRequest {
|
static deserializeBinary(bytes: Uint8Array): GetRegistryModuleBalanceRequest {
|
||||||
return GetNameServiceModuleBalanceRequest.deserialize(bytes);
|
return GetRegistryModuleBalanceRequest.deserialize(bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class GetNameServiceModuleBalanceResponse extends pb_1.Message {
|
export class GetRegistryModuleBalanceResponse extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
balances?: AccountBalance[];
|
balances?: AccountBalance[];
|
||||||
@ -1085,8 +1085,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
balances?: ReturnType<typeof AccountBalance.prototype.toObject>[];
|
balances?: ReturnType<typeof AccountBalance.prototype.toObject>[];
|
||||||
}): GetNameServiceModuleBalanceResponse {
|
}): GetRegistryModuleBalanceResponse {
|
||||||
const message = new GetNameServiceModuleBalanceResponse({});
|
const message = new GetRegistryModuleBalanceResponse({});
|
||||||
if (data.balances != null) {
|
if (data.balances != null) {
|
||||||
message.balances = data.balances.map(item => AccountBalance.fromObject(item));
|
message.balances = data.balances.map(item => AccountBalance.fromObject(item));
|
||||||
}
|
}
|
||||||
@ -1110,8 +1110,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetNameServiceModuleBalanceResponse {
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetRegistryModuleBalanceResponse {
|
||||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetNameServiceModuleBalanceResponse();
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetRegistryModuleBalanceResponse();
|
||||||
while (reader.nextField()) {
|
while (reader.nextField()) {
|
||||||
if (reader.isEndGroup())
|
if (reader.isEndGroup())
|
||||||
break;
|
break;
|
||||||
@ -1127,8 +1127,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
serializeBinary(): Uint8Array {
|
serializeBinary(): Uint8Array {
|
||||||
return this.serialize();
|
return this.serialize();
|
||||||
}
|
}
|
||||||
static deserializeBinary(bytes: Uint8Array): GetNameServiceModuleBalanceResponse {
|
static deserializeBinary(bytes: Uint8Array): GetRegistryModuleBalanceResponse {
|
||||||
return GetNameServiceModuleBalanceResponse.deserialize(bytes);
|
return GetRegistryModuleBalanceResponse.deserialize(bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export class AccountBalance extends pb_1.Message {
|
export class AccountBalance extends pb_1.Message {
|
||||||
@ -1294,7 +1294,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
export class QueryListNameRecordsResponse extends pb_1.Message {
|
export class QueryListNameRecordsResponse extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
names?: dependency_1.vulcanize.nameservice.v1beta1.NameEntry[];
|
names?: dependency_1.vulcanize.registry.v1beta1.NameEntry[];
|
||||||
pagination?: dependency_3.cosmos.base.query.v1beta1.PageResponse;
|
pagination?: dependency_3.cosmos.base.query.v1beta1.PageResponse;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
@ -1309,9 +1309,9 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get names() {
|
get names() {
|
||||||
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.vulcanize.nameservice.v1beta1.NameEntry, 1) as dependency_1.vulcanize.nameservice.v1beta1.NameEntry[];
|
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.vulcanize.registry.v1beta1.NameEntry, 1) as dependency_1.vulcanize.registry.v1beta1.NameEntry[];
|
||||||
}
|
}
|
||||||
set names(value: dependency_1.vulcanize.nameservice.v1beta1.NameEntry[]) {
|
set names(value: dependency_1.vulcanize.registry.v1beta1.NameEntry[]) {
|
||||||
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get pagination() {
|
get pagination() {
|
||||||
@ -1324,12 +1324,12 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
return pb_1.Message.getField(this, 2) != null;
|
return pb_1.Message.getField(this, 2) != null;
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
names?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.NameEntry.prototype.toObject>[];
|
names?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.NameEntry.prototype.toObject>[];
|
||||||
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
||||||
}): QueryListNameRecordsResponse {
|
}): QueryListNameRecordsResponse {
|
||||||
const message = new QueryListNameRecordsResponse({});
|
const message = new QueryListNameRecordsResponse({});
|
||||||
if (data.names != null) {
|
if (data.names != null) {
|
||||||
message.names = data.names.map(item => dependency_1.vulcanize.nameservice.v1beta1.NameEntry.fromObject(item));
|
message.names = data.names.map(item => dependency_1.vulcanize.registry.v1beta1.NameEntry.fromObject(item));
|
||||||
}
|
}
|
||||||
if (data.pagination != null) {
|
if (data.pagination != null) {
|
||||||
message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.fromObject(data.pagination);
|
message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.fromObject(data.pagination);
|
||||||
@ -1338,11 +1338,11 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
names?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.NameEntry.prototype.toObject>[];
|
names?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.NameEntry.prototype.toObject>[];
|
||||||
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
pagination?: ReturnType<typeof dependency_3.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.names != null) {
|
if (this.names != null) {
|
||||||
data.names = this.names.map((item: dependency_1.vulcanize.nameservice.v1beta1.NameEntry) => item.toObject());
|
data.names = this.names.map((item: dependency_1.vulcanize.registry.v1beta1.NameEntry) => item.toObject());
|
||||||
}
|
}
|
||||||
if (this.pagination != null) {
|
if (this.pagination != null) {
|
||||||
data.pagination = this.pagination.toObject();
|
data.pagination = this.pagination.toObject();
|
||||||
@ -1354,7 +1354,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
||||||
const writer = w || new pb_1.BinaryWriter();
|
const writer = w || new pb_1.BinaryWriter();
|
||||||
if (this.names.length)
|
if (this.names.length)
|
||||||
writer.writeRepeatedMessage(1, this.names, (item: dependency_1.vulcanize.nameservice.v1beta1.NameEntry) => item.serialize(writer));
|
writer.writeRepeatedMessage(1, this.names, (item: dependency_1.vulcanize.registry.v1beta1.NameEntry) => item.serialize(writer));
|
||||||
if (this.has_pagination)
|
if (this.has_pagination)
|
||||||
writer.writeMessage(2, this.pagination, () => this.pagination.serialize(writer));
|
writer.writeMessage(2, this.pagination, () => this.pagination.serialize(writer));
|
||||||
if (!w)
|
if (!w)
|
||||||
@ -1367,7 +1367,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.names, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_1.vulcanize.nameservice.v1beta1.NameEntry.deserialize(reader), dependency_1.vulcanize.nameservice.v1beta1.NameEntry));
|
reader.readMessage(message.names, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_1.vulcanize.registry.v1beta1.NameEntry.deserialize(reader), dependency_1.vulcanize.registry.v1beta1.NameEntry));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
reader.readMessage(message.pagination, () => message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.deserialize(reader));
|
reader.readMessage(message.pagination, () => message.pagination = dependency_3.cosmos.base.query.v1beta1.PageResponse.deserialize(reader));
|
||||||
@ -1454,7 +1454,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
export class QueryWhoisResponse extends pb_1.Message {
|
export class QueryWhoisResponse extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
name_authority?: dependency_1.vulcanize.nameservice.v1beta1.NameAuthority;
|
name_authority?: dependency_1.vulcanize.registry.v1beta1.NameAuthority;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||||
@ -1465,26 +1465,26 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get name_authority() {
|
get name_authority() {
|
||||||
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.nameservice.v1beta1.NameAuthority, 1) as dependency_1.vulcanize.nameservice.v1beta1.NameAuthority;
|
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.registry.v1beta1.NameAuthority, 1) as dependency_1.vulcanize.registry.v1beta1.NameAuthority;
|
||||||
}
|
}
|
||||||
set name_authority(value: dependency_1.vulcanize.nameservice.v1beta1.NameAuthority) {
|
set name_authority(value: dependency_1.vulcanize.registry.v1beta1.NameAuthority) {
|
||||||
pb_1.Message.setWrapperField(this, 1, value);
|
pb_1.Message.setWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get has_name_authority() {
|
get has_name_authority() {
|
||||||
return pb_1.Message.getField(this, 1) != null;
|
return pb_1.Message.getField(this, 1) != null;
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
name_authority?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.NameAuthority.prototype.toObject>;
|
name_authority?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.NameAuthority.prototype.toObject>;
|
||||||
}): QueryWhoisResponse {
|
}): QueryWhoisResponse {
|
||||||
const message = new QueryWhoisResponse({});
|
const message = new QueryWhoisResponse({});
|
||||||
if (data.name_authority != null) {
|
if (data.name_authority != null) {
|
||||||
message.name_authority = dependency_1.vulcanize.nameservice.v1beta1.NameAuthority.fromObject(data.name_authority);
|
message.name_authority = dependency_1.vulcanize.registry.v1beta1.NameAuthority.fromObject(data.name_authority);
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
name_authority?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.NameAuthority.prototype.toObject>;
|
name_authority?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.NameAuthority.prototype.toObject>;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.name_authority != null) {
|
if (this.name_authority != null) {
|
||||||
data.name_authority = this.name_authority.toObject();
|
data.name_authority = this.name_authority.toObject();
|
||||||
@ -1507,7 +1507,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.name_authority, () => message.name_authority = dependency_1.vulcanize.nameservice.v1beta1.NameAuthority.deserialize(reader));
|
reader.readMessage(message.name_authority, () => message.name_authority = dependency_1.vulcanize.registry.v1beta1.NameAuthority.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
@ -1591,7 +1591,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
export class QueryLookupCrnResponse extends pb_1.Message {
|
export class QueryLookupCrnResponse extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
name?: dependency_1.vulcanize.nameservice.v1beta1.NameRecord;
|
name?: dependency_1.vulcanize.registry.v1beta1.NameRecord;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||||
@ -1602,26 +1602,26 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get name() {
|
get name() {
|
||||||
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.nameservice.v1beta1.NameRecord, 1) as dependency_1.vulcanize.nameservice.v1beta1.NameRecord;
|
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.registry.v1beta1.NameRecord, 1) as dependency_1.vulcanize.registry.v1beta1.NameRecord;
|
||||||
}
|
}
|
||||||
set name(value: dependency_1.vulcanize.nameservice.v1beta1.NameRecord) {
|
set name(value: dependency_1.vulcanize.registry.v1beta1.NameRecord) {
|
||||||
pb_1.Message.setWrapperField(this, 1, value);
|
pb_1.Message.setWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get has_name() {
|
get has_name() {
|
||||||
return pb_1.Message.getField(this, 1) != null;
|
return pb_1.Message.getField(this, 1) != null;
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
name?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.NameRecord.prototype.toObject>;
|
name?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.NameRecord.prototype.toObject>;
|
||||||
}): QueryLookupCrnResponse {
|
}): QueryLookupCrnResponse {
|
||||||
const message = new QueryLookupCrnResponse({});
|
const message = new QueryLookupCrnResponse({});
|
||||||
if (data.name != null) {
|
if (data.name != null) {
|
||||||
message.name = dependency_1.vulcanize.nameservice.v1beta1.NameRecord.fromObject(data.name);
|
message.name = dependency_1.vulcanize.registry.v1beta1.NameRecord.fromObject(data.name);
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
name?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.NameRecord.prototype.toObject>;
|
name?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.NameRecord.prototype.toObject>;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.name != null) {
|
if (this.name != null) {
|
||||||
data.name = this.name.toObject();
|
data.name = this.name.toObject();
|
||||||
@ -1644,7 +1644,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.name, () => message.name = dependency_1.vulcanize.nameservice.v1beta1.NameRecord.deserialize(reader));
|
reader.readMessage(message.name, () => message.name = dependency_1.vulcanize.registry.v1beta1.NameRecord.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
@ -1728,7 +1728,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
export class QueryResolveCrnResponse extends pb_1.Message {
|
export class QueryResolveCrnResponse extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
record?: dependency_1.vulcanize.nameservice.v1beta1.Record;
|
record?: dependency_1.vulcanize.registry.v1beta1.Record;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
||||||
@ -1739,26 +1739,26 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get record() {
|
get record() {
|
||||||
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.nameservice.v1beta1.Record, 1) as dependency_1.vulcanize.nameservice.v1beta1.Record;
|
return pb_1.Message.getWrapperField(this, dependency_1.vulcanize.registry.v1beta1.Record, 1) as dependency_1.vulcanize.registry.v1beta1.Record;
|
||||||
}
|
}
|
||||||
set record(value: dependency_1.vulcanize.nameservice.v1beta1.Record) {
|
set record(value: dependency_1.vulcanize.registry.v1beta1.Record) {
|
||||||
pb_1.Message.setWrapperField(this, 1, value);
|
pb_1.Message.setWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get has_record() {
|
get has_record() {
|
||||||
return pb_1.Message.getField(this, 1) != null;
|
return pb_1.Message.getField(this, 1) != null;
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
record?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Record.prototype.toObject>;
|
record?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Record.prototype.toObject>;
|
||||||
}): QueryResolveCrnResponse {
|
}): QueryResolveCrnResponse {
|
||||||
const message = new QueryResolveCrnResponse({});
|
const message = new QueryResolveCrnResponse({});
|
||||||
if (data.record != null) {
|
if (data.record != null) {
|
||||||
message.record = dependency_1.vulcanize.nameservice.v1beta1.Record.fromObject(data.record);
|
message.record = dependency_1.vulcanize.registry.v1beta1.Record.fromObject(data.record);
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
record?: ReturnType<typeof dependency_1.vulcanize.nameservice.v1beta1.Record.prototype.toObject>;
|
record?: ReturnType<typeof dependency_1.vulcanize.registry.v1beta1.Record.prototype.toObject>;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.record != null) {
|
if (this.record != null) {
|
||||||
data.record = this.record.toObject();
|
data.record = this.record.toObject();
|
||||||
@ -1781,7 +1781,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.record, () => message.record = dependency_1.vulcanize.nameservice.v1beta1.Record.deserialize(reader));
|
reader.readMessage(message.record, () => message.record = dependency_1.vulcanize.registry.v1beta1.Record.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
@ -3,15 +3,15 @@
|
|||||||
/**
|
/**
|
||||||
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
||||||
* compiler version: 3.12.4
|
* compiler version: 3.12.4
|
||||||
* source: vulcanize/nameservice/v1beta1/nameservice.proto
|
* source: vulcanize/registry/v1beta1/registry.proto
|
||||||
* git: https://github.com/thesayyn/protoc-gen-ts */
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
||||||
import * as dependency_1 from "./../../../google/protobuf/duration";
|
import * as dependency_1 from "./../../../google/protobuf/duration";
|
||||||
import * as dependency_2 from "./../../../google/protobuf/timestamp";
|
import * as dependency_2 from "./../../../google/protobuf/timestamp";
|
||||||
import * as dependency_3 from "./../../../google/protobuf/any";
|
import * as dependency_3 from "./../../../gogoproto/gogo";
|
||||||
import * as dependency_4 from "./../../../cosmos/base/v1beta1/coin";
|
import * as dependency_4 from "./../../../cosmos/base/v1beta1/coin";
|
||||||
import * as dependency_5 from "./../../../gogoproto/gogo";
|
import * as dependency_5 from "./../../../google/protobuf/any";
|
||||||
import * as pb_1 from "google-protobuf";
|
import * as pb_1 from "google-protobuf";
|
||||||
export namespace vulcanize.nameservice.v1beta1 {
|
export namespace vulcanize.registry.v1beta1 {
|
||||||
export class Params extends pb_1.Message {
|
export class Params extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
@ -348,8 +348,9 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
expiry_time?: string;
|
expiry_time?: string;
|
||||||
deleted?: boolean;
|
deleted?: boolean;
|
||||||
owners?: string[];
|
owners?: string[];
|
||||||
attributes?: dependency_3.google.protobuf.Any;
|
attributes?: dependency_5.google.protobuf.Any;
|
||||||
names?: string[];
|
names?: string[];
|
||||||
|
type?: string;
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6, 8], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6, 8], this.#one_of_decls);
|
||||||
@ -378,6 +379,9 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
if ("names" in data && data.names != undefined) {
|
if ("names" in data && data.names != undefined) {
|
||||||
this.names = data.names;
|
this.names = data.names;
|
||||||
}
|
}
|
||||||
|
if ("type" in data && data.type != undefined) {
|
||||||
|
this.type = data.type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get id() {
|
get id() {
|
||||||
@ -417,9 +421,9 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
pb_1.Message.setField(this, 6, value);
|
pb_1.Message.setField(this, 6, value);
|
||||||
}
|
}
|
||||||
get attributes() {
|
get attributes() {
|
||||||
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Any, 7) as dependency_3.google.protobuf.Any;
|
return pb_1.Message.getWrapperField(this, dependency_5.google.protobuf.Any, 7) as dependency_5.google.protobuf.Any;
|
||||||
}
|
}
|
||||||
set attributes(value: dependency_3.google.protobuf.Any) {
|
set attributes(value: dependency_5.google.protobuf.Any) {
|
||||||
pb_1.Message.setWrapperField(this, 7, value);
|
pb_1.Message.setWrapperField(this, 7, value);
|
||||||
}
|
}
|
||||||
get has_attributes() {
|
get has_attributes() {
|
||||||
@ -431,6 +435,12 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
set names(value: string[]) {
|
set names(value: string[]) {
|
||||||
pb_1.Message.setField(this, 8, value);
|
pb_1.Message.setField(this, 8, value);
|
||||||
}
|
}
|
||||||
|
get type() {
|
||||||
|
return pb_1.Message.getFieldWithDefault(this, 9, "") as string;
|
||||||
|
}
|
||||||
|
set type(value: string) {
|
||||||
|
pb_1.Message.setField(this, 9, value);
|
||||||
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
id?: string;
|
id?: string;
|
||||||
bond_id?: string;
|
bond_id?: string;
|
||||||
@ -438,8 +448,9 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
expiry_time?: string;
|
expiry_time?: string;
|
||||||
deleted?: boolean;
|
deleted?: boolean;
|
||||||
owners?: string[];
|
owners?: string[];
|
||||||
attributes?: ReturnType<typeof dependency_3.google.protobuf.Any.prototype.toObject>;
|
attributes?: ReturnType<typeof dependency_5.google.protobuf.Any.prototype.toObject>;
|
||||||
names?: string[];
|
names?: string[];
|
||||||
|
type?: string;
|
||||||
}): Record {
|
}): Record {
|
||||||
const message = new Record({});
|
const message = new Record({});
|
||||||
if (data.id != null) {
|
if (data.id != null) {
|
||||||
@ -461,11 +472,14 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
message.owners = data.owners;
|
message.owners = data.owners;
|
||||||
}
|
}
|
||||||
if (data.attributes != null) {
|
if (data.attributes != null) {
|
||||||
message.attributes = dependency_3.google.protobuf.Any.fromObject(data.attributes);
|
message.attributes = dependency_5.google.protobuf.Any.fromObject(data.attributes);
|
||||||
}
|
}
|
||||||
if (data.names != null) {
|
if (data.names != null) {
|
||||||
message.names = data.names;
|
message.names = data.names;
|
||||||
}
|
}
|
||||||
|
if (data.type != null) {
|
||||||
|
message.type = data.type;
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
@ -476,8 +490,9 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
expiry_time?: string;
|
expiry_time?: string;
|
||||||
deleted?: boolean;
|
deleted?: boolean;
|
||||||
owners?: string[];
|
owners?: string[];
|
||||||
attributes?: ReturnType<typeof dependency_3.google.protobuf.Any.prototype.toObject>;
|
attributes?: ReturnType<typeof dependency_5.google.protobuf.Any.prototype.toObject>;
|
||||||
names?: string[];
|
names?: string[];
|
||||||
|
type?: string;
|
||||||
} = {};
|
} = {};
|
||||||
if (this.id != null) {
|
if (this.id != null) {
|
||||||
data.id = this.id;
|
data.id = this.id;
|
||||||
@ -503,6 +518,9 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
if (this.names != null) {
|
if (this.names != null) {
|
||||||
data.names = this.names;
|
data.names = this.names;
|
||||||
}
|
}
|
||||||
|
if (this.type != null) {
|
||||||
|
data.type = this.type;
|
||||||
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
serialize(): Uint8Array;
|
serialize(): Uint8Array;
|
||||||
@ -525,6 +543,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
writer.writeMessage(7, this.attributes, () => this.attributes.serialize(writer));
|
writer.writeMessage(7, this.attributes, () => this.attributes.serialize(writer));
|
||||||
if (this.names.length)
|
if (this.names.length)
|
||||||
writer.writeRepeatedString(8, this.names);
|
writer.writeRepeatedString(8, this.names);
|
||||||
|
if (this.type.length)
|
||||||
|
writer.writeString(9, this.type);
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -553,11 +573,14 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
pb_1.Message.addToRepeatedField(message, 6, reader.readString());
|
pb_1.Message.addToRepeatedField(message, 6, reader.readString());
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
reader.readMessage(message.attributes, () => message.attributes = dependency_3.google.protobuf.Any.deserialize(reader));
|
reader.readMessage(message.attributes, () => message.attributes = dependency_5.google.protobuf.Any.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
pb_1.Message.addToRepeatedField(message, 8, reader.readString());
|
pb_1.Message.addToRepeatedField(message, 8, reader.readString());
|
||||||
break;
|
break;
|
||||||
|
case 9:
|
||||||
|
message.type = reader.readString();
|
||||||
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3,12 +3,12 @@
|
|||||||
/**
|
/**
|
||||||
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
||||||
* compiler version: 3.12.4
|
* compiler version: 3.12.4
|
||||||
* source: vulcanize/nameservice/v1beta1/tx.proto
|
* source: vulcanize/registry/v1beta1/tx.proto
|
||||||
* git: https://github.com/thesayyn/protoc-gen-ts */
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
||||||
import * as dependency_1 from "./../../../gogoproto/gogo";
|
import * as dependency_1 from "./../../../gogoproto/gogo";
|
||||||
import * as dependency_2 from "./nameservice";
|
import * as dependency_2 from "./registry";
|
||||||
import * as pb_1 from "google-protobuf";
|
import * as pb_1 from "google-protobuf";
|
||||||
export namespace vulcanize.nameservice.v1beta1 {
|
export namespace vulcanize.registry.v1beta1 {
|
||||||
export class MsgSetRecord extends pb_1.Message {
|
export class MsgSetRecord extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
@ -195,8 +195,8 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
export class Payload extends pb_1.Message {
|
export class Payload extends pb_1.Message {
|
||||||
#one_of_decls: number[][] = [];
|
#one_of_decls: number[][] = [];
|
||||||
constructor(data?: any[] | {
|
constructor(data?: any[] | {
|
||||||
record?: dependency_2.vulcanize.nameservice.v1beta1.Record;
|
record?: dependency_2.vulcanize.registry.v1beta1.Record;
|
||||||
signatures?: dependency_2.vulcanize.nameservice.v1beta1.Signature[];
|
signatures?: dependency_2.vulcanize.registry.v1beta1.Signature[];
|
||||||
}) {
|
}) {
|
||||||
super();
|
super();
|
||||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
||||||
@ -210,43 +210,43 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get record() {
|
get record() {
|
||||||
return pb_1.Message.getWrapperField(this, dependency_2.vulcanize.nameservice.v1beta1.Record, 1) as dependency_2.vulcanize.nameservice.v1beta1.Record;
|
return pb_1.Message.getWrapperField(this, dependency_2.vulcanize.registry.v1beta1.Record, 1) as dependency_2.vulcanize.registry.v1beta1.Record;
|
||||||
}
|
}
|
||||||
set record(value: dependency_2.vulcanize.nameservice.v1beta1.Record) {
|
set record(value: dependency_2.vulcanize.registry.v1beta1.Record) {
|
||||||
pb_1.Message.setWrapperField(this, 1, value);
|
pb_1.Message.setWrapperField(this, 1, value);
|
||||||
}
|
}
|
||||||
get has_record() {
|
get has_record() {
|
||||||
return pb_1.Message.getField(this, 1) != null;
|
return pb_1.Message.getField(this, 1) != null;
|
||||||
}
|
}
|
||||||
get signatures() {
|
get signatures() {
|
||||||
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.nameservice.v1beta1.Signature, 2) as dependency_2.vulcanize.nameservice.v1beta1.Signature[];
|
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.registry.v1beta1.Signature, 2) as dependency_2.vulcanize.registry.v1beta1.Signature[];
|
||||||
}
|
}
|
||||||
set signatures(value: dependency_2.vulcanize.nameservice.v1beta1.Signature[]) {
|
set signatures(value: dependency_2.vulcanize.registry.v1beta1.Signature[]) {
|
||||||
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
||||||
}
|
}
|
||||||
static fromObject(data: {
|
static fromObject(data: {
|
||||||
record?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.Record.prototype.toObject>;
|
record?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Record.prototype.toObject>;
|
||||||
signatures?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.Signature.prototype.toObject>[];
|
signatures?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Signature.prototype.toObject>[];
|
||||||
}): Payload {
|
}): Payload {
|
||||||
const message = new Payload({});
|
const message = new Payload({});
|
||||||
if (data.record != null) {
|
if (data.record != null) {
|
||||||
message.record = dependency_2.vulcanize.nameservice.v1beta1.Record.fromObject(data.record);
|
message.record = dependency_2.vulcanize.registry.v1beta1.Record.fromObject(data.record);
|
||||||
}
|
}
|
||||||
if (data.signatures != null) {
|
if (data.signatures != null) {
|
||||||
message.signatures = data.signatures.map(item => dependency_2.vulcanize.nameservice.v1beta1.Signature.fromObject(item));
|
message.signatures = data.signatures.map(item => dependency_2.vulcanize.registry.v1beta1.Signature.fromObject(item));
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
toObject() {
|
toObject() {
|
||||||
const data: {
|
const data: {
|
||||||
record?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.Record.prototype.toObject>;
|
record?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Record.prototype.toObject>;
|
||||||
signatures?: ReturnType<typeof dependency_2.vulcanize.nameservice.v1beta1.Signature.prototype.toObject>[];
|
signatures?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Signature.prototype.toObject>[];
|
||||||
} = {};
|
} = {};
|
||||||
if (this.record != null) {
|
if (this.record != null) {
|
||||||
data.record = this.record.toObject();
|
data.record = this.record.toObject();
|
||||||
}
|
}
|
||||||
if (this.signatures != null) {
|
if (this.signatures != null) {
|
||||||
data.signatures = this.signatures.map((item: dependency_2.vulcanize.nameservice.v1beta1.Signature) => item.toObject());
|
data.signatures = this.signatures.map((item: dependency_2.vulcanize.registry.v1beta1.Signature) => item.toObject());
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
@ -257,7 +257,7 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
if (this.has_record)
|
if (this.has_record)
|
||||||
writer.writeMessage(1, this.record, () => this.record.serialize(writer));
|
writer.writeMessage(1, this.record, () => this.record.serialize(writer));
|
||||||
if (this.signatures.length)
|
if (this.signatures.length)
|
||||||
writer.writeRepeatedMessage(2, this.signatures, (item: dependency_2.vulcanize.nameservice.v1beta1.Signature) => item.serialize(writer));
|
writer.writeRepeatedMessage(2, this.signatures, (item: dependency_2.vulcanize.registry.v1beta1.Signature) => item.serialize(writer));
|
||||||
if (!w)
|
if (!w)
|
||||||
return writer.getResultBuffer();
|
return writer.getResultBuffer();
|
||||||
}
|
}
|
||||||
@ -268,10 +268,10 @@ export namespace vulcanize.nameservice.v1beta1 {
|
|||||||
break;
|
break;
|
||||||
switch (reader.getFieldNumber()) {
|
switch (reader.getFieldNumber()) {
|
||||||
case 1:
|
case 1:
|
||||||
reader.readMessage(message.record, () => message.record = dependency_2.vulcanize.nameservice.v1beta1.Record.deserialize(reader));
|
reader.readMessage(message.record, () => message.record = dependency_2.vulcanize.registry.v1beta1.Record.deserialize(reader));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
reader.readMessage(message.signatures, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_2.vulcanize.nameservice.v1beta1.Signature.deserialize(reader), dependency_2.vulcanize.nameservice.v1beta1.Signature));
|
reader.readMessage(message.signatures, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_2.vulcanize.registry.v1beta1.Signature.deserialize(reader), dependency_2.vulcanize.registry.v1beta1.Signature));
|
||||||
break;
|
break;
|
||||||
default: reader.skipField();
|
default: reader.skipField();
|
||||||
}
|
}
|
@ -3,7 +3,7 @@ import { Validator } from 'jsonschema';
|
|||||||
|
|
||||||
import RecordSchema from './schema/record.json';
|
import RecordSchema from './schema/record.json';
|
||||||
import { Util } from './util';
|
import { Util } from './util';
|
||||||
import * as attributes from './proto/vulcanize/nameservice/v1beta1/attributes';
|
import * as attributes from './proto/vulcanize/registry/v1beta1/attributes';
|
||||||
import * as any from './proto/google/protobuf/any';
|
import * as any from './proto/google/protobuf/any';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -33,9 +33,9 @@ export class Record {
|
|||||||
var a = new any.google.protobuf.Any()
|
var a = new any.google.protobuf.Any()
|
||||||
|
|
||||||
if (this._record.type=="WebsiteRegistrationRecord"){
|
if (this._record.type=="WebsiteRegistrationRecord"){
|
||||||
var attr= new attributes.vulcanize.nameservice.v1beta1.WebsiteRegistrationRecord(this._record)
|
var attr= new attributes.vulcanize.registry.v1beta1.WebsiteRegistrationRecord(this._record)
|
||||||
a= new any.google.protobuf.Any({
|
a= new any.google.protobuf.Any({
|
||||||
type_url: "/vulcanize.nameservice.v1beta1.WebsiteRegistrationRecord",
|
type_url: "/vulcanize.registry.v1beta1.WebsiteRegistrationRecord",
|
||||||
value: attr.serialize()
|
value: attr.serialize()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user