forked from cerc-io/laconicd-deprecated
rename nameservie to registry (#54)
This commit is contained in:
@@ -19,7 +19,7 @@ $ make build
|
||||
## Get Params
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd q nameservice params -o json | jq .
|
||||
$ ./build/laconicd q registry params -o json | jq .
|
||||
{
|
||||
"params": {
|
||||
"record_rent": {
|
||||
@@ -58,7 +58,7 @@ $ ./build/laconicd q nameservice params -o json | jq .
|
||||
> First you have to Create bond
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd tx nameservice set ~/Desktop/examples/records/service_provider_example.yml 95f68b1b862bfd1609b0c9aaf7300287b92fec90ac64027092c3e723af36e83d --from root --chain-id ethermint_9000-1 --yes -o json
|
||||
$ ./build/laconicd tx registry set ~/Desktop/examples/records/service_provider_example.yml 95f68b1b862bfd1609b0c9aaf7300287b92fec90ac64027092c3e723af36e83d --from root --chain-id ethermint_9000-1 --yes -o json
|
||||
{
|
||||
"height": "0",
|
||||
"txhash": "BA44ABE1194724694E7CB290F9F3121DB4E63E1A030D95CB84813EEA132CF95F",
|
||||
@@ -78,7 +78,7 @@ $ ./build/laconicd tx nameservice set ~/Desktop/examples/records/service_provide
|
||||
## Get records list
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd q nameservice list -o json | jq
|
||||
$ ./build/laconicd q registry list -o json | jq
|
||||
[
|
||||
{
|
||||
"id": "bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae",
|
||||
@@ -104,7 +104,7 @@ $ ./build/laconicd q nameservice list -o json | jq
|
||||
## Get record by id
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd q nameservice get bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae -o json | jq .
|
||||
$ ./build/laconicd q registry get bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae -o json | jq .
|
||||
{
|
||||
"record": {
|
||||
"id": "bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae",
|
||||
@@ -121,7 +121,7 @@ $ ./build/laconicd q nameservice get bafyreih7un2ntk235wshncebus5emlozdhdixrrv67
|
||||
## Reserve name
|
||||
|
||||
```bash
|
||||
./build/laconicd tx nameservice reserve-name hello --from root --chain-id ethermint_9000-1 --owner $(./build/laconicd key
|
||||
./build/laconicd tx registry reserve-name hello --from root --chain-id ethermint_9000-1 --owner $(./build/laconicd key
|
||||
s show root -a) -y -o json | jq .
|
||||
{
|
||||
"height": "0",
|
||||
@@ -143,7 +143,7 @@ s show root -a) -y -o json | jq .
|
||||
## Query Whois for name authority
|
||||
|
||||
```bash
|
||||
./build/laconicd q nameservice whois hello -o json | jq .
|
||||
./build/laconicd q registry whois hello -o json | jq .
|
||||
{
|
||||
"name_authority": {
|
||||
"owner_public_key": "Au3hH1tzL1KgZfXfA71jGYSe5RV9Wg95kwhBWs8V+N+h",
|
||||
@@ -158,10 +158,10 @@ s show root -a) -y -o json | jq .
|
||||
|
||||
```
|
||||
|
||||
## Query the nameservice module balance
|
||||
## Query the registry module balance
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd q nameservice balance -o json | jq .
|
||||
$ ./build/laconicd q registry balance -o json | jq .
|
||||
{
|
||||
"balances": [
|
||||
{
|
||||
@@ -181,14 +181,14 @@ $ ./build/laconicd q nameservice balance -o json | jq .
|
||||
## add bond to the authority
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd tx nameservice authority-bond [Authority Name] [Bond ID ] --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
$ ./build/laconicd tx nameservice authority-bond hello 95f68b1b862bfd1609b0c9aaf7300287b92fec90ac64027092c3e723af36e83d --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
$ ./build/laconicd tx registry authority-bond [Authority Name] [Bond ID ] --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
$ ./build/laconicd tx registry authority-bond hello 95f68b1b862bfd1609b0c9aaf7300287b92fec90ac64027092c3e723af36e83d --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
```
|
||||
|
||||
## Query the records by associate bond id
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd q nameservice query-by-bond 95f68b1b862bfd1609b0c9aaf7300287b92fec90ac64027092c3e723af36e83d -o json | jq .
|
||||
$ ./build/laconicd q registry query-by-bond 95f68b1b862bfd1609b0c9aaf7300287b92fec90ac64027092c3e723af36e83d -o json | jq .
|
||||
{
|
||||
"records": [
|
||||
{
|
||||
@@ -209,8 +209,8 @@ $ ./build/laconicd q nameservice query-by-bond 95f68b1b862bfd1609b0c9aaf7300287b
|
||||
## dissociate bond from record
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd tx nameservice dissociate-bond bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae --from root --chain-id ethermint_9000-1
|
||||
{"body":{"messages":[{"@type":"/vulcanize.nameservice.v1beta1.MsgDissociateBond","record_id":"bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae","signer":"ethm1mfdjngh5jvjs9lqtt9a7y2hlgw8v3syh3hsqzk"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}
|
||||
$ ./build/laconicd tx registry dissociate-bond bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae --from root --chain-id ethermint_9000-1
|
||||
{"body":{"messages":[{"@type":"/vulcanize.registry.v1beta1.MsgDissociateBond","record_id":"bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae","signer":"ethm1mfdjngh5jvjs9lqtt9a7y2hlgw8v3syh3hsqzk"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}
|
||||
|
||||
confirm transaction before signing and broadcasting [y/N]: y
|
||||
code: 0
|
||||
@@ -231,7 +231,7 @@ txhash: 7AFEF524CB0D92D6576FC08601A787786E802449888FD8DDAA7635698CC85060
|
||||
## Associate bond with record
|
||||
|
||||
```bash
|
||||
./build/laconicd tx nameservice associate-bond bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae c3f7a78c5042d2003880962ba31ff3b01fcf5942960e0bc3ca331f816346a440 --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
./build/laconicd tx registry associate-bond bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae c3f7a78c5042d2003880962ba31ff3b01fcf5942960e0bc3ca331f816346a440 --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
{
|
||||
"height": "0",
|
||||
"txhash": "F75C2BF2FE73668AE1332E1237F924AC549E31E822A56394DE5AC17200B199F9",
|
||||
@@ -252,7 +252,7 @@ txhash: 7AFEF524CB0D92D6576FC08601A787786E802449888FD8DDAA7635698CC85060
|
||||
## dissociate-records => remove all record from bond
|
||||
|
||||
```bash
|
||||
$./build/laconicd tx nameservice dissociate-records c3f7a78c5042d2003880962ba31ff3b01fcf5942960e0bc3ca331f816346a440 --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
$./build/laconicd tx registry dissociate-records c3f7a78c5042d2003880962ba31ff3b01fcf5942960e0bc3ca331f816346a440 --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
{
|
||||
"height": "0",
|
||||
"txhash": "0316F503E5DEA47CB108AE6C7C7FFAF3F71CC56BC22F63CB97322E1BE48B33B9",
|
||||
@@ -274,14 +274,14 @@ $./build/laconicd tx nameservice dissociate-records c3f7a78c5042d2003880962ba31f
|
||||
> When a record is expires , needs to renew record
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd tx nameservice renew-record bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae --from root --chain-id ethermint_9000-1
|
||||
$ ./build/laconicd tx registry renew-record bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae --from root --chain-id ethermint_9000-1
|
||||
|
||||
```
|
||||
|
||||
## Set the authority name
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd tx nameservice set-name crn://hello/test test_hello_cid --from root --chain-id ethermint_9000-1 -y -o json | jq .
|
||||
$ ./build/laconicd tx registry 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/laconicd tx nameservice set-name crn://hello/test test_hello_cid --fr
|
||||
## Delete the name
|
||||
|
||||
```bash
|
||||
$./build/laconicd tx nameservice delete-name crn://hello/test --from root --chain-id ethermint_9000-1 -y
|
||||
$./build/laconicd tx registry delete-name crn://hello/test --from root --chain-id ethermint_9000-1 -y
|
||||
code: 0
|
||||
codespace: ""
|
||||
data: ""
|
||||
@@ -320,7 +320,7 @@ txhash: A3FF4C46BAC7BD6E54BBB743A49830AE8C6F6FE59282384789CBA323C1FE540C
|
||||
## List of Authorities Expire Queue
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd q nameservice authority-expiry -o json | jq .
|
||||
$ ./build/laconicd q registry authority-expiry -o json | jq .
|
||||
{
|
||||
"authorities": [],
|
||||
"pagination": null
|
||||
@@ -331,7 +331,7 @@ $ ./build/laconicd q nameservice authority-expiry -o json | jq .
|
||||
## List of Records Expire Queue
|
||||
|
||||
```bash
|
||||
$ ./build/laconicd q nameservice record-expiry -o json | jq .
|
||||
$ ./build/laconicd q registry record-expiry -o json | jq .
|
||||
{
|
||||
"records": [],
|
||||
"pagination": null
|
||||
@@ -1,7 +1,7 @@
|
||||
package nameservice
|
||||
package registry
|
||||
|
||||
import (
|
||||
"github.com/cerc-io/laconicd/x/nameservice/keeper"
|
||||
"github.com/cerc-io/laconicd/x/registry/keeper"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
abci "github.com/tendermint/tendermint/abci/types"
|
||||
)
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/version"
|
||||
@@ -14,14 +14,14 @@ import (
|
||||
|
||||
// GetQueryCmd returns the cli query commands for this module
|
||||
func GetQueryCmd() *cobra.Command {
|
||||
nameserviceQueryCmd := &cobra.Command{
|
||||
registryQueryCmd := &cobra.Command{
|
||||
Use: types.ModuleName,
|
||||
Short: "Querying commands for the nameservice module",
|
||||
Short: "Querying commands for the registry module",
|
||||
DisableFlagParsing: true,
|
||||
SuggestionsMinimumDistance: 2,
|
||||
RunE: client.ValidateCmd,
|
||||
}
|
||||
nameserviceQueryCmd.AddCommand(
|
||||
registryQueryCmd.AddCommand(
|
||||
GetCmdWhoIs(),
|
||||
GetCmdResolve(),
|
||||
GetCmdLookupCRN(),
|
||||
@@ -34,7 +34,7 @@ func GetQueryCmd() *cobra.Command {
|
||||
GetCmdBalance(),
|
||||
GetCmdNames(),
|
||||
)
|
||||
return nameserviceQueryCmd
|
||||
return registryQueryCmd
|
||||
}
|
||||
|
||||
// GetCmdWhoIs queries a whois info for a name.
|
||||
@@ -292,7 +292,7 @@ $ %s query %s balance
|
||||
return err
|
||||
}
|
||||
queryClient := types.NewQueryClient(clientCtx)
|
||||
res, err := queryClient.GetNameServiceModuleBalance(cmd.Context(), &types.GetNameServiceModuleBalanceRequest{})
|
||||
res, err := queryClient.GetRegistryModuleBalance(cmd.Context(), &types.GetRegistryModuleBalanceRequest{})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/cerc-io/laconicd/server/flags"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@@ -17,15 +17,15 @@ import (
|
||||
|
||||
// NewTxCmd returns a root CLI command handler for all x/bond transaction commands.
|
||||
func NewTxCmd() *cobra.Command {
|
||||
nameserviceTxCmd := &cobra.Command{
|
||||
registryTxCmd := &cobra.Command{
|
||||
Use: types.ModuleName,
|
||||
Short: "nameservice transaction subcommands",
|
||||
Short: "registry transaction subcommands",
|
||||
DisableFlagParsing: true,
|
||||
SuggestionsMinimumDistance: 2,
|
||||
RunE: client.ValidateCmd,
|
||||
}
|
||||
|
||||
nameserviceTxCmd.AddCommand(
|
||||
registryTxCmd.AddCommand(
|
||||
GetCmdSetRecord(),
|
||||
GetCmdRenewRecord(),
|
||||
GetCmdAssociateBond(),
|
||||
@@ -38,7 +38,7 @@ func NewTxCmd() *cobra.Command {
|
||||
GetCmdDeleteName(),
|
||||
)
|
||||
|
||||
return nameserviceTxCmd
|
||||
return registryTxCmd
|
||||
}
|
||||
|
||||
// GetCmdSetRecord is the CLI command for creating/updating a record.
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/client/cli"
|
||||
nstypes "github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/client/cli"
|
||||
nstypes "github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
|
||||
"github.com/cosmos/cosmos-sdk/testutil/rest"
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryParams() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqURL := val.APIAddress + "/vulcanize/nameservice/v1beta1/params"
|
||||
reqURL := val.APIAddress + "/vulcanize/registry/v1beta1/params"
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@@ -64,7 +64,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryParams() {
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryWhoIs() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqUrl := val.APIAddress + "/vulcanize/nameservice/v1beta1/whois/%s"
|
||||
reqUrl := val.APIAddress + "/vulcanize/registry/v1beta1/whois/%s"
|
||||
authorityName := "QueryWhoIS"
|
||||
testCases := []struct {
|
||||
name string
|
||||
@@ -131,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?crn=%s"
|
||||
reqURL := val.APIAddress + "/vulcanize/registry/v1beta1/lookup?crn=%s"
|
||||
authorityName := "QueryLookUp"
|
||||
|
||||
testCases := []struct {
|
||||
@@ -184,7 +184,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryLookup() {
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryRecordExpiryQueue() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqUrl := val.APIAddress + "/vulcanize/nameservice/v1beta1/record-expiry"
|
||||
reqUrl := val.APIAddress + "/vulcanize/registry/v1beta1/record-expiry"
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@@ -256,7 +256,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryRecordExpiryQueue() {
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryAuthorityExpiryQueue() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqUrl := val.APIAddress + "/vulcanize/nameservice/v1beta1/authority-expiry"
|
||||
reqUrl := val.APIAddress + "/vulcanize/registry/v1beta1/authority-expiry"
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@@ -328,7 +328,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryAuthorityExpiryQueue() {
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryListRecords() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqUrl := val.APIAddress + "/vulcanize/nameservice/v1beta1/records"
|
||||
reqUrl := val.APIAddress + "/vulcanize/registry/v1beta1/records"
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@@ -398,7 +398,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryListRecords() {
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByID() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqURL := val.APIAddress + "/vulcanize/nameservice/v1beta1/records/%s"
|
||||
reqURL := val.APIAddress + "/vulcanize/registry/v1beta1/records/%s"
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@@ -467,7 +467,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByID() {
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByBondID() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqURL := val.APIAddress + "/vulcanize/nameservice/v1beta1/records-by-bond-id/%s"
|
||||
reqURL := val.APIAddress + "/vulcanize/registry/v1beta1/records-by-bond-id/%s"
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@@ -518,10 +518,10 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByBondID() {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryGetNameServiceModuleBalance() {
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryGetRegistryModuleBalance() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqURL := val.APIAddress + "/vulcanize/nameservice/v1beta1/balance"
|
||||
reqURL := val.APIAddress + "/vulcanize/registry/v1beta1/balance"
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@@ -560,7 +560,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetNameServiceModuleBalance() {
|
||||
if tc.expectErr {
|
||||
require.Contains(string(resp), tc.errorMsg)
|
||||
} else {
|
||||
var response nstypes.GetNameServiceModuleBalanceResponse
|
||||
var response nstypes.GetRegistryModuleBalanceResponse
|
||||
err := val.ClientCtx.Codec.UnmarshalJSON(resp, &response)
|
||||
sr.NoError(err)
|
||||
sr.NotZero(len(response.GetBalances()))
|
||||
@@ -572,7 +572,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetNameServiceModuleBalance() {
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryNamesList() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
reqURL := val.APIAddress + "/vulcanize/nameservice/v1beta1/names"
|
||||
reqURL := val.APIAddress + "/vulcanize/registry/v1beta1/names"
|
||||
|
||||
testCases := []struct {
|
||||
name string
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/client/cli"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/client/cli"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@@ -195,22 +195,22 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() {
|
||||
})
|
||||
}
|
||||
|
||||
s.T().Log("Test Cases for getting nameservice module account balance")
|
||||
testCasesForNameServiceModuleBalance := []struct {
|
||||
s.T().Log("Test Cases for getting registry module account balance")
|
||||
testCasesForRegistryModuleBalance := []struct {
|
||||
name string
|
||||
args []string
|
||||
expErr bool
|
||||
noOfRecords int
|
||||
}{
|
||||
{
|
||||
"get nameservice module accounts balance",
|
||||
"get registry module accounts balance",
|
||||
[]string{fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
|
||||
false,
|
||||
1,
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range testCasesForNameServiceModuleBalance {
|
||||
for _, tc := range testCasesForRegistryModuleBalance {
|
||||
s.Run(tc.name, func() {
|
||||
cmd := cli.GetCmdBalance()
|
||||
clientCtx := val.ClientCtx
|
||||
@@ -220,7 +220,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() {
|
||||
sr.Error(err)
|
||||
} else {
|
||||
sr.NoError(err)
|
||||
var response types.GetNameServiceModuleBalanceResponse
|
||||
var response types.GetRegistryModuleBalanceResponse
|
||||
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &response)
|
||||
sr.NoError(err)
|
||||
sr.Equal(tc.noOfRecords, len(response.GetBalances()))
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"github.com/cerc-io/laconicd/testutil/network"
|
||||
bondcli "github.com/cerc-io/laconicd/x/bond/client/cli"
|
||||
"github.com/cerc-io/laconicd/x/bond/types"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/client/cli"
|
||||
nstypes "github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/client/cli"
|
||||
nstypes "github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
||||
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
||||
@@ -1,10 +1,10 @@
|
||||
package nameservice
|
||||
package registry
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/keeper"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/keeper"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
abci "github.com/tendermint/tendermint/abci/types"
|
||||
)
|
||||
@@ -3,7 +3,7 @@ package keeper
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
)
|
||||
@@ -60,10 +60,10 @@ func (q Querier) GetRecordByBondID(c context.Context, req *types.QueryRecordByBo
|
||||
return &types.QueryRecordByBondIDResponse{Records: records}, nil
|
||||
}
|
||||
|
||||
func (q Querier) GetNameServiceModuleBalance(c context.Context, _ *types.GetNameServiceModuleBalanceRequest) (*types.GetNameServiceModuleBalanceResponse, error) {
|
||||
func (q Querier) GetRegistryModuleBalance(c context.Context, _ *types.GetRegistryModuleBalanceRequest) (*types.GetRegistryModuleBalanceResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
balances := q.Keeper.GetModuleBalances(ctx)
|
||||
return &types.GetNameServiceModuleBalanceResponse{
|
||||
return &types.GetRegistryModuleBalanceResponse{
|
||||
Balances: balances,
|
||||
}, nil
|
||||
}
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/client/cli"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/helpers"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/keeper"
|
||||
nameservicetypes "github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/client/cli"
|
||||
"github.com/cerc-io/laconicd/x/registry/helpers"
|
||||
"github.com/cerc-io/laconicd/x/registry/keeper"
|
||||
registrytypes "github.com/cerc-io/laconicd/x/registry/types"
|
||||
)
|
||||
|
||||
func (suite *KeeperTestSuite) TestGrpcQueryParams() {
|
||||
@@ -16,17 +16,17 @@ func (suite *KeeperTestSuite) TestGrpcQueryParams() {
|
||||
|
||||
testCases := []struct {
|
||||
msg string
|
||||
req *nameservicetypes.QueryParamsRequest
|
||||
req *registrytypes.QueryParamsRequest
|
||||
}{
|
||||
{
|
||||
"Get Params",
|
||||
&nameservicetypes.QueryParamsRequest{},
|
||||
®istrytypes.QueryParamsRequest{},
|
||||
},
|
||||
}
|
||||
for _, test := range testCases {
|
||||
suite.Run(fmt.Sprintf("Case %s ", test.msg), func() {
|
||||
resp, _ := grpcClient.Params(context.Background(), test.req)
|
||||
defaultParams := nameservicetypes.DefaultParams()
|
||||
defaultParams := registrytypes.DefaultParams()
|
||||
suite.Require().Equal(defaultParams.String(), resp.GetParams().String())
|
||||
})
|
||||
}
|
||||
@@ -42,32 +42,32 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
|
||||
}
|
||||
testCases := []struct {
|
||||
msg string
|
||||
req *nameservicetypes.QueryListRecordsRequest
|
||||
req *registrytypes.QueryListRecordsRequest
|
||||
createRecords bool
|
||||
expErr bool
|
||||
noOfRecords int
|
||||
}{
|
||||
{
|
||||
"Empty Records",
|
||||
&nameservicetypes.QueryListRecordsRequest{},
|
||||
®istrytypes.QueryListRecordsRequest{},
|
||||
false,
|
||||
false,
|
||||
0,
|
||||
},
|
||||
{
|
||||
"List Records",
|
||||
&nameservicetypes.QueryListRecordsRequest{},
|
||||
®istrytypes.QueryListRecordsRequest{},
|
||||
true,
|
||||
false,
|
||||
2,
|
||||
},
|
||||
{
|
||||
"Filter with type",
|
||||
&nameservicetypes.QueryListRecordsRequest{
|
||||
Attributes: []*nameservicetypes.QueryListRecordsRequest_KeyValueInput{
|
||||
®istrytypes.QueryListRecordsRequest{
|
||||
Attributes: []*registrytypes.QueryListRecordsRequest_KeyValueInput{
|
||||
{
|
||||
Key: "type",
|
||||
Value: &nameservicetypes.QueryListRecordsRequest_ValueInput{
|
||||
Value: ®istrytypes.QueryListRecordsRequest_ValueInput{
|
||||
Type: "string",
|
||||
String_: "WebsiteRegistrationRecord",
|
||||
},
|
||||
@@ -81,11 +81,11 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
|
||||
},
|
||||
{
|
||||
"Filter with attributes ServiceProviderRegistration",
|
||||
&nameservicetypes.QueryListRecordsRequest{
|
||||
Attributes: []*nameservicetypes.QueryListRecordsRequest_KeyValueInput{
|
||||
®istrytypes.QueryListRecordsRequest{
|
||||
Attributes: []*registrytypes.QueryListRecordsRequest_KeyValueInput{
|
||||
{
|
||||
Key: "x500state_name",
|
||||
Value: &nameservicetypes.QueryListRecordsRequest_ValueInput{
|
||||
Value: ®istrytypes.QueryListRecordsRequest_ValueInput{
|
||||
Type: "string",
|
||||
String_: "california",
|
||||
},
|
||||
@@ -108,7 +108,7 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
|
||||
sr.NoError(err)
|
||||
payload, err := payloadType.ToPayload()
|
||||
sr.NoError(err)
|
||||
record, err := suite.app.NameServiceKeeper.ProcessSetRecord(ctx, nameservicetypes.MsgSetRecord{
|
||||
record, err := suite.app.RegistryKeeper.ProcessSetRecord(ctx, registrytypes.MsgSetRecord{
|
||||
BondId: suite.bond.GetId(),
|
||||
Signer: suite.accounts[0].String(),
|
||||
Payload: payload,
|
||||
@@ -129,7 +129,7 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
|
||||
sr.Equal(resp.GetRecords()[0].GetBondId(), suite.bond.GetId())
|
||||
|
||||
for _, record := range resp.GetRecords() {
|
||||
bz, err := nameservicetypes.GetJSONBytesFromAny(*record.Attributes)
|
||||
bz, err := registrytypes.GetJSONBytesFromAny(*record.Attributes)
|
||||
sr.NoError(err)
|
||||
recAttr := helpers.UnMarshalMapFromJSONBytes(bz)
|
||||
for _, attr := range test.req.GetAttributes() {
|
||||
@@ -148,21 +148,21 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
|
||||
// Get the records by record id
|
||||
testCases1 := []struct {
|
||||
msg string
|
||||
req *nameservicetypes.QueryRecordByIDRequest
|
||||
req *registrytypes.QueryRecordByIDRequest
|
||||
createRecord bool
|
||||
expErr bool
|
||||
noOfRecords int
|
||||
}{
|
||||
{
|
||||
"Invalid Request without record id",
|
||||
&nameservicetypes.QueryRecordByIDRequest{},
|
||||
®istrytypes.QueryRecordByIDRequest{},
|
||||
false,
|
||||
true,
|
||||
0,
|
||||
},
|
||||
{
|
||||
"With Record ID",
|
||||
&nameservicetypes.QueryRecordByIDRequest{
|
||||
®istrytypes.QueryRecordByIDRequest{
|
||||
Id: recordId,
|
||||
},
|
||||
true,
|
||||
@@ -189,21 +189,21 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
|
||||
// Get the records by record id
|
||||
testCasesByBondID := []struct {
|
||||
msg string
|
||||
req *nameservicetypes.QueryRecordByBondIDRequest
|
||||
req *registrytypes.QueryRecordByBondIDRequest
|
||||
createRecord bool
|
||||
expErr bool
|
||||
noOfRecords int
|
||||
}{
|
||||
{
|
||||
"Invalid Request without bond id",
|
||||
&nameservicetypes.QueryRecordByBondIDRequest{},
|
||||
®istrytypes.QueryRecordByBondIDRequest{},
|
||||
false,
|
||||
true,
|
||||
0,
|
||||
},
|
||||
{
|
||||
"With Bond ID",
|
||||
&nameservicetypes.QueryRecordByBondIDRequest{
|
||||
®istrytypes.QueryRecordByBondIDRequest{
|
||||
Id: suite.bond.GetId(),
|
||||
},
|
||||
true,
|
||||
@@ -228,7 +228,7 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
|
||||
}
|
||||
}
|
||||
|
||||
func (suite *KeeperTestSuite) TestGrpcQueryNameserviceModuleBalance() {
|
||||
func (suite *KeeperTestSuite) TestGrpcQueryRegistryModuleBalance() {
|
||||
grpcClient, ctx := suite.queryClient, suite.ctx
|
||||
sr := suite.Require()
|
||||
examples := []string{
|
||||
@@ -237,14 +237,14 @@ func (suite *KeeperTestSuite) TestGrpcQueryNameserviceModuleBalance() {
|
||||
}
|
||||
testCases := []struct {
|
||||
msg string
|
||||
req *nameservicetypes.GetNameServiceModuleBalanceRequest
|
||||
req *registrytypes.GetRegistryModuleBalanceRequest
|
||||
createRecords bool
|
||||
expErr bool
|
||||
noOfRecords int
|
||||
}{
|
||||
{
|
||||
"Get Module Balance",
|
||||
&nameservicetypes.GetNameServiceModuleBalanceRequest{},
|
||||
®istrytypes.GetRegistryModuleBalanceRequest{},
|
||||
true,
|
||||
false,
|
||||
1,
|
||||
@@ -260,7 +260,7 @@ func (suite *KeeperTestSuite) TestGrpcQueryNameserviceModuleBalance() {
|
||||
sr.NoError(err)
|
||||
payload, err := payloadType.ToPayload()
|
||||
sr.NoError(err)
|
||||
record, err := suite.app.NameServiceKeeper.ProcessSetRecord(ctx, nameservicetypes.MsgSetRecord{
|
||||
record, err := suite.app.RegistryKeeper.ProcessSetRecord(ctx, registrytypes.MsgSetRecord{
|
||||
BondId: suite.bond.GetId(),
|
||||
Signer: suite.accounts[0].String(),
|
||||
Payload: payload,
|
||||
@@ -269,7 +269,7 @@ func (suite *KeeperTestSuite) TestGrpcQueryNameserviceModuleBalance() {
|
||||
sr.NotNil(record.ID)
|
||||
}
|
||||
}
|
||||
resp, err := grpcClient.GetNameServiceModuleBalance(context.Background(), test.req)
|
||||
resp, err := grpcClient.GetRegistryModuleBalance(context.Background(), test.req)
|
||||
if test.expErr {
|
||||
suite.Error(err)
|
||||
} else {
|
||||
@@ -277,7 +277,7 @@ func (suite *KeeperTestSuite) TestGrpcQueryNameserviceModuleBalance() {
|
||||
sr.Equal(test.noOfRecords, len(resp.GetBalances()))
|
||||
if test.createRecords {
|
||||
balance := resp.GetBalances()[0]
|
||||
sr.Equal(balance.AccountName, nameservicetypes.RecordRentModuleAccountName)
|
||||
sr.Equal(balance.AccountName, registrytypes.RecordRentModuleAccountName)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -291,21 +291,21 @@ func (suite *KeeperTestSuite) TestGrpcQueryWhoIS() {
|
||||
|
||||
testCases := []struct {
|
||||
msg string
|
||||
req *nameservicetypes.QueryWhoisRequest
|
||||
req *registrytypes.QueryWhoisRequest
|
||||
createName bool
|
||||
expErr bool
|
||||
noOfRecords int
|
||||
}{
|
||||
{
|
||||
"Invalid Request without name",
|
||||
&nameservicetypes.QueryWhoisRequest{},
|
||||
®istrytypes.QueryWhoisRequest{},
|
||||
false,
|
||||
true,
|
||||
1,
|
||||
},
|
||||
{
|
||||
"Success",
|
||||
&nameservicetypes.QueryWhoisRequest{},
|
||||
®istrytypes.QueryWhoisRequest{},
|
||||
true,
|
||||
false,
|
||||
1,
|
||||
@@ -314,13 +314,13 @@ func (suite *KeeperTestSuite) TestGrpcQueryWhoIS() {
|
||||
for _, test := range testCases {
|
||||
suite.Run(fmt.Sprintf("Case %s ", test.msg), func() {
|
||||
if test.createName {
|
||||
err := suite.app.NameServiceKeeper.ProcessReserveAuthority(ctx, nameservicetypes.MsgReserveAuthority{
|
||||
err := suite.app.RegistryKeeper.ProcessReserveAuthority(ctx, registrytypes.MsgReserveAuthority{
|
||||
Name: authorityName,
|
||||
Signer: suite.accounts[0].String(),
|
||||
Owner: suite.accounts[0].String(),
|
||||
})
|
||||
sr.NoError(err)
|
||||
test.req = &nameservicetypes.QueryWhoisRequest{Name: authorityName}
|
||||
test.req = ®istrytypes.QueryWhoisRequest{Name: authorityName}
|
||||
}
|
||||
resp, err := grpcClient.Whois(context.Background(), test.req)
|
||||
if test.expErr {
|
||||
@@ -331,7 +331,7 @@ func (suite *KeeperTestSuite) TestGrpcQueryWhoIS() {
|
||||
nameAuth := resp.NameAuthority
|
||||
sr.NotNil(nameAuth)
|
||||
sr.Equal(nameAuth.OwnerAddress, suite.accounts[0].String())
|
||||
sr.Equal(nameservicetypes.AuthorityActive, nameAuth.Status)
|
||||
sr.Equal(registrytypes.AuthorityActive, nameAuth.Status)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1,11 +1,11 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
|
||||
// RegisterInvariants registers all nameservice module invariants.
|
||||
// RegisterInvariants registers all registry module invariants.
|
||||
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper) {
|
||||
ir.RegisterRoute(types.ModuleName, "record", RecordInvariants(k))
|
||||
}
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
|
||||
auctionkeeper "github.com/cerc-io/laconicd/x/auction/keeper"
|
||||
bondkeeper "github.com/cerc-io/laconicd/x/bond/keeper"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/helpers"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/helpers"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
"github.com/cosmos/cosmos-sdk/codec/legacy"
|
||||
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
||||
@@ -46,7 +46,7 @@ var (
|
||||
// PrefixBondIDToAuthoritiesIndex is the prefix for the Bond ID -> [Authority] index.
|
||||
PrefixBondIDToAuthoritiesIndex = []byte{0x06}
|
||||
|
||||
// PrefixAttributesIndex is the prefix for the nameservice Record.Attribute -> []Record.ID index
|
||||
// PrefixAttributesIndex is the prefix for the registry Record.Attribute -> []Record.ID index
|
||||
PrefixAttributesIndex = []byte{0x07}
|
||||
|
||||
// PrefixExpiryTimeToRecordsIndex is the prefix for the Expiry Time -> [Record] index.
|
||||
@@ -75,7 +75,7 @@ type Keeper struct {
|
||||
paramSubspace paramtypes.Subspace
|
||||
}
|
||||
|
||||
// NewKeeper creates new instances of the nameservice Keeper
|
||||
// NewKeeper creates new instances of the registry Keeper
|
||||
func NewKeeper(cdc codec.BinaryCodec, accountKeeper auth.AccountKeeper, bankKeeper bank.Keeper, recordKeeper RecordKeeper,
|
||||
bondKeeper bondkeeper.Keeper, auctionKeeper auctionkeeper.Keeper, storeKey storetypes.StoreKey, ps paramtypes.Subspace,
|
||||
) Keeper {
|
||||
@@ -549,7 +549,7 @@ func (k Keeper) TryTakeRecordRent(ctx sdk.Context, record types.Record) {
|
||||
k.AddBondToRecordIndexEntry(ctx, record.BondId, record.Id)
|
||||
}
|
||||
|
||||
// GetModuleBalances gets the nameservice module account(s) balances.
|
||||
// GetModuleBalances gets the registry module account(s) balances.
|
||||
func (k Keeper) GetModuleBalances(ctx sdk.Context) []*types.AccountBalance {
|
||||
var balances []*types.AccountBalance
|
||||
accountNames := []string{types.RecordRentModuleAccountName, types.AuthorityRentModuleAccountName}
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
|
||||
"github.com/cerc-io/laconicd/app"
|
||||
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
|
||||
nameservicekeeper "github.com/cerc-io/laconicd/x/nameservice/keeper"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
registrykeeper "github.com/cerc-io/laconicd/x/registry/keeper"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||
"github.com/cosmos/cosmos-sdk/simapp"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@@ -34,7 +34,7 @@ func (suite *KeeperTestSuite) SetupTest() {
|
||||
})
|
||||
ctx := testApp.BaseApp.NewContext(false, tmproto.Header{})
|
||||
|
||||
querier := nameservicekeeper.Querier{Keeper: testApp.NameServiceKeeper}
|
||||
querier := registrykeeper.Querier{Keeper: testApp.RegistryKeeper}
|
||||
|
||||
queryHelper := baseapp.NewQueryServerTestHelper(ctx, testApp.InterfaceRegistry())
|
||||
types.RegisterQueryServer(queryHelper, querier)
|
||||
@@ -64,7 +64,7 @@ func TestParams(t *testing.T) {
|
||||
ctx := testApp.BaseApp.NewContext(false, tmproto.Header{})
|
||||
|
||||
expParams := types.DefaultParams()
|
||||
params := testApp.NameServiceKeeper.GetParams(ctx)
|
||||
params := testApp.RegistryKeeper.GetParams(ctx)
|
||||
require.True(t, params.Equal(expParams))
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package keeper
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"time"
|
||||
|
||||
auctiontypes "github.com/cerc-io/laconicd/x/auction/types"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/helpers"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/helpers"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@@ -1,7 +1,7 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
auctionkeeper "github.com/cerc-io/laconicd/x/auction/keeper"
|
||||
auctiontypes "github.com/cerc-io/laconicd/x/auction/types"
|
||||
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@@ -125,7 +125,7 @@ func (k Keeper) RemoveBondToRecordIndexEntry(ctx sdk.Context, bondID string, id
|
||||
store.Delete(getBondIDToRecordsIndexKey(bondID, id))
|
||||
}
|
||||
|
||||
// NewRecordKeeper creates new instances of the nameservice RecordKeeper
|
||||
// NewRecordKeeper creates new instances of the registry RecordKeeper
|
||||
func NewRecordKeeper(auctionKeeper auctionkeeper.Keeper, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) RecordKeeper {
|
||||
return RecordKeeper{
|
||||
auctionKeeper: auctionKeeper,
|
||||
@@ -1,8 +1,8 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"github.com/cerc-io/laconicd/x/nameservice/helpers"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/helpers"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
@@ -1,4 +1,4 @@
|
||||
package nameservice
|
||||
package registry
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"fmt"
|
||||
"math/rand" // #nosec G702
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/client/cli"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/keeper"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/simulation"
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/client/cli"
|
||||
"github.com/cerc-io/laconicd/x/registry/keeper"
|
||||
"github.com/cerc-io/laconicd/x/registry/simulation"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
@@ -7,13 +7,13 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/types/module"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/types"
|
||||
"github.com/cerc-io/laconicd/x/registry/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
|
||||
// RandomizedGenState generates a random GenesisState
|
||||
func RandomizedGenState(simState *module.SimulationState) {
|
||||
nameserviceParams := types.NewParams(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(int64(simState.Rand.Intn(10000000000)))),
|
||||
registryParams := types.NewParams(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(int64(simState.Rand.Intn(10000000000)))),
|
||||
time.Duration(simState.Rand.Intn(1000))*time.Second,
|
||||
sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(int64(simState.Rand.Intn(10000000000)))),
|
||||
time.Duration(simState.Rand.Intn(1000))*time.Second,
|
||||
@@ -26,13 +26,13 @@ func RandomizedGenState(simState *module.SimulationState) {
|
||||
sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(int64(simState.Rand.Intn(10000000000)))),
|
||||
)
|
||||
|
||||
nameserviceGenesis := types.NewGenesisState(nameserviceParams, []types.Record{}, []types.AuthorityEntry{}, []types.NameEntry{})
|
||||
registryGenesis := types.NewGenesisState(registryParams, []types.Record{}, []types.AuthorityEntry{}, []types.NameEntry{})
|
||||
|
||||
bz, err := json.MarshalIndent(nameserviceGenesis, "", " ")
|
||||
bz, err := json.MarshalIndent(registryGenesis, "", " ")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("Selected randomly generated %s parameters:\n%s\n", types.ModuleName, bz)
|
||||
|
||||
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&nameserviceGenesis)
|
||||
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(®istryGenesis)
|
||||
}
|
||||
+49
-49
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: vulcanize/nameservice/v1beta1/attributes.proto
|
||||
// source: vulcanize/registry/v1beta1/attributes.proto
|
||||
|
||||
package types
|
||||
|
||||
@@ -34,7 +34,7 @@ func (m *ServiceProviderRegistration) Reset() { *m = ServiceProviderRegi
|
||||
func (m *ServiceProviderRegistration) String() string { return proto.CompactTextString(m) }
|
||||
func (*ServiceProviderRegistration) ProtoMessage() {}
|
||||
func (*ServiceProviderRegistration) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7f2d1895d048a86a, []int{0}
|
||||
return fileDescriptor_f305abc771332c96, []int{0}
|
||||
}
|
||||
func (m *ServiceProviderRegistration) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -104,7 +104,7 @@ func (m *X500) Reset() { *m = X500{} }
|
||||
func (m *X500) String() string { return proto.CompactTextString(m) }
|
||||
func (*X500) ProtoMessage() {}
|
||||
func (*X500) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7f2d1895d048a86a, []int{1}
|
||||
return fileDescriptor_f305abc771332c96, []int{1}
|
||||
}
|
||||
func (m *X500) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -187,7 +187,7 @@ func (m *WebsiteRegistrationRecord) Reset() { *m = WebsiteRegistrationRe
|
||||
func (m *WebsiteRegistrationRecord) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebsiteRegistrationRecord) ProtoMessage() {}
|
||||
func (*WebsiteRegistrationRecord) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_7f2d1895d048a86a, []int{2}
|
||||
return fileDescriptor_f305abc771332c96, []int{2}
|
||||
}
|
||||
func (m *WebsiteRegistrationRecord) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -252,58 +252,58 @@ func (m *WebsiteRegistrationRecord) GetType() string {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ServiceProviderRegistration)(nil), "vulcanize.nameservice.v1beta1.ServiceProviderRegistration")
|
||||
proto.RegisterType((*X500)(nil), "vulcanize.nameservice.v1beta1.X500")
|
||||
proto.RegisterType((*WebsiteRegistrationRecord)(nil), "vulcanize.nameservice.v1beta1.WebsiteRegistrationRecord")
|
||||
proto.RegisterType((*ServiceProviderRegistration)(nil), "vulcanize.registry.v1beta1.ServiceProviderRegistration")
|
||||
proto.RegisterType((*X500)(nil), "vulcanize.registry.v1beta1.X500")
|
||||
proto.RegisterType((*WebsiteRegistrationRecord)(nil), "vulcanize.registry.v1beta1.WebsiteRegistrationRecord")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("vulcanize/nameservice/v1beta1/attributes.proto", fileDescriptor_7f2d1895d048a86a)
|
||||
proto.RegisterFile("vulcanize/registry/v1beta1/attributes.proto", fileDescriptor_f305abc771332c96)
|
||||
}
|
||||
|
||||
var fileDescriptor_7f2d1895d048a86a = []byte{
|
||||
var fileDescriptor_f305abc771332c96 = []byte{
|
||||
// 645 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4d, 0x4f, 0x14, 0x31,
|
||||
0x18, 0xc7, 0x59, 0x76, 0x81, 0x50, 0x30, 0xc1, 0x46, 0xe3, 0x22, 0xb2, 0x03, 0x4b, 0x0c, 0x24,
|
||||
0xc4, 0x99, 0x45, 0x42, 0x62, 0xf4, 0xc4, 0x8b, 0x89, 0x9b, 0x18, 0x43, 0x0a, 0x46, 0xe3, 0x65,
|
||||
0xec, 0x74, 0xea, 0x5a, 0x33, 0x3b, 0x25, 0x9d, 0xce, 0x86, 0xf5, 0x03, 0x78, 0xf6, 0x43, 0xf8,
|
||||
0x01, 0xfc, 0x18, 0x1e, 0x39, 0x7a, 0x9a, 0x18, 0x38, 0x79, 0x9d, 0x4f, 0x60, 0xda, 0xce, 0xcc,
|
||||
0x76, 0xd9, 0x40, 0xbc, 0x3d, 0xfd, 0x3f, 0xff, 0xe7, 0xf7, 0xf4, 0x1d, 0xb8, 0x83, 0x34, 0x22,
|
||||
0x38, 0x66, 0x5f, 0xa9, 0x17, 0xe3, 0x3e, 0x4d, 0xa8, 0x18, 0x30, 0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ff, 0xc5, 0xdd, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x80, 0xa1, 0x70,
|
||||
0x3a, 0x7e, 0x05, 0x00, 0x00,
|
||||
0x18, 0xc7, 0x19, 0x76, 0x81, 0x50, 0x30, 0xc1, 0x46, 0xe3, 0x02, 0xba, 0xb3, 0xac, 0x31, 0x90,
|
||||
0xa0, 0x3b, 0x8b, 0x84, 0xc4, 0xe8, 0x89, 0x17, 0x8d, 0x24, 0xc6, 0x60, 0xd1, 0x68, 0xbc, 0x8c,
|
||||
0x9d, 0x4e, 0x5d, 0x6b, 0x66, 0xa7, 0xa4, 0xd3, 0xd9, 0xb0, 0x7e, 0x00, 0xcf, 0x7e, 0x05, 0xbf,
|
||||
0x81, 0x1f, 0xc3, 0x23, 0x47, 0x4f, 0x13, 0x03, 0x27, 0xaf, 0xf3, 0x09, 0x4c, 0xdb, 0x99, 0xd9,
|
||||
0xc2, 0x66, 0x8d, 0xb7, 0xa7, 0xff, 0xe7, 0xff, 0xfc, 0x9e, 0xbe, 0x83, 0xcd, 0x41, 0x1a, 0x11,
|
||||
0x1c, 0xb3, 0x2f, 0xd4, 0x13, 0xb4, 0xc7, 0x12, 0x29, 0x86, 0xde, 0x60, 0x2b, 0xa0, 0x12, 0x6f,
|
||||
0x79, 0x58, 0x4a, 0xc1, 0x82, 0x54, 0xd2, 0xa4, 0x73, 0x22, 0xb8, 0xe4, 0x70, 0xa5, 0x32, 0x77,
|
||||
0x4a, 0x73, 0xa7, 0x30, 0xaf, 0xdc, 0xe8, 0xf1, 0x1e, 0xd7, 0x36, 0x4f, 0x45, 0xa6, 0xa2, 0xfd,
|
||||
0x7d, 0x1a, 0xac, 0x1e, 0x53, 0x31, 0x60, 0x84, 0x1e, 0x09, 0x3e, 0x60, 0x21, 0x15, 0xc8, 0x54,
|
||||
0x62, 0xc9, 0x78, 0x0c, 0x1f, 0x81, 0xb9, 0x80, 0xc7, 0xa1, 0xcf, 0xc2, 0x86, 0xd3, 0x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0x52, 0x77, 0x1f, 0xbb, 0x0b, 0xda,
|
||||
0xb3, 0x5b, 0x58, 0xac, 0xa6, 0x63, 0x3a, 0x5a, 0xba, 0x2c, 0xb1, 0x10, 0x1e, 0x82, 0x45, 0x19,
|
||||
0x25, 0x3e, 0xa1, 0xc2, 0xc0, 0xeb, 0x57, 0x9f, 0xc6, 0xeb, 0x17, 0xc7, 0xfb, 0x54, 0xd8, 0x58,
|
||||
0x4b, 0x41, 0x40, 0x46, 0x89, 0x1e, 0xb0, 0xb0, 0x7a, 0x9e, 0x33, 0xff, 0xf9, 0x3c, 0xf7, 0x9e,
|
||||
0xfd, 0x3c, 0x6f, 0x3a, 0x67, 0xe7, 0x4d, 0xe7, 0xf7, 0x79, 0xd3, 0xf9, 0x76, 0xd1, 0x9c, 0x3a,
|
||||
0xbb, 0x68, 0x4e, 0xfd, 0xba, 0x68, 0x4e, 0xbd, 0xbf, 0xdf, 0x63, 0xf2, 0x53, 0x1a, 0x74, 0x08,
|
||||
0xef, 0x7b, 0x84, 0x0a, 0xf2, 0x80, 0x71, 0xaf, 0xf8, 0x5a, 0x42, 0xef, 0x74, 0xf4, 0x9f, 0x2a,
|
||||
0x4c, 0x12, 0xcc, 0xea, 0x1f, 0x71, 0xfb, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x77, 0x12, 0xbc,
|
||||
0x04, 0x72, 0x05, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *ServiceProviderRegistration) Marshal() (dAtA []byte, err error) {
|
||||
@@ -11,17 +11,17 @@ import (
|
||||
// RegisterLegacyAminoCodec registers the necessary x/bond interfaces and concrete types
|
||||
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
|
||||
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
cdc.RegisterConcrete(&MsgSetName{}, "nameservice/SetName", nil)
|
||||
cdc.RegisterConcrete(&MsgReserveAuthority{}, "nameservice/ReserveAuthority", nil)
|
||||
cdc.RegisterConcrete(&MsgDeleteNameAuthority{}, "nameservice/DeleteAuthority", nil)
|
||||
cdc.RegisterConcrete(&MsgSetAuthorityBond{}, "nameservice/SetAuthorityBond", nil)
|
||||
cdc.RegisterConcrete(&MsgSetName{}, "registry/SetName", nil)
|
||||
cdc.RegisterConcrete(&MsgReserveAuthority{}, "registry/ReserveAuthority", nil)
|
||||
cdc.RegisterConcrete(&MsgDeleteNameAuthority{}, "registry/DeleteAuthority", nil)
|
||||
cdc.RegisterConcrete(&MsgSetAuthorityBond{}, "registry/SetAuthorityBond", nil)
|
||||
|
||||
cdc.RegisterConcrete(&MsgSetRecord{}, "nameservice/SetRecord", nil)
|
||||
cdc.RegisterConcrete(&MsgRenewRecord{}, "nameservice/RenewRecord", nil)
|
||||
cdc.RegisterConcrete(&MsgAssociateBond{}, "nameservice/AssociateBond", nil)
|
||||
cdc.RegisterConcrete(&MsgDissociateBond{}, "nameservice/DissociateBond", nil)
|
||||
cdc.RegisterConcrete(&MsgDissociateRecords{}, "nameservice/DissociateRecords", nil)
|
||||
cdc.RegisterConcrete(&MsgReAssociateRecords{}, "nameservice/ReassociateRecords", nil)
|
||||
cdc.RegisterConcrete(&MsgSetRecord{}, "registry/SetRecord", nil)
|
||||
cdc.RegisterConcrete(&MsgRenewRecord{}, "registry/RenewRecord", nil)
|
||||
cdc.RegisterConcrete(&MsgAssociateBond{}, "registry/AssociateBond", nil)
|
||||
cdc.RegisterConcrete(&MsgDissociateBond{}, "registry/DissociateBond", nil)
|
||||
cdc.RegisterConcrete(&MsgDissociateRecords{}, "registry/DissociateRecords", nil)
|
||||
cdc.RegisterConcrete(&MsgReAssociateRecords{}, "registry/ReassociateRecords", nil)
|
||||
}
|
||||
|
||||
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
||||
@@ -40,13 +40,13 @@ func RegisterInterfaces(registry types.InterfaceRegistry) {
|
||||
)
|
||||
|
||||
registry.RegisterInterface(
|
||||
"vulcanize.nameservice.v1beta1.ServiceProvideRegistration",
|
||||
"vulcanize.registry.v1beta1.ServiceProvideRegistration",
|
||||
(*Attributes)(nil),
|
||||
&ServiceProviderRegistration{},
|
||||
)
|
||||
|
||||
registry.RegisterInterface(
|
||||
"vulcanize.nameservice.v1beta1.WebsiteRegistrationRecord",
|
||||
"vulcanize.registry.v1beta1.WebsiteRegistrationRecord",
|
||||
(*Attributes)(nil),
|
||||
&WebsiteRegistrationRecord{},
|
||||
)
|
||||
+30
-30
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: vulcanize/nameservice/v1beta1/genesis.proto
|
||||
// source: vulcanize/registry/v1beta1/genesis.proto
|
||||
|
||||
package types
|
||||
|
||||
@@ -23,9 +23,9 @@ var _ = math.Inf
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// GenesisState defines the nameservice module's genesis state.
|
||||
// GenesisState defines the registry module's genesis state.
|
||||
type GenesisState struct {
|
||||
// params defines all the params of nameservice module.
|
||||
// params defines all the params of registry module.
|
||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||
// records
|
||||
Records []Record `protobuf:"bytes,2,rep,name=records,proto3" json:"records" json:"records" yaml:"records"`
|
||||
@@ -39,7 +39,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} }
|
||||
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
|
||||
func (*GenesisState) ProtoMessage() {}
|
||||
func (*GenesisState) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_fe7037a2b22e67ef, []int{0}
|
||||
return fileDescriptor_8e599869d3a2e5ff, []int{0}
|
||||
}
|
||||
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -97,37 +97,37 @@ func (m *GenesisState) GetNames() []NameEntry {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GenesisState)(nil), "vulcanize.nameservice.v1beta1.GenesisState")
|
||||
proto.RegisterType((*GenesisState)(nil), "vulcanize.registry.v1beta1.GenesisState")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("vulcanize/nameservice/v1beta1/genesis.proto", fileDescriptor_fe7037a2b22e67ef)
|
||||
proto.RegisterFile("vulcanize/registry/v1beta1/genesis.proto", fileDescriptor_8e599869d3a2e5ff)
|
||||
}
|
||||
|
||||
var fileDescriptor_fe7037a2b22e67ef = []byte{
|
||||
// 345 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0xd1, 0xc1, 0x4e, 0xfa, 0x30,
|
||||
0x1c, 0x07, 0xf0, 0xed, 0x0f, 0x7f, 0x4c, 0x86, 0xa7, 0xc5, 0xc3, 0x24, 0x61, 0x20, 0x09, 0x09,
|
||||
0x89, 0x61, 0x0d, 0x7a, 0xf3, 0xe6, 0x8c, 0x31, 0x5e, 0x8c, 0x99, 0x37, 0x6f, 0xa5, 0xfc, 0x1c,
|
||||
0x35, 0xac, 0x25, 0x6d, 0x21, 0xce, 0x83, 0xcf, 0xe0, 0x13, 0xf8, 0x3c, 0x1c, 0x39, 0x7a, 0x22,
|
||||
0x06, 0xde, 0xc0, 0x27, 0x30, 0xb4, 0x45, 0xe7, 0x05, 0xbc, 0xad, 0xcb, 0xf7, 0xfb, 0xfd, 0x34,
|
||||
0xa9, 0x77, 0x3c, 0x9d, 0x8c, 0x08, 0x66, 0xf4, 0x19, 0x10, 0xc3, 0x19, 0x48, 0x10, 0x53, 0x4a,
|
||||
0x00, 0x4d, 0x7b, 0x7d, 0x50, 0xb8, 0x87, 0x52, 0x60, 0x20, 0xa9, 0x8c, 0xc6, 0x82, 0x2b, 0xee,
|
||||
0xd7, 0xbf, 0xc3, 0x51, 0x21, 0x1c, 0xd9, 0x70, 0xed, 0x20, 0xe5, 0x29, 0xd7, 0x49, 0xb4, 0xfe,
|
||||
0x32, 0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xa4,
|
||||
0x1f, 0x11, 0x9e, 0x21, 0x02, 0x82, 0x74, 0x29, 0x47, 0x23, 0x4c, 0x38, 0xa3, 0x64, 0x80, 0x9e,
|
||||
0x7e, 0xbd, 0xbf, 0xca, 0xc7, 0x20, 0xfb, 0x15, 0xfd, 0xe4, 0xa7, 0x5f, 0x01, 0x00, 0x00, 0xff,
|
||||
0xff, 0x38, 0x14, 0xaf, 0x6f, 0x87, 0x02, 0x00, 0x00,
|
||||
var fileDescriptor_8e599869d3a2e5ff = []byte{
|
||||
// 340 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xb1, 0x4e, 0xc2, 0x40,
|
||||
0x18, 0x80, 0x5b, 0x41, 0x4c, 0x8a, 0x53, 0xe3, 0x50, 0x49, 0x2c, 0xd8, 0x84, 0x04, 0x8d, 0xf4,
|
||||
0x82, 0x6e, 0x4e, 0xda, 0x44, 0xdd, 0x8c, 0xa9, 0x9b, 0x83, 0xc9, 0x71, 0xfc, 0x29, 0x67, 0x68,
|
||||
0x8f, 0xdc, 0x1d, 0xc4, 0xea, 0x4b, 0x18, 0x9f, 0x8a, 0x91, 0xd1, 0x89, 0x18, 0x78, 0x03, 0x9f,
|
||||
0xc0, 0x70, 0x77, 0x05, 0x16, 0x71, 0xbb, 0xff, 0xf2, 0xfd, 0xdf, 0x37, 0xfc, 0x4e, 0x6b, 0x3c,
|
||||
0x1a, 0x10, 0x9c, 0xd1, 0x37, 0x40, 0x1c, 0x12, 0x2a, 0x24, 0xcf, 0xd1, 0xb8, 0xd3, 0x05, 0x89,
|
||||
0x3b, 0x28, 0x81, 0x0c, 0x04, 0x15, 0xe1, 0x90, 0x33, 0xc9, 0xdc, 0xda, 0x8a, 0x0c, 0x0b, 0x32,
|
||||
0x34, 0x64, 0xed, 0x20, 0x61, 0x09, 0x53, 0x18, 0x5a, 0xbe, 0xf4, 0x46, 0xed,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, 0xea, 0x86, 0x84, 0xa5, 0x88,
|
||||
0x00, 0x27, 0x6d, 0xca, 0xd0, 0x00, 0x13, 0x96, 0x51, 0xd2, 0x43, 0xaf, 0xeb, 0x6b, 0xcb, 0x7c,
|
||||
0x08, 0xa2, 0x5b, 0x51, 0x37, 0xbe, 0xf8, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xba, 0xb2, 0x8e, 0x8c,
|
||||
0x6c, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
|
||||
@@ -2,7 +2,7 @@ package types
|
||||
|
||||
const (
|
||||
// ModuleName is the name of the staking module
|
||||
ModuleName = "nameservice"
|
||||
ModuleName = "registry"
|
||||
|
||||
// RecordRentModuleAccountName is the name of the module account that keeps track of record rents paid.
|
||||
RecordRentModuleAccountName = "record_rent"
|
||||
+239
-239
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: vulcanize/nameservice/v1beta1/query.proto
|
||||
// source: vulcanize/registry/v1beta1/query.proto
|
||||
|
||||
/*
|
||||
Package types is a reverse proxy.
|
||||
@@ -211,20 +211,20 @@ func local_request_Query_GetRecordByBondID_0(ctx context.Context, marshaler runt
|
||||
|
||||
}
|
||||
|
||||
func request_Query_GetNameServiceModuleBalance_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq GetNameServiceModuleBalanceRequest
|
||||
func request_Query_GetRegistryModuleBalance_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq GetRegistryModuleBalanceRequest
|
||||
var metadata runtime.ServerMetadata
|
||||
|
||||
msg, err := client.GetNameServiceModuleBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
msg, err := client.GetRegistryModuleBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
|
||||
func local_request_Query_GetNameServiceModuleBalance_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq GetNameServiceModuleBalanceRequest
|
||||
func local_request_Query_GetRegistryModuleBalance_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq GetRegistryModuleBalanceRequest
|
||||
var metadata runtime.ServerMetadata
|
||||
|
||||
msg, err := server.GetNameServiceModuleBalance(ctx, &protoReq)
|
||||
msg, err := server.GetRegistryModuleBalance(ctx, &protoReq)
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
@@ -549,7 +549,7 @@ 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) {
|
||||
mux.Handle("GET", pattern_Query_GetRegistryModuleBalance_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)
|
||||
@@ -558,14 +558,14 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_GetNameServiceModuleBalance_0(rctx, inboundMarshaler, server, req, pathParams)
|
||||
resp, md, err := local_request_Query_GetRegistryModuleBalance_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_GetNameServiceModuleBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
forward_Query_GetRegistryModuleBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
@@ -810,7 +810,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("GET", pattern_Query_GetNameServiceModuleBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
mux.Handle("GET", pattern_Query_GetRegistryModuleBalance_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)
|
||||
@@ -819,14 +819,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := request_Query_GetNameServiceModuleBalance_0(rctx, inboundMarshaler, client, req, pathParams)
|
||||
resp, md, err := request_Query_GetRegistryModuleBalance_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_GetNameServiceModuleBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
forward_Query_GetRegistryModuleBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
@@ -954,27 +954,27 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
}
|
||||
|
||||
var (
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "registry", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_ListRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "records"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_ListRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "registry", "v1beta1", "records"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_GetRecord_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", "records", "id"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_GetRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"vulcanize", "registry", "v1beta1", "records", "id"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_GetRecordByBondID_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", "records-by-bond-id", "id"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_GetRecordByBondID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"vulcanize", "registry", "v1beta1", "records-by-bond-id", "id"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_GetNameServiceModuleBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "balance"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_GetRegistryModuleBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "registry", "v1beta1", "balance"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_ListNameRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "names"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_ListNameRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "registry", "v1beta1", "names"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
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_Whois_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"vulcanize", "registry", "v1beta1", "whois", "name"}, "", 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_LookupCrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "registry", "v1beta1", "lookup"}, "", 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_ResolveCrn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "registry", "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)))
|
||||
pattern_Query_GetRecordExpiryQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "registry", "v1beta1", "record-expiry"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_GetAuthorityExpiryQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "nameservice", "v1beta1", "authority-expiry"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
pattern_Query_GetAuthorityExpiryQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "registry", "v1beta1", "authority-expiry"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -986,7 +986,7 @@ var (
|
||||
|
||||
forward_Query_GetRecordByBondID_0 = runtime.ForwardResponseMessage
|
||||
|
||||
forward_Query_GetNameServiceModuleBalance_0 = runtime.ForwardResponseMessage
|
||||
forward_Query_GetRegistryModuleBalance_0 = runtime.ForwardResponseMessage
|
||||
|
||||
forward_Query_ListNameRecords_0 = runtime.ForwardResponseMessage
|
||||
|
||||
+368
-368
File diff suppressed because it is too large
Load Diff
+123
-123
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: vulcanize/nameservice/v1beta1/tx.proto
|
||||
// source: vulcanize/registry/v1beta1/tx.proto
|
||||
|
||||
package types
|
||||
|
||||
@@ -39,7 +39,7 @@ func (m *MsgSetRecord) Reset() { *m = MsgSetRecord{} }
|
||||
func (m *MsgSetRecord) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSetRecord) ProtoMessage() {}
|
||||
func (*MsgSetRecord) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{0}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{0}
|
||||
}
|
||||
func (m *MsgSetRecord) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -98,7 +98,7 @@ func (m *MsgSetRecordResponse) Reset() { *m = MsgSetRecordResponse{} }
|
||||
func (m *MsgSetRecordResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSetRecordResponse) ProtoMessage() {}
|
||||
func (*MsgSetRecordResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{1}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{1}
|
||||
}
|
||||
func (m *MsgSetRecordResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -144,7 +144,7 @@ func (m *Payload) Reset() { *m = Payload{} }
|
||||
func (m *Payload) String() string { return proto.CompactTextString(m) }
|
||||
func (*Payload) ProtoMessage() {}
|
||||
func (*Payload) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{2}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{2}
|
||||
}
|
||||
func (m *Payload) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -198,7 +198,7 @@ func (m *MsgSetName) Reset() { *m = MsgSetName{} }
|
||||
func (m *MsgSetName) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSetName) ProtoMessage() {}
|
||||
func (*MsgSetName) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{3}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{3}
|
||||
}
|
||||
func (m *MsgSetName) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -256,7 +256,7 @@ func (m *MsgSetNameResponse) Reset() { *m = MsgSetNameResponse{} }
|
||||
func (m *MsgSetNameResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSetNameResponse) ProtoMessage() {}
|
||||
func (*MsgSetNameResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{4}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{4}
|
||||
}
|
||||
func (m *MsgSetNameResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -297,7 +297,7 @@ func (m *MsgReserveAuthority) Reset() { *m = MsgReserveAuthority{} }
|
||||
func (m *MsgReserveAuthority) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgReserveAuthority) ProtoMessage() {}
|
||||
func (*MsgReserveAuthority) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{5}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{5}
|
||||
}
|
||||
func (m *MsgReserveAuthority) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -355,7 +355,7 @@ func (m *MsgReserveAuthorityResponse) Reset() { *m = MsgReserveAuthority
|
||||
func (m *MsgReserveAuthorityResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgReserveAuthorityResponse) ProtoMessage() {}
|
||||
func (*MsgReserveAuthorityResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{6}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{6}
|
||||
}
|
||||
func (m *MsgReserveAuthorityResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -395,7 +395,7 @@ func (m *MsgSetAuthorityBond) Reset() { *m = MsgSetAuthorityBond{} }
|
||||
func (m *MsgSetAuthorityBond) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSetAuthorityBond) ProtoMessage() {}
|
||||
func (*MsgSetAuthorityBond) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{7}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{7}
|
||||
}
|
||||
func (m *MsgSetAuthorityBond) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -453,7 +453,7 @@ func (m *MsgSetAuthorityBondResponse) Reset() { *m = MsgSetAuthorityBond
|
||||
func (m *MsgSetAuthorityBondResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSetAuthorityBondResponse) ProtoMessage() {}
|
||||
func (*MsgSetAuthorityBondResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{8}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{8}
|
||||
}
|
||||
func (m *MsgSetAuthorityBondResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -492,7 +492,7 @@ func (m *MsgDeleteNameAuthority) Reset() { *m = MsgDeleteNameAuthority{}
|
||||
func (m *MsgDeleteNameAuthority) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgDeleteNameAuthority) ProtoMessage() {}
|
||||
func (*MsgDeleteNameAuthority) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{9}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{9}
|
||||
}
|
||||
func (m *MsgDeleteNameAuthority) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -543,7 +543,7 @@ func (m *MsgDeleteNameAuthorityResponse) Reset() { *m = MsgDeleteNameAut
|
||||
func (m *MsgDeleteNameAuthorityResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgDeleteNameAuthorityResponse) ProtoMessage() {}
|
||||
func (*MsgDeleteNameAuthorityResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{10}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{10}
|
||||
}
|
||||
func (m *MsgDeleteNameAuthorityResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -582,7 +582,7 @@ func (m *MsgRenewRecord) Reset() { *m = MsgRenewRecord{} }
|
||||
func (m *MsgRenewRecord) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgRenewRecord) ProtoMessage() {}
|
||||
func (*MsgRenewRecord) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{11}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{11}
|
||||
}
|
||||
func (m *MsgRenewRecord) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -633,7 +633,7 @@ func (m *MsgRenewRecordResponse) Reset() { *m = MsgRenewRecordResponse{}
|
||||
func (m *MsgRenewRecordResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgRenewRecordResponse) ProtoMessage() {}
|
||||
func (*MsgRenewRecordResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{12}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{12}
|
||||
}
|
||||
func (m *MsgRenewRecordResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -673,7 +673,7 @@ func (m *MsgAssociateBond) Reset() { *m = MsgAssociateBond{} }
|
||||
func (m *MsgAssociateBond) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgAssociateBond) ProtoMessage() {}
|
||||
func (*MsgAssociateBond) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{13}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{13}
|
||||
}
|
||||
func (m *MsgAssociateBond) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -731,7 +731,7 @@ func (m *MsgAssociateBondResponse) Reset() { *m = MsgAssociateBondRespon
|
||||
func (m *MsgAssociateBondResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgAssociateBondResponse) ProtoMessage() {}
|
||||
func (*MsgAssociateBondResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{14}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{14}
|
||||
}
|
||||
func (m *MsgAssociateBondResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -770,7 +770,7 @@ func (m *MsgDissociateBond) Reset() { *m = MsgDissociateBond{} }
|
||||
func (m *MsgDissociateBond) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgDissociateBond) ProtoMessage() {}
|
||||
func (*MsgDissociateBond) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{15}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{15}
|
||||
}
|
||||
func (m *MsgDissociateBond) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -821,7 +821,7 @@ func (m *MsgDissociateBondResponse) Reset() { *m = MsgDissociateBondResp
|
||||
func (m *MsgDissociateBondResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgDissociateBondResponse) ProtoMessage() {}
|
||||
func (*MsgDissociateBondResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{16}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{16}
|
||||
}
|
||||
func (m *MsgDissociateBondResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -860,7 +860,7 @@ func (m *MsgDissociateRecords) Reset() { *m = MsgDissociateRecords{} }
|
||||
func (m *MsgDissociateRecords) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgDissociateRecords) ProtoMessage() {}
|
||||
func (*MsgDissociateRecords) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{17}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{17}
|
||||
}
|
||||
func (m *MsgDissociateRecords) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -911,7 +911,7 @@ func (m *MsgDissociateRecordsResponse) Reset() { *m = MsgDissociateRecor
|
||||
func (m *MsgDissociateRecordsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgDissociateRecordsResponse) ProtoMessage() {}
|
||||
func (*MsgDissociateRecordsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{18}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{18}
|
||||
}
|
||||
func (m *MsgDissociateRecordsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -951,7 +951,7 @@ func (m *MsgReAssociateRecords) Reset() { *m = MsgReAssociateRecords{} }
|
||||
func (m *MsgReAssociateRecords) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgReAssociateRecords) ProtoMessage() {}
|
||||
func (*MsgReAssociateRecords) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{19}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{19}
|
||||
}
|
||||
func (m *MsgReAssociateRecords) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -1009,7 +1009,7 @@ func (m *MsgReAssociateRecordsResponse) Reset() { *m = MsgReAssociateRec
|
||||
func (m *MsgReAssociateRecordsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgReAssociateRecordsResponse) ProtoMessage() {}
|
||||
func (*MsgReAssociateRecordsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b66a805dda801ce9, []int{20}
|
||||
return fileDescriptor_4db93ede4fa65546, []int{20}
|
||||
}
|
||||
func (m *MsgReAssociateRecordsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -1039,90 +1039,90 @@ func (m *MsgReAssociateRecordsResponse) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_MsgReAssociateRecordsResponse proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgSetRecord)(nil), "vulcanize.nameservice.v1beta1.MsgSetRecord")
|
||||
proto.RegisterType((*MsgSetRecordResponse)(nil), "vulcanize.nameservice.v1beta1.MsgSetRecordResponse")
|
||||
proto.RegisterType((*Payload)(nil), "vulcanize.nameservice.v1beta1.Payload")
|
||||
proto.RegisterType((*MsgSetName)(nil), "vulcanize.nameservice.v1beta1.MsgSetName")
|
||||
proto.RegisterType((*MsgSetNameResponse)(nil), "vulcanize.nameservice.v1beta1.MsgSetNameResponse")
|
||||
proto.RegisterType((*MsgReserveAuthority)(nil), "vulcanize.nameservice.v1beta1.MsgReserveAuthority")
|
||||
proto.RegisterType((*MsgReserveAuthorityResponse)(nil), "vulcanize.nameservice.v1beta1.MsgReserveAuthorityResponse")
|
||||
proto.RegisterType((*MsgSetAuthorityBond)(nil), "vulcanize.nameservice.v1beta1.MsgSetAuthorityBond")
|
||||
proto.RegisterType((*MsgSetAuthorityBondResponse)(nil), "vulcanize.nameservice.v1beta1.MsgSetAuthorityBondResponse")
|
||||
proto.RegisterType((*MsgDeleteNameAuthority)(nil), "vulcanize.nameservice.v1beta1.MsgDeleteNameAuthority")
|
||||
proto.RegisterType((*MsgDeleteNameAuthorityResponse)(nil), "vulcanize.nameservice.v1beta1.MsgDeleteNameAuthorityResponse")
|
||||
proto.RegisterType((*MsgRenewRecord)(nil), "vulcanize.nameservice.v1beta1.MsgRenewRecord")
|
||||
proto.RegisterType((*MsgRenewRecordResponse)(nil), "vulcanize.nameservice.v1beta1.MsgRenewRecordResponse")
|
||||
proto.RegisterType((*MsgAssociateBond)(nil), "vulcanize.nameservice.v1beta1.MsgAssociateBond")
|
||||
proto.RegisterType((*MsgAssociateBondResponse)(nil), "vulcanize.nameservice.v1beta1.MsgAssociateBondResponse")
|
||||
proto.RegisterType((*MsgDissociateBond)(nil), "vulcanize.nameservice.v1beta1.MsgDissociateBond")
|
||||
proto.RegisterType((*MsgDissociateBondResponse)(nil), "vulcanize.nameservice.v1beta1.MsgDissociateBondResponse")
|
||||
proto.RegisterType((*MsgDissociateRecords)(nil), "vulcanize.nameservice.v1beta1.MsgDissociateRecords")
|
||||
proto.RegisterType((*MsgDissociateRecordsResponse)(nil), "vulcanize.nameservice.v1beta1.MsgDissociateRecordsResponse")
|
||||
proto.RegisterType((*MsgReAssociateRecords)(nil), "vulcanize.nameservice.v1beta1.MsgReAssociateRecords")
|
||||
proto.RegisterType((*MsgReAssociateRecordsResponse)(nil), "vulcanize.nameservice.v1beta1.MsgReAssociateRecordsResponse")
|
||||
proto.RegisterType((*MsgSetRecord)(nil), "vulcanize.registry.v1beta1.MsgSetRecord")
|
||||
proto.RegisterType((*MsgSetRecordResponse)(nil), "vulcanize.registry.v1beta1.MsgSetRecordResponse")
|
||||
proto.RegisterType((*Payload)(nil), "vulcanize.registry.v1beta1.Payload")
|
||||
proto.RegisterType((*MsgSetName)(nil), "vulcanize.registry.v1beta1.MsgSetName")
|
||||
proto.RegisterType((*MsgSetNameResponse)(nil), "vulcanize.registry.v1beta1.MsgSetNameResponse")
|
||||
proto.RegisterType((*MsgReserveAuthority)(nil), "vulcanize.registry.v1beta1.MsgReserveAuthority")
|
||||
proto.RegisterType((*MsgReserveAuthorityResponse)(nil), "vulcanize.registry.v1beta1.MsgReserveAuthorityResponse")
|
||||
proto.RegisterType((*MsgSetAuthorityBond)(nil), "vulcanize.registry.v1beta1.MsgSetAuthorityBond")
|
||||
proto.RegisterType((*MsgSetAuthorityBondResponse)(nil), "vulcanize.registry.v1beta1.MsgSetAuthorityBondResponse")
|
||||
proto.RegisterType((*MsgDeleteNameAuthority)(nil), "vulcanize.registry.v1beta1.MsgDeleteNameAuthority")
|
||||
proto.RegisterType((*MsgDeleteNameAuthorityResponse)(nil), "vulcanize.registry.v1beta1.MsgDeleteNameAuthorityResponse")
|
||||
proto.RegisterType((*MsgRenewRecord)(nil), "vulcanize.registry.v1beta1.MsgRenewRecord")
|
||||
proto.RegisterType((*MsgRenewRecordResponse)(nil), "vulcanize.registry.v1beta1.MsgRenewRecordResponse")
|
||||
proto.RegisterType((*MsgAssociateBond)(nil), "vulcanize.registry.v1beta1.MsgAssociateBond")
|
||||
proto.RegisterType((*MsgAssociateBondResponse)(nil), "vulcanize.registry.v1beta1.MsgAssociateBondResponse")
|
||||
proto.RegisterType((*MsgDissociateBond)(nil), "vulcanize.registry.v1beta1.MsgDissociateBond")
|
||||
proto.RegisterType((*MsgDissociateBondResponse)(nil), "vulcanize.registry.v1beta1.MsgDissociateBondResponse")
|
||||
proto.RegisterType((*MsgDissociateRecords)(nil), "vulcanize.registry.v1beta1.MsgDissociateRecords")
|
||||
proto.RegisterType((*MsgDissociateRecordsResponse)(nil), "vulcanize.registry.v1beta1.MsgDissociateRecordsResponse")
|
||||
proto.RegisterType((*MsgReAssociateRecords)(nil), "vulcanize.registry.v1beta1.MsgReAssociateRecords")
|
||||
proto.RegisterType((*MsgReAssociateRecordsResponse)(nil), "vulcanize.registry.v1beta1.MsgReAssociateRecordsResponse")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("vulcanize/nameservice/v1beta1/tx.proto", fileDescriptor_b66a805dda801ce9)
|
||||
proto.RegisterFile("vulcanize/registry/v1beta1/tx.proto", fileDescriptor_4db93ede4fa65546)
|
||||
}
|
||||
|
||||
var fileDescriptor_b66a805dda801ce9 = []byte{
|
||||
// 877 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcb, 0x6e, 0xdb, 0x46,
|
||||
0x14, 0x15, 0x25, 0x57, 0xaa, 0xae, 0x5a, 0xc3, 0x66, 0x55, 0x43, 0xa5, 0x6b, 0x52, 0xa5, 0x61,
|
||||
0x43, 0x85, 0x61, 0xb1, 0x96, 0x5b, 0xd4, 0x70, 0x6b, 0xa0, 0x16, 0x9a, 0x20, 0x5e, 0x28, 0x08,
|
||||
0xe8, 0x45, 0x80, 0x6c, 0x0c, 0x8a, 0x1c, 0xd0, 0x34, 0x24, 0x8e, 0x40, 0x52, 0x96, 0x15, 0x03,
|
||||
0xc9, 0x26, 0x40, 0x80, 0xac, 0xf2, 0x15, 0x41, 0x7e, 0x22, 0xc8, 0xd6, 0x4b, 0x2f, 0xb3, 0x12,
|
||||
0x02, 0xfb, 0x0f, 0xb4, 0xcd, 0x26, 0xe0, 0xf0, 0x35, 0xd4, 0xc3, 0x7a, 0xc4, 0xbb, 0xe1, 0xcc,
|
||||
0x3d, 0xf7, 0x9c, 0x7b, 0x66, 0x2e, 0x87, 0x84, 0xcd, 0xf3, 0x76, 0x43, 0x55, 0x4c, 0xe3, 0x39,
|
||||
0x92, 0x4c, 0xa5, 0x89, 0x6c, 0x64, 0x9d, 0x1b, 0x2a, 0x92, 0xce, 0x77, 0xea, 0xc8, 0x51, 0x76,
|
||||
0x24, 0xe7, 0xa2, 0xdc, 0xb2, 0xb0, 0x83, 0xd9, 0xb5, 0x30, 0xae, 0x4c, 0xc5, 0x95, 0xfd, 0x38,
|
||||
0x2e, 0xaf, 0x63, 0x1d, 0x93, 0x48, 0xc9, 0x1d, 0x79, 0x20, 0x4e, 0xba, 0x3b, 0x39, 0x9d, 0x88,
|
||||
0x00, 0xc4, 0xf7, 0x0c, 0xfc, 0x50, 0xb3, 0xf5, 0x63, 0xe4, 0xc8, 0x48, 0xc5, 0x96, 0xc6, 0xee,
|
||||
0x41, 0xa6, 0x8e, 0x4d, 0xed, 0xc4, 0xd0, 0x0a, 0x4c, 0x91, 0x29, 0x65, 0xab, 0x42, 0xbf, 0x27,
|
||||
0xac, 0x9e, 0xd9, 0xd8, 0xdc, 0x17, 0xdd, 0x85, 0x23, 0x4d, 0x2c, 0x76, 0x95, 0x66, 0x23, 0x7c,
|
||||
0x92, 0xd3, 0xde, 0x80, 0x5d, 0x81, 0xb4, 0x6d, 0xe8, 0x26, 0xb2, 0x0a, 0x49, 0x17, 0x28, 0xfb,
|
||||
0x4f, 0xec, 0x43, 0xc8, 0xb4, 0x94, 0x6e, 0x03, 0x2b, 0x5a, 0x21, 0x55, 0x64, 0x4a, 0xb9, 0xca,
|
||||
0x66, 0xf9, 0xce, 0xd2, 0xca, 0x4f, 0xbc, 0xe8, 0xea, 0xc2, 0x55, 0x4f, 0x48, 0xc8, 0x01, 0x58,
|
||||
0xdc, 0x84, 0x3c, 0xad, 0x54, 0x46, 0x76, 0x0b, 0x9b, 0x36, 0x62, 0x17, 0x21, 0x19, 0x88, 0x95,
|
||||
0x93, 0x86, 0x26, 0x7e, 0x64, 0x20, 0xe3, 0xa7, 0x60, 0x0f, 0x20, 0x6d, 0x91, 0x68, 0xb2, 0x9e,
|
||||
0xab, 0x6c, 0x4c, 0xa0, 0xf6, 0x53, 0xfb, 0x20, 0xb6, 0x0d, 0xe0, 0x16, 0xa1, 0x38, 0x6d, 0x0b,
|
||||
0xd9, 0x85, 0x64, 0x31, 0x55, 0xca, 0x55, 0x4a, 0x13, 0x52, 0x1c, 0x07, 0x80, 0xea, 0x96, 0xab,
|
||||
0xbf, 0xdf, 0x13, 0xd6, 0x3d, 0xf7, 0xa2, 0x4c, 0x81, 0x83, 0xd4, 0x8c, 0x4c, 0x11, 0x89, 0x8f,
|
||||
0x00, 0xbc, 0x4a, 0x1f, 0x2b, 0x4d, 0xc4, 0x2e, 0x41, 0x4a, 0xb5, 0x4c, 0xbf, 0x40, 0x77, 0x48,
|
||||
0x66, 0x0c, 0xcd, 0xb7, 0xd9, 0x1d, 0x52, 0xde, 0xa7, 0x68, 0xef, 0xc5, 0x3c, 0xb0, 0x51, 0xa6,
|
||||
0xc0, 0x31, 0xf1, 0x29, 0xfc, 0x54, 0xb3, 0x75, 0x99, 0x48, 0x47, 0x87, 0x6d, 0xe7, 0x14, 0x5b,
|
||||
0x86, 0xd3, 0x65, 0x59, 0x58, 0x70, 0x0b, 0xf2, 0x99, 0xc8, 0x78, 0xec, 0xa6, 0xe6, 0xe1, 0x3b,
|
||||
0xdc, 0x89, 0xf8, 0xbc, 0x07, 0x71, 0x0d, 0x56, 0x47, 0x24, 0x0e, 0x79, 0x2f, 0x09, 0xef, 0x31,
|
||||
0x72, 0xc2, 0xa5, 0x2a, 0x36, 0xb5, 0x91, 0xbc, 0xd4, 0x31, 0x4c, 0xce, 0x7b, 0x0c, 0xe3, 0x56,
|
||||
0x78, 0xda, 0x06, 0xc9, 0x43, 0x6d, 0x55, 0x58, 0xa9, 0xd9, 0xfa, 0xff, 0xa8, 0x81, 0x1c, 0xe4,
|
||||
0x9a, 0x15, 0xd9, 0x32, 0xec, 0xff, 0x18, 0x53, 0xc4, 0x22, 0xf0, 0xa3, 0x73, 0x84, 0x2c, 0x67,
|
||||
0xb0, 0x48, 0x0c, 0x32, 0x51, 0xc7, 0xef, 0xb7, 0xff, 0x20, 0xeb, 0x1d, 0xb6, 0xa8, 0xe3, 0xd6,
|
||||
0xfb, 0x3d, 0x41, 0xf0, 0x4a, 0xf5, 0x96, 0xa2, 0x62, 0xc3, 0x67, 0xf9, 0xfb, 0x60, 0x38, 0x56,
|
||||
0x4d, 0x81, 0x54, 0x44, 0x71, 0x85, 0x2a, 0xde, 0x31, 0xb0, 0x54, 0xb3, 0xf5, 0x43, 0xdb, 0xc6,
|
||||
0xaa, 0xa1, 0x38, 0x88, 0xec, 0xc2, 0xb7, 0x0b, 0xb9, 0xff, 0x3d, 0xe3, 0xa0, 0x30, 0xa8, 0x33,
|
||||
0x2c, 0xa2, 0x09, 0xcb, 0xae, 0xd9, 0xc6, 0x3d, 0x17, 0x31, 0xce, 0xcd, 0x55, 0xf8, 0x65, 0x88,
|
||||
0x2e, 0xd4, 0x72, 0x4a, 0x5e, 0x4d, 0xd1, 0xa2, 0xe7, 0xb7, 0x7d, 0xff, 0x2f, 0x53, 0x91, 0x87,
|
||||
0x5f, 0x47, 0x31, 0x85, 0x4a, 0x3e, 0x30, 0xf0, 0x33, 0xd9, 0xf5, 0xc3, 0x41, 0x2d, 0x0f, 0x20,
|
||||
0x67, 0xa2, 0xce, 0x49, 0x5c, 0xcf, 0x46, 0xbf, 0x27, 0xfc, 0xe6, 0xe9, 0x31, 0x51, 0xa7, 0x1a,
|
||||
0x93, 0x14, 0x4d, 0xc8, 0xd9, 0x70, 0xec, 0xa6, 0xc1, 0x0d, 0xed, 0x24, 0xbe, 0xd1, 0x54, 0x1a,
|
||||
0xdc, 0xd0, 0xe2, 0x69, 0xa2, 0x09, 0x39, 0x1b, 0x8e, 0xc7, 0xee, 0xb8, 0x00, 0x6b, 0x23, 0xe5,
|
||||
0x07, 0x05, 0x56, 0xbe, 0x64, 0x21, 0x55, 0xb3, 0x75, 0x16, 0x43, 0x36, 0xba, 0xb4, 0xb6, 0x26,
|
||||
0xbc, 0x93, 0xe9, 0x7b, 0x83, 0xdb, 0x9d, 0x21, 0x38, 0xf4, 0x35, 0xc1, 0xb6, 0x21, 0x47, 0xf7,
|
||||
0xed, 0xf6, 0xe4, 0x2c, 0x54, 0x38, 0xf7, 0xd7, 0x4c, 0xe1, 0x14, 0xed, 0x25, 0xfc, 0x18, 0xef,
|
||||
0x53, 0x69, 0x72, 0xa6, 0x18, 0x80, 0x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1, 0xbf, 0x01, 0xa7, 0xdb, 0x42, 0x76, 0x3d, 0x4d, 0x7e, 0x00, 0x76, 0xbf,
|
||||
0x06, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x60, 0x57, 0xb3, 0x90, 0x0c, 0x00, 0x00,
|
||||
var fileDescriptor_4db93ede4fa65546 = []byte{
|
||||
// 869 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6e, 0xdb, 0x46,
|
||||
0x10, 0x16, 0x25, 0x57, 0xaa, 0x46, 0xad, 0x61, 0xb3, 0xaa, 0xa1, 0xd2, 0x35, 0xa9, 0x52, 0xb0,
|
||||
0xa1, 0xb6, 0xb6, 0x68, 0xab, 0x2d, 0xea, 0xfa, 0x54, 0xab, 0x4d, 0x90, 0x1c, 0x14, 0x04, 0xf4,
|
||||
0x21, 0x40, 0x2e, 0x06, 0x45, 0x2e, 0x68, 0x1a, 0x12, 0x57, 0xe0, 0x52, 0x96, 0x95, 0x00, 0x01,
|
||||
0x02, 0xe4, 0x01, 0xf2, 0x12, 0xc9, 0x3b, 0xe4, 0xe0, 0xbb, 0x8f, 0x3e, 0xe6, 0x24, 0x04, 0xf6,
|
||||
0x1b, 0xe8, 0x09, 0x02, 0xfe, 0x2f, 0xf5, 0x47, 0x29, 0xf1, 0x6d, 0xc8, 0xfd, 0x66, 0xbe, 0x6f,
|
||||
0xbe, 0xdd, 0xe1, 0x12, 0x2a, 0x17, 0xbd, 0xb6, 0xaa, 0x98, 0xc6, 0x0b, 0x24, 0x59, 0x48, 0x37,
|
||||
0x88, 0x6d, 0x0d, 0xa4, 0x8b, 0x83, 0x16, 0xb2, 0x95, 0x03, 0xc9, 0xbe, 0xac, 0x75, 0x2d, 0x6c,
|
||||
0x63, 0x96, 0x0b, 0x41, 0xb5, 0x00, 0x54, 0xf3, 0x41, 0x5c, 0x51, 0xc7, 0x3a, 0x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 0xc5, 0xa6, 0xa1, 0x6a, 0xd2, 0x65, 0xf4, 0x03, 0x6f, 0x0f, 0xba,
|
||||
0x88, 0xb4, 0xb2, 0xee, 0x6f, 0xfb, 0x1f, 0x9f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x38, 0xa4, 0xc4,
|
||||
0xcc, 0x3a, 0x0c, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -1169,7 +1169,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient {
|
||||
|
||||
func (c *msgClient) SetRecord(ctx context.Context, in *MsgSetRecord, opts ...grpc.CallOption) (*MsgSetRecordResponse, error) {
|
||||
out := new(MsgSetRecordResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/SetRecord", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/SetRecord", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1178,7 +1178,7 @@ func (c *msgClient) SetRecord(ctx context.Context, in *MsgSetRecord, opts ...grp
|
||||
|
||||
func (c *msgClient) RenewRecord(ctx context.Context, in *MsgRenewRecord, opts ...grpc.CallOption) (*MsgRenewRecordResponse, error) {
|
||||
out := new(MsgRenewRecordResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/RenewRecord", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/RenewRecord", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1187,7 +1187,7 @@ func (c *msgClient) RenewRecord(ctx context.Context, in *MsgRenewRecord, opts ..
|
||||
|
||||
func (c *msgClient) AssociateBond(ctx context.Context, in *MsgAssociateBond, opts ...grpc.CallOption) (*MsgAssociateBondResponse, error) {
|
||||
out := new(MsgAssociateBondResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/AssociateBond", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/AssociateBond", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1196,7 +1196,7 @@ func (c *msgClient) AssociateBond(ctx context.Context, in *MsgAssociateBond, opt
|
||||
|
||||
func (c *msgClient) DissociateBond(ctx context.Context, in *MsgDissociateBond, opts ...grpc.CallOption) (*MsgDissociateBondResponse, error) {
|
||||
out := new(MsgDissociateBondResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/DissociateBond", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/DissociateBond", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1205,7 +1205,7 @@ func (c *msgClient) DissociateBond(ctx context.Context, in *MsgDissociateBond, o
|
||||
|
||||
func (c *msgClient) DissociateRecords(ctx context.Context, in *MsgDissociateRecords, opts ...grpc.CallOption) (*MsgDissociateRecordsResponse, error) {
|
||||
out := new(MsgDissociateRecordsResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/DissociateRecords", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/DissociateRecords", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1214,7 +1214,7 @@ func (c *msgClient) DissociateRecords(ctx context.Context, in *MsgDissociateReco
|
||||
|
||||
func (c *msgClient) ReAssociateRecords(ctx context.Context, in *MsgReAssociateRecords, opts ...grpc.CallOption) (*MsgReAssociateRecordsResponse, error) {
|
||||
out := new(MsgReAssociateRecordsResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/ReAssociateRecords", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/ReAssociateRecords", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1223,7 +1223,7 @@ func (c *msgClient) ReAssociateRecords(ctx context.Context, in *MsgReAssociateRe
|
||||
|
||||
func (c *msgClient) SetName(ctx context.Context, in *MsgSetName, opts ...grpc.CallOption) (*MsgSetNameResponse, error) {
|
||||
out := new(MsgSetNameResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/SetName", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/SetName", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1232,7 +1232,7 @@ func (c *msgClient) SetName(ctx context.Context, in *MsgSetName, opts ...grpc.Ca
|
||||
|
||||
func (c *msgClient) ReserveName(ctx context.Context, in *MsgReserveAuthority, opts ...grpc.CallOption) (*MsgReserveAuthorityResponse, error) {
|
||||
out := new(MsgReserveAuthorityResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/ReserveName", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/ReserveName", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1241,7 +1241,7 @@ func (c *msgClient) ReserveName(ctx context.Context, in *MsgReserveAuthority, op
|
||||
|
||||
func (c *msgClient) DeleteName(ctx context.Context, in *MsgDeleteNameAuthority, opts ...grpc.CallOption) (*MsgDeleteNameAuthorityResponse, error) {
|
||||
out := new(MsgDeleteNameAuthorityResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/DeleteName", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/DeleteName", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1250,7 +1250,7 @@ func (c *msgClient) DeleteName(ctx context.Context, in *MsgDeleteNameAuthority,
|
||||
|
||||
func (c *msgClient) SetAuthorityBond(ctx context.Context, in *MsgSetAuthorityBond, opts ...grpc.CallOption) (*MsgSetAuthorityBondResponse, error) {
|
||||
out := new(MsgSetAuthorityBondResponse)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Msg/SetAuthorityBond", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/vulcanize.registry.v1beta1.Msg/SetAuthorityBond", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1330,7 +1330,7 @@ func _Msg_SetRecord_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/SetRecord",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/SetRecord",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).SetRecord(ctx, req.(*MsgSetRecord))
|
||||
@@ -1348,7 +1348,7 @@ func _Msg_RenewRecord_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/RenewRecord",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/RenewRecord",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).RenewRecord(ctx, req.(*MsgRenewRecord))
|
||||
@@ -1366,7 +1366,7 @@ func _Msg_AssociateBond_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/AssociateBond",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/AssociateBond",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).AssociateBond(ctx, req.(*MsgAssociateBond))
|
||||
@@ -1384,7 +1384,7 @@ func _Msg_DissociateBond_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/DissociateBond",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/DissociateBond",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).DissociateBond(ctx, req.(*MsgDissociateBond))
|
||||
@@ -1402,7 +1402,7 @@ func _Msg_DissociateRecords_Handler(srv interface{}, ctx context.Context, dec fu
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/DissociateRecords",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/DissociateRecords",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).DissociateRecords(ctx, req.(*MsgDissociateRecords))
|
||||
@@ -1420,7 +1420,7 @@ func _Msg_ReAssociateRecords_Handler(srv interface{}, ctx context.Context, dec f
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/ReAssociateRecords",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/ReAssociateRecords",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).ReAssociateRecords(ctx, req.(*MsgReAssociateRecords))
|
||||
@@ -1438,7 +1438,7 @@ func _Msg_SetName_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/SetName",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/SetName",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).SetName(ctx, req.(*MsgSetName))
|
||||
@@ -1456,7 +1456,7 @@ func _Msg_ReserveName_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/ReserveName",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/ReserveName",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).ReserveName(ctx, req.(*MsgReserveAuthority))
|
||||
@@ -1474,7 +1474,7 @@ func _Msg_DeleteName_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/DeleteName",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/DeleteName",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).DeleteName(ctx, req.(*MsgDeleteNameAuthority))
|
||||
@@ -1492,7 +1492,7 @@ func _Msg_SetAuthorityBond_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/vulcanize.nameservice.v1beta1.Msg/SetAuthorityBond",
|
||||
FullMethod: "/vulcanize.registry.v1beta1.Msg/SetAuthorityBond",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).SetAuthorityBond(ctx, req.(*MsgSetAuthorityBond))
|
||||
@@ -1501,7 +1501,7 @@ func _Msg_SetAuthorityBond_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
}
|
||||
|
||||
var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "vulcanize.nameservice.v1beta1.Msg",
|
||||
ServiceName: "vulcanize.registry.v1beta1.Msg",
|
||||
HandlerType: (*MsgServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@@ -1546,7 +1546,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "vulcanize/nameservice/v1beta1/tx.proto",
|
||||
Metadata: "vulcanize/registry/v1beta1/tx.proto",
|
||||
}
|
||||
|
||||
func (m *MsgSetRecord) Marshal() (dAtA []byte, err error) {
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/cerc-io/laconicd/x/nameservice/helpers"
|
||||
"github.com/cerc-io/laconicd/x/registry/helpers"
|
||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
canonicalJson "github.com/gibson042/canonicaljson-go"
|
||||
"github.com/gogo/protobuf/proto"
|
||||
Reference in New Issue
Block a user