chore: replace with wrn
with crn
This commit is contained in:
parent
7f70108a4a
commit
92f07873f4
@ -1,4 +1,4 @@
|
||||
# Vulcanize dxns gql
|
||||
# Vulcanize chiba-clonk gql
|
||||
|
||||
> Browser : http://localhost:9473 for gql
|
||||
|
||||
@ -100,7 +100,7 @@ Query records.
|
||||
|
||||
```graphql
|
||||
{
|
||||
queryRecords(attributes: [{ key: "type", value: { string: "wrn:bot" } }]) {
|
||||
queryRecords(attributes: [{ key: "type", value: { string: "crn:bot" } }]) {
|
||||
id
|
||||
names
|
||||
bondId
|
||||
@ -316,7 +316,7 @@ LookUp Names
|
||||
|
||||
```graphql
|
||||
{
|
||||
lookupNames(names: ["wrn://hello/test"]){
|
||||
lookupNames(names: ["crn://hello/test"]){
|
||||
latest{
|
||||
id
|
||||
height
|
||||
|
18
app/app.go
18
app/app.go
@ -165,7 +165,7 @@ var (
|
||||
// Ethermint modules
|
||||
evm.AppModuleBasic{},
|
||||
feemarket.AppModuleBasic{},
|
||||
// Vulcanize DXNS modules
|
||||
// Vulcanize chiba-clonk modules
|
||||
auction.AppModuleBasic{},
|
||||
bond.AppModuleBasic{},
|
||||
nameservice.AppModuleBasic{},
|
||||
@ -244,7 +244,7 @@ type EthermintApp struct {
|
||||
EvmKeeper *evmkeeper.Keeper
|
||||
FeeMarketKeeper feemarketkeeper.Keeper
|
||||
|
||||
// DXNS keepers
|
||||
// chiba-clonk keepers
|
||||
AuctionKeeper auctionkeeper.Keeper
|
||||
BondKeeper bondkeeper.Keeper
|
||||
NameServiceKeeper nameservicekeeper.Keeper
|
||||
@ -300,7 +300,7 @@ func NewEthermintApp(
|
||||
ibchost.StoreKey, ibctransfertypes.StoreKey,
|
||||
// ethermint keys
|
||||
evmtypes.StoreKey, feemarkettypes.StoreKey,
|
||||
// dxns keys
|
||||
// chiba-clonk keys
|
||||
auctiontypes.StoreKey,
|
||||
bondtypes.StoreKey,
|
||||
nameservicetypes.StoreKey,
|
||||
@ -378,7 +378,7 @@ func NewEthermintApp(
|
||||
appCodec, keys[feemarkettypes.StoreKey], app.GetSubspace(feemarkettypes.ModuleName),
|
||||
)
|
||||
|
||||
// Create Vulcanize dxns keepers
|
||||
// Create Vulcanize chiba-clonk keepers
|
||||
app.AuctionKeeper = auctionkeeper.NewKeeper(
|
||||
app.AccountKeeper, app.BankKeeper, keys[auctiontypes.StoreKey],
|
||||
appCodec, app.GetSubspace(auctiontypes.ModuleName),
|
||||
@ -486,7 +486,7 @@ func NewEthermintApp(
|
||||
// Ethermint app modules
|
||||
evm.NewAppModule(app.EvmKeeper, app.AccountKeeper),
|
||||
feemarket.NewAppModule(app.FeeMarketKeeper),
|
||||
// DXNs modules
|
||||
// chiba-clonk modules
|
||||
auction.NewAppModule(appCodec, app.AuctionKeeper),
|
||||
bond.NewAppModule(appCodec, app.BondKeeper),
|
||||
nameservice.NewAppModule(app.NameServiceKeeper),
|
||||
@ -520,7 +520,7 @@ func NewEthermintApp(
|
||||
feegrant.ModuleName,
|
||||
paramstypes.ModuleName,
|
||||
vestingtypes.ModuleName,
|
||||
// DXNS modules
|
||||
// chiba-clonk modules
|
||||
auctiontypes.ModuleName,
|
||||
bondtypes.ModuleName,
|
||||
nameservicetypes.ModuleName,
|
||||
@ -549,7 +549,7 @@ func NewEthermintApp(
|
||||
paramstypes.ModuleName,
|
||||
upgradetypes.ModuleName,
|
||||
vestingtypes.ModuleName,
|
||||
// DXNS modules
|
||||
// chiba-clonk modules
|
||||
auctiontypes.ModuleName,
|
||||
bondtypes.ModuleName,
|
||||
nameservicetypes.ModuleName,
|
||||
@ -582,7 +582,7 @@ func NewEthermintApp(
|
||||
// Ethermint modules
|
||||
evmtypes.ModuleName,
|
||||
feemarkettypes.ModuleName,
|
||||
// DXNS modules
|
||||
// chiba-clonk modules
|
||||
auctiontypes.ModuleName,
|
||||
bondtypes.ModuleName,
|
||||
nameservicetypes.ModuleName,
|
||||
@ -843,7 +843,7 @@ func initParamsKeeper(
|
||||
// ethermint subspaces
|
||||
paramsKeeper.Subspace(evmtypes.ModuleName)
|
||||
paramsKeeper.Subspace(feemarkettypes.ModuleName)
|
||||
// dxns subspaces
|
||||
// chiba-clonk subspaces
|
||||
paramsKeeper.Subspace(auctiontypes.ModuleName)
|
||||
paramsKeeper.Subspace(bondtypes.ModuleName)
|
||||
paramsKeeper.Subspace(nameservicetypes.ModuleName)
|
||||
|
@ -179,17 +179,20 @@
|
||||
- [QueryListNameRecordsRequest](#vulcanize.nameservice.v1beta1.QueryListNameRecordsRequest)
|
||||
- [QueryListNameRecordsResponse](#vulcanize.nameservice.v1beta1.QueryListNameRecordsResponse)
|
||||
- [QueryListRecordsRequest](#vulcanize.nameservice.v1beta1.QueryListRecordsRequest)
|
||||
- [QueryListRecordsRequest.KeyValueInput](#vulcanize.nameservice.v1beta1.QueryListRecordsRequest.KeyValueInput)
|
||||
- [QueryListRecordsRequest.ReferenceInput](#vulcanize.nameservice.v1beta1.QueryListRecordsRequest.ReferenceInput)
|
||||
- [QueryListRecordsRequest.ValueInput](#vulcanize.nameservice.v1beta1.QueryListRecordsRequest.ValueInput)
|
||||
- [QueryListRecordsResponse](#vulcanize.nameservice.v1beta1.QueryListRecordsResponse)
|
||||
- [QueryLookupWrn](#vulcanize.nameservice.v1beta1.QueryLookupWrn)
|
||||
- [QueryLookupWrnResponse](#vulcanize.nameservice.v1beta1.QueryLookupWrnResponse)
|
||||
- [QueryLookupCrn](#vulcanize.nameservice.v1beta1.QueryLookupCrn)
|
||||
- [QueryLookupCrnResponse](#vulcanize.nameservice.v1beta1.QueryLookupCrnResponse)
|
||||
- [QueryParamsRequest](#vulcanize.nameservice.v1beta1.QueryParamsRequest)
|
||||
- [QueryParamsResponse](#vulcanize.nameservice.v1beta1.QueryParamsResponse)
|
||||
- [QueryRecordByBondIdRequest](#vulcanize.nameservice.v1beta1.QueryRecordByBondIdRequest)
|
||||
- [QueryRecordByBondIdResponse](#vulcanize.nameservice.v1beta1.QueryRecordByBondIdResponse)
|
||||
- [QueryRecordByIdRequest](#vulcanize.nameservice.v1beta1.QueryRecordByIdRequest)
|
||||
- [QueryRecordByIdResponse](#vulcanize.nameservice.v1beta1.QueryRecordByIdResponse)
|
||||
- [QueryResolveWrn](#vulcanize.nameservice.v1beta1.QueryResolveWrn)
|
||||
- [QueryResolveWrnResponse](#vulcanize.nameservice.v1beta1.QueryResolveWrnResponse)
|
||||
- [QueryResolveCrn](#vulcanize.nameservice.v1beta1.QueryResolveCrn)
|
||||
- [QueryResolveCrnResponse](#vulcanize.nameservice.v1beta1.QueryResolveCrnResponse)
|
||||
- [QueryWhoisRequest](#vulcanize.nameservice.v1beta1.QueryWhoisRequest)
|
||||
- [QueryWhoisResponse](#vulcanize.nameservice.v1beta1.QueryWhoisResponse)
|
||||
|
||||
@ -2362,11 +2365,12 @@ Params defines the nameservice module records
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `id` | [string](#string) | | |
|
||||
| `bond_id` | [string](#string) | | |
|
||||
| `create_time` | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | |
|
||||
| `expiry_time` | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | |
|
||||
| `create_time` | [string](#string) | | |
|
||||
| `expiry_time` | [string](#string) | | |
|
||||
| `deleted` | [bool](#bool) | | |
|
||||
| `owners` | [string](#string) | repeated | |
|
||||
| `attributes` | [bytes](#bytes) | | |
|
||||
| `attributes` | [string](#string) | | |
|
||||
| `names` | [string](#string) | repeated | |
|
||||
|
||||
|
||||
|
||||
@ -2597,6 +2601,8 @@ QueryListRecordsRequest is request type for nameservice records list
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `attributes` | [QueryListRecordsRequest.KeyValueInput](#vulcanize.nameservice.v1beta1.QueryListRecordsRequest.KeyValueInput) | repeated | |
|
||||
| `all` | [bool](#bool) | | |
|
||||
| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. |
|
||||
|
||||
|
||||
@ -2604,6 +2610,58 @@ QueryListRecordsRequest is request type for nameservice records list
|
||||
|
||||
|
||||
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryListRecordsRequest.KeyValueInput"></a>
|
||||
|
||||
### QueryListRecordsRequest.KeyValueInput
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `key` | [string](#string) | | |
|
||||
| `value` | [QueryListRecordsRequest.ValueInput](#vulcanize.nameservice.v1beta1.QueryListRecordsRequest.ValueInput) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryListRecordsRequest.ReferenceInput"></a>
|
||||
|
||||
### QueryListRecordsRequest.ReferenceInput
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `id` | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryListRecordsRequest.ValueInput"></a>
|
||||
|
||||
### QueryListRecordsRequest.ValueInput
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `type` | [string](#string) | | |
|
||||
| `string` | [string](#string) | | |
|
||||
| `int` | [int64](#int64) | | |
|
||||
| `float` | [double](#double) | | |
|
||||
| `boolean` | [bool](#bool) | | |
|
||||
| `reference` | [QueryListRecordsRequest.ReferenceInput](#vulcanize.nameservice.v1beta1.QueryListRecordsRequest.ReferenceInput) | | |
|
||||
| `values` | [QueryListRecordsRequest.ValueInput](#vulcanize.nameservice.v1beta1.QueryListRecordsRequest.ValueInput) | repeated | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryListRecordsResponse"></a>
|
||||
|
||||
### QueryListRecordsResponse
|
||||
@ -2620,25 +2678,25 @@ QueryListRecordsResponse is response type for nameservice records list
|
||||
|
||||
|
||||
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryLookupWrn"></a>
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryLookupCrn"></a>
|
||||
|
||||
### QueryLookupWrn
|
||||
QueryLookupWrn is request type for LookupWrn
|
||||
### QueryLookupCrn
|
||||
QueryLookupCrn is request type for LookupCrn
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `wrn` | [string](#string) | | |
|
||||
| `crn` | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryLookupWrnResponse"></a>
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryLookupCrnResponse"></a>
|
||||
|
||||
### QueryLookupWrnResponse
|
||||
QueryLookupWrnResponse is response type for QueryLookupWrn
|
||||
### QueryLookupCrnResponse
|
||||
QueryLookupCrnResponse is response type for QueryLookupCrn
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
@ -2737,25 +2795,25 @@ QueryRecordByIdResponse is response type for nameservice records by id
|
||||
|
||||
|
||||
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryResolveWrn"></a>
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryResolveCrn"></a>
|
||||
|
||||
### QueryResolveWrn
|
||||
QueryResolveWrn is request type for ResolveWrn
|
||||
### QueryResolveCrn
|
||||
QueryResolveCrn is request type for ResolveCrn
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `wrn` | [string](#string) | | |
|
||||
| `crn` | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryResolveWrnResponse"></a>
|
||||
<a name="vulcanize.nameservice.v1beta1.QueryResolveCrnResponse"></a>
|
||||
|
||||
### QueryResolveWrnResponse
|
||||
QueryResolveWrnResponse is response type for QueryResolveWrn
|
||||
### QueryResolveCrnResponse
|
||||
QueryResolveCrnResponse is response type for QueryResolveCrn
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
@ -2817,8 +2875,8 @@ Query defines the gRPC querier service for nameservice module
|
||||
| `GetNameServiceModuleBalance` | [GetNameServiceModuleBalanceRequest](#vulcanize.nameservice.v1beta1.GetNameServiceModuleBalanceRequest) | [GetNameServiceModuleBalanceResponse](#vulcanize.nameservice.v1beta1.GetNameServiceModuleBalanceResponse) | Get nameservice module balance | GET|/vulcanize/nameservice/v1beta1/balance|
|
||||
| `ListNameRecords` | [QueryListNameRecordsRequest](#vulcanize.nameservice.v1beta1.QueryListNameRecordsRequest) | [QueryListNameRecordsResponse](#vulcanize.nameservice.v1beta1.QueryListNameRecordsResponse) | List name records | GET|/vulcanize/nameservice/v1beta1/names|
|
||||
| `Whois` | [QueryWhoisRequest](#vulcanize.nameservice.v1beta1.QueryWhoisRequest) | [QueryWhoisResponse](#vulcanize.nameservice.v1beta1.QueryWhoisResponse) | Whois method retrieve the name authority info | GET|/vulcanize/nameservice/v1beta1/whois/{name}|
|
||||
| `LookupWrn` | [QueryLookupWrn](#vulcanize.nameservice.v1beta1.QueryLookupWrn) | [QueryLookupWrnResponse](#vulcanize.nameservice.v1beta1.QueryLookupWrnResponse) | LookupWrn | GET|/vulcanize/nameservice/v1beta1/lookup|
|
||||
| `ResolveWrn` | [QueryResolveWrn](#vulcanize.nameservice.v1beta1.QueryResolveWrn) | [QueryResolveWrnResponse](#vulcanize.nameservice.v1beta1.QueryResolveWrnResponse) | ResolveWrn | GET|/vulcanize/nameservice/v1beta1/resolve|
|
||||
| `LookupCrn` | [QueryLookupCrn](#vulcanize.nameservice.v1beta1.QueryLookupCrn) | [QueryLookupCrnResponse](#vulcanize.nameservice.v1beta1.QueryLookupCrnResponse) | LookupCrn | GET|/vulcanize/nameservice/v1beta1/lookup|
|
||||
| `ResolveCrn` | [QueryResolveCrn](#vulcanize.nameservice.v1beta1.QueryResolveCrn) | [QueryResolveCrnResponse](#vulcanize.nameservice.v1beta1.QueryResolveCrnResponse) | ResolveCrn | GET|/vulcanize/nameservice/v1beta1/resolve|
|
||||
| `GetRecordExpiryQueue` | [QueryGetRecordExpiryQueue](#vulcanize.nameservice.v1beta1.QueryGetRecordExpiryQueue) | [QueryGetRecordExpiryQueueResponse](#vulcanize.nameservice.v1beta1.QueryGetRecordExpiryQueueResponse) | GetRecordExpiryQueue | GET|/vulcanize/nameservice/v1beta1/record-expiry|
|
||||
| `GetAuthorityExpiryQueue` | [QueryGetAuthorityExpiryQueue](#vulcanize.nameservice.v1beta1.QueryGetAuthorityExpiryQueue) | [QueryGetAuthorityExpiryQueueResponse](#vulcanize.nameservice.v1beta1.QueryGetAuthorityExpiryQueueResponse) | GetAuthorityExpiryQueue | GET|/vulcanize/nameservice/v1beta1/authority-expiry|
|
||||
|
||||
@ -2868,7 +2926,7 @@ MsgDeleteNameAuthority is SDK message for DeleteNameAuthority
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `wrn` | [string](#string) | | |
|
||||
| `crn` | [string](#string) | | |
|
||||
| `signer` | [string](#string) | | |
|
||||
|
||||
|
||||
@ -3053,7 +3111,7 @@ MsgSetName
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| `wrn` | [string](#string) | | |
|
||||
| `crn` | [string](#string) | | |
|
||||
| `cid` | [string](#string) | | |
|
||||
| `signer` | [string](#string) | | |
|
||||
|
||||
@ -3134,7 +3192,7 @@ Msg
|
||||
| `DissociateBond` | [MsgDissociateBond](#vulcanize.nameservice.v1beta1.MsgDissociateBond) | [MsgDissociateBondResponse](#vulcanize.nameservice.v1beta1.MsgDissociateBondResponse) | DissociateBond | |
|
||||
| `DissociateRecords` | [MsgDissociateRecords](#vulcanize.nameservice.v1beta1.MsgDissociateRecords) | [MsgDissociateRecordsResponse](#vulcanize.nameservice.v1beta1.MsgDissociateRecordsResponse) | DissociateRecords | |
|
||||
| `ReAssociateRecords` | [MsgReAssociateRecords](#vulcanize.nameservice.v1beta1.MsgReAssociateRecords) | [MsgReAssociateRecordsResponse](#vulcanize.nameservice.v1beta1.MsgReAssociateRecordsResponse) | ReAssociateRecords | |
|
||||
| `SetName` | [MsgSetName](#vulcanize.nameservice.v1beta1.MsgSetName) | [MsgSetNameResponse](#vulcanize.nameservice.v1beta1.MsgSetNameResponse) | SetName will store the name with given wrn and name | |
|
||||
| `SetName` | [MsgSetName](#vulcanize.nameservice.v1beta1.MsgSetName) | [MsgSetNameResponse](#vulcanize.nameservice.v1beta1.MsgSetNameResponse) | SetName will store the name with given crn and name | |
|
||||
| `ReserveName` | [MsgReserveAuthority](#vulcanize.nameservice.v1beta1.MsgReserveAuthority) | [MsgReserveAuthorityResponse](#vulcanize.nameservice.v1beta1.MsgReserveAuthorityResponse) | Reserve name | |
|
||||
| `DeleteName` | [MsgDeleteNameAuthority](#vulcanize.nameservice.v1beta1.MsgDeleteNameAuthority) | [MsgDeleteNameAuthorityResponse](#vulcanize.nameservice.v1beta1.MsgDeleteNameAuthorityResponse) | Delete Name method will remove authority name | |
|
||||
| `SetAuthorityBond` | [MsgSetAuthorityBond](#vulcanize.nameservice.v1beta1.MsgSetAuthorityBond) | [MsgSetAuthorityBondResponse](#vulcanize.nameservice.v1beta1.MsgSetAuthorityBondResponse) | SetAuthorityBond | |
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Vulcanize dxns gql
|
||||
# Vulcanize chiba-clonk gql
|
||||
|
||||
> Browser : http://localhost:9473 for gql
|
||||
|
||||
@ -100,7 +100,7 @@ Query records.
|
||||
|
||||
```graphql
|
||||
{
|
||||
queryRecords(attributes: [{ key: "type", value: { string: "wrn:bot" } }]) {
|
||||
queryRecords(attributes: [{ key: "type", value: { string: "crn:bot" } }]) {
|
||||
id
|
||||
names
|
||||
bondId
|
||||
@ -316,7 +316,7 @@ LookUp Names
|
||||
|
||||
```graphql
|
||||
{
|
||||
lookupNames(names: ["wrn://hello/test"]){
|
||||
lookupNames(names: ["crn://hello/test"]){
|
||||
latest{
|
||||
id
|
||||
height
|
||||
|
@ -988,7 +988,7 @@ func (ec *executionContext) introspectType(name string) (*introspection.Type, er
|
||||
}
|
||||
|
||||
var sources = []*ast.Source{
|
||||
{Name: "vulcanize/dxns/schema.graphql", Input: `# Reference to another record.
|
||||
{Name: "vulcanize/chiba-clonk/schema.graphql", Input: `# Reference to another record.
|
||||
type Reference {
|
||||
id: String! # ID of linked record.
|
||||
}
|
||||
@ -1096,7 +1096,7 @@ type PeerInfo {
|
||||
remote_ip: String!
|
||||
}
|
||||
|
||||
# Vulcanize DXNS status.
|
||||
# Vulcanize chiba-clonk status.
|
||||
type Status {
|
||||
version: String!
|
||||
node: NodeInfo!
|
||||
|
@ -4,7 +4,7 @@
|
||||
# for detailed .gqlgen.yml documentation.
|
||||
|
||||
schema:
|
||||
- vulcanize/dxns/*.graphql
|
||||
- vulcanize/chiba-clonk/*.graphql
|
||||
exec:
|
||||
filename: generated.go
|
||||
model:
|
||||
|
@ -76,7 +76,7 @@ func (q queryResolver) ResolveNames(ctx context.Context, names []string) ([]*Rec
|
||||
nsQueryClient := nstypes.NewQueryClient(q.ctx)
|
||||
var gqlResponse []*Record
|
||||
for _, name := range names {
|
||||
res, err := nsQueryClient.ResolveWrn(context.Background(), &nstypes.QueryResolveWrn{Wrn: name})
|
||||
res, err := nsQueryClient.ResolveCrn(context.Background(), &nstypes.QueryResolveCrn{Crn: name})
|
||||
if err != nil {
|
||||
// Return nil for record not found.
|
||||
gqlResponse = append(gqlResponse, nil)
|
||||
@ -98,7 +98,7 @@ func (q queryResolver) LookupNames(ctx context.Context, names []string) ([]*Name
|
||||
var gqlResponse []*NameRecord
|
||||
|
||||
for _, name := range names {
|
||||
res, err := nsQueryClient.LookupWrn(context.Background(), &nstypes.QueryLookupWrn{Wrn: name})
|
||||
res, err := nsQueryClient.LookupCrn(context.Background(), &nstypes.QueryLookupCrn{Crn: name})
|
||||
if err != nil {
|
||||
// Return nil for name not found.
|
||||
gqlResponse = append(gqlResponse, nil)
|
||||
|
@ -106,7 +106,7 @@ type PeerInfo {
|
||||
remote_ip: String!
|
||||
}
|
||||
|
||||
# Vulcanize DXNS status.
|
||||
# Vulcanize chiba-clonk status.
|
||||
type Status {
|
||||
version: String!
|
||||
node: NodeInfo!
|
2
init.sh
2
init.sh
@ -39,7 +39,7 @@ cat $HOME/.chibaclonkd/config/genesis.json | jq '.app_state["nameservice"]["para
|
||||
cat $HOME/.chibaclonkd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_auction_reveal_fee"]["denom"]="aphoton"' > $HOME/.chibaclonkd/config/tmp_genesis.json && mv $HOME/.chibaclonkd/config/tmp_genesis.json $HOME/.chibaclonkd/config/genesis.json
|
||||
cat $HOME/.chibaclonkd/config/genesis.json | jq '.app_state["nameservice"]["params"]["authority_auction_minimum_bid"]["denom"]="aphoton"' > $HOME/.chibaclonkd/config/tmp_genesis.json && mv $HOME/.chibaclonkd/config/tmp_genesis.json $HOME/.chibaclonkd/config/genesis.json
|
||||
|
||||
if [[ "$TEST_EXPIRY" == "true" ]]; then
|
||||
if [[ "$TEST_NAMESERVICE_EXPIRY" == "true" ]]; then
|
||||
echo "Setting timers for expiry tests."
|
||||
|
||||
cat $HOME/.chibaclonkd/config/genesis.json | jq '.app_state["nameservice"]["params"]["record_rent_duration"]="60s"' > $HOME/.chibaclonkd/config/tmp_genesis.json && mv $HOME/.chibaclonkd/config/tmp_genesis.json $HOME/.chibaclonkd/config/genesis.json
|
||||
|
@ -39,12 +39,12 @@ service Query {
|
||||
rpc Whois(QueryWhoisRequest) returns (QueryWhoisResponse){
|
||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/whois/{name}";
|
||||
}
|
||||
// LookupWrn
|
||||
rpc LookupWrn(QueryLookupWrn) returns (QueryLookupWrnResponse){
|
||||
// LookupCrn
|
||||
rpc LookupCrn(QueryLookupCrn) returns (QueryLookupCrnResponse){
|
||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/lookup";
|
||||
}
|
||||
// ResolveWrn
|
||||
rpc ResolveWrn(QueryResolveWrn) returns (QueryResolveWrnResponse){
|
||||
// ResolveCrn
|
||||
rpc ResolveCrn(QueryResolveCrn) returns (QueryResolveCrnResponse){
|
||||
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/resolve";
|
||||
}
|
||||
// GetRecordExpiryQueue
|
||||
@ -178,23 +178,23 @@ message QueryWhoisResponse{
|
||||
];
|
||||
}
|
||||
|
||||
// QueryLookupWrn is request type for LookupWrn
|
||||
message QueryLookupWrn{
|
||||
string wrn = 1;
|
||||
// QueryLookupCrn is request type for LookupCrn
|
||||
message QueryLookupCrn{
|
||||
string crn = 1;
|
||||
}
|
||||
|
||||
// QueryLookupWrnResponse is response type for QueryLookupWrn
|
||||
message QueryLookupWrnResponse{
|
||||
// QueryLookupCrnResponse is response type for QueryLookupCrn
|
||||
message QueryLookupCrnResponse{
|
||||
NameRecord name = 1;
|
||||
}
|
||||
|
||||
// QueryResolveWrn is request type for ResolveWrn
|
||||
message QueryResolveWrn{
|
||||
string wrn = 1;
|
||||
// QueryResolveCrn is request type for ResolveCrn
|
||||
message QueryResolveCrn{
|
||||
string crn = 1;
|
||||
}
|
||||
|
||||
// QueryResolveWrnResponse is response type for QueryResolveWrn
|
||||
message QueryResolveWrnResponse{
|
||||
// QueryResolveCrnResponse is response type for QueryResolveCrn
|
||||
message QueryResolveCrnResponse{
|
||||
Record record = 1;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ service Msg {
|
||||
rpc DissociateRecords(MsgDissociateRecords) returns (MsgDissociateRecordsResponse){}
|
||||
// ReAssociateRecords
|
||||
rpc ReAssociateRecords(MsgReAssociateRecords) returns (MsgReAssociateRecordsResponse){}
|
||||
// SetName will store the name with given wrn and name
|
||||
// SetName will store the name with given crn and name
|
||||
rpc SetName(MsgSetName) returns (MsgSetNameResponse){}
|
||||
// Reserve name
|
||||
rpc ReserveName(MsgReserveAuthority) returns (MsgReserveAuthorityResponse){}
|
||||
@ -56,7 +56,7 @@ message Payload {
|
||||
|
||||
// MsgSetName
|
||||
message MsgSetName{
|
||||
string wrn = 1;
|
||||
string crn = 1;
|
||||
string cid = 2;
|
||||
string signer = 3;
|
||||
}
|
||||
@ -92,7 +92,7 @@ message MsgSetAuthorityBondResponse{
|
||||
|
||||
// MsgDeleteNameAuthority is SDK message for DeleteNameAuthority
|
||||
message MsgDeleteNameAuthority{
|
||||
string wrn = 1;
|
||||
string crn = 1;
|
||||
string signer = 2;
|
||||
}
|
||||
|
||||
|
@ -281,7 +281,7 @@ $ ./build/chibaclonkd tx nameservice renew-record bafyreih7un2ntk235wshncebus5em
|
||||
## Set the authority name
|
||||
|
||||
```bash
|
||||
$ ./build/chibaclonkd tx nameservice set-name wrn://hello/test test_hello_cid --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
$ ./build/chibaclonkd tx nameservice set-name crn://hello/test test_hello_cid --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
{
|
||||
"height": "0",
|
||||
"txhash": "66A63C73B076EEE9A2F7605354448EDEB161F0115D4D03AF68C01BA28DB97486",
|
||||
@ -301,7 +301,7 @@ $ ./build/chibaclonkd tx nameservice set-name wrn://hello/test test_hello_cid -
|
||||
## Delete the name
|
||||
|
||||
```bash
|
||||
$./build/chibaclonkd tx nameservice delete-name wrn://hello/test --from root --chain-id ethermint_9000-1 -y
|
||||
$./build/chibaclonkd tx nameservice delete-name crn://hello/test --from root --chain-id ethermint_9000-1 -y
|
||||
code: 0
|
||||
codespace: ""
|
||||
data: ""
|
||||
|
@ -3,12 +3,13 @@ package cli
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/version"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/tharsis/ethermint/x/nameservice/types"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// GetQueryCmd returns the cli query commands for this module
|
||||
@ -23,7 +24,7 @@ func GetQueryCmd() *cobra.Command {
|
||||
bondQueryCmd.AddCommand(
|
||||
GetCmdWhoIs(),
|
||||
GetCmdResolve(),
|
||||
GetCmdLookupWRN(),
|
||||
GetCmdLookupCRN(),
|
||||
GetRecordExpiryQueue(),
|
||||
GetAuthorityExpiryQueue(),
|
||||
GetQueryParamsCmd(),
|
||||
@ -68,15 +69,15 @@ $ %s query %s whois [name]
|
||||
return cmd
|
||||
}
|
||||
|
||||
// GetCmdLookupWRN queries naming info for a WRN.
|
||||
func GetCmdLookupWRN() *cobra.Command {
|
||||
// GetCmdLookupCRN queries naming info for a CRN.
|
||||
func GetCmdLookupCRN() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "lookup [wrn]",
|
||||
Short: "Get naming info for WRN.",
|
||||
Use: "lookup [crn]",
|
||||
Short: "Get naming info for CRN.",
|
||||
Long: strings.TrimSpace(
|
||||
fmt.Sprintf(`Get naming info for WRN.
|
||||
fmt.Sprintf(`Get naming info for CRN.
|
||||
Example:
|
||||
$ %s query %s lookup [wrn]
|
||||
$ %s query %s lookup [crn]
|
||||
`,
|
||||
version.AppName, types.ModuleName,
|
||||
),
|
||||
@ -88,7 +89,7 @@ $ %s query %s lookup [wrn]
|
||||
return err
|
||||
}
|
||||
queryClient := types.NewQueryClient(clientCtx)
|
||||
res, err := queryClient.LookupWrn(cmd.Context(), &types.QueryLookupWrn{Wrn: args[0]})
|
||||
res, err := queryClient.LookupCrn(cmd.Context(), &types.QueryLookupCrn{Crn: args[0]})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -207,15 +208,15 @@ $ %s query %s get [ID]
|
||||
return cmd
|
||||
}
|
||||
|
||||
// GetCmdResolve resolves a WRN to a record.
|
||||
// GetCmdResolve resolves a CRN to a record.
|
||||
func GetCmdResolve() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "resolve [wrn]",
|
||||
Short: "Resolve WRN to record.",
|
||||
Use: "resolve [crn]",
|
||||
Short: "Resolve CRN to record.",
|
||||
Long: strings.TrimSpace(
|
||||
fmt.Sprintf(`Resolve WRN to record.
|
||||
fmt.Sprintf(`Resolve CRN to record.
|
||||
Example:
|
||||
$ %s query %s resolve [wrn]
|
||||
$ %s query %s resolve [crn]
|
||||
`,
|
||||
version.AppName, types.ModuleName,
|
||||
),
|
||||
@ -227,7 +228,7 @@ $ %s query %s resolve [wrn]
|
||||
return err
|
||||
}
|
||||
queryClient := types.NewQueryClient(clientCtx)
|
||||
record, err := queryClient.ResolveWrn(cmd.Context(), &types.QueryResolveWrn{Wrn: args[0]})
|
||||
record, err := queryClient.ResolveCrn(cmd.Context(), &types.QueryResolveCrn{Crn: args[0]})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -2,6 +2,9 @@ package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@ -10,8 +13,6 @@ import (
|
||||
"github.com/tharsis/ethermint/server/flags"
|
||||
"github.com/tharsis/ethermint/x/nameservice/types"
|
||||
"gopkg.in/yaml.v3"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// NewTxCmd returns a root CLI command handler for all x/bond transaction commands.
|
||||
@ -241,12 +242,12 @@ $ %s tx %s reassociate-records [old-bond-id] [new-bond-id]
|
||||
// GetCmdSetName is the CLI command for mapping a name to a CID.
|
||||
func GetCmdSetName() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "set-name [wrn] [cid]",
|
||||
Short: "Set WRN to CID mapping.",
|
||||
Use: "set-name [crn] [cid]",
|
||||
Short: "Set CRN to CID mapping.",
|
||||
Long: strings.TrimSpace(
|
||||
fmt.Sprintf(`Set name with wrn and cid.
|
||||
fmt.Sprintf(`Set name with crn and cid.
|
||||
Example:
|
||||
$ %s tx %s set-name [wrn] [cid]
|
||||
$ %s tx %s set-name [crn] [cid]
|
||||
`,
|
||||
version.AppName, types.ModuleName,
|
||||
),
|
||||
@ -345,12 +346,12 @@ $ %s tx %s authority-bond [name] [bond-id]
|
||||
|
||||
func GetCmdDeleteName() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "delete-name [wrn]",
|
||||
Short: "Delete WRN.",
|
||||
Use: "delete-name [crn]",
|
||||
Short: "Delete CRN.",
|
||||
Long: strings.TrimSpace(
|
||||
fmt.Sprintf(`Delete WRN.
|
||||
fmt.Sprintf(`Delete CRN.
|
||||
Example:
|
||||
$ %s tx %s delete-name [wrn]
|
||||
$ %s tx %s delete-name [crn]
|
||||
`,
|
||||
version.AppName, types.ModuleName,
|
||||
),
|
||||
|
@ -3,6 +3,9 @@ package testutil
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@ -10,8 +13,6 @@ import (
|
||||
tmcli "github.com/tendermint/tendermint/libs/cli"
|
||||
"github.com/tharsis/ethermint/x/nameservice/client/cli"
|
||||
nstypes "github.com/tharsis/ethermint/x/nameservice/types"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryParams() {
|
||||
@ -130,7 +131,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryWhoIs() {
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryLookup() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqUrl := val.APIAddress + "/vulcanize/nameservice/v1beta1/lookup?wrn=%s"
|
||||
reqUrl := val.APIAddress + "/vulcanize/nameservice/v1beta1/lookup?crn=%s"
|
||||
var authorityName = "QueryLookUp"
|
||||
|
||||
testCases := []struct {
|
||||
@ -165,13 +166,13 @@ func (s *IntegrationTestSuite) TestGRPCQueryLookup() {
|
||||
s.Run(tc.name, func() {
|
||||
if !tc.expectErr {
|
||||
tc.preRun(authorityName)
|
||||
tc.url = fmt.Sprintf(reqUrl, fmt.Sprintf("wrn://%s/", authorityName))
|
||||
tc.url = fmt.Sprintf(reqUrl, fmt.Sprintf("crn://%s/", authorityName))
|
||||
}
|
||||
resp, _ := rest.GetRequest(tc.url)
|
||||
if tc.expectErr {
|
||||
sr.Contains(string(resp), tc.errorMsg)
|
||||
} else {
|
||||
var response nstypes.QueryLookupWrnResponse
|
||||
var response nstypes.QueryLookupCrnResponse
|
||||
err := val.ClientCtx.Codec.UnmarshalJSON(resp, &response)
|
||||
sr.NoError(err)
|
||||
sr.NotZero(len(response.Name.Latest.Id))
|
||||
|
@ -3,14 +3,15 @@ package testutil
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
tmcli "github.com/tendermint/tendermint/libs/cli"
|
||||
"github.com/tharsis/ethermint/x/nameservice/client/cli"
|
||||
"github.com/tharsis/ethermint/x/nameservice/types"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
||||
func (s *IntegrationTestSuite) TestGetCmdQueryParams() {
|
||||
@ -302,7 +303,7 @@ func (s *IntegrationTestSuite) TestGetCmdWhoIs() {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *IntegrationTestSuite) TestGetCmdLookupWRN() {
|
||||
func (s *IntegrationTestSuite) TestGetCmdLookupCRN() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
var authorityName = "test1"
|
||||
@ -314,7 +315,7 @@ func (s *IntegrationTestSuite) TestGetCmdLookupWRN() {
|
||||
preRun func(authorityName string)
|
||||
}{
|
||||
{
|
||||
"invalid request without wrn",
|
||||
"invalid request without crn",
|
||||
[]string{fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
|
||||
true,
|
||||
0,
|
||||
@ -324,7 +325,7 @@ func (s *IntegrationTestSuite) TestGetCmdLookupWRN() {
|
||||
},
|
||||
{
|
||||
"success query with name",
|
||||
[]string{fmt.Sprintf("wrn://%s/", authorityName), fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
|
||||
[]string{fmt.Sprintf("crn://%s/", authorityName), fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
|
||||
false,
|
||||
1,
|
||||
func(authorityName string) {
|
||||
@ -337,10 +338,10 @@ func (s *IntegrationTestSuite) TestGetCmdLookupWRN() {
|
||||
for _, tc := range testCases {
|
||||
s.Run(tc.name, func() {
|
||||
if !tc.expErr {
|
||||
// set-name with wrn and bond-id
|
||||
// set-name with crn and bond-id
|
||||
tc.preRun(authorityName)
|
||||
}
|
||||
cmd := cli.GetCmdLookupWRN()
|
||||
cmd := cli.GetCmdLookupCRN()
|
||||
clientCtx := val.ClientCtx
|
||||
|
||||
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args)
|
||||
@ -348,7 +349,7 @@ func (s *IntegrationTestSuite) TestGetCmdLookupWRN() {
|
||||
sr.Error(err)
|
||||
} else {
|
||||
sr.NoError(err)
|
||||
var response types.QueryLookupWrnResponse
|
||||
var response types.QueryLookupCrnResponse
|
||||
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &response)
|
||||
sr.NoError(err)
|
||||
nameRecord := response.GetName()
|
||||
@ -364,7 +365,7 @@ func (s *IntegrationTestSuite) TestGetCmdLookupWRN() {
|
||||
noOfRecords int
|
||||
}{
|
||||
{
|
||||
"invalid request without wrn",
|
||||
"invalid request without crn",
|
||||
[]string{"invalid", fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
|
||||
true,
|
||||
0,
|
||||
@ -565,7 +566,7 @@ func createNameRecord(authorityName string, s *IntegrationTestSuite) {
|
||||
sr.Zero(d.Code)
|
||||
|
||||
args = []string{
|
||||
fmt.Sprintf("wrn://%s/", authorityName),
|
||||
fmt.Sprintf("crn://%s/", authorityName),
|
||||
"test_hello_cid",
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
|
@ -313,7 +313,7 @@ func (s *IntegrationTestSuite) TestGetCmdSetName() {
|
||||
{
|
||||
"success",
|
||||
[]string{
|
||||
fmt.Sprintf("wrn://%s/", authorityName),
|
||||
fmt.Sprintf("crn://%s/", authorityName),
|
||||
"test_hello_cid",
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
@ -488,7 +488,7 @@ func (s *IntegrationTestSuite) TestGetCmdDeleteName() {
|
||||
preRun func(authorityName string, s *IntegrationTestSuite)
|
||||
}{
|
||||
{
|
||||
"invalid request without wrn",
|
||||
"invalid request without crn",
|
||||
[]string{
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
@ -521,7 +521,7 @@ func (s *IntegrationTestSuite) TestGetCmdDeleteName() {
|
||||
s.Run(fmt.Sprintf("Case %s", tc.name), func() {
|
||||
if !tc.err {
|
||||
tc.preRun(authorityName, s)
|
||||
tc.args = append([]string{fmt.Sprintf("wrn://%s/", authorityName)}, tc.args...)
|
||||
tc.args = append([]string{fmt.Sprintf("crn://%s/", authorityName)}, tc.args...)
|
||||
}
|
||||
clientCtx := val.ClientCtx
|
||||
cmd := cli.GetCmdDeleteName()
|
||||
@ -551,7 +551,7 @@ func (s *IntegrationTestSuite) TestGetCmdDissociateBond() {
|
||||
postRun func(recordId string, s *IntegrationTestSuite)
|
||||
}{
|
||||
{
|
||||
"invalid request without wrn",
|
||||
"invalid request without crn",
|
||||
[]string{
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
@ -670,7 +670,7 @@ func (s *IntegrationTestSuite) TestGetCmdDissociateBond() {
|
||||
// postRun func(recordId string, s *IntegrationTestSuite)
|
||||
// }{
|
||||
// {
|
||||
// "invalid request without wrn",
|
||||
// "invalid request without crn",
|
||||
// []string{
|
||||
// fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
// fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
@ -794,7 +794,7 @@ func (s *IntegrationTestSuite) TestGetCmdAssociateBond() {
|
||||
postRun func(recordId, bondId string, s *IntegrationTestSuite)
|
||||
}{
|
||||
{
|
||||
"invalid request without wrn",
|
||||
"invalid request without crn",
|
||||
[]string{
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
|
@ -79,27 +79,27 @@ func (q Querier) Whois(c context.Context, request *types.QueryWhoisRequest) (*ty
|
||||
return &types.QueryWhoisResponse{NameAuthority: nameAuthority}, nil
|
||||
}
|
||||
|
||||
func (q Querier) LookupWrn(c context.Context, req *types.QueryLookupWrn) (*types.QueryLookupWrnResponse, error) {
|
||||
func (q Querier) LookupCrn(c context.Context, req *types.QueryLookupCrn) (*types.QueryLookupCrnResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
wrn := req.GetWrn()
|
||||
if !q.Keeper.HasNameRecord(ctx, wrn) {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "WRN not found.")
|
||||
crn := req.GetCrn()
|
||||
if !q.Keeper.HasNameRecord(ctx, crn) {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "CRN not found.")
|
||||
}
|
||||
nameRecord := q.Keeper.GetNameRecord(ctx, wrn)
|
||||
nameRecord := q.Keeper.GetNameRecord(ctx, crn)
|
||||
if nameRecord == nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "name record not found.")
|
||||
}
|
||||
return &types.QueryLookupWrnResponse{Name: nameRecord}, nil
|
||||
return &types.QueryLookupCrnResponse{Name: nameRecord}, nil
|
||||
}
|
||||
|
||||
func (q Querier) ResolveWrn(c context.Context, req *types.QueryResolveWrn) (*types.QueryResolveWrnResponse, error) {
|
||||
func (q Querier) ResolveCrn(c context.Context, req *types.QueryResolveCrn) (*types.QueryResolveCrnResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
wrn := req.GetWrn()
|
||||
record := q.Keeper.ResolveWRN(ctx, wrn)
|
||||
crn := req.GetCrn()
|
||||
record := q.Keeper.ResolveCRN(ctx, crn)
|
||||
if record == nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "record not found.")
|
||||
}
|
||||
return &types.QueryResolveWrnResponse{Record: record}, nil
|
||||
return &types.QueryResolveCrnResponse{Record: record}, nil
|
||||
}
|
||||
|
||||
func (q Querier) GetRecordExpiryQueue(c context.Context, _ *types.QueryGetRecordExpiryQueue) (*types.QueryGetRecordExpiryQueueResponse, error) {
|
||||
|
@ -29,8 +29,8 @@ var (
|
||||
// PrefixNameAuthorityRecordIndex is the prefix for the name -> NameAuthority index.
|
||||
PrefixNameAuthorityRecordIndex = []byte{0x01}
|
||||
|
||||
// PrefixWRNToNameRecordIndex is the prefix for the WRN -> NamingRecord index.
|
||||
PrefixWRNToNameRecordIndex = []byte{0x02}
|
||||
// PrefixCRNToNameRecordIndex is the prefix for the CRN -> NamingRecord index.
|
||||
PrefixCRNToNameRecordIndex = []byte{0x02}
|
||||
|
||||
// PrefixBondIDToRecordsIndex is the prefix for the Bond ID -> [Record] index.
|
||||
PrefixBondIDToRecordsIndex = []byte{0x03}
|
||||
|
@ -2,6 +2,7 @@ package keeper
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/tharsis/ethermint/x/nameservice/types"
|
||||
)
|
||||
@ -64,7 +65,7 @@ func (m msgServer) SetName(c context.Context, msg *types.MsgSetName) (*types.Msg
|
||||
sdk.NewEvent(
|
||||
types.EventTypeSetRecord,
|
||||
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
|
||||
sdk.NewAttribute(types.AttributeKeyWRN, msg.Wrn),
|
||||
sdk.NewAttribute(types.AttributeKeyCRN, msg.Crn),
|
||||
sdk.NewAttribute(types.AttributeKeyCID, msg.Cid),
|
||||
),
|
||||
sdk.NewEvent(
|
||||
@ -146,7 +147,7 @@ func (m msgServer) DeleteName(c context.Context, msg *types.MsgDeleteNameAuthori
|
||||
sdk.NewEvent(
|
||||
types.EventTypeDeleteName,
|
||||
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
|
||||
sdk.NewAttribute(types.AttributeKeyWRN, msg.Wrn),
|
||||
sdk.NewAttribute(types.AttributeKeyCRN, msg.Crn),
|
||||
),
|
||||
sdk.NewEvent(
|
||||
sdk.EventTypeMessage,
|
||||
|
@ -28,9 +28,9 @@ func GetNameAuthorityIndexKey(name string) []byte {
|
||||
return append(PrefixNameAuthorityRecordIndex, []byte(name)...)
|
||||
}
|
||||
|
||||
// GetNameRecordIndexKey Generates WRN -> NameRecord index key.
|
||||
func GetNameRecordIndexKey(wrn string) []byte {
|
||||
return append(PrefixWRNToNameRecordIndex, []byte(wrn)...)
|
||||
// GetNameRecordIndexKey Generates CRN -> NameRecord index key.
|
||||
func GetNameRecordIndexKey(crn string) []byte {
|
||||
return append(PrefixCRNToNameRecordIndex, []byte(crn)...)
|
||||
}
|
||||
|
||||
func GetCIDToNamesIndexKey(id string) []byte {
|
||||
@ -103,35 +103,35 @@ func RemoveBondToAuthorityIndexEntry(store sdk.KVStore, bondID string, name stri
|
||||
store.Delete(getBondIDToAuthoritiesIndexKey(bondID, name))
|
||||
}
|
||||
|
||||
func (k Keeper) updateBlockChangeSetForName(ctx sdk.Context, wrn string) {
|
||||
func (k Keeper) updateBlockChangeSetForName(ctx sdk.Context, crn string) {
|
||||
changeSet := k.getOrCreateBlockChangeSet(ctx, ctx.BlockHeight())
|
||||
changeSet.Names = append(changeSet.Names, wrn)
|
||||
changeSet.Names = append(changeSet.Names, crn)
|
||||
k.saveBlockChangeSet(ctx, changeSet)
|
||||
}
|
||||
|
||||
func (k Keeper) getAuthority(ctx sdk.Context, wrn string) (string, *url.URL, *types.NameAuthority, error) {
|
||||
parsedWRN, err := url.Parse(wrn)
|
||||
func (k Keeper) getAuthority(ctx sdk.Context, crn string) (string, *url.URL, *types.NameAuthority, error) {
|
||||
parsedCRN, err := url.Parse(crn)
|
||||
if err != nil {
|
||||
return "", nil, nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Invalid WRN.")
|
||||
return "", nil, nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Invalid CRN.")
|
||||
}
|
||||
|
||||
name := parsedWRN.Host
|
||||
name := parsedCRN.Host
|
||||
if !k.HasNameAuthority(ctx, name) {
|
||||
return name, nil, nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Name authority not found.")
|
||||
}
|
||||
authority := k.GetNameAuthority(ctx, name)
|
||||
return name, parsedWRN, &authority, nil
|
||||
return name, parsedCRN, &authority, nil
|
||||
}
|
||||
|
||||
func (k Keeper) checkWRNAccess(ctx sdk.Context, signer sdk.AccAddress, wrn string) error {
|
||||
name, parsedWRN, authority, err := k.getAuthority(ctx, wrn)
|
||||
func (k Keeper) checkCRNAccess(ctx sdk.Context, signer sdk.AccAddress, crn string) error {
|
||||
name, parsedCRN, authority, err := k.getAuthority(ctx, crn)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
formattedWRN := fmt.Sprintf("wrn://%s%s", name, parsedWRN.RequestURI())
|
||||
if formattedWRN != wrn {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Invalid WRN.")
|
||||
formattedCRN := fmt.Sprintf("crn://%s%s", name, parsedCRN.RequestURI())
|
||||
if formattedCRN != crn {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Invalid CRN.")
|
||||
}
|
||||
|
||||
if authority.OwnerAddress != signer.String() {
|
||||
@ -161,14 +161,14 @@ func (k Keeper) checkWRNAccess(ctx sdk.Context, signer sdk.AccAddress, wrn strin
|
||||
}
|
||||
|
||||
// HasNameRecord - checks if a name record exists.
|
||||
func (k Keeper) HasNameRecord(ctx sdk.Context, wrn string) bool {
|
||||
func (k Keeper) HasNameRecord(ctx sdk.Context, crn string) bool {
|
||||
store := ctx.KVStore(k.storeKey)
|
||||
return store.Has(GetNameRecordIndexKey(wrn))
|
||||
return store.Has(GetNameRecordIndexKey(crn))
|
||||
}
|
||||
|
||||
// GetNameRecord - gets a name record from the store.
|
||||
func GetNameRecord(store sdk.KVStore, codec codec.BinaryCodec, wrn string) *types.NameRecord {
|
||||
nameRecordKey := GetNameRecordIndexKey(wrn)
|
||||
func GetNameRecord(store sdk.KVStore, codec codec.BinaryCodec, crn string) *types.NameRecord {
|
||||
nameRecordKey := GetNameRecordIndexKey(crn)
|
||||
if !store.Has(nameRecordKey) {
|
||||
return nil
|
||||
}
|
||||
@ -181,14 +181,14 @@ func GetNameRecord(store sdk.KVStore, codec codec.BinaryCodec, wrn string) *type
|
||||
}
|
||||
|
||||
// GetNameRecord - gets a name record from the store.
|
||||
func (k Keeper) GetNameRecord(ctx sdk.Context, wrn string) *types.NameRecord {
|
||||
_, _, authority, err := k.getAuthority(ctx, wrn)
|
||||
func (k Keeper) GetNameRecord(ctx sdk.Context, crn string) *types.NameRecord {
|
||||
_, _, authority, err := k.getAuthority(ctx, crn)
|
||||
if err != nil || authority.Status != types.AuthorityActive {
|
||||
// If authority is not active (or any other error), lookup fails.
|
||||
return nil
|
||||
}
|
||||
|
||||
nameRecord := GetNameRecord(ctx.KVStore(k.storeKey), k.cdc, wrn)
|
||||
nameRecord := GetNameRecord(ctx.KVStore(k.storeKey), k.cdc, crn)
|
||||
|
||||
// Name record may not exist.
|
||||
if nameRecord == nil {
|
||||
@ -205,12 +205,12 @@ func (k Keeper) GetNameRecord(ctx sdk.Context, wrn string) *types.NameRecord {
|
||||
}
|
||||
|
||||
// RemoveRecordToNameMapping removes a name from the record ID -> []names index.
|
||||
func RemoveRecordToNameMapping(store sdk.KVStore, id string, wrn string) {
|
||||
func RemoveRecordToNameMapping(store sdk.KVStore, id string, crn string) {
|
||||
reverseNameIndexKey := GetCIDToNamesIndexKey(id)
|
||||
|
||||
names, _ := helpers.BytesArrToStringArr(store.Get(reverseNameIndexKey))
|
||||
nameSet := helpers.SliceToSet(names)
|
||||
nameSet.Remove(wrn)
|
||||
nameSet.Remove(crn)
|
||||
|
||||
if nameSet.Cardinality() == 0 {
|
||||
// Delete as storing empty slice throws error from baseapp.
|
||||
@ -222,7 +222,7 @@ func RemoveRecordToNameMapping(store sdk.KVStore, id string, wrn string) {
|
||||
}
|
||||
|
||||
// AddRecordToNameMapping adds a name to the record ID -> []names index.
|
||||
func AddRecordToNameMapping(store sdk.KVStore, id string, wrn string) {
|
||||
func AddRecordToNameMapping(store sdk.KVStore, id string, crn string) {
|
||||
reverseNameIndexKey := GetCIDToNamesIndexKey(id)
|
||||
|
||||
var names []string
|
||||
@ -231,14 +231,14 @@ func AddRecordToNameMapping(store sdk.KVStore, id string, wrn string) {
|
||||
}
|
||||
|
||||
nameSet := helpers.SliceToSet(names)
|
||||
nameSet.Add(wrn)
|
||||
nameSet.Add(crn)
|
||||
bz, _ := helpers.StrArrToBytesArr(helpers.SetToSlice(nameSet))
|
||||
store.Set(reverseNameIndexKey, bz)
|
||||
}
|
||||
|
||||
// SetNameRecord - sets a name record.
|
||||
func SetNameRecord(store sdk.KVStore, codec codec.BinaryCodec, wrn string, id string, height int64) {
|
||||
nameRecordIndexKey := GetNameRecordIndexKey(wrn)
|
||||
func SetNameRecord(store sdk.KVStore, codec codec.BinaryCodec, crn string, id string, height int64) {
|
||||
nameRecordIndexKey := GetNameRecordIndexKey(crn)
|
||||
|
||||
var nameRecord types.NameRecord
|
||||
if store.Has(nameRecordIndexKey) {
|
||||
@ -248,7 +248,7 @@ func SetNameRecord(store sdk.KVStore, codec codec.BinaryCodec, wrn string, id st
|
||||
|
||||
// Update old CID -> []Name index.
|
||||
if nameRecord.Latest.Id != "" || len(nameRecord.Latest.Id) != 0 {
|
||||
RemoveRecordToNameMapping(store, nameRecord.Latest.Id, wrn)
|
||||
RemoveRecordToNameMapping(store, nameRecord.Latest.Id, crn)
|
||||
}
|
||||
}
|
||||
|
||||
@ -261,35 +261,35 @@ func SetNameRecord(store sdk.KVStore, codec codec.BinaryCodec, wrn string, id st
|
||||
|
||||
// Update new CID -> []Name index.
|
||||
if id != "" {
|
||||
AddRecordToNameMapping(store, id, wrn)
|
||||
AddRecordToNameMapping(store, id, crn)
|
||||
}
|
||||
}
|
||||
|
||||
// SetNameRecord - sets a name record.
|
||||
func (k Keeper) SetNameRecord(ctx sdk.Context, wrn string, id string) {
|
||||
SetNameRecord(ctx.KVStore(k.storeKey), k.cdc, wrn, id, ctx.BlockHeight())
|
||||
func (k Keeper) SetNameRecord(ctx sdk.Context, crn string, id string) {
|
||||
SetNameRecord(ctx.KVStore(k.storeKey), k.cdc, crn, id, ctx.BlockHeight())
|
||||
|
||||
// Update changeSet for name.
|
||||
k.updateBlockChangeSetForName(ctx, wrn)
|
||||
k.updateBlockChangeSetForName(ctx, crn)
|
||||
}
|
||||
|
||||
// ProcessSetName creates a WRN -> Record ID mapping.
|
||||
// ProcessSetName creates a CRN -> Record ID mapping.
|
||||
func (k Keeper) ProcessSetName(ctx sdk.Context, msg types.MsgSetName) error {
|
||||
signerAddress, err := sdk.AccAddressFromBech32(msg.Signer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = k.checkWRNAccess(ctx, signerAddress, msg.Wrn)
|
||||
err = k.checkCRNAccess(ctx, signerAddress, msg.Crn)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
nameRecord := k.GetNameRecord(ctx, msg.Wrn)
|
||||
nameRecord := k.GetNameRecord(ctx, msg.Crn)
|
||||
if nameRecord != nil && nameRecord.Latest.Id == msg.Cid {
|
||||
return nil
|
||||
}
|
||||
|
||||
k.SetNameRecord(ctx, msg.Wrn, msg.Cid)
|
||||
k.SetNameRecord(ctx, msg.Crn, msg.Cid)
|
||||
|
||||
return nil
|
||||
}
|
||||
@ -298,7 +298,7 @@ func (k Keeper) ProcessSetName(ctx sdk.Context, msg types.MsgSetName) error {
|
||||
func (k Keeper) ListNameRecords(ctx sdk.Context) []types.NameEntry {
|
||||
var nameEntries []types.NameEntry
|
||||
store := ctx.KVStore(k.storeKey)
|
||||
itr := sdk.KVStorePrefixIterator(store, PrefixWRNToNameRecordIndex)
|
||||
itr := sdk.KVStorePrefixIterator(store, PrefixCRNToNameRecordIndex)
|
||||
defer itr.Close()
|
||||
for ; itr.Valid(); itr.Next() {
|
||||
bz := store.Get(itr.Key())
|
||||
@ -306,7 +306,7 @@ func (k Keeper) ListNameRecords(ctx sdk.Context) []types.NameEntry {
|
||||
var record types.NameRecord
|
||||
k.cdc.MustUnmarshal(bz, &record)
|
||||
nameEntries = append(nameEntries, types.NameEntry{
|
||||
Name: string(itr.Key()[len(PrefixWRNToNameRecordIndex):]),
|
||||
Name: string(itr.Key()[len(PrefixCRNToNameRecordIndex):]),
|
||||
Entry: &record,
|
||||
})
|
||||
}
|
||||
@ -427,13 +427,13 @@ func (k Keeper) createAuthority(ctx sdk.Context, name string, owner string, isRo
|
||||
|
||||
// ProcessReserveAuthority reserves a name authority.
|
||||
func (k Keeper) ProcessReserveAuthority(ctx sdk.Context, msg types.MsgReserveAuthority) error {
|
||||
wrn := fmt.Sprintf("wrn://%s", msg.GetName())
|
||||
parsedWrn, err := url.Parse(wrn)
|
||||
crn := fmt.Sprintf("crn://%s", msg.GetName())
|
||||
parsedCrn, err := url.Parse(crn)
|
||||
if err != nil {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Invalid name")
|
||||
}
|
||||
name := parsedWrn.Host
|
||||
if fmt.Sprintf("wrn://%s", name) != wrn {
|
||||
name := parsedCrn.Host
|
||||
if fmt.Sprintf("crn://%s", name) != crn {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Invalid name")
|
||||
}
|
||||
if strings.Contains(name, ".") {
|
||||
@ -484,23 +484,23 @@ func (k Keeper) ProcessSetAuthorityBond(ctx sdk.Context, msg types.MsgSetAuthori
|
||||
return nil
|
||||
}
|
||||
|
||||
// ProcessDeleteName removes a WRN -> Record ID mapping.
|
||||
// ProcessDeleteName removes a CRN -> Record ID mapping.
|
||||
func (k Keeper) ProcessDeleteName(ctx sdk.Context, msg types.MsgDeleteNameAuthority) error {
|
||||
signerAddress, err := sdk.AccAddressFromBech32(msg.Signer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = k.checkWRNAccess(ctx, signerAddress, msg.Wrn)
|
||||
err = k.checkCRNAccess(ctx, signerAddress, msg.Crn)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !k.HasNameRecord(ctx, msg.Wrn) {
|
||||
if !k.HasNameRecord(ctx, msg.Crn) {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Name not found.")
|
||||
}
|
||||
|
||||
// Set CID to empty string.
|
||||
k.SetNameRecord(ctx, msg.Wrn, "")
|
||||
k.SetNameRecord(ctx, msg.Crn, "")
|
||||
|
||||
return nil
|
||||
}
|
||||
@ -526,9 +526,9 @@ func (k Keeper) GetAuthorityExpiryQueue(ctx sdk.Context) []*types.ExpiryQueueRec
|
||||
return authorities
|
||||
}
|
||||
|
||||
// ResolveWRN resolves a WRN to a record.
|
||||
func (k Keeper) ResolveWRN(ctx sdk.Context, wrn string) *types.Record {
|
||||
_, _, authority, err := k.getAuthority(ctx, wrn)
|
||||
// ResolveCRN resolves a CRN to a record.
|
||||
func (k Keeper) ResolveCRN(ctx sdk.Context, crn string) *types.Record {
|
||||
_, _, authority, err := k.getAuthority(ctx, crn)
|
||||
if err != nil || authority.Status != types.AuthorityActive {
|
||||
// If authority is not active (or any other error), resolution fails.
|
||||
return nil
|
||||
@ -536,7 +536,7 @@ func (k Keeper) ResolveWRN(ctx sdk.Context, wrn string) *types.Record {
|
||||
|
||||
// Name should not resolve if it's stale.
|
||||
// i.e. authority was registered later than the name.
|
||||
record, nameRecord := ResolveWRN(ctx.KVStore(k.storeKey), wrn, k, ctx)
|
||||
record, nameRecord := ResolveCRN(ctx.KVStore(k.storeKey), crn, k, ctx)
|
||||
if authority.Height > nameRecord.Latest.Height {
|
||||
return nil
|
||||
}
|
||||
@ -544,9 +544,9 @@ func (k Keeper) ResolveWRN(ctx sdk.Context, wrn string) *types.Record {
|
||||
return record
|
||||
}
|
||||
|
||||
// ResolveWRN resolves a WRN to a record.
|
||||
func ResolveWRN(store sdk.KVStore, wrn string, k Keeper, c sdk.Context) (*types.Record, *types.NameRecord) {
|
||||
nameKey := GetNameRecordIndexKey(wrn)
|
||||
// ResolveCRN resolves a CRN to a record.
|
||||
func ResolveCRN(store sdk.KVStore, crn string, k Keeper, c sdk.Context) (*types.Record, *types.NameRecord) {
|
||||
nameKey := GetNameRecordIndexKey(crn)
|
||||
|
||||
if store.Has(nameKey) {
|
||||
bz := store.Get(nameKey)
|
||||
|
@ -19,7 +19,7 @@ const (
|
||||
AttributeKeyNewBondId = "new-bond-id"
|
||||
AttributeKeyCID = "cid"
|
||||
AttributeKeyName = "name"
|
||||
AttributeKeyWRN = "wrn"
|
||||
AttributeKeyCRN = "crn"
|
||||
AttributeKeyRecordId = "record-id"
|
||||
AttributeValueCategory = ModuleName
|
||||
)
|
||||
|
@ -1,9 +1,10 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -14,9 +15,9 @@ var (
|
||||
)
|
||||
|
||||
// NewMsgSetName is the constructor function for MsgSetName.
|
||||
func NewMsgSetName(wrn string, cid string, signer sdk.AccAddress) MsgSetName {
|
||||
func NewMsgSetName(crn string, cid string, signer sdk.AccAddress) MsgSetName {
|
||||
return MsgSetName{
|
||||
Wrn: wrn,
|
||||
Crn: crn,
|
||||
Cid: cid,
|
||||
Signer: signer.String(),
|
||||
}
|
||||
@ -31,8 +32,8 @@ func (msg MsgSetName) Type() string { return "set-name" }
|
||||
// ValidateBasic Implements Msg.
|
||||
func (msg MsgSetName) ValidateBasic() error {
|
||||
|
||||
if msg.Wrn == "" {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "WRN is required.")
|
||||
if msg.Crn == "" {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "CRN is required.")
|
||||
}
|
||||
|
||||
if msg.Cid == "" {
|
||||
@ -144,9 +145,9 @@ func (msg MsgSetAuthorityBond) GetSigners() []sdk.AccAddress {
|
||||
}
|
||||
|
||||
// NewMsgDeleteNameAuthority is the constructor function for MsgDeleteNameAuthority.
|
||||
func NewMsgDeleteNameAuthority(wrn string, signer sdk.AccAddress) MsgDeleteNameAuthority {
|
||||
func NewMsgDeleteNameAuthority(crn string, signer sdk.AccAddress) MsgDeleteNameAuthority {
|
||||
return MsgDeleteNameAuthority{
|
||||
Wrn: wrn,
|
||||
Crn: crn,
|
||||
Signer: signer.String(),
|
||||
}
|
||||
}
|
||||
@ -159,17 +160,17 @@ func (msg MsgDeleteNameAuthority) Type() string { return "delete-name" }
|
||||
|
||||
// ValidateBasic Implements Msg.
|
||||
func (msg MsgDeleteNameAuthority) ValidateBasic() error {
|
||||
if len(msg.Wrn) == 0 {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "wrn is required.")
|
||||
if len(msg.Crn) == 0 {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "crn is required.")
|
||||
}
|
||||
|
||||
if len(msg.Signer) == 0 {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "invalid signer.")
|
||||
}
|
||||
|
||||
_, err := url.Parse(msg.Wrn)
|
||||
_, err := url.Parse(msg.Crn)
|
||||
if err != nil {
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid wrn.")
|
||||
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid crn.")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
472
x/nameservice/types/query.pb.go
generated
472
x/nameservice/types/query.pb.go
generated
@ -944,23 +944,23 @@ func (m *QueryWhoisResponse) GetNameAuthority() NameAuthority {
|
||||
return NameAuthority{}
|
||||
}
|
||||
|
||||
// QueryLookupWrn is request type for LookupWrn
|
||||
type QueryLookupWrn struct {
|
||||
Wrn string `protobuf:"bytes,1,opt,name=wrn,proto3" json:"wrn,omitempty"`
|
||||
// QueryLookupCrn is request type for LookupCrn
|
||||
type QueryLookupCrn struct {
|
||||
Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrn) Reset() { *m = QueryLookupWrn{} }
|
||||
func (m *QueryLookupWrn) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryLookupWrn) ProtoMessage() {}
|
||||
func (*QueryLookupWrn) Descriptor() ([]byte, []int) {
|
||||
func (m *QueryLookupCrn) Reset() { *m = QueryLookupCrn{} }
|
||||
func (m *QueryLookupCrn) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryLookupCrn) ProtoMessage() {}
|
||||
func (*QueryLookupCrn) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73d2465766c8f876, []int{15}
|
||||
}
|
||||
func (m *QueryLookupWrn) XXX_Unmarshal(b []byte) error {
|
||||
func (m *QueryLookupCrn) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *QueryLookupWrn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
func (m *QueryLookupCrn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_QueryLookupWrn.Marshal(b, m, deterministic)
|
||||
return xxx_messageInfo_QueryLookupCrn.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
@ -970,42 +970,42 @@ func (m *QueryLookupWrn) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *QueryLookupWrn) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryLookupWrn.Merge(m, src)
|
||||
func (m *QueryLookupCrn) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryLookupCrn.Merge(m, src)
|
||||
}
|
||||
func (m *QueryLookupWrn) XXX_Size() int {
|
||||
func (m *QueryLookupCrn) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *QueryLookupWrn) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryLookupWrn.DiscardUnknown(m)
|
||||
func (m *QueryLookupCrn) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryLookupCrn.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QueryLookupWrn proto.InternalMessageInfo
|
||||
var xxx_messageInfo_QueryLookupCrn proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryLookupWrn) GetWrn() string {
|
||||
func (m *QueryLookupCrn) GetCrn() string {
|
||||
if m != nil {
|
||||
return m.Wrn
|
||||
return m.Crn
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// QueryLookupWrnResponse is response type for QueryLookupWrn
|
||||
type QueryLookupWrnResponse struct {
|
||||
// QueryLookupCrnResponse is response type for QueryLookupCrn
|
||||
type QueryLookupCrnResponse struct {
|
||||
Name *NameRecord `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrnResponse) Reset() { *m = QueryLookupWrnResponse{} }
|
||||
func (m *QueryLookupWrnResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryLookupWrnResponse) ProtoMessage() {}
|
||||
func (*QueryLookupWrnResponse) Descriptor() ([]byte, []int) {
|
||||
func (m *QueryLookupCrnResponse) Reset() { *m = QueryLookupCrnResponse{} }
|
||||
func (m *QueryLookupCrnResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryLookupCrnResponse) ProtoMessage() {}
|
||||
func (*QueryLookupCrnResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73d2465766c8f876, []int{16}
|
||||
}
|
||||
func (m *QueryLookupWrnResponse) XXX_Unmarshal(b []byte) error {
|
||||
func (m *QueryLookupCrnResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *QueryLookupWrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
func (m *QueryLookupCrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_QueryLookupWrnResponse.Marshal(b, m, deterministic)
|
||||
return xxx_messageInfo_QueryLookupCrnResponse.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
@ -1015,42 +1015,42 @@ func (m *QueryLookupWrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]by
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *QueryLookupWrnResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryLookupWrnResponse.Merge(m, src)
|
||||
func (m *QueryLookupCrnResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryLookupCrnResponse.Merge(m, src)
|
||||
}
|
||||
func (m *QueryLookupWrnResponse) XXX_Size() int {
|
||||
func (m *QueryLookupCrnResponse) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *QueryLookupWrnResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryLookupWrnResponse.DiscardUnknown(m)
|
||||
func (m *QueryLookupCrnResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryLookupCrnResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QueryLookupWrnResponse proto.InternalMessageInfo
|
||||
var xxx_messageInfo_QueryLookupCrnResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryLookupWrnResponse) GetName() *NameRecord {
|
||||
func (m *QueryLookupCrnResponse) GetName() *NameRecord {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// QueryResolveWrn is request type for ResolveWrn
|
||||
type QueryResolveWrn struct {
|
||||
Wrn string `protobuf:"bytes,1,opt,name=wrn,proto3" json:"wrn,omitempty"`
|
||||
// QueryResolveCrn is request type for ResolveCrn
|
||||
type QueryResolveCrn struct {
|
||||
Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrn) Reset() { *m = QueryResolveWrn{} }
|
||||
func (m *QueryResolveWrn) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryResolveWrn) ProtoMessage() {}
|
||||
func (*QueryResolveWrn) Descriptor() ([]byte, []int) {
|
||||
func (m *QueryResolveCrn) Reset() { *m = QueryResolveCrn{} }
|
||||
func (m *QueryResolveCrn) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryResolveCrn) ProtoMessage() {}
|
||||
func (*QueryResolveCrn) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73d2465766c8f876, []int{17}
|
||||
}
|
||||
func (m *QueryResolveWrn) XXX_Unmarshal(b []byte) error {
|
||||
func (m *QueryResolveCrn) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *QueryResolveWrn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
func (m *QueryResolveCrn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_QueryResolveWrn.Marshal(b, m, deterministic)
|
||||
return xxx_messageInfo_QueryResolveCrn.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
@ -1060,42 +1060,42 @@ func (m *QueryResolveWrn) XXX_Marshal(b []byte, deterministic bool) ([]byte, err
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *QueryResolveWrn) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryResolveWrn.Merge(m, src)
|
||||
func (m *QueryResolveCrn) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryResolveCrn.Merge(m, src)
|
||||
}
|
||||
func (m *QueryResolveWrn) XXX_Size() int {
|
||||
func (m *QueryResolveCrn) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *QueryResolveWrn) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryResolveWrn.DiscardUnknown(m)
|
||||
func (m *QueryResolveCrn) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryResolveCrn.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QueryResolveWrn proto.InternalMessageInfo
|
||||
var xxx_messageInfo_QueryResolveCrn proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryResolveWrn) GetWrn() string {
|
||||
func (m *QueryResolveCrn) GetCrn() string {
|
||||
if m != nil {
|
||||
return m.Wrn
|
||||
return m.Crn
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// QueryResolveWrnResponse is response type for QueryResolveWrn
|
||||
type QueryResolveWrnResponse struct {
|
||||
// QueryResolveCrnResponse is response type for QueryResolveCrn
|
||||
type QueryResolveCrnResponse struct {
|
||||
Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrnResponse) Reset() { *m = QueryResolveWrnResponse{} }
|
||||
func (m *QueryResolveWrnResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryResolveWrnResponse) ProtoMessage() {}
|
||||
func (*QueryResolveWrnResponse) Descriptor() ([]byte, []int) {
|
||||
func (m *QueryResolveCrnResponse) Reset() { *m = QueryResolveCrnResponse{} }
|
||||
func (m *QueryResolveCrnResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryResolveCrnResponse) ProtoMessage() {}
|
||||
func (*QueryResolveCrnResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_73d2465766c8f876, []int{18}
|
||||
}
|
||||
func (m *QueryResolveWrnResponse) XXX_Unmarshal(b []byte) error {
|
||||
func (m *QueryResolveCrnResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *QueryResolveWrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
func (m *QueryResolveCrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_QueryResolveWrnResponse.Marshal(b, m, deterministic)
|
||||
return xxx_messageInfo_QueryResolveCrnResponse.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
@ -1105,19 +1105,19 @@ func (m *QueryResolveWrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]b
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *QueryResolveWrnResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryResolveWrnResponse.Merge(m, src)
|
||||
func (m *QueryResolveCrnResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryResolveCrnResponse.Merge(m, src)
|
||||
}
|
||||
func (m *QueryResolveWrnResponse) XXX_Size() int {
|
||||
func (m *QueryResolveCrnResponse) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *QueryResolveWrnResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryResolveWrnResponse.DiscardUnknown(m)
|
||||
func (m *QueryResolveCrnResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryResolveCrnResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QueryResolveWrnResponse proto.InternalMessageInfo
|
||||
var xxx_messageInfo_QueryResolveCrnResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryResolveWrnResponse) GetRecord() *Record {
|
||||
func (m *QueryResolveCrnResponse) GetRecord() *Record {
|
||||
if m != nil {
|
||||
return m.Record
|
||||
}
|
||||
@ -1396,10 +1396,10 @@ func init() {
|
||||
proto.RegisterType((*QueryListNameRecordsResponse)(nil), "vulcanize.nameservice.v1beta1.QueryListNameRecordsResponse")
|
||||
proto.RegisterType((*QueryWhoisRequest)(nil), "vulcanize.nameservice.v1beta1.QueryWhoisRequest")
|
||||
proto.RegisterType((*QueryWhoisResponse)(nil), "vulcanize.nameservice.v1beta1.QueryWhoisResponse")
|
||||
proto.RegisterType((*QueryLookupWrn)(nil), "vulcanize.nameservice.v1beta1.QueryLookupWrn")
|
||||
proto.RegisterType((*QueryLookupWrnResponse)(nil), "vulcanize.nameservice.v1beta1.QueryLookupWrnResponse")
|
||||
proto.RegisterType((*QueryResolveWrn)(nil), "vulcanize.nameservice.v1beta1.QueryResolveWrn")
|
||||
proto.RegisterType((*QueryResolveWrnResponse)(nil), "vulcanize.nameservice.v1beta1.QueryResolveWrnResponse")
|
||||
proto.RegisterType((*QueryLookupCrn)(nil), "vulcanize.nameservice.v1beta1.QueryLookupCrn")
|
||||
proto.RegisterType((*QueryLookupCrnResponse)(nil), "vulcanize.nameservice.v1beta1.QueryLookupCrnResponse")
|
||||
proto.RegisterType((*QueryResolveCrn)(nil), "vulcanize.nameservice.v1beta1.QueryResolveCrn")
|
||||
proto.RegisterType((*QueryResolveCrnResponse)(nil), "vulcanize.nameservice.v1beta1.QueryResolveCrnResponse")
|
||||
proto.RegisterType((*QueryGetRecordExpiryQueue)(nil), "vulcanize.nameservice.v1beta1.QueryGetRecordExpiryQueue")
|
||||
proto.RegisterType((*QueryGetRecordExpiryQueueResponse)(nil), "vulcanize.nameservice.v1beta1.QueryGetRecordExpiryQueueResponse")
|
||||
proto.RegisterType((*ExpiryQueueRecord)(nil), "vulcanize.nameservice.v1beta1.ExpiryQueueRecord")
|
||||
@ -1412,96 +1412,96 @@ func init() {
|
||||
}
|
||||
|
||||
var fileDescriptor_73d2465766c8f876 = []byte{
|
||||
// 1414 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4b, 0x6c, 0x1b, 0xc5,
|
||||
0x1b, 0xcf, 0x24, 0xb1, 0xd3, 0x7c, 0xf9, 0x37, 0xfd, 0x77, 0x88, 0x5a, 0x77, 0xdb, 0x3a, 0x61,
|
||||
0xfb, 0x72, 0xa0, 0xde, 0x6d, 0x52, 0xfa, 0x16, 0x88, 0xba, 0x0d, 0x51, 0x4b, 0x41, 0x74, 0x41,
|
||||
0x04, 0x38, 0x50, 0xad, 0xed, 0xa9, 0xb3, 0x74, 0x3d, 0xe3, 0xee, 0xce, 0xa6, 0x75, 0xab, 0x5e,
|
||||
0x38, 0xf4, 0x8c, 0xc4, 0x19, 0x04, 0x12, 0xa7, 0x4a, 0xc0, 0x85, 0x43, 0xc5, 0x95, 0x4b, 0xc5,
|
||||
0xa9, 0x12, 0x1c, 0x38, 0x15, 0xd4, 0x22, 0x71, 0xef, 0x91, 0x13, 0xda, 0x99, 0xd9, 0xf5, 0x6e,
|
||||
0xe2, 0xc4, 0x6b, 0x27, 0x48, 0x9c, 0x3c, 0x3b, 0xfb, 0x3d, 0x7e, 0xbf, 0xef, 0x31, 0xfb, 0x8d,
|
||||
0x61, 0x76, 0x25, 0x70, 0x6b, 0x36, 0x75, 0xee, 0x10, 0x93, 0xda, 0x4d, 0xe2, 0x13, 0x6f, 0xc5,
|
||||
0xa9, 0x11, 0x73, 0x65, 0xae, 0x4a, 0xb8, 0x3d, 0x67, 0xde, 0x0c, 0x88, 0xd7, 0x36, 0x5a, 0x1e,
|
||||
0xe3, 0x0c, 0xef, 0x8f, 0x45, 0x8d, 0x84, 0xa8, 0xa1, 0x44, 0x35, 0x73, 0x63, 0x4b, 0x49, 0x15,
|
||||
0x61, 0x4f, 0xdb, 0xd7, 0x60, 0xac, 0xe1, 0x12, 0xd3, 0x6e, 0x39, 0xa6, 0x4d, 0x29, 0xe3, 0x36,
|
||||
0x77, 0x18, 0xf5, 0xd5, 0xdb, 0x97, 0x6a, 0xcc, 0x6f, 0x32, 0xdf, 0xac, 0xda, 0x3e, 0x91, 0x30,
|
||||
0x62, 0x53, 0x2d, 0xbb, 0xe1, 0x50, 0x21, 0xac, 0x64, 0xa7, 0x1a, 0xac, 0xc1, 0xc4, 0xd2, 0x0c,
|
||||
0x57, 0x6a, 0xb7, 0x98, 0xb4, 0x10, 0xe9, 0xd6, 0x98, 0xa3, 0xb4, 0xf4, 0x29, 0xc0, 0x57, 0x43,
|
||||
0xbb, 0xef, 0xd8, 0x9e, 0xdd, 0xf4, 0x2d, 0x72, 0x33, 0x20, 0x3e, 0xd7, 0xdf, 0x83, 0x17, 0x52,
|
||||
0xbb, 0x7e, 0x8b, 0x51, 0x9f, 0xe0, 0x57, 0x21, 0xdf, 0x12, 0x3b, 0x05, 0x34, 0x83, 0x4a, 0x13,
|
||||
0xf3, 0x87, 0x8c, 0x0d, 0xa3, 0x61, 0x28, 0x75, 0xa5, 0xa4, 0xff, 0x90, 0x83, 0xdd, 0xc2, 0xec,
|
||||
0x15, 0xc7, 0xe7, 0x16, 0xa9, 0x31, 0xaf, 0x1e, 0x79, 0xc4, 0x75, 0x00, 0x9b, 0x73, 0xcf, 0xa9,
|
||||
0x06, 0x9c, 0x84, 0xe6, 0x47, 0x4a, 0x13, 0xf3, 0x17, 0x7b, 0x98, 0x5f, 0xc7, 0x96, 0xf1, 0x26,
|
||||
0x69, 0xbf, 0x6f, 0xbb, 0x01, 0xb9, 0x44, 0x5b, 0x01, 0xb7, 0x12, 0x76, 0xf1, 0xff, 0x61, 0xc4,
|
||||
0x76, 0xdd, 0xc2, 0xf0, 0x0c, 0x2a, 0x6d, 0xb3, 0xc2, 0x25, 0x7e, 0x03, 0xa0, 0x13, 0xc9, 0xc2,
|
||||
0x88, 0xa0, 0x75, 0xd8, 0x90, 0x41, 0x33, 0xc2, 0xa0, 0x19, 0x32, 0xfb, 0x1d, 0x4a, 0x0d, 0xa2,
|
||||
0xfc, 0x58, 0x09, 0x4d, 0x6d, 0x06, 0x26, 0x2d, 0x72, 0x9d, 0x78, 0x84, 0xd6, 0xa4, 0x5f, 0x3c,
|
||||
0x09, 0xc3, 0x4e, 0x5d, 0x04, 0x6a, 0xdc, 0x1a, 0x76, 0xea, 0xda, 0x8f, 0xc3, 0x00, 0x1d, 0x58,
|
||||
0x18, 0xc3, 0x28, 0x6f, 0xb7, 0x88, 0x12, 0x10, 0x6b, 0xbc, 0x0b, 0xf2, 0x3e, 0xf7, 0x1c, 0xda,
|
||||
0x10, 0x08, 0xc7, 0x2d, 0xf5, 0x14, 0xc2, 0x76, 0x28, 0x17, 0xe8, 0x46, 0xac, 0x70, 0x89, 0xa7,
|
||||
0x20, 0x77, 0xdd, 0x65, 0x36, 0x2f, 0x8c, 0xce, 0xa0, 0x12, 0xb2, 0xe4, 0x03, 0x2e, 0xc0, 0x58,
|
||||
0x95, 0x31, 0x97, 0xd8, 0xb4, 0x90, 0x13, 0x14, 0xa3, 0x47, 0x5c, 0x83, 0x71, 0x2f, 0x82, 0x57,
|
||||
0xc8, 0x0b, 0x96, 0x0b, 0x03, 0x46, 0x37, 0x4d, 0xd3, 0xea, 0xd8, 0xc5, 0x1f, 0x42, 0x7e, 0x25,
|
||||
0x24, 0xe8, 0x17, 0xc6, 0x44, 0xfe, 0xce, 0x0f, 0xe8, 0x21, 0x91, 0x3c, 0x65, 0x50, 0xbb, 0x03,
|
||||
0xdb, 0x53, 0x59, 0x0d, 0x43, 0x72, 0x83, 0xb4, 0x55, 0xf4, 0xc2, 0x25, 0x5e, 0x82, 0x9c, 0x10,
|
||||
0x16, 0xb1, 0xdb, 0x12, 0xe7, 0xd2, 0x9e, 0xfe, 0x00, 0x41, 0x61, 0xad, 0xb4, 0x6a, 0x89, 0x05,
|
||||
0x18, 0xf3, 0xe4, 0x96, 0x2a, 0xda, 0x5e, 0x3d, 0x21, 0x0d, 0x54, 0x46, 0x1f, 0x3d, 0x99, 0x1e,
|
||||
0xb2, 0x22, 0x5d, 0xbc, 0x98, 0x2a, 0x43, 0xc9, 0xe0, 0x48, 0xcf, 0x32, 0x94, 0x18, 0x92, 0x75,
|
||||
0xa8, 0x97, 0x60, 0x97, 0xc0, 0xaa, 0xdc, 0xb4, 0x2f, 0xd5, 0xa3, 0x0e, 0x5b, 0x55, 0x8f, 0xfa,
|
||||
0xc7, 0xaa, 0x19, 0x93, 0x92, 0x8a, 0xd4, 0x05, 0xc8, 0x4b, 0x60, 0x19, 0xfb, 0x3c, 0xc5, 0x49,
|
||||
0xa9, 0xea, 0x1c, 0xb4, 0x94, 0xfd, 0x0a, 0xa3, 0xf5, 0x75, 0xd1, 0xac, 0xea, 0xc3, 0xe1, 0x41,
|
||||
0xfb, 0x50, 0xff, 0x16, 0xc1, 0xde, 0xae, 0x6e, 0xff, 0xa3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x77, 0x3f, 0x2a, 0x79, 0x17, 0x21, 0x27, 0x32,
|
||||
0xa4, 0x32, 0x57, 0xea, 0x91, 0xb9, 0xd0, 0xc4, 0x02, 0xe5, 0x5e, 0x5b, 0x95, 0xa6, 0x54, 0xde,
|
||||
0xba, 0xc2, 0x3c, 0x02, 0x3b, 0x05, 0xdc, 0xa5, 0x65, 0xe6, 0xc4, 0xc1, 0xc0, 0x30, 0xda, 0x49,
|
||||
0xbd, 0x25, 0xd6, 0xfa, 0x17, 0x48, 0x8d, 0x10, 0x4a, 0x52, 0xd1, 0xb9, 0x8f, 0x60, 0x32, 0x7c,
|
||||
0x7f, 0xcd, 0x0e, 0xf8, 0x32, 0xf3, 0x1c, 0xde, 0x56, 0xc1, 0x3b, 0x9a, 0x81, 0xd8, 0xf9, 0x48,
|
||||
0xa7, 0x32, 0xa7, 0x32, 0x3f, 0x2b, 0x33, 0x4f, 0x93, 0x2f, 0xa3, 0xfc, 0xa7, 0x37, 0xad, 0xed,
|
||||
0xe9, 0x67, 0x1d, 0x26, 0x65, 0xdc, 0x19, 0xbb, 0x11, 0xb4, 0x96, 0x3c, 0x1a, 0x7e, 0x3b, 0x6e,
|
||||
0x79, 0x34, 0xfa, 0x76, 0xdc, 0xf2, 0xa8, 0xbe, 0xa4, 0x4e, 0xcd, 0x58, 0x26, 0x31, 0xf2, 0x74,
|
||||
0x18, 0x4f, 0xcc, 0xcf, 0x66, 0xc0, 0x2e, 0xf3, 0xaa, 0x82, 0x73, 0x00, 0x76, 0xa8, 0xd3, 0xc8,
|
||||
0x67, 0xee, 0x0a, 0xe9, 0xee, 0xfd, 0x83, 0xf8, 0x24, 0x8e, 0x84, 0x92, 0x13, 0xd7, 0x00, 0x27,
|
||||
0x71, 0x7c, 0x06, 0xd7, 0x60, 0x8f, 0xb0, 0xbc, 0x48, 0xd4, 0x87, 0x6b, 0xe1, 0x76, 0xcb, 0xf1,
|
||||
0xda, 0x57, 0x03, 0x12, 0x90, 0x2d, 0xab, 0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0xfa, 0xa0, 0x9a, 0x31, 0x89, 0x57, 0x04, 0x09, 0x03, 0x1f, 0xcd, 0x74, 0xa8, 0x94,
|
||||
0x89, 0x30, 0x11, 0x1e, 0x25, 0xbb, 0xd7, 0x9b, 0x27, 0xce, 0x65, 0xc4, 0xd4, 0x4d, 0x59, 0xbb,
|
||||
0xb0, 0x09, 0xe5, 0x98, 0xd3, 0x29, 0xc1, 0x69, 0x0e, 0x9b, 0x3d, 0x38, 0xc5, 0x03, 0xbf, 0xa2,
|
||||
0x55, 0xb9, 0xfc, 0xe8, 0x69, 0x11, 0x3d, 0x7e, 0x5a, 0x44, 0x7f, 0x3c, 0x2d, 0xa2, 0xcf, 0x9e,
|
||||
0x15, 0x87, 0x1e, 0x3f, 0x2b, 0x0e, 0xfd, 0xf6, 0xac, 0x38, 0xf4, 0xd1, 0xb1, 0xc4, 0x75, 0x8d,
|
||||
0x2f, 0xdb, 0x9e, 0xef, 0xf8, 0x26, 0xe1, 0xcb, 0xc4, 0x6b, 0x3a, 0x94, 0x9b, 0xb7, 0x53, 0xe6,
|
||||
0xc5, 0xe5, 0xad, 0x9a, 0x17, 0x7f, 0x5b, 0x1e, 0xff, 0x27, 0x00, 0x00, 0xff, 0xff, 0x94, 0xc7,
|
||||
0x31, 0xc3, 0xb3, 0x15, 0x00, 0x00,
|
||||
// 1412 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4b, 0x6c, 0x1b, 0x45,
|
||||
0x18, 0xce, 0x24, 0xb1, 0xd3, 0xfc, 0xa1, 0x29, 0x1d, 0xa2, 0xd6, 0xdd, 0xb6, 0x4e, 0xd8, 0xbe,
|
||||
0x1c, 0xa8, 0x77, 0x9b, 0x94, 0xbe, 0x05, 0xa2, 0x4e, 0x43, 0xd4, 0x52, 0x10, 0x5d, 0x10, 0x05,
|
||||
0x0e, 0x54, 0xeb, 0xf5, 0xd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bb, 0xe9, 0x5b, 0xe4, 0x66, 0x40, 0x7c, 0xae, 0xbf, 0x07, 0x2f, 0xa4, 0x76, 0xfd,
|
||||
0x16, 0xa3, 0x3e, 0xc1, 0xaf, 0x42, 0xbe, 0x25, 0x76, 0x0a, 0x68, 0x06, 0x95, 0x26, 0xe6, 0x0f,
|
||||
0x19, 0x1b, 0x46, 0xc3, 0x50, 0xea, 0x4a, 0x49, 0xff, 0x31, 0x07, 0xbb, 0x85, 0xd9, 0xcb, 0xae,
|
||||
0xcf, 0x2d, 0xe2, 0x30, 0xaf, 0x16, 0x79, 0xc4, 0x35, 0x00, 0x9b, 0x73, 0xcf, 0xad, 0x06, 0x9c,
|
||||
0x84, 0xe6, 0x47, 0x4a, 0x13, 0xf3, 0x17, 0x7a, 0x98, 0x5f, 0xc7, 0x96, 0xf1, 0x26, 0x69, 0xbf,
|
||||
0x6f, 0x37, 0x02, 0x72, 0x91, 0xb6, 0x02, 0x6e, 0x25, 0xec, 0xe2, 0xe7, 0x61, 0xc4, 0x6e, 0x34,
|
||||
0x0a, 0xc3, 0x33, 0xa8, 0xb4, 0xcd, 0x0a, 0x97, 0xf8, 0x0d, 0x80, 0x4e, 0x24, 0x0b, 0x23, 0x82,
|
||||
0xd6, 0x61, 0x43, 0x06, 0xcd, 0x08, 0x83, 0x66, 0xc8, 0xec, 0x77, 0x28, 0xd5, 0x89, 0xf2, 0x63,
|
||||
0x25, 0x34, 0xb5, 0x19, 0x98, 0xb4, 0xc8, 0x75, 0xe2, 0x11, 0xea, 0x48, 0xbf, 0x78, 0x12, 0x86,
|
||||
0xdd, 0x9a, 0x08, 0xd4, 0xb8, 0x35, 0xec, 0xd6, 0xb4, 0x9f, 0x86, 0x01, 0x3a, 0xb0, 0x30, 0x86,
|
||||
0x51, 0xde, 0x6e, 0x11, 0x25, 0x20, 0xd6, 0x78, 0x17, 0xe4, 0x7d, 0xee, 0xb9, 0xb4, 0x2e, 0x10,
|
||||
0x8e, 0x5b, 0xea, 0x29, 0x84, 0xed, 0x52, 0x2e, 0xd0, 0x8d, 0x58, 0xe1, 0x12, 0x4f, 0x41, 0xee,
|
||||
0x7a, 0x83, 0xd9, 0xbc, 0x30, 0x3a, 0x83, 0x4a, 0xc8, 0x92, 0x0f, 0xb8, 0x00, 0x63, 0x55, 0xc6,
|
||||
0x1a, 0xc4, 0xa6, 0x85, 0x9c, 0xa0, 0x18, 0x3d, 0x62, 0x07, 0xc6, 0xbd, 0x08, 0x5e, 0x21, 0x2f,
|
||||
0x58, 0x2e, 0x0e, 0x18, 0xdd, 0x34, 0x4d, 0xab, 0x63, 0x17, 0x7f, 0x08, 0xf9, 0x95, 0x90, 0xa0,
|
||||
0x5f, 0x18, 0x13, 0xf9, 0x3b, 0x3f, 0xa0, 0x87, 0x44, 0xf2, 0x94, 0x41, 0xed, 0x36, 0x6c, 0x4f,
|
||||
0x65, 0x35, 0x0c, 0xc9, 0x0d, 0xd2, 0x56, 0xd1, 0x0b, 0x97, 0xf8, 0x2a, 0xe4, 0x84, 0xb0, 0x88,
|
||||
0xdd, 0x96, 0x38, 0x97, 0xf6, 0xf4, 0xfb, 0x08, 0x0a, 0x6b, 0xa5, 0x55, 0x4b, 0x2c, 0xc2, 0x98,
|
||||
0x27, 0xb7, 0x54, 0xd1, 0xf6, 0xea, 0x09, 0x69, 0xa0, 0x32, 0xfa, 0xf0, 0xf1, 0xf4, 0x90, 0x15,
|
||||
0xe9, 0xe2, 0xa5, 0x54, 0x19, 0x4a, 0x06, 0x47, 0x7a, 0x96, 0xa1, 0xc4, 0x90, 0xac, 0x43, 0xbd,
|
||||
0x04, 0xbb, 0x04, 0x56, 0xe5, 0xa6, 0x7d, 0xb1, 0x16, 0x75, 0xd8, 0xaa, 0x7a, 0xd4, 0x3f, 0x56,
|
||||
0xcd, 0x98, 0x94, 0x54, 0xa4, 0x16, 0x20, 0x2f, 0x81, 0x65, 0xec, 0xf3, 0x14, 0x27, 0xa5, 0xaa,
|
||||
0x73, 0xd0, 0x52,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b7, 0x22, 0xe7, 0x3a, 0x51, 0x05, 0x13, 0x76, 0x77, 0x88, 0x6c, 0xd5, 0x87, 0x29, 0x5d,
|
||||
0x98, 0x68, 0x33, 0x85, 0xb9, 0xaf, 0xbb, 0x1f, 0x95, 0xbc, 0x0b, 0x90, 0x13, 0x19, 0x52, 0x99,
|
||||
0x2b, 0xf5, 0xc8, 0x5c, 0x68, 0x62, 0x91, 0x72, 0xaf, 0xad, 0x4a, 0x53, 0x2a, 0x6f, 0x5d, 0x61,
|
||||
0x1e, 0x81, 0x9d, 0x02, 0xee, 0xd5, 0x65, 0xe6, 0xc6, 0xc1, 0xc0, 0x30, 0xda, 0x49, 0xbd, 0x25,
|
||||
0xd6, 0xfa, 0x97, 0x48, 0x8d, 0x10, 0x4a, 0x52, 0xd1, 0xb9, 0x87, 0x60, 0x32, 0x7c, 0x7f, 0xcd,
|
||||
0x0e, 0xf8, 0x32, 0xf3, 0x5c, 0xde, 0x56, 0xc1, 0x3b, 0x9a, 0x81, 0xd8, 0xf9, 0x48, 0xa7, 0x32,
|
||||
0xa7, 0x32, 0x3f, 0x2b, 0x33, 0x4f, 0x93, 0x2f, 0xa3, 0xfc, 0xa7, 0x37, 0xad, 0xed, 0xe9, 0x67,
|
||||
0x1d, 0x26, 0x65, 0xdc, 0x19, 0xbb, 0x11, 0xb4, 0x16, 0x3c, 0x1a, 0x7e, 0x3b, 0x1c, 0x8f, 0x46,
|
||||
0xdf, 0x0e, 0xc7, 0xa3, 0xfa, 0x55, 0x75, 0x6a, 0xc6, 0x32, 0x89, 0x91, 0xa7, 0xc3, 0x78, 0x62,
|
||||
0x7e, 0x36, 0x03, 0x76, 0x99, 0x57, 0x15, 0x9c, 0x03, 0xb0, 0x43, 0x9d, 0x46, 0x3e, 0x6b, 0xac,
|
||||
0x90, 0xee, 0xde, 0x3f, 0x88, 0x4f, 0xe2, 0x48, 0x28, 0x39, 0x71, 0x0d, 0x70, 0x12, 0xc7, 0x67,
|
||||
0xb0, 0x03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,
|
||||
0xbf, 0x6a, 0x0a, 0xec, 0x71, 0x01, 0xb6, 0x8c, 0x5f, 0xce, 0x06, 0xd6, 0xbc, 0xe3, 0xd6, 0xee,
|
||||
0xe2, 0x5f, 0x10, 0xec, 0x8c, 0x11, 0x47, 0x23, 0x1a, 0x3e, 0xd3, 0x0f, 0x84, 0xd4, 0x34, 0xa9,
|
||||
0x9d, 0x1d, 0x44, 0x55, 0x31, 0x78, 0x4d, 0x30, 0x38, 0x8d, 0x4f, 0x66, 0x63, 0x50, 0xae, 0xb6,
|
||||
0xcb, 0x55, 0x46, 0x6b, 0x65, 0xb7, 0x26, 0xc9, 0xfc, 0x86, 0x60, 0xef, 0x06, 0xc3, 0x19, 0xee,
|
||||
0x75, 0x11, 0xe9, 0x3d, 0xfe, 0x69, 0x95, 0xcd, 0x98, 0xe8, 0xb3, 0xaa, 0xd4, 0x58, 0x84, 0x1f,
|
||||
0x20, 0xd8, 0xb1, 0x6a, 0x54, 0xc1, 0x67, 0xb3, 0x96, 0xf4, 0xda, 0x39, 0x4a, 0x3b, 0x37, 0x90,
|
||||
0xae, 0x02, 0x7f, 0x54, 0x80, 0x3f, 0x8c, 0x0f, 0x66, 0xf9, 0x7f, 0x05, 0x7f, 0x83, 0x20, 0x27,
|
||||
0x86, 0x11, 0x7c, 0x2c, 0x8b, 0xd3, 0xe4, 0x84, 0xa3, 0xcd, 0xf5, 0xa1, 0xd1, 0x67, 0x0b, 0x7c,
|
||||
0x1a, 0x6a, 0x99, 0x77, 0xc2, 0x57, 0x77, 0xf1, 0xd7, 0x08, 0xc6, 0x3b, 0x13, 0x49, 0x39, 0x53,
|
||||
0x70, 0x22, 0x71, 0xed, 0x44, 0x5f, 0xe2, 0x7d, 0x1f, 0x84, 0x0d, 0xa1, 0x89, 0xbf, 0x45, 0x00,
|
||||
0x89, 0xb9, 0xc5, 0xc8, 0xd6, 0x63, 0x91, 0x7c, 0xd6, 0x13, 0x65, 0xf5, 0xc8, 0xd3, 0xc7, 0xf1,
|
||||
0x27, 0x54, 0xf1, 0x43, 0x04, 0x53, 0x5d, 0xe7, 0x9b, 0xd3, 0x59, 0x00, 0x74, 0xd3, 0xd4, 0x5e,
|
||||
0x1f, 0x54, 0x33, 0x26, 0xf1, 0x8a, 0x20, 0x61, 0xe0, 0xa3, 0x99, 0x0e, 0x95, 0x32, 0x11, 0x26,
|
||||
0xc2, 0xa3, 0x64, 0xf7, 0x7a, 0xf3, 0xc4, 0xb9, 0x8c, 0x98, 0xba, 0x29, 0x6b, 0x0b, 0x9b, 0x50,
|
||||
0x8e, 0x39, 0x9d, 0x12, 0x9c, 0xe6, 0xb0, 0xd9, 0x83, 0x53, 0x3c, 0xf0, 0x2b, 0x5a, 0x95, 0x4b,
|
||||
0x0f, 0x9f, 0x14, 0xd1, 0xa3, 0x27, 0x45, 0xf4, 0xe7, 0x93, 0x22, 0xfa, 0xfc, 0x69, 0x71, 0xe8,
|
||||
0xd1, 0xd3, 0xe2, 0xd0, 0xef, 0x4f, 0x8b, 0x43, 0x1f, 0x1d, 0x4b, 0x5c, 0xd7, 0xf8, 0xb2, 0xed,
|
||||
0xf9, 0xae, 0x6f, 0x12, 0xbe, 0x4c, 0xbc, 0xa6, 0x4b, 0xb9, 0x79, 0x2b, 0x65, 0x5e, 0x5c, 0xde,
|
||||
0xaa, 0x79, 0xf1, 0xb7, 0xe5, 0xf1, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x17, 0xf0, 0x11,
|
||||
0xb3, 0x15, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -1530,10 +1530,10 @@ type QueryClient interface {
|
||||
ListNameRecords(ctx context.Context, in *QueryListNameRecordsRequest, opts ...grpc.CallOption) (*QueryListNameRecordsResponse, error)
|
||||
// Whois method retrieve the name authority info
|
||||
Whois(ctx context.Context, in *QueryWhoisRequest, opts ...grpc.CallOption) (*QueryWhoisResponse, error)
|
||||
// LookupWrn
|
||||
LookupWrn(ctx context.Context, in *QueryLookupWrn, opts ...grpc.CallOption) (*QueryLookupWrnResponse, error)
|
||||
// ResolveWrn
|
||||
ResolveWrn(ctx context.Context, in *QueryResolveWrn, opts ...grpc.CallOption) (*QueryResolveWrnResponse, error)
|
||||
// LookupCrn
|
||||
LookupCrn(ctx context.Context, in *QueryLookupCrn, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error)
|
||||
// ResolveCrn
|
||||
ResolveCrn(ctx context.Context, in *QueryResolveCrn, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error)
|
||||
// GetRecordExpiryQueue
|
||||
GetRecordExpiryQueue(ctx context.Context, in *QueryGetRecordExpiryQueue, opts ...grpc.CallOption) (*QueryGetRecordExpiryQueueResponse, error)
|
||||
// GetAuthorityExpiryQueue
|
||||
@ -1611,18 +1611,18 @@ func (c *queryClient) Whois(ctx context.Context, in *QueryWhoisRequest, opts ...
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *queryClient) LookupWrn(ctx context.Context, in *QueryLookupWrn, opts ...grpc.CallOption) (*QueryLookupWrnResponse, error) {
|
||||
out := new(QueryLookupWrnResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Query/LookupWrn", in, out, opts...)
|
||||
func (c *queryClient) LookupCrn(ctx context.Context, in *QueryLookupCrn, opts ...grpc.CallOption) (*QueryLookupCrnResponse, error) {
|
||||
out := new(QueryLookupCrnResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Query/LookupCrn", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *queryClient) ResolveWrn(ctx context.Context, in *QueryResolveWrn, opts ...grpc.CallOption) (*QueryResolveWrnResponse, error) {
|
||||
out := new(QueryResolveWrnResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Query/ResolveWrn", in, out, opts...)
|
||||
func (c *queryClient) ResolveCrn(ctx context.Context, in *QueryResolveCrn, opts ...grpc.CallOption) (*QueryResolveCrnResponse, error) {
|
||||
out := new(QueryResolveCrnResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Query/ResolveCrn", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1663,10 +1663,10 @@ type QueryServer interface {
|
||||
ListNameRecords(context.Context, *QueryListNameRecordsRequest) (*QueryListNameRecordsResponse, error)
|
||||
// Whois method retrieve the name authority info
|
||||
Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error)
|
||||
// LookupWrn
|
||||
LookupWrn(context.Context, *QueryLookupWrn) (*QueryLookupWrnResponse, error)
|
||||
// ResolveWrn
|
||||
ResolveWrn(context.Context, *QueryResolveWrn) (*QueryResolveWrnResponse, error)
|
||||
// LookupCrn
|
||||
LookupCrn(context.Context, *QueryLookupCrn) (*QueryLookupCrnResponse, error)
|
||||
// ResolveCrn
|
||||
ResolveCrn(context.Context, *QueryResolveCrn) (*QueryResolveCrnResponse, error)
|
||||
// GetRecordExpiryQueue
|
||||
GetRecordExpiryQueue(context.Context, *QueryGetRecordExpiryQueue) (*QueryGetRecordExpiryQueueResponse, error)
|
||||
// GetAuthorityExpiryQueue
|
||||
@ -1698,11 +1698,11 @@ func (*UnimplementedQueryServer) ListNameRecords(ctx context.Context, req *Query
|
||||
func (*UnimplementedQueryServer) Whois(ctx context.Context, req *QueryWhoisRequest) (*QueryWhoisResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Whois not implemented")
|
||||
}
|
||||
func (*UnimplementedQueryServer) LookupWrn(ctx context.Context, req *QueryLookupWrn) (*QueryLookupWrnResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method LookupWrn not implemented")
|
||||
func (*UnimplementedQueryServer) LookupCrn(ctx context.Context, req *QueryLookupCrn) (*QueryLookupCrnResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method LookupCrn not implemented")
|
||||
}
|
||||
func (*UnimplementedQueryServer) ResolveWrn(ctx context.Context, req *QueryResolveWrn) (*QueryResolveWrnResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ResolveWrn not implemented")
|
||||
func (*UnimplementedQueryServer) ResolveCrn(ctx context.Context, req *QueryResolveCrn) (*QueryResolveCrnResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ResolveCrn not implemented")
|
||||
}
|
||||
func (*UnimplementedQueryServer) GetRecordExpiryQueue(ctx context.Context, req *QueryGetRecordExpiryQueue) (*QueryGetRecordExpiryQueueResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetRecordExpiryQueue not implemented")
|
||||
@ -1841,38 +1841,38 @@ func _Query_Whois_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Query_LookupWrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(QueryLookupWrn)
|
||||
func _Query_LookupCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(QueryLookupCrn)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(QueryServer).LookupWrn(ctx, in)
|
||||
return srv.(QueryServer).LookupCrn(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Query/LookupWrn",
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Query/LookupCrn",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).LookupWrn(ctx, req.(*QueryLookupWrn))
|
||||
return srv.(QueryServer).LookupCrn(ctx, req.(*QueryLookupCrn))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Query_ResolveWrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(QueryResolveWrn)
|
||||
func _Query_ResolveCrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(QueryResolveCrn)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(QueryServer).ResolveWrn(ctx, in)
|
||||
return srv.(QueryServer).ResolveCrn(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Query/ResolveWrn",
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Query/ResolveCrn",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).ResolveWrn(ctx, req.(*QueryResolveWrn))
|
||||
return srv.(QueryServer).ResolveCrn(ctx, req.(*QueryResolveCrn))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@ -1946,12 +1946,12 @@ var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
Handler: _Query_Whois_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "LookupWrn",
|
||||
Handler: _Query_LookupWrn_Handler,
|
||||
MethodName: "LookupCrn",
|
||||
Handler: _Query_LookupCrn_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ResolveWrn",
|
||||
Handler: _Query_ResolveWrn_Handler,
|
||||
MethodName: "ResolveCrn",
|
||||
Handler: _Query_ResolveCrn_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetRecordExpiryQueue",
|
||||
@ -2693,7 +2693,7 @@ func (m *QueryWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrn) Marshal() (dAtA []byte, err error) {
|
||||
func (m *QueryLookupCrn) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
@ -2703,27 +2703,27 @@ func (m *QueryLookupWrn) Marshal() (dAtA []byte, err error) {
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrn) MarshalTo(dAtA []byte) (int, error) {
|
||||
func (m *QueryLookupCrn) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
func (m *QueryLookupCrn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Wrn) > 0 {
|
||||
i -= len(m.Wrn)
|
||||
copy(dAtA[i:], m.Wrn)
|
||||
i = encodeVarintQuery(dAtA, i, uint64(len(m.Wrn)))
|
||||
if len(m.Crn) > 0 {
|
||||
i -= len(m.Crn)
|
||||
copy(dAtA[i:], m.Crn)
|
||||
i = encodeVarintQuery(dAtA, i, uint64(len(m.Crn)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrnResponse) Marshal() (dAtA []byte, err error) {
|
||||
func (m *QueryLookupCrnResponse) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
@ -2733,12 +2733,12 @@ func (m *QueryLookupWrnResponse) Marshal() (dAtA []byte, err error) {
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrnResponse) MarshalTo(dAtA []byte) (int, error) {
|
||||
func (m *QueryLookupCrnResponse) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
func (m *QueryLookupCrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
@ -2758,7 +2758,7 @@ func (m *QueryLookupWrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrn) Marshal() (dAtA []byte, err error) {
|
||||
func (m *QueryResolveCrn) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
@ -2768,27 +2768,27 @@ func (m *QueryResolveWrn) Marshal() (dAtA []byte, err error) {
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrn) MarshalTo(dAtA []byte) (int, error) {
|
||||
func (m *QueryResolveCrn) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
func (m *QueryResolveCrn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Wrn) > 0 {
|
||||
i -= len(m.Wrn)
|
||||
copy(dAtA[i:], m.Wrn)
|
||||
i = encodeVarintQuery(dAtA, i, uint64(len(m.Wrn)))
|
||||
if len(m.Crn) > 0 {
|
||||
i -= len(m.Crn)
|
||||
copy(dAtA[i:], m.Crn)
|
||||
i = encodeVarintQuery(dAtA, i, uint64(len(m.Crn)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrnResponse) Marshal() (dAtA []byte, err error) {
|
||||
func (m *QueryResolveCrnResponse) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
@ -2798,12 +2798,12 @@ func (m *QueryResolveWrnResponse) Marshal() (dAtA []byte, err error) {
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrnResponse) MarshalTo(dAtA []byte) (int, error) {
|
||||
func (m *QueryResolveCrnResponse) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
func (m *QueryResolveCrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
@ -3329,20 +3329,20 @@ func (m *QueryWhoisResponse) Size() (n int) {
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrn) Size() (n int) {
|
||||
func (m *QueryLookupCrn) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Wrn)
|
||||
l = len(m.Crn)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovQuery(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *QueryLookupWrnResponse) Size() (n int) {
|
||||
func (m *QueryLookupCrnResponse) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
@ -3355,20 +3355,20 @@ func (m *QueryLookupWrnResponse) Size() (n int) {
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrn) Size() (n int) {
|
||||
func (m *QueryResolveCrn) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Wrn)
|
||||
l = len(m.Crn)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovQuery(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *QueryResolveWrnResponse) Size() (n int) {
|
||||
func (m *QueryResolveCrnResponse) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
@ -5324,7 +5324,7 @@ func (m *QueryWhoisResponse) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *QueryLookupWrn) Unmarshal(dAtA []byte) error {
|
||||
func (m *QueryLookupCrn) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
@ -5347,15 +5347,15 @@ func (m *QueryLookupWrn) Unmarshal(dAtA []byte) error {
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: QueryLookupWrn: wiretype end group for non-group")
|
||||
return fmt.Errorf("proto: QueryLookupCrn: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: QueryLookupWrn: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
return fmt.Errorf("proto: QueryLookupCrn: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Wrn", wireType)
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
@ -5383,7 +5383,7 @@ func (m *QueryLookupWrn) Unmarshal(dAtA []byte) error {
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Wrn = string(dAtA[iNdEx:postIndex])
|
||||
m.Crn = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
@ -5406,7 +5406,7 @@ func (m *QueryLookupWrn) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *QueryLookupWrnResponse) Unmarshal(dAtA []byte) error {
|
||||
func (m *QueryLookupCrnResponse) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
@ -5429,10 +5429,10 @@ func (m *QueryLookupWrnResponse) Unmarshal(dAtA []byte) error {
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: QueryLookupWrnResponse: wiretype end group for non-group")
|
||||
return fmt.Errorf("proto: QueryLookupCrnResponse: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: QueryLookupWrnResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
return fmt.Errorf("proto: QueryLookupCrnResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
@ -5492,7 +5492,7 @@ func (m *QueryLookupWrnResponse) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *QueryResolveWrn) Unmarshal(dAtA []byte) error {
|
||||
func (m *QueryResolveCrn) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
@ -5515,15 +5515,15 @@ func (m *QueryResolveWrn) Unmarshal(dAtA []byte) error {
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: QueryResolveWrn: wiretype end group for non-group")
|
||||
return fmt.Errorf("proto: QueryResolveCrn: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: QueryResolveWrn: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
return fmt.Errorf("proto: QueryResolveCrn: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Wrn", wireType)
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
@ -5551,7 +5551,7 @@ func (m *QueryResolveWrn) Unmarshal(dAtA []byte) error {
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Wrn = string(dAtA[iNdEx:postIndex])
|
||||
m.Crn = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
@ -5574,7 +5574,7 @@ func (m *QueryResolveWrn) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *QueryResolveWrnResponse) Unmarshal(dAtA []byte) error {
|
||||
func (m *QueryResolveCrnResponse) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
@ -5597,10 +5597,10 @@ func (m *QueryResolveWrnResponse) Unmarshal(dAtA []byte) error {
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: QueryResolveWrnResponse: wiretype end group for non-group")
|
||||
return fmt.Errorf("proto: QueryResolveCrnResponse: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: QueryResolveWrnResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
return fmt.Errorf("proto: QueryResolveCrnResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
|
105
x/nameservice/types/query.pb.gw.go
generated
105
x/nameservice/types/query.pb.gw.go
generated
@ -20,7 +20,6 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/grpclog"
|
||||
"google.golang.org/grpc/metadata"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
@ -31,7 +30,6 @@ var _ status.Status
|
||||
var _ = runtime.String
|
||||
var _ = utilities.NewDoubleArray
|
||||
var _ = descriptor.ForMessage
|
||||
var _ = metadata.Join
|
||||
|
||||
func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryParamsRequest
|
||||
@ -322,73 +320,73 @@ func local_request_Query_Whois_0(ctx context.Context, marshaler runtime.Marshale
|
||||
}
|
||||
|
||||
var (
|
||||
filter_Query_LookupWrn_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
||||
filter_Query_LookupCrn_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
||||
)
|
||||
|
||||
func request_Query_LookupWrn_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryLookupWrn
|
||||
func request_Query_LookupCrn_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryLookupCrn
|
||||
var metadata runtime.ServerMetadata
|
||||
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LookupWrn_0); err != nil {
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LookupCrn_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
msg, err := client.LookupWrn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
msg, err := client.LookupCrn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
|
||||
func local_request_Query_LookupWrn_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryLookupWrn
|
||||
func local_request_Query_LookupCrn_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryLookupCrn
|
||||
var metadata runtime.ServerMetadata
|
||||
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LookupWrn_0); err != nil {
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LookupCrn_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
msg, err := server.LookupWrn(ctx, &protoReq)
|
||||
msg, err := server.LookupCrn(ctx, &protoReq)
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
|
||||
var (
|
||||
filter_Query_ResolveWrn_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
||||
filter_Query_ResolveCrn_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
||||
)
|
||||
|
||||
func request_Query_ResolveWrn_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryResolveWrn
|
||||
func request_Query_ResolveCrn_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryResolveCrn
|
||||
var metadata runtime.ServerMetadata
|
||||
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ResolveWrn_0); err != nil {
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ResolveCrn_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
msg, err := client.ResolveWrn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
msg, err := client.ResolveCrn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
|
||||
func local_request_Query_ResolveWrn_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryResolveWrn
|
||||
func local_request_Query_ResolveCrn_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryResolveCrn
|
||||
var metadata runtime.ServerMetadata
|
||||
|
||||
if err := req.ParseForm(); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ResolveWrn_0); err != nil {
|
||||
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ResolveCrn_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
msg, err := server.ResolveWrn(ctx, &protoReq)
|
||||
msg, err := server.ResolveCrn(ctx, &protoReq)
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
@ -468,14 +466,12 @@ func local_request_Query_GetAuthorityExpiryQueue_0(ctx context.Context, marshale
|
||||
// RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
|
||||
// UnaryRPC :call QueryServer directly.
|
||||
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
||||
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
|
||||
// Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
|
||||
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error {
|
||||
|
||||
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
@ -483,7 +479,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
@ -497,8 +492,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
mux.Handle("GET", pattern_Query_ListRecords_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
@ -506,7 +499,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_ListRecords_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
@ -520,8 +512,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
mux.Handle("GET", pattern_Query_GetRecord_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
@ -529,7 +519,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_GetRecord_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
@ -543,8 +532,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
mux.Handle("GET", pattern_Query_GetRecordByBondId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
@ -552,7 +539,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_GetRecordByBondId_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
@ -566,8 +552,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
mux.Handle("GET", pattern_Query_GetNameServiceModuleBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
@ -575,7 +559,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_GetNameServiceModuleBalance_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
@ -589,8 +572,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
mux.Handle("GET", pattern_Query_ListNameRecords_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
@ -598,7 +579,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_ListNameRecords_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
@ -612,8 +592,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
mux.Handle("GET", pattern_Query_Whois_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
@ -621,7 +599,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_Whois_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
@ -632,57 +609,49 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("GET", pattern_Query_LookupWrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
mux.Handle("GET", pattern_Query_LookupCrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_LookupWrn_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
resp, md, err := local_request_Query_LookupCrn_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
|
||||
forward_Query_LookupWrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
forward_Query_LookupCrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("GET", pattern_Query_ResolveWrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
mux.Handle("GET", pattern_Query_ResolveCrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_ResolveWrn_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
resp, md, err := local_request_Query_ResolveCrn_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
|
||||
forward_Query_ResolveWrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
forward_Query_ResolveCrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("GET", pattern_Query_GetRecordExpiryQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
@ -690,7 +659,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_GetRecordExpiryQueue_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
@ -704,8 +672,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
mux.Handle("GET", pattern_Query_GetAuthorityExpiryQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
@ -713,7 +679,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_GetAuthorityExpiryQueue_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
@ -905,7 +870,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("GET", pattern_Query_LookupWrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
mux.Handle("GET", pattern_Query_LookupCrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
@ -914,18 +879,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := request_Query_LookupWrn_0(rctx, inboundMarshaler, client, req, pathParams)
|
||||
resp, md, err := request_Query_LookupCrn_0(rctx, inboundMarshaler, client, req, pathParams)
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
|
||||
forward_Query_LookupWrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
forward_Query_LookupCrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("GET", pattern_Query_ResolveWrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
mux.Handle("GET", pattern_Query_ResolveCrn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
@ -934,14 +899,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := request_Query_ResolveWrn_0(rctx, inboundMarshaler, client, req, pathParams)
|
||||
resp, md, err := request_Query_ResolveCrn_0(rctx, inboundMarshaler, client, req, pathParams)
|
||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
|
||||
forward_Query_ResolveWrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
forward_Query_ResolveCrn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
@ -1003,9 +968,9 @@ var (
|
||||
|
||||
pattern_Query_Whois_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"vulcanize", "nameservice", "v1beta1", "whois", "name"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_LookupWrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "lookup"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_LookupCrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "lookup"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_ResolveWrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "resolve"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_ResolveCrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "resolve"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_GetRecordExpiryQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "record-expiry"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
@ -1027,9 +992,9 @@ var (
|
||||
|
||||
forward_Query_Whois_0 = runtime.ForwardResponseMessage
|
||||
|
||||
forward_Query_LookupWrn_0 = runtime.ForwardResponseMessage
|
||||
forward_Query_LookupCrn_0 = runtime.ForwardResponseMessage
|
||||
|
||||
forward_Query_ResolveWrn_0 = runtime.ForwardResponseMessage
|
||||
forward_Query_ResolveCrn_0 = runtime.ForwardResponseMessage
|
||||
|
||||
forward_Query_GetRecordExpiryQueue_0 = runtime.ForwardResponseMessage
|
||||
|
||||
|
156
x/nameservice/types/tx.pb.go
generated
156
x/nameservice/types/tx.pb.go
generated
@ -181,7 +181,7 @@ func (m *Payload) GetSignatures() []Signature {
|
||||
|
||||
// MsgSetName
|
||||
type MsgSetName struct {
|
||||
Wrn string `protobuf:"bytes,1,opt,name=wrn,proto3" json:"wrn,omitempty"`
|
||||
Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"`
|
||||
Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"`
|
||||
Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
|
||||
}
|
||||
@ -219,9 +219,9 @@ func (m *MsgSetName) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_MsgSetName proto.InternalMessageInfo
|
||||
|
||||
func (m *MsgSetName) GetWrn() string {
|
||||
func (m *MsgSetName) GetCrn() string {
|
||||
if m != nil {
|
||||
return m.Wrn
|
||||
return m.Crn
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@ -476,7 +476,7 @@ var xxx_messageInfo_MsgSetAuthorityBondResponse proto.InternalMessageInfo
|
||||
|
||||
// MsgDeleteNameAuthority is SDK message for DeleteNameAuthority
|
||||
type MsgDeleteNameAuthority struct {
|
||||
Wrn string `protobuf:"bytes,1,opt,name=wrn,proto3" json:"wrn,omitempty"`
|
||||
Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"`
|
||||
Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"`
|
||||
}
|
||||
|
||||
@ -513,9 +513,9 @@ func (m *MsgDeleteNameAuthority) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_MsgDeleteNameAuthority proto.InternalMessageInfo
|
||||
|
||||
func (m *MsgDeleteNameAuthority) GetWrn() string {
|
||||
func (m *MsgDeleteNameAuthority) GetCrn() string {
|
||||
if m != nil {
|
||||
return m.Wrn
|
||||
return m.Crn
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@ -1059,62 +1059,62 @@ func init() {
|
||||
}
|
||||
|
||||
var fileDescriptor_b66a805dda801ce9 = []byte{
|
||||
// 866 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6e, 0xd3, 0x4c,
|
||||
0x14, 0x8d, 0x9b, 0x7e, 0xc9, 0x97, 0x1b, 0xa8, 0x5a, 0x13, 0xaa, 0xe0, 0x52, 0x3b, 0xb8, 0x6a,
|
||||
0x15, 0x54, 0x11, 0xb7, 0x29, 0x88, 0xaa, 0x50, 0x89, 0x46, 0x80, 0x00, 0x29, 0x08, 0xb9, 0x0b,
|
||||
0x24, 0x36, 0x95, 0x13, 0x8f, 0x1c, 0x57, 0x89, 0x27, 0xf2, 0x38, 0x4d, 0x43, 0x25, 0xd8, 0x20,
|
||||
0x21, 0xb1, 0xe2, 0x29, 0x10, 0x2f, 0x81, 0xd8, 0x76, 0xd9, 0x25, 0xab, 0x08, 0xb5, 0x6f, 0x90,
|
||||
0x2d, 0x1b, 0xe4, 0x9f, 0xd8, 0xe3, 0xfc, 0x34, 0x3f, 0x74, 0x37, 0x9e, 0xb9, 0xe7, 0x9e, 0x73,
|
||||
0xcf, 0xcc, 0xf5, 0x0c, 0xac, 0x1d, 0x35, 0xaa, 0x65, 0xc5, 0xd0, 0xdf, 0x23, 0xc9, 0x50, 0x6a,
|
||||
0x88, 0x20, 0xf3, 0x48, 0x2f, 0x23, 0xe9, 0x68, 0xb3, 0x84, 0x2c, 0x65, 0x53, 0xb2, 0x8e, 0x73,
|
||||
0x75, 0x13, 0x5b, 0x98, 0x5d, 0xf6, 0xe3, 0x72, 0x54, 0x5c, 0xce, 0x8b, 0xe3, 0x52, 0x1a, 0xd6,
|
||||
0xb0, 0x13, 0x29, 0xd9, 0x23, 0x17, 0xc4, 0x49, 0x97, 0x27, 0xa7, 0x13, 0x39, 0x00, 0xf1, 0x3b,
|
||||
0x03, 0xd7, 0x8a, 0x44, 0xdb, 0x47, 0x96, 0x8c, 0xca, 0xd8, 0x54, 0xd9, 0x6d, 0x88, 0x97, 0xb0,
|
||||
0xa1, 0x1e, 0xe8, 0x6a, 0x9a, 0xc9, 0x30, 0xd9, 0x44, 0x41, 0xe8, 0xb4, 0x85, 0xa5, 0x43, 0x82,
|
||||
0x8d, 0x1d, 0xd1, 0x5e, 0x78, 0xa9, 0x8a, 0x99, 0x96, 0x52, 0xab, 0xfa, 0x5f, 0x72, 0xcc, 0x1d,
|
||||
0xb0, 0x8b, 0x10, 0x23, 0xba, 0x66, 0x20, 0x33, 0x3d, 0x63, 0x03, 0x65, 0xef, 0x8b, 0x7d, 0x0e,
|
||||
0xf1, 0xba, 0xd2, 0xaa, 0x62, 0x45, 0x4d, 0x47, 0x33, 0x4c, 0x36, 0x99, 0x5f, 0xcb, 0x5d, 0x5a,
|
||||
0x5a, 0xee, 0x8d, 0x1b, 0x5d, 0x98, 0x3d, 0x6d, 0x0b, 0x11, 0xb9, 0x0b, 0x16, 0x17, 0x21, 0x45,
|
||||
0x2b, 0x95, 0x11, 0xa9, 0x63, 0x83, 0x20, 0xf1, 0x27, 0x03, 0x71, 0x0f, 0xc2, 0xee, 0x42, 0xcc,
|
||||
0x74, 0x56, 0x1d, 0xf1, 0xc9, 0xfc, 0xea, 0x08, 0x2a, 0x2f, 0x95, 0x07, 0x62, 0x1b, 0x00, 0xb6,
|
||||
0x68, 0xc5, 0x6a, 0x98, 0x88, 0xa4, 0x67, 0x32, 0xd1, 0x6c, 0x32, 0x9f, 0x1d, 0x91, 0x62, 0xbf,
|
||||
0x0b, 0x28, 0xac, 0xdb, 0x7a, 0x3b, 0x6d, 0x61, 0xc5, 0x75, 0x2b, 0xc8, 0xd4, 0x75, 0x8c, 0x9a,
|
||||
0x91, 0x29, 0x22, 0xf1, 0x05, 0x80, 0x5b, 0xd9, 0x6b, 0xa5, 0x86, 0xd8, 0x79, 0x88, 0x36, 0x4d,
|
||||
0xc3, 0x75, 0x5f, 0xb6, 0x87, 0xf6, 0x4c, 0x59, 0x57, 0x3d, 0x5b, 0xed, 0x21, 0xe5, 0x75, 0x94,
|
||||
0xf6, 0x5a, 0x4c, 0x01, 0x1b, 0x64, 0xf2, 0x1d, 0x7a, 0x0b, 0x37, 0x8a, 0x44, 0x93, 0x1d, 0xe9,
|
||||
0x68, 0xaf, 0x61, 0x55, 0xb0, 0xa9, 0x5b, 0x2d, 0x96, 0x85, 0x59, 0xbb, 0x20, 0x8f, 0xc9, 0x19,
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 0xce, 0xae,
|
||||
0xef, 0xf5, 0x6a, 0x79, 0x06, 0x49, 0x03, 0x35, 0x0f, 0xc2, 0x7a, 0x56, 0x3b, 0x6d, 0xe1, 0x8e,
|
||||
0xab, 0xc7, 0x40, 0xcd, 0x42, 0x48, 0x52, 0x30, 0x21, 0x27, 0xfc, 0xb1, 0x9d, 0x06, 0x57, 0xd5,
|
||||
0x83, 0xf0, 0x46, 0x53, 0x69, 0x70, 0x55, 0x0d, 0xa7, 0x09, 0x26, 0xe4, 0x84, 0x3f, 0x1e, 0xba,
|
||||
0xe3, 0x02, 0x2c, 0x0f, 0x94, 0xdf, 0x2d, 0x30, 0xff, 0x27, 0x01, 0xd1, 0x22, 0xd1, 0x58, 0x0c,
|
||||
0x89, 0xe0, 0x92, 0x5a, 0x1f, 0xf1, 0x4f, 0xa6, 0xef, 0x09, 0x6e, 0x6b, 0x82, 0x60, 0xdf, 0xd7,
|
||||
0x08, 0xdb, 0x80, 0x24, 0xdd, 0xb7, 0xf7, 0x46, 0x67, 0xa1, 0xc2, 0xb9, 0x07, 0x13, 0x85, 0x53,
|
||||
0xb4, 0x27, 0x70, 0x3d, 0xdc, 0xa7, 0xd2, 0xe8, 0x4c, 0x21, 0x00, 0xf7, 0x70, 0x42, 0x00, 0x45,
|
||||
0xfe, 0x01, 0xe6, 0x7a, 0x1a, 0x6c, 0x63, 0x74, 0xb2, 0x30, 0x82, 0xdb, 0x9e, 0x14, 0x41, 0xf1,
|
||||
0x7f, 0x66, 0x60, 0xa1, 0xbf, 0xab, 0xb6, 0x26, 0xc9, 0xe8, 0x81, 0xb8, 0x47, 0x53, 0x80, 0x28,
|
||||
0x25, 0x5f, 0x18, 0x60, 0x07, 0x34, 0xd5, 0xfd, 0x71, 0xb6, 0xb5, 0x17, 0xc5, 0x3d, 0x9e, 0x06,
|
||||
0x45, 0x89, 0xd1, 0x21, 0xde, 0x7d, 0x1c, 0xdc, 0x1d, 0xeb, 0x30, 0xdb, 0xa1, 0xdc, 0xe6, 0xd8,
|
||||
0xa1, 0x14, 0xd5, 0x47, 0xfb, 0xd4, 0x3b, 0xd7, 0xb9, 0x43, 0x97, 0x1f, 0x47, 0x79, 0xf8, 0xf6,
|
||||
0xe7, 0x76, 0x26, 0xc7, 0x50, 0x02, 0x3e, 0x31, 0x00, 0xc1, 0x8d, 0xca, 0x8e, 0xd1, 0x47, 0x03,
|
||||
0xee, 0x5f, 0x6e, 0x77, 0x2a, 0x58, 0x58, 0xc6, 0x7c, 0xdf, 0xc3, 0x25, 0x3f, 0x96, 0xa3, 0x21,
|
||||
0xcc, 0x38, 0x6e, 0x0c, 0x7d, 0xa3, 0x44, 0x0a, 0xaf, 0x4e, 0xcf, 0x79, 0xe6, 0xec, 0x9c, 0x67,
|
||||
0x7e, 0x9f, 0xf3, 0xcc, 0xd7, 0x0b, 0x3e, 0x72, 0x76, 0xc1, 0x47, 0x7e, 0x5d, 0xf0, 0x91, 0x77,
|
||||
0x1b, 0x9a, 0x6e, 0x55, 0x1a, 0xa5, 0x5c, 0x19, 0xd7, 0x24, 0xab, 0xa2, 0x98, 0x44, 0x27, 0x12,
|
||||
0xb2, 0x2a, 0xc8, 0xac, 0xe9, 0x86, 0x25, 0x1d, 0x87, 0x9e, 0xff, 0x56, 0xab, 0x8e, 0x48, 0x29,
|
||||
0xe6, 0xbc, 0xf8, 0xb7, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x20, 0x34, 0xe4, 0xef, 0x81, 0x0c,
|
||||
0x00, 0x00,
|
||||
// 869 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6b, 0xdb, 0x48,
|
||||
0x14, 0xb6, 0xe2, 0xac, 0xbd, 0x7e, 0xde, 0x0d, 0x89, 0xd6, 0x1b, 0xbc, 0xca, 0x46, 0xf2, 0x2a,
|
||||
0x24, 0x78, 0x09, 0x6b, 0x25, 0xce,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0xc7, 0x63, 0x37, 0x31, 0x03, 0xdf, 0xe1, 0x76, 0xc8, 0xe7, 0x7d, 0xc8, 0xeb, 0xb0,
|
||||
0x36, 0x22, 0x71, 0xc0, 0x7b, 0x41, 0x79, 0x8f, 0x91, 0x13, 0x2c, 0x95, 0xb0, 0xa5, 0x8f, 0xe4,
|
||||
0x65, 0x8e, 0xdd, 0xc2, 0xbc, 0xc7, 0x2e, 0x6a, 0x85, 0xa7, 0x6d, 0x90, 0x3c, 0xd0, 0x56, 0x82,
|
||||
0xd5, 0x32, 0x31, 0xfe, 0x47, 0x75, 0xe4, 0x20, 0xd7, 0xac, 0xd0, 0x96, 0x61, 0xff, 0xc7, 0x98,
|
||||
0x22, 0xe7, 0x40, 0x1c, 0x9d, 0x23, 0x60, 0x39, 0x85, 0x25, 0x6a, 0x90, 0x85, 0xda, 0x7e, 0x7f,
|
||||
0xfd, 0x07, 0x29, 0xef, 0xb0, 0x85, 0x1d, 0xb6, 0xd1, 0xeb, 0x4a, 0x92, 0x57, 0xaa, 0xb7, 0x14,
|
||||
0x16, 0x1b, 0x7c, 0xab, 0xdf, 0xf7, 0x87, 0x63, 0xd5, 0x64, 0x69, 0x45, 0x0c, 0x57, 0xa0, 0xe2,
|
||||
0x1d, 0x07, 0xcb, 0x65, 0x62, 0x1c, 0x11, 0x82, 0xab, 0xa6, 0xe6, 0x20, 0xba, 0x0b, 0xdf, 0x2e,
|
||||
0xe4, 0xee, 0xf7, 0x4c, 0x80, 0xec, 0xa0, 0xce, 0xa0, 0x88, 0x06, 0xac, 0xb8, 0x66, 0x9b, 0x77,
|
||||
0x5c, 0xc4, 0x38, 0x37, 0xd7, 0xe0, 0x97, 0x21, 0xba, 0x40, 0x4b, 0x8d, 0xfe, 0x8a, 0xc2, 0x45,
|
||||
0xcf, 0x6f, 0x72, 0xf7, 0x3f, 0x4f, 0x59, 0x84, 0x5f, 0x47, 0x31, 0x05, 0x4a, 0x3e, 0x70, 0xf0,
|
||||
0x33, 0xdd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|
||||
0xa8, 0xb0, 0x3b, 0x75, 0x28, 0x43, 0xf5, 0xd2, 0x3d, 0xf5, 0xf4, 0x3a, 0xa7, 0x74, 0xc5, 0x69,
|
||||
0x94, 0x47, 0x6f, 0x7f, 0xe1, 0x60, 0x76, 0x0c, 0x23, 0xe0, 0x15, 0x07, 0x10, 0xde, 0xa8, 0xfc,
|
||||
0x14, 0x7d, 0x34, 0xe2, 0xfe, 0x15, 0x0e, 0xe7, 0x82, 0x45, 0x65, 0x2c, 0x0f, 0x3d, 0x5c, 0x8a,
|
||||
0x53, 0x39, 0x1a, 0xc1, 0x4c, 0xe3, 0xc6, 0xd8, 0x37, 0x4a, 0xac, 0xf4, 0xe8, 0xf2, 0x5a, 0xe4,
|
||||
0xae, 0xae, 0x45, 0xee, 0xf3, 0xb5, 0xc8, 0xbd, 0xbd, 0x11, 0x63, 0x57, 0x37, 0x62, 0xec, 0xd3,
|
||||
0x8d, 0x18, 0x7b, 0xb6, 0x63, 0x98, 0x4e, 0xad, 0x55, 0x29, 0x54, 0x71, 0x43, 0x71, 0x6a, 0x9a,
|
||||
0x4d, 0x4c, 0xa2, 0x20, 0xa7, 0x86, 0xec, 0x86, 0x69, 0x39, 0xca, 0x79, 0xe4, 0xf9, 0xef, 0x74,
|
||||
0x9a, 0x88, 0x54, 0x12, 0xf4, 0xc5, 0xbf, 0xf7, 0x35, 0x00, 0x00, 0xff, 0xff, 0x82, 0x89, 0x2d,
|
||||
0xfe, 0x81, 0x0c, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -1141,7 +1141,7 @@ type MsgClient interface {
|
||||
DissociateRecords(ctx context.Context, in *MsgDissociateRecords, opts ...grpc.CallOption) (*MsgDissociateRecordsResponse, error)
|
||||
// ReAssociateRecords
|
||||
ReAssociateRecords(ctx context.Context, in *MsgReAssociateRecords, opts ...grpc.CallOption) (*MsgReAssociateRecordsResponse, error)
|
||||
// SetName will store the name with given wrn and name
|
||||
// SetName will store the name with given crn and name
|
||||
SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error)
|
||||
// Reserve name
|
||||
ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error)
|
||||
@ -1263,7 +1263,7 @@ type MsgServer interface {
|
||||
DissociateRecords(context.Context, *MsgDissociateRecords) (*MsgDissociateRecordsResponse, error)
|
||||
// ReAssociateRecords
|
||||
ReAssociateRecords(context.Context, *MsgReAssociateRecords) (*MsgReAssociateRecordsResponse, error)
|
||||
// SetName will store the name with given wrn and name
|
||||
// SetName will store the name with given crn and name
|
||||
SetName(context.Context, *MsgSetName) (*MsgSetNameResponse, error)
|
||||
// Reserve name
|
||||
ReserveName(context.Context, *MsgReserveAuthority) (*MsgReserveAuthorityResponse, error)
|
||||
@ -1694,10 +1694,10 @@ func (m *MsgSetName) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Wrn) > 0 {
|
||||
i -= len(m.Wrn)
|
||||
copy(dAtA[i:], m.Wrn)
|
||||
i = encodeVarintTx(dAtA, i, uint64(len(m.Wrn)))
|
||||
if len(m.Crn) > 0 {
|
||||
i -= len(m.Crn)
|
||||
copy(dAtA[i:], m.Crn)
|
||||
i = encodeVarintTx(dAtA, i, uint64(len(m.Crn)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
@ -1888,10 +1888,10 @@ func (m *MsgDeleteNameAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Wrn) > 0 {
|
||||
i -= len(m.Wrn)
|
||||
copy(dAtA[i:], m.Wrn)
|
||||
i = encodeVarintTx(dAtA, i, uint64(len(m.Wrn)))
|
||||
if len(m.Crn) > 0 {
|
||||
i -= len(m.Crn)
|
||||
copy(dAtA[i:], m.Crn)
|
||||
i = encodeVarintTx(dAtA, i, uint64(len(m.Crn)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
@ -2299,7 +2299,7 @@ func (m *MsgSetName) Size() (n int) {
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Wrn)
|
||||
l = len(m.Crn)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTx(uint64(l))
|
||||
}
|
||||
@ -2389,7 +2389,7 @@ func (m *MsgDeleteNameAuthority) Size() (n int) {
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Wrn)
|
||||
l = len(m.Crn)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovTx(uint64(l))
|
||||
}
|
||||
@ -2901,7 +2901,7 @@ func (m *MsgSetName) Unmarshal(dAtA []byte) error {
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Wrn", wireType)
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
@ -2929,7 +2929,7 @@ func (m *MsgSetName) Unmarshal(dAtA []byte) error {
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Wrn = string(dAtA[iNdEx:postIndex])
|
||||
m.Crn = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
@ -3489,7 +3489,7 @@ func (m *MsgDeleteNameAuthority) Unmarshal(dAtA []byte) error {
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Wrn", wireType)
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Crn", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
@ -3517,7 +3517,7 @@ func (m *MsgDeleteNameAuthority) Unmarshal(dAtA []byte) error {
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Wrn = string(dAtA[iNdEx:postIndex])
|
||||
m.Crn = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
|
Loading…
Reference in New Issue
Block a user