This commit is contained in:
0xmuralik 2022-10-17 16:33:31 +05:30
parent 74ed0f7e0f
commit 482d597318
40 changed files with 636 additions and 628 deletions

View File

@ -135,8 +135,8 @@
- [GenesisState](#vulcanize.bond.v1beta1.GenesisState)
- [vulcanize/bond/v1beta1/query.proto](#vulcanize/bond/v1beta1/query.proto)
- [QueryGetBondByIdRequest](#vulcanize.bond.v1beta1.QueryGetBondByIdRequest)
- [QueryGetBondByIdResponse](#vulcanize.bond.v1beta1.QueryGetBondByIdResponse)
- [QueryGetBondByIDRequest](#vulcanize.bond.v1beta1.QueryGetBondByIDRequest)
- [QueryGetBondByIDResponse](#vulcanize.bond.v1beta1.QueryGetBondByIDResponse)
- [QueryGetBondModuleBalanceRequest](#vulcanize.bond.v1beta1.QueryGetBondModuleBalanceRequest)
- [QueryGetBondModuleBalanceResponse](#vulcanize.bond.v1beta1.QueryGetBondModuleBalanceResponse)
- [QueryGetBondsByOwnerRequest](#vulcanize.bond.v1beta1.QueryGetBondsByOwnerRequest)
@ -195,10 +195,10 @@
- [QueryLookupCrnResponse](#vulcanize.nameservice.v1beta1.QueryLookupCrnResponse)
- [QueryParamsRequest](#vulcanize.nameservice.v1beta1.QueryParamsRequest)
- [QueryParamsResponse](#vulcanize.nameservice.v1beta1.QueryParamsResponse)
- [QueryRecordByBondIdRequest](#vulcanize.nameservice.v1beta1.QueryRecordByBondIdRequest)
- [QueryRecordByBondIdResponse](#vulcanize.nameservice.v1beta1.QueryRecordByBondIdResponse)
- [QueryRecordByIdRequest](#vulcanize.nameservice.v1beta1.QueryRecordByIdRequest)
- [QueryRecordByIdResponse](#vulcanize.nameservice.v1beta1.QueryRecordByIdResponse)
- [QueryRecordByBondIDRequest](#vulcanize.nameservice.v1beta1.QueryRecordByBondIDRequest)
- [QueryRecordByBondIDResponse](#vulcanize.nameservice.v1beta1.QueryRecordByBondIDResponse)
- [QueryRecordByIDRequest](#vulcanize.nameservice.v1beta1.QueryRecordByIDRequest)
- [QueryRecordByIDResponse](#vulcanize.nameservice.v1beta1.QueryRecordByIDResponse)
- [QueryResolveCrn](#vulcanize.nameservice.v1beta1.QueryResolveCrn)
- [QueryResolveCrnResponse](#vulcanize.nameservice.v1beta1.QueryResolveCrnResponse)
- [QueryWhoisRequest](#vulcanize.nameservice.v1beta1.QueryWhoisRequest)
@ -2004,10 +2004,10 @@ GenesisState defines the bond module's genesis state.
<a name="vulcanize.bond.v1beta1.QueryGetBondByIdRequest"></a>
<a name="vulcanize.bond.v1beta1.QueryGetBondByIDRequest"></a>
### QueryGetBondByIdRequest
QueryGetBondById
### QueryGetBondByIDRequest
QueryGetBondByID
| Field | Type | Label | Description |
@ -2019,10 +2019,10 @@ QueryGetBondById
<a name="vulcanize.bond.v1beta1.QueryGetBondByIdResponse"></a>
<a name="vulcanize.bond.v1beta1.QueryGetBondByIDResponse"></a>
### QueryGetBondByIdResponse
QueryGetBondByIdResponse returns QueryGetBondById query response
### QueryGetBondByIDResponse
QueryGetBondByIDResponse returns QueryGetBondByID query response
| Field | Type | Label | Description |
@ -2162,7 +2162,7 @@ Query defines the gRPC querier service for bond module
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `Params` | [QueryParamsRequest](#vulcanize.bond.v1beta1.QueryParamsRequest) | [QueryParamsResponse](#vulcanize.bond.v1beta1.QueryParamsResponse) | Params queries bonds module params. | GET|/vulcanize/bond/v1beta1/params|
| `Bonds` | [QueryGetBondsRequest](#vulcanize.bond.v1beta1.QueryGetBondsRequest) | [QueryGetBondsResponse](#vulcanize.bond.v1beta1.QueryGetBondsResponse) | Bonds queries bonds list. | GET|/vulcanize/bond/v1beta1/bonds|
| `GetBondById` | [QueryGetBondByIdRequest](#vulcanize.bond.v1beta1.QueryGetBondByIdRequest) | [QueryGetBondByIdResponse](#vulcanize.bond.v1beta1.QueryGetBondByIdResponse) | GetBondById | GET|/vulcanize/bond/v1beta1/bonds/{id}|
| `GetBondByID` | [QueryGetBondByIDRequest](#vulcanize.bond.v1beta1.QueryGetBondByIDRequest) | [QueryGetBondByIDResponse](#vulcanize.bond.v1beta1.QueryGetBondByIDResponse) | GetBondById | GET|/vulcanize/bond/v1beta1/bonds/{id}|
| `GetBondsByOwner` | [QueryGetBondsByOwnerRequest](#vulcanize.bond.v1beta1.QueryGetBondsByOwnerRequest) | [QueryGetBondsByOwnerResponse](#vulcanize.bond.v1beta1.QueryGetBondsByOwnerResponse) | Get Bonds List by Owner | GET|/vulcanize/bond/v1beta1/by-owner/{owner}|
| `GetBondsModuleBalance` | [QueryGetBondModuleBalanceRequest](#vulcanize.bond.v1beta1.QueryGetBondModuleBalanceRequest) | [QueryGetBondModuleBalanceResponse](#vulcanize.bond.v1beta1.QueryGetBondModuleBalanceResponse) | Get Bonds module balance | GET|/vulcanize/bond/v1beta1/balance|
@ -2841,9 +2841,9 @@ QueryParamsResponse is response type for nameservice params
<a name="vulcanize.nameservice.v1beta1.QueryRecordByBondIdRequest"></a>
<a name="vulcanize.nameservice.v1beta1.QueryRecordByBondIDRequest"></a>
### QueryRecordByBondIdRequest
### QueryRecordByBondIDRequest
QueryRecordByBondIdRequest is request type for get the records by bond-id
@ -2857,9 +2857,9 @@ QueryRecordByBondIdRequest is request type for get the records by bond-id
<a name="vulcanize.nameservice.v1beta1.QueryRecordByBondIdResponse"></a>
<a name="vulcanize.nameservice.v1beta1.QueryRecordByBondIDResponse"></a>
### QueryRecordByBondIdResponse
### QueryRecordByBondIDResponse
QueryRecordByBondIdResponse is response type for records list by bond-id
@ -2873,10 +2873,10 @@ QueryRecordByBondIdResponse is response type for records list by bond-id
<a name="vulcanize.nameservice.v1beta1.QueryRecordByIdRequest"></a>
<a name="vulcanize.nameservice.v1beta1.QueryRecordByIDRequest"></a>
### QueryRecordByIdRequest
QueryRecordByIdRequest is request type for nameservice records by id
### QueryRecordByIDRequest
QueryRecordByIDRequest is request type for nameservice records by id
| Field | Type | Label | Description |
@ -2888,10 +2888,10 @@ QueryRecordByIdRequest is request type for nameservice records by id
<a name="vulcanize.nameservice.v1beta1.QueryRecordByIdResponse"></a>
<a name="vulcanize.nameservice.v1beta1.QueryRecordByIDResponse"></a>
### QueryRecordByIdResponse
QueryRecordByIdResponse is response type for nameservice records by id
### QueryRecordByIDResponse
QueryRecordByIDResponse is response type for nameservice records by id
| Field | Type | Label | Description |
@ -2978,8 +2978,8 @@ Query defines the gRPC querier service for nameservice module
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `Params` | [QueryParamsRequest](#vulcanize.nameservice.v1beta1.QueryParamsRequest) | [QueryParamsResponse](#vulcanize.nameservice.v1beta1.QueryParamsResponse) | Params queries the nameservice module params. | GET|/vulcanize/nameservice/v1beta1/params|
| `ListRecords` | [QueryListRecordsRequest](#vulcanize.nameservice.v1beta1.QueryListRecordsRequest) | [QueryListRecordsResponse](#vulcanize.nameservice.v1beta1.QueryListRecordsResponse) | List records | GET|/vulcanize/nameservice/v1beta1/records|
| `GetRecord` | [QueryRecordByIdRequest](#vulcanize.nameservice.v1beta1.QueryRecordByIdRequest) | [QueryRecordByIdResponse](#vulcanize.nameservice.v1beta1.QueryRecordByIdResponse) | Get record by id | GET|/vulcanize/nameservice/v1beta1/records/{id}|
| `GetRecordByBondId` | [QueryRecordByBondIdRequest](#vulcanize.nameservice.v1beta1.QueryRecordByBondIdRequest) | [QueryRecordByBondIdResponse](#vulcanize.nameservice.v1beta1.QueryRecordByBondIdResponse) | Get records by bond id | GET|/vulcanize/nameservice/v1beta1/records-by-bond-id/{id}|
| `GetRecord` | [QueryRecordByIDRequest](#vulcanize.nameservice.v1beta1.QueryRecordByIDRequest) | [QueryRecordByIDResponse](#vulcanize.nameservice.v1beta1.QueryRecordByIDResponse) | Get record by id | GET|/vulcanize/nameservice/v1beta1/records/{id}|
| `GetRecordByBondID` | [QueryRecordByBondIDRequest](#vulcanize.nameservice.v1beta1.QueryRecordByBondIDRequest) | [QueryRecordByBondIDResponse](#vulcanize.nameservice.v1beta1.QueryRecordByBondIDResponse) | Get records by bond id | GET|/vulcanize/nameservice/v1beta1/records-by-bond-id/{id}|
| `GetNameServiceModuleBalance` | [GetNameServiceModuleBalanceRequest](#vulcanize.nameservice.v1beta1.GetNameServiceModuleBalanceRequest) | [GetNameServiceModuleBalanceResponse](#vulcanize.nameservice.v1beta1.GetNameServiceModuleBalanceResponse) | Get nameservice module balance | GET|/vulcanize/nameservice/v1beta1/balance|
| `ListNameRecords` | [QueryListNameRecordsRequest](#vulcanize.nameservice.v1beta1.QueryListNameRecordsRequest) | [QueryListNameRecordsResponse](#vulcanize.nameservice.v1beta1.QueryListNameRecordsResponse) | List name records | GET|/vulcanize/nameservice/v1beta1/names|
| `Whois` | [QueryWhoisRequest](#vulcanize.nameservice.v1beta1.QueryWhoisRequest) | [QueryWhoisResponse](#vulcanize.nameservice.v1beta1.QueryWhoisResponse) | Whois method retrieve the name authority info | GET|/vulcanize/nameservice/v1beta1/whois/{name}|

4
go.mod
View File

@ -44,8 +44,8 @@ require (
github.com/vektah/gqlparser/v2 v2.5.1
golang.org/x/net v0.0.0-20220909164309-bea034e7d591
golang.org/x/text v0.3.7
google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e
google.golang.org/grpc v1.49.0
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a
google.golang.org/grpc v1.50.0
google.golang.org/protobuf v1.28.1
gopkg.in/yaml.v3 v3.0.1
sigs.k8s.io/yaml v1.3.0

8
go.sum
View File

@ -1700,8 +1700,8 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW
google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA=
google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e h1:halCgTFuLWDRD61piiNSxPsARANGD3Xl16hPrLgLiIg=
google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U=
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a h1:GH6UPn3ixhWcKDhpnEC55S75cerLPdpp3hrhfKYjZgw=
google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM=
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
@ -1740,8 +1740,8 @@ google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11
google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
google.golang.org/grpc v1.49.0 h1:WTLtQzmQori5FUH25Pq4WT22oCsv8USpQ+F6rqtsmxw=
google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
google.golang.org/grpc v1.50.0 h1:fPVVDxY9w++VjTZsYvXWqEf9Rqar/e+9zYfxKK+W+YU=
google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=

View File

@ -148,7 +148,7 @@ func (q queryResolver) GetRecordsByIds(ctx context.Context, ids []string) ([]*Re
gqlResponse := make([]*Record, len(ids))
for i, id := range ids {
res, err := nsQueryClient.GetRecord(context.Background(), &nstypes.QueryRecordByIdRequest{Id: id})
res, err := nsQueryClient.GetRecord(context.Background(), &nstypes.QueryRecordByIDRequest{Id: id})
if err != nil {
// Return nil for record not found.
gqlResponse[i] = nil
@ -229,7 +229,9 @@ func (q queryResolver) GetAccount(ctx context.Context, address string) (*Account
// Get the account balance
bankQueryClient := banktypes.NewQueryClient(q.ctx)
balance, err := bankQueryClient.AllBalances(ctx, &banktypes.QueryAllBalancesRequest{Address: address})
if err != nil {
return nil, err
}
accNum := strconv.FormatUint(account.GetAccountNumber(), 10)
seq := strconv.FormatUint(account.GetSequence(), 10)
@ -257,7 +259,7 @@ func (q queryResolver) GetBondsByIds(ctx context.Context, ids []string) ([]*Bond
func (q *queryResolver) GetBond(ctx context.Context, id string) (*Bond, error) {
bondQueryClient := bondtypes.NewQueryClient(q.ctx)
bondResp, err := bondQueryClient.GetBondById(context.Background(), &bondtypes.QueryGetBondByIdRequest{Id: id})
bondResp, err := bondQueryClient.GetBondByID(context.Background(), &bondtypes.QueryGetBondByIDRequest{Id: id})
if err != nil {
return nil, err
}
@ -311,7 +313,7 @@ func (q queryResolver) GetBondsByOwner(ctx context.Context, address string) (*Ow
ownerBonds := make([]*Bond, len(bondResp.GetBonds()))
for i, bond := range bondResp.GetBonds() {
bondObj, err := getGQLBond(&bond)
bondObj, err := getGQLBond(&bond) //nolint: all
if err != nil {
return nil, err
}

View File

@ -38,7 +38,7 @@ func Server(ctx client.Context) {
http.Handle("/graphql", srv)
log.Info("Connect to GraphQL playground", "url", fmt.Sprintf("http://localhost:%s", port))
err := http.ListenAndServe(":"+port, nil)
err := http.ListenAndServe(":"+port, nil) //nolint: all
if err != nil {
panic(err)
}

View File

@ -22,7 +22,7 @@ service Query {
}
// GetBondById
rpc GetBondById(QueryGetBondByIdRequest) returns (QueryGetBondByIdResponse) {
rpc GetBondByID(QueryGetBondByIDRequest) returns (QueryGetBondByIDResponse) {
option (google.api.http).get = "/vulcanize/bond/v1beta1/bonds/{id}";
}
@ -58,13 +58,13 @@ message QueryGetBondsResponse {
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}
// QueryGetBondById
message QueryGetBondByIdRequest {
// QueryGetBondByID
message QueryGetBondByIDRequest {
string id = 1 [(gogoproto.moretags) = "json:\"id\" yaml:\"id\""];
}
// QueryGetBondByIdResponse returns QueryGetBondById query response
message QueryGetBondByIdResponse {
// QueryGetBondByIDResponse returns QueryGetBondByID query response
message QueryGetBondByIDResponse {
Bond bond = 1 [(gogoproto.moretags) = "json:\"bond\" yaml:\"bond\""];
}

View File

@ -20,11 +20,11 @@ service Query {
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/records";
}
// Get record by id
rpc GetRecord(QueryRecordByIdRequest) returns (QueryRecordByIdResponse) {
rpc GetRecord(QueryRecordByIDRequest) returns (QueryRecordByIDResponse) {
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/records/{id}";
}
// Get records by bond id
rpc GetRecordByBondId(QueryRecordByBondIdRequest) returns (QueryRecordByBondIdResponse) {
rpc GetRecordByBondID(QueryRecordByBondIDRequest) returns (QueryRecordByBondIDResponse) {
option (google.api.http).get = "/vulcanize/nameservice/v1beta1/records-by-bond-id/{id}";
}
// Get nameservice module balance
@ -98,25 +98,25 @@ message QueryListRecordsResponse {
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}
// QueryRecordByIdRequest is request type for nameservice records by id
message QueryRecordByIdRequest {
// QueryRecordByIDRequest is request type for nameservice records by id
message QueryRecordByIDRequest {
string id = 1;
}
// QueryRecordByIdResponse is response type for nameservice records by id
message QueryRecordByIdResponse {
// QueryRecordByIDResponse is response type for nameservice records by id
message QueryRecordByIDResponse {
Record record = 1 [(gogoproto.nullable) = false];
}
// QueryRecordByBondIdRequest is request type for get the records by bond-id
message QueryRecordByBondIdRequest {
message QueryRecordByBondIDRequest {
string id = 1;
// pagination defines an optional pagination for the request.
cosmos.base.query.v1beta1.PageRequest pagination = 2;
}
// QueryRecordByBondIdResponse is response type for records list by bond-id
message QueryRecordByBondIdResponse {
message QueryRecordByBondIDResponse {
repeated Record records = 1 [(gogoproto.nullable) = false];
// pagination defines the pagination in the response.
cosmos.base.query.v1beta1.PageResponse pagination = 2;

View File

@ -16,7 +16,7 @@ const (
func (suite *IntegrationTestSuite) TestGetAllAuctionsGrpc() {
val := suite.network.Validators[0]
sr := suite.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/auction/v1beta1/auctions", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/auction/v1beta1/auctions", val.APIAddress)
testCases := []struct {
msg string
@ -26,13 +26,13 @@ func (suite *IntegrationTestSuite) TestGetAllAuctionsGrpc() {
}{
{
"invalid request to get all auctions",
reqUrl + randomAuctionID,
reqURL + randomAuctionID,
"",
true,
},
{
"valid request to get all auctions",
reqUrl,
reqURL,
"",
false,
},
@ -46,6 +46,7 @@ func (suite *IntegrationTestSuite) TestGetAllAuctionsGrpc() {
sr.NoError(err)
var auctions auctiontypes.AuctionsResponse
err = val.ClientCtx.Codec.UnmarshalJSON(resp, &auctions)
sr.NoError(err)
sr.NotZero(len(auctions.Auctions.Auctions))
}
})
@ -55,10 +56,10 @@ func (suite *IntegrationTestSuite) TestGetAllAuctionsGrpc() {
func (suite *IntegrationTestSuite) TestQueryParamsGrpc() {
val := suite.network.Validators[0]
sr := suite.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/auction/v1beta1/params", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/auction/v1beta1/params", val.APIAddress)
suite.Run("valid request to get auction params", func() {
resp, err := rest.GetRequest(reqUrl)
resp, err := rest.GetRequest(reqURL)
suite.Require().NoError(err)
var params auctiontypes.QueryParamsResponse
@ -72,7 +73,7 @@ func (suite *IntegrationTestSuite) TestQueryParamsGrpc() {
func (suite *IntegrationTestSuite) TestGetAuctionGrpc() {
val := suite.network.Validators[0]
sr := suite.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/auction/v1beta1/auctions/", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/auction/v1beta1/auctions/", val.APIAddress)
testCases := []struct {
msg string
@ -83,14 +84,14 @@ func (suite *IntegrationTestSuite) TestGetAuctionGrpc() {
}{
{
"invalid request to get an auction",
reqUrl + randomAuctionID,
reqURL + randomAuctionID,
"",
true,
func() string { return "" },
},
{
"valid request to get an auction",
reqUrl,
reqURL,
"",
false,
func() string { return suite.defaultAuctionID },
@ -116,7 +117,7 @@ func (suite *IntegrationTestSuite) TestGetAuctionGrpc() {
func (suite *IntegrationTestSuite) TestGetBidsGrpc() {
val := suite.network.Validators[0]
sr := suite.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/auction/v1beta1/bids/", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/auction/v1beta1/bids/", val.APIAddress)
testCases := []struct {
msg string
url string
@ -126,14 +127,14 @@ func (suite *IntegrationTestSuite) TestGetBidsGrpc() {
}{
{
"invalid request to get all bids",
reqUrl,
reqURL,
"",
true,
func() string { return "" },
},
{
"valid request to get all bids",
reqUrl,
reqURL,
"",
false,
func() string { return suite.createAuctionAndBid(false, true) },
@ -161,7 +162,7 @@ func (suite *IntegrationTestSuite) TestGetBidsGrpc() {
func (suite *IntegrationTestSuite) TestGetBidGrpc() {
val := suite.network.Validators[0]
sr := suite.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/auction/v1beta1/bids/", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/auction/v1beta1/bids/", val.APIAddress)
testCases := []struct {
msg string
url string
@ -170,13 +171,13 @@ func (suite *IntegrationTestSuite) TestGetBidGrpc() {
}{
{
"invalid request to get bid",
fmt.Sprintf("%s/%s/", reqUrl, randomAuctionID),
fmt.Sprintf("%s/%s/", reqURL, randomAuctionID),
"",
true,
},
{
"valid request to get bid",
fmt.Sprintf("%s/%s/%s", reqUrl, randomAuctionID, randomBidderAddress),
fmt.Sprintf("%s/%s/%s", reqURL, randomAuctionID, randomBidderAddress),
"",
false,
},
@ -199,7 +200,7 @@ func (suite *IntegrationTestSuite) TestGetBidGrpc() {
func (suite *IntegrationTestSuite) TestGetAuctionsByOwnerGrpc() {
val := suite.network.Validators[0]
sr := suite.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/auction/v1beta1/by-owner/", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/auction/v1beta1/by-owner/", val.APIAddress)
testCases := []struct {
msg string
url string
@ -208,13 +209,13 @@ func (suite *IntegrationTestSuite) TestGetAuctionsByOwnerGrpc() {
}{
{
"invalid request to get auctions by owner",
reqUrl,
reqURL,
"",
true,
},
{
"valid request to get auctions by owner",
fmt.Sprintf("%s/%s", reqUrl, randomOwnerAddress),
fmt.Sprintf("%s/%s", reqURL, randomOwnerAddress),
"",
false,
},
@ -237,13 +238,13 @@ func (suite *IntegrationTestSuite) TestGetAuctionsByOwnerGrpc() {
func (suite *IntegrationTestSuite) TestQueryBalanceGrpc() {
val := suite.network.Validators[0]
sr := suite.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/auction/v1beta1/balance", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/auction/v1beta1/balance", val.APIAddress)
msg := "valid request to get the auction module balance"
suite.createAuctionAndBid(false, true)
suite.Run(msg, func() {
resp, err := rest.GetRequest(reqUrl)
resp, err := rest.GetRequest(reqURL)
sr.NoError(err)
var response auctiontypes.BalanceResponse

View File

@ -29,7 +29,7 @@ func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) types.GenesisState {
genesisAuctions := []*types.Auction{}
for _, auction := range auctions {
genesisAuctions = append(genesisAuctions, &auction)
genesisAuctions = append(genesisAuctions, &auction) //nolint: all
}
return types.GenesisState{Params: params, Auctions: genesisAuctions}
}

View File

@ -24,7 +24,7 @@ func GetQueryCmd() *cobra.Command {
bondQueryCmd.AddCommand(
GetQueryParamsCmd(),
GetQueryBondLists(),
GetBondByIdCmd(),
GetBondByIDCmd(),
GetBondListByOwnerCmd(),
GetBondModuleBalanceCmd(),
)
@ -99,7 +99,7 @@ $ %s query %s list
}
// GetBondByIdCmd implements the bond info by id query command.
func GetBondByIdCmd() *cobra.Command {
func GetBondByIDCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "get [bond Id]",
Short: "Get bond.",
@ -122,7 +122,7 @@ $ %s query bond get {BOND ID}
id := args[0]
res, err := queryClient.GetBondById(cmd.Context(), &types.QueryGetBondByIdRequest{Id: id})
res, err := queryClient.GetBondByID(cmd.Context(), &types.QueryGetBondByIDRequest{Id: id})
if err != nil {
return err
}

View File

@ -65,13 +65,13 @@ func RefillBondCmd() *cobra.Command {
if err != nil {
return err
}
bondId := args[0]
bondID := args[0]
coin, err := sdk.ParseCoinNormalized(args[1])
if err != nil {
return err
}
msg := types.NewMsgRefillBond(bondId, coin, clientCtx.GetFromAddress())
msg := types.NewMsgRefillBond(bondID, coin, clientCtx.GetFromAddress())
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
},
}
@ -91,13 +91,13 @@ func WithdrawBondCmd() *cobra.Command {
if err != nil {
return err
}
bondId := args[0]
bondID := args[0]
coin, err := sdk.ParseCoinNormalized(args[1])
if err != nil {
return err
}
msg := types.NewMsgWithdrawBond(bondId, coin, clientCtx.GetFromAddress())
msg := types.NewMsgWithdrawBond(bondID, coin, clientCtx.GetFromAddress())
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
},
}
@ -117,8 +117,8 @@ func CancelBondCmd() *cobra.Command {
if err != nil {
return err
}
bondId := args[0]
msg := types.NewMsgCancelBond(bondId, clientCtx.GetFromAddress())
bondID := args[0]
msg := types.NewMsgCancelBond(bondID, clientCtx.GetFromAddress())
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
},
}

View File

@ -13,7 +13,7 @@ import (
func (s *IntegrationTestSuite) TestGRPCGetBonds() {
val := s.network.Validators[0]
sr := s.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/bond/v1beta1/bonds", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/bond/v1beta1/bonds", val.APIAddress)
testCases := []struct {
name string
@ -24,7 +24,7 @@ func (s *IntegrationTestSuite) TestGRPCGetBonds() {
}{
{
"invalid request with headers",
reqUrl + "asdasdas",
reqURL + "asdasdas",
true,
"",
func() {
@ -32,7 +32,7 @@ func (s *IntegrationTestSuite) TestGRPCGetBonds() {
},
{
"valid request",
reqUrl,
reqURL,
false,
"",
func() {
@ -58,9 +58,9 @@ func (s *IntegrationTestSuite) TestGRPCGetBonds() {
func (s *IntegrationTestSuite) TestGRPCGetParams() {
val := s.network.Validators[0]
sr := s.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/bond/v1beta1/params", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/bond/v1beta1/params", val.APIAddress)
resp, err := rest.GetRequest(reqUrl)
resp, err := rest.GetRequest(reqURL)
s.Require().NoError(err)
var params bondtypes.QueryParamsResponse
@ -73,7 +73,7 @@ func (s *IntegrationTestSuite) TestGRPCGetParams() {
func (s *IntegrationTestSuite) TestGRPCGetBondsByOwner() {
val := s.network.Validators[0]
sr := s.Require()
reqUrl := val.APIAddress + "/vulcanize/bond/v1beta1/by-owner/%s"
reqURL := val.APIAddress + "/vulcanize/bond/v1beta1/by-owner/%s"
testCases := []struct {
name string
@ -83,14 +83,14 @@ func (s *IntegrationTestSuite) TestGRPCGetBondsByOwner() {
}{
{
"empty list",
fmt.Sprintf(reqUrl, "asdasd"),
fmt.Sprintf(reqURL, "asdasd"),
true,
func() {
},
},
{
"valid request",
fmt.Sprintf(reqUrl, s.accountAddress),
fmt.Sprintf(reqURL, s.accountAddress),
false,
func() {
s.createBond()
@ -121,10 +121,10 @@ func (s *IntegrationTestSuite) TestGRPCGetBondsByOwner() {
}
}
func (s *IntegrationTestSuite) TestGRPCGetBondById() {
func (s *IntegrationTestSuite) TestGRPCGetBondByID() {
val := s.network.Validators[0]
sr := s.Require()
reqUrl := val.APIAddress + "/vulcanize/bond/v1beta1/bonds/%s"
reqURL := val.APIAddress + "/vulcanize/bond/v1beta1/bonds/%s"
testCases := []struct {
name string
@ -134,7 +134,7 @@ func (s *IntegrationTestSuite) TestGRPCGetBondById() {
}{
{
"invalid request",
fmt.Sprintf(reqUrl, "asdadad"),
fmt.Sprintf(reqURL, "asdadad"),
true,
func() string {
return ""
@ -142,7 +142,7 @@ func (s *IntegrationTestSuite) TestGRPCGetBondById() {
},
{
"valid request",
reqUrl,
reqURL,
false,
func() string {
// creating the bond
@ -162,30 +162,30 @@ func (s *IntegrationTestSuite) TestGRPCGetBondById() {
// extract bond id from bonds list
bond := queryResponse.GetBonds()[0]
return bond.GetId()
return bond.GetID()
},
},
}
for _, tc := range testCases {
s.Run(tc.name, func() {
var bondId string
var bondID string
if !tc.expErr {
bondId = tc.preRun()
tc.url = fmt.Sprintf(reqUrl, bondId)
bondID = tc.preRun()
tc.url = fmt.Sprintf(reqURL, bondID)
}
resp, err := rest.GetRequest(tc.url)
s.Require().NoError(err)
var bonds bondtypes.QueryGetBondByIdResponse
var bonds bondtypes.QueryGetBondByIDResponse
err = val.ClientCtx.Codec.UnmarshalJSON(resp, &bonds)
if tc.expErr {
sr.Empty(bonds.GetBond().GetId())
sr.Empty(bonds.GetBond().GetID())
} else {
sr.NoError(err)
sr.NotZero(bonds.GetBond().GetId())
sr.Equal(bonds.GetBond().GetId(), bondId)
sr.NotZero(bonds.GetBond().GetID())
sr.Equal(bonds.GetBond().GetID(), bondID)
}
})
}
@ -194,13 +194,13 @@ func (s *IntegrationTestSuite) TestGRPCGetBondById() {
func (s *IntegrationTestSuite) TestGRPCGetBondModuleBalance() {
val := s.network.Validators[0]
sr := s.Require()
reqUrl := fmt.Sprintf("%s/vulcanize/bond/v1beta1/balance", val.APIAddress)
reqURL := fmt.Sprintf("%s/vulcanize/bond/v1beta1/balance", val.APIAddress)
// creating the bond
s.createBond()
s.Run("valid request", func() {
resp, err := rest.GetRequest(reqUrl)
resp, err := rest.GetRequest(reqURL)
sr.NoError(err)
var response bondtypes.QueryGetBondModuleBalanceResponse

View File

@ -163,7 +163,7 @@ func (s *IntegrationTestSuite) TestGetQueryBondLists() {
}
}
func (s *IntegrationTestSuite) TestGetQueryBondById() {
func (s *IntegrationTestSuite) TestGetQueryBondByID() {
val := s.network.Validators[0]
sr := s.Require()
testCases := []struct {
@ -205,7 +205,7 @@ func (s *IntegrationTestSuite) TestGetQueryBondById() {
// extract bond id from bonds list
bond := queryResponse.GetBonds()[0]
return bond.GetId()
return bond.GetID()
},
},
}
@ -214,20 +214,20 @@ func (s *IntegrationTestSuite) TestGetQueryBondById() {
s.Run(fmt.Sprintf("Case %s", tc.name), func() {
clientCtx := val.ClientCtx
if !tc.err {
bondId := tc.preRun()
tc.args = append([]string{bondId}, tc.args...)
bondID := tc.preRun()
tc.args = append([]string{bondID}, tc.args...)
}
cmd := cli.GetBondByIdCmd()
cmd := cli.GetBondByIDCmd()
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args)
sr.NoError(err)
var queryResponse types.QueryGetBondByIdResponse
var queryResponse types.QueryGetBondByIDResponse
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &queryResponse)
sr.NoError(err)
if tc.err {
sr.Zero(len(queryResponse.GetBond().GetId()))
sr.Zero(len(queryResponse.GetBond().GetID()))
} else {
sr.NotZero(len(queryResponse.GetBond().GetId()))
sr.NotZero(len(queryResponse.GetBond().GetID()))
sr.Equal(s.accountAddress, queryResponse.GetBond().GetOwner())
}
})

View File

@ -118,7 +118,7 @@ func (s *IntegrationTestSuite) TestTxRefillBond() {
// extract bond id from bonds list
bond := queryResponse.GetBonds()[0]
tc.args = append([]string{bond.GetId()}, tc.args...)
tc.args = append([]string{bond.GetID()}, tc.args...)
}
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args)
if tc.err {
@ -131,14 +131,14 @@ func (s *IntegrationTestSuite) TestTxRefillBond() {
sr.Zero(d.Code)
// checking the balance of bond
cmd := cli.GetBondByIdCmd()
cmd := cli.GetBondByIDCmd()
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, []string{
fmt.Sprintf(tc.args[0]),
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
})
sr.NoError(err)
var queryResponse types.QueryGetBondByIdResponse
var queryResponse types.QueryGetBondByIDResponse
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &queryResponse)
sr.NoError(err)
@ -204,7 +204,7 @@ func (s *IntegrationTestSuite) TestTxWithdrawAmountFromBond() {
// extract bond id from bonds list
bond := queryResponse.GetBonds()[0]
tc.args = append([]string{bond.GetId()}, tc.args...)
tc.args = append([]string{bond.GetID()}, tc.args...)
}
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args)
if tc.err {
@ -217,14 +217,14 @@ func (s *IntegrationTestSuite) TestTxWithdrawAmountFromBond() {
sr.Zero(d.Code)
// checking the balance of bond
cmd := cli.GetBondByIdCmd()
cmd := cli.GetBondByIDCmd()
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, []string{
fmt.Sprintf(tc.args[0]),
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
})
sr.NoError(err)
var queryResponse types.QueryGetBondByIdResponse
var queryResponse types.QueryGetBondByIDResponse
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &queryResponse)
sr.NoError(err)
@ -288,7 +288,7 @@ func (s *IntegrationTestSuite) TestTxCancelBond() {
// extract bond id from bonds list
bond := queryResponse.GetBonds()[0]
tc.args = append([]string{bond.GetId()}, tc.args...)
tc.args = append([]string{bond.GetID()}, tc.args...)
}
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args)
if tc.err {
@ -301,18 +301,18 @@ func (s *IntegrationTestSuite) TestTxCancelBond() {
sr.Zero(d.Code)
// checking the bond exists or not after cancel
cmd := cli.GetBondByIdCmd()
cmd := cli.GetBondByIDCmd()
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, []string{
fmt.Sprintf(tc.args[0]),
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
})
sr.NoError(err)
var queryResponse types.QueryGetBondByIdResponse
var queryResponse types.QueryGetBondByIDResponse
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &queryResponse)
sr.NoError(err)
sr.Zero(queryResponse.GetBond().GetId())
sr.Zero(queryResponse.GetBond().GetID())
}
})
}

View File

@ -26,14 +26,14 @@ func (q Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.
return &types.QueryParamsResponse{Params: &params}, nil
}
func (q Querier) GetBondById(c context.Context, req *types.QueryGetBondByIdRequest) (*types.QueryGetBondByIdResponse, error) {
func (q Querier) GetBondByID(c context.Context, req *types.QueryGetBondByIDRequest) (*types.QueryGetBondByIDResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
bondId := req.GetId()
if len(bondId) == 0 {
bondID := req.GetID()
if len(bondID) == 0 {
return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "bond id required")
}
bond := q.Keeper.GetBond(ctx, req.GetId())
return &types.QueryGetBondByIdResponse{Bond: &bond}, nil
bond := q.Keeper.GetBond(ctx, req.GetID())
return &types.QueryGetBondByIDResponse{Bond: &bond}, nil
}
func (q Querier) GetBondsByOwner(c context.Context, req *types.QueryGetBondsByOwnerRequest) (*types.QueryGetBondsByOwnerResponse, error) {

View File

@ -84,21 +84,21 @@ func (suite *KeeperTestSuite) TestGrpcQueryBondBondId() {
testCases := []struct {
msg string
req *types.QueryGetBondByIdRequest
req *types.QueryGetBondByIDRequest
createBonds bool
errResponse bool
bondId string
}{
{
"empty request",
&types.QueryGetBondByIdRequest{},
&types.QueryGetBondByIDRequest{},
false,
true,
"",
},
{
"Get Bond By ID",
&types.QueryGetBondByIdRequest{},
&types.QueryGetBondByIDRequest{},
true,
false,
"",
@ -120,11 +120,11 @@ func (suite *KeeperTestSuite) TestGrpcQueryBondBondId() {
suiteRequire.NoError(err)
test.req.Id = bond.Id
}
resp, err := grpcClient.GetBondById(context.Background(), test.req)
resp, err := grpcClient.GetBondByID(context.Background(), test.req)
if !test.errResponse {
suiteRequire.Nil(err)
suiteRequire.NotNil(resp.GetBond())
suiteRequire.Equal(test.req.Id, resp.GetBond().GetId())
suiteRequire.Equal(test.req.Id, resp.GetBond().GetID())
} else {
suiteRequire.NotNil(err)
suiteRequire.Error(err)

View File

@ -62,7 +62,7 @@ func (k msgServer) RefillBond(c context.Context, msg *types.MsgRefillBond) (*typ
sdk.NewEvent(
types.EventTypeRefillBond,
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(types.AttributeKeyBondId, msg.Id),
sdk.NewAttribute(types.AttributeKeyBondID, msg.Id),
sdk.NewAttribute(sdk.AttributeKeyAmount, msg.Coins.String()),
),
sdk.NewEvent(
@ -92,7 +92,7 @@ func (k msgServer) WithdrawBond(c context.Context, msg *types.MsgWithdrawBond) (
sdk.NewEvent(
types.EventTypeWithdrawBond,
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(types.AttributeKeyBondId, msg.Id),
sdk.NewAttribute(types.AttributeKeyBondID, msg.Id),
sdk.NewAttribute(sdk.AttributeKeyAmount, msg.Coins.String()),
),
sdk.NewEvent(
@ -120,7 +120,7 @@ func (k msgServer) CancelBond(c context.Context, msg *types.MsgCancelBond) (*typ
sdk.NewEvent(
types.EventTypeCancelBond,
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(types.AttributeKeyBondId, msg.Id),
sdk.NewAttribute(types.AttributeKeyBondID, msg.Id),
),
sdk.NewEvent(
sdk.EventTypeMessage,

View File

@ -114,7 +114,7 @@ func (m *Bond) XXX_DiscardUnknown() {
var xxx_messageInfo_Bond proto.InternalMessageInfo
func (m *Bond) GetId() string {
func (m *Bond) GetID() string {
if m != nil {
return m.Id
}

View File

@ -10,6 +10,6 @@ const (
AttributeKeySigner = "signer"
AttributeKeyAmount = "amount"
AttributeKeyBondId = "bond_id"
AttributeKeyBondID = "bond_id"
AttributeValueCategory = ModuleName
)

View File

@ -8,5 +8,5 @@ import (
// Used to, for example, prevent deletion of a bond that's in use.
type BondUsageKeeper interface {
ModuleName() string
UsesBond(ctx sdk.Context, bondId string) bool
UsesBond(ctx sdk.Context, bondID string) bool
}

222
x/bond/types/query.pb.go generated
View File

@ -214,23 +214,23 @@ func (m *QueryGetBondsResponse) GetPagination() *query.PageResponse {
return nil
}
// QueryGetBondById
type QueryGetBondByIdRequest struct {
// QueryGetBondByID
type QueryGetBondByIDRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" json:"id" yaml:"id"`
}
func (m *QueryGetBondByIdRequest) Reset() { *m = QueryGetBondByIdRequest{} }
func (m *QueryGetBondByIdRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetBondByIdRequest) ProtoMessage() {}
func (*QueryGetBondByIdRequest) Descriptor() ([]byte, []int) {
func (m *QueryGetBondByIDRequest) Reset() { *m = QueryGetBondByIDRequest{} }
func (m *QueryGetBondByIDRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetBondByIDRequest) ProtoMessage() {}
func (*QueryGetBondByIDRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2f225717b20da431, []int{4}
}
func (m *QueryGetBondByIdRequest) XXX_Unmarshal(b []byte) error {
func (m *QueryGetBondByIDRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetBondByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
func (m *QueryGetBondByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetBondByIdRequest.Marshal(b, m, deterministic)
return xxx_messageInfo_QueryGetBondByIDRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@ -240,42 +240,42 @@ func (m *QueryGetBondByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]b
return b[:n], nil
}
}
func (m *QueryGetBondByIdRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetBondByIdRequest.Merge(m, src)
func (m *QueryGetBondByIDRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetBondByIDRequest.Merge(m, src)
}
func (m *QueryGetBondByIdRequest) XXX_Size() int {
func (m *QueryGetBondByIDRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryGetBondByIdRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetBondByIdRequest.DiscardUnknown(m)
func (m *QueryGetBondByIDRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetBondByIDRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetBondByIdRequest proto.InternalMessageInfo
var xxx_messageInfo_QueryGetBondByIDRequest proto.InternalMessageInfo
func (m *QueryGetBondByIdRequest) GetId() string {
func (m *QueryGetBondByIDRequest) GetID() string {
if m != nil {
return m.Id
}
return ""
}
// QueryGetBondByIdResponse returns QueryGetBondById query response
type QueryGetBondByIdResponse struct {
// QueryGetBondByIDResponse returns QueryGetBondByID query response
type QueryGetBondByIDResponse struct {
Bond *Bond `protobuf:"bytes,1,opt,name=bond,proto3" json:"bond,omitempty" json:"bond" yaml:"bond"`
}
func (m *QueryGetBondByIdResponse) Reset() { *m = QueryGetBondByIdResponse{} }
func (m *QueryGetBondByIdResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetBondByIdResponse) ProtoMessage() {}
func (*QueryGetBondByIdResponse) Descriptor() ([]byte, []int) {
func (m *QueryGetBondByIDResponse) Reset() { *m = QueryGetBondByIDResponse{} }
func (m *QueryGetBondByIDResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetBondByIDResponse) ProtoMessage() {}
func (*QueryGetBondByIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2f225717b20da431, []int{5}
}
func (m *QueryGetBondByIdResponse) XXX_Unmarshal(b []byte) error {
func (m *QueryGetBondByIDResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetBondByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
func (m *QueryGetBondByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetBondByIdResponse.Marshal(b, m, deterministic)
return xxx_messageInfo_QueryGetBondByIDResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@ -285,19 +285,19 @@ func (m *QueryGetBondByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]
return b[:n], nil
}
}
func (m *QueryGetBondByIdResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetBondByIdResponse.Merge(m, src)
func (m *QueryGetBondByIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetBondByIDResponse.Merge(m, src)
}
func (m *QueryGetBondByIdResponse) XXX_Size() int {
func (m *QueryGetBondByIDResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryGetBondByIdResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetBondByIdResponse.DiscardUnknown(m)
func (m *QueryGetBondByIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetBondByIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetBondByIdResponse proto.InternalMessageInfo
var xxx_messageInfo_QueryGetBondByIDResponse proto.InternalMessageInfo
func (m *QueryGetBondByIdResponse) GetBond() *Bond {
func (m *QueryGetBondByIDResponse) GetBond() *Bond {
if m != nil {
return m.Bond
}
@ -499,8 +499,8 @@ func init() {
proto.RegisterType((*QueryParamsResponse)(nil), "vulcanize.bond.v1beta1.QueryParamsResponse")
proto.RegisterType((*QueryGetBondsRequest)(nil), "vulcanize.bond.v1beta1.QueryGetBondsRequest")
proto.RegisterType((*QueryGetBondsResponse)(nil), "vulcanize.bond.v1beta1.QueryGetBondsResponse")
proto.RegisterType((*QueryGetBondByIdRequest)(nil), "vulcanize.bond.v1beta1.QueryGetBondByIdRequest")
proto.RegisterType((*QueryGetBondByIdResponse)(nil), "vulcanize.bond.v1beta1.QueryGetBondByIdResponse")
proto.RegisterType((*QueryGetBondByIDRequest)(nil), "vulcanize.bond.v1beta1.QueryGetBondByIDRequest")
proto.RegisterType((*QueryGetBondByIDResponse)(nil), "vulcanize.bond.v1beta1.QueryGetBondByIDResponse")
proto.RegisterType((*QueryGetBondsByOwnerRequest)(nil), "vulcanize.bond.v1beta1.QueryGetBondsByOwnerRequest")
proto.RegisterType((*QueryGetBondsByOwnerResponse)(nil), "vulcanize.bond.v1beta1.QueryGetBondsByOwnerResponse")
proto.RegisterType((*QueryGetBondModuleBalanceRequest)(nil), "vulcanize.bond.v1beta1.QueryGetBondModuleBalanceRequest")
@ -512,55 +512,55 @@ func init() {
}
var fileDescriptor_2f225717b20da431 = []byte{
// 759 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xbf, 0x6f, 0xd3, 0x40,
0x14, 0xc7, 0xe3, 0x40, 0x82, 0xb8, 0x0e, 0x48, 0xd7, 0x94, 0xb6, 0x69, 0x6b, 0x27, 0x27, 0x68,
0xa3, 0x40, 0x7c, 0xfd, 0xc1, 0x00, 0x8c, 0x46, 0xa2, 0x62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0xc0, 0x31, 0xe0, 0x1c, 0x1e, 0xb2, 0xeb, 0x7d, 0xf8, 0x4e, 0x03, 0x63, 0xb1, 0xc1,
0x84, 0x78, 0x94, 0x2a, 0xb1, 0x35, 0x90, 0x5f, 0x1c, 0x3d, 0x40, 0x91, 0x95, 0x05, 0xd9, 0x25,
0x88, 0x86, 0x92, 0xe1, 0x2d, 0xea, 0x6d, 0xc3, 0x4f, 0x1a, 0xb8, 0x70, 0x64, 0x9a, 0xe0, 0xca,
0x48, 0x8d, 0x48, 0x8e, 0x7e, 0xfe, 0xda, 0xe9, 0x82, 0x14, 0xea, 0xa2, 0x40, 0x2d, 0xc3, 0xd2,
0x40, 0xd4, 0x4e, 0x45, 0x2c, 0x11, 0xbc, 0x25, 0x2e, 0xdb, 0xf0, 0x8b, 0x06, 0x26, 0xa2, 0x6c,
0x89, 0xd1, 0x80, 0xd7, 0x47, 0x21, 0x38, 0x69, 0xe4, 0xf2, 0x37, 0xfe, 0x22, 0x52, 0x19, 0x58,
0x10, 0x06, 0x8a, 0xd0, 0x18, 0x68, 0x40, 0x06, 0x58, 0xd6, 0xee, 0xbe, 0xae, 0xed, 0xed, 0xeb,
0xda, 0xcf, 0x7d, 0x5d, 0x7b, 0x73, 0xa0, 0xa7, 0xf6, 0x0e, 0xf4, 0xd4, 0xf7, 0x03, 0x3d, 0xf5,
0x30, 0x31, 0x78, 0xa4, 0xe5, 0x56, 0x28, 0xc7, 0x75, 0xc7, 0xe5, 0x8c, 0xba, 0x1e, 0x7e, 0x2e,
0xb3, 0x89, 0xf1, 0xab, 0x66, 0xc5, 0xff, 0xf9, 0xca, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb,
0x62, 0x7c, 0x63, 0xb0, 0x08, 0x00, 0x00,
// 761 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x3f, 0x6f, 0xd3, 0x4e,
0x18, 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d8, 0xd4, 0xc7, 0x22, 0xb0, 0x08, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@ -580,7 +580,7 @@ type QueryClient interface {
// Bonds queries bonds list.
Bonds(ctx context.Context, in *QueryGetBondsRequest, opts ...grpc.CallOption) (*QueryGetBondsResponse, error)
// GetBondById
GetBondById(ctx context.Context, in *QueryGetBondByIdRequest, opts ...grpc.CallOption) (*QueryGetBondByIdResponse, error)
GetBondByID(ctx context.Context, in *QueryGetBondByIDRequest, opts ...grpc.CallOption) (*QueryGetBondByIDResponse, error)
// Get Bonds List by Owner
GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetBondsByOwnerResponse, error)
// Get Bonds module balance
@ -613,9 +613,9 @@ func (c *queryClient) Bonds(ctx context.Context, in *QueryGetBondsRequest, opts
return out, nil
}
func (c *queryClient) GetBondById(ctx context.Context, in *QueryGetBondByIdRequest, opts ...grpc.CallOption) (*QueryGetBondByIdResponse, error) {
out := new(QueryGetBondByIdResponse)
err := c.cc.Invoke(ctx, "/vulcanize.bond.v1beta1.Query/GetBondById", in, out, opts...)
func (c *queryClient) GetBondByID(ctx context.Context, in *QueryGetBondByIDRequest, opts ...grpc.CallOption) (*QueryGetBondByIDResponse, error) {
out := new(QueryGetBondByIDResponse)
err := c.cc.Invoke(ctx, "/vulcanize.bond.v1beta1.Query/GetBondByID", in, out, opts...)
if err != nil {
return nil, err
}
@ -647,7 +647,7 @@ type QueryServer interface {
// Bonds queries bonds list.
Bonds(context.Context, *QueryGetBondsRequest) (*QueryGetBondsResponse, error)
// GetBondById
GetBondById(context.Context, *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error)
GetBondByID(context.Context, *QueryGetBondByIDRequest) (*QueryGetBondByIDResponse, error)
// Get Bonds List by Owner
GetBondsByOwner(context.Context, *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error)
// Get Bonds module balance
@ -664,8 +664,8 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsReq
func (*UnimplementedQueryServer) Bonds(ctx context.Context, req *QueryGetBondsRequest) (*QueryGetBondsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Bonds not implemented")
}
func (*UnimplementedQueryServer) GetBondById(ctx context.Context, req *QueryGetBondByIdRequest) (*QueryGetBondByIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondById not implemented")
func (*UnimplementedQueryServer) GetBondByID(ctx context.Context, req *QueryGetBondByIDRequest) (*QueryGetBondByIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondByID not implemented")
}
func (*UnimplementedQueryServer) GetBondsByOwner(ctx context.Context, req *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBondsByOwner not implemented")
@ -714,20 +714,20 @@ func _Query_Bonds_Handler(srv interface{}, ctx context.Context, dec func(interfa
return interceptor(ctx, in, info, handler)
}
func _Query_GetBondById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetBondByIdRequest)
func _Query_GetBondByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetBondByIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetBondById(ctx, in)
return srv.(QueryServer).GetBondByID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/vulcanize.bond.v1beta1.Query/GetBondById",
FullMethod: "/vulcanize.bond.v1beta1.Query/GetBondByID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetBondById(ctx, req.(*QueryGetBondByIdRequest))
return srv.(QueryServer).GetBondByID(ctx, req.(*QueryGetBondByIDRequest))
}
return interceptor(ctx, in, info, handler)
}
@ -781,8 +781,8 @@ var _Query_serviceDesc = grpc.ServiceDesc{
Handler: _Query_Bonds_Handler,
},
{
MethodName: "GetBondById",
Handler: _Query_GetBondById_Handler,
MethodName: "GetBondByID",
Handler: _Query_GetBondByID_Handler,
},
{
MethodName: "GetBondsByOwner",
@ -939,7 +939,7 @@ func (m *QueryGetBondsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
func (m *QueryGetBondByIdRequest) Marshal() (dAtA []byte, err error) {
func (m *QueryGetBondByIDRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -949,12 +949,12 @@ func (m *QueryGetBondByIdRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
func (m *QueryGetBondByIdRequest) MarshalTo(dAtA []byte) (int, error) {
func (m *QueryGetBondByIDRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetBondByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
func (m *QueryGetBondByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@ -969,7 +969,7 @@ func (m *QueryGetBondByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
return len(dAtA) - i, nil
}
func (m *QueryGetBondByIdResponse) Marshal() (dAtA []byte, err error) {
func (m *QueryGetBondByIDResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -979,12 +979,12 @@ func (m *QueryGetBondByIdResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
func (m *QueryGetBondByIdResponse) MarshalTo(dAtA []byte) (int, error) {
func (m *QueryGetBondByIDResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetBondByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
func (m *QueryGetBondByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@ -1220,7 +1220,7 @@ func (m *QueryGetBondsResponse) Size() (n int) {
return n
}
func (m *QueryGetBondByIdRequest) Size() (n int) {
func (m *QueryGetBondByIDRequest) Size() (n int) {
if m == nil {
return 0
}
@ -1233,7 +1233,7 @@ func (m *QueryGetBondByIdRequest) Size() (n int) {
return n
}
func (m *QueryGetBondByIdResponse) Size() (n int) {
func (m *QueryGetBondByIDResponse) Size() (n int) {
if m == nil {
return 0
}
@ -1654,7 +1654,7 @@ func (m *QueryGetBondsResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *QueryGetBondByIdRequest) Unmarshal(dAtA []byte) error {
func (m *QueryGetBondByIDRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@ -1677,10 +1677,10 @@ func (m *QueryGetBondByIdRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetBondByIdRequest: wiretype end group for non-group")
return fmt.Errorf("proto: QueryGetBondByIDRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetBondByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire)
return fmt.Errorf("proto: QueryGetBondByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@ -1736,7 +1736,7 @@ func (m *QueryGetBondByIdRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *QueryGetBondByIdResponse) Unmarshal(dAtA []byte) error {
func (m *QueryGetBondByIDResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@ -1759,10 +1759,10 @@ func (m *QueryGetBondByIdResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetBondByIdResponse: wiretype end group for non-group")
return fmt.Errorf("proto: QueryGetBondByIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetBondByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire)
return fmt.Errorf("proto: QueryGetBondByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:

View File

@ -85,8 +85,8 @@ func local_request_Query_Bonds_0(ctx context.Context, marshaler runtime.Marshale
}
func request_Query_GetBondById_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetBondByIdRequest
func request_Query_GetBondByID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetBondByIDRequest
var metadata runtime.ServerMetadata
var (
@ -107,13 +107,13 @@ func request_Query_GetBondById_0(ctx context.Context, marshaler runtime.Marshale
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := client.GetBondById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
msg, err := client.GetBondByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_GetBondById_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetBondByIdRequest
func local_request_Query_GetBondByID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetBondByIDRequest
var metadata runtime.ServerMetadata
var (
@ -134,7 +134,7 @@ func local_request_Query_GetBondById_0(ctx context.Context, marshaler runtime.Ma
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := server.GetBondById(ctx, &protoReq)
msg, err := server.GetBondByID(ctx, &protoReq)
return msg, metadata, err
}
@ -275,7 +275,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
})
mux.Handle("GET", pattern_Query_GetBondById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
mux.Handle("GET", pattern_Query_GetBondByID_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)
@ -284,14 +284,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_GetBondById_0(rctx, inboundMarshaler, server, req, pathParams)
resp, md, err := local_request_Query_GetBondByID_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_GetBondById_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
forward_Query_GetBondByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
@ -416,7 +416,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
})
mux.Handle("GET", pattern_Query_GetBondById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
mux.Handle("GET", pattern_Query_GetBondByID_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)
@ -425,14 +425,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_GetBondById_0(rctx, inboundMarshaler, client, req, pathParams)
resp, md, err := request_Query_GetBondByID_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_GetBondById_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
forward_Query_GetBondByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
@ -484,7 +484,7 @@ var (
pattern_Query_Bonds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vulcanize", "bond", "v1beta1", "bonds"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_Query_GetBondById_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"vulcanize", "bond", "v1beta1", "bonds", "id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_Query_GetBondByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"vulcanize", "bond", "v1beta1", "bonds", "id"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_Query_GetBondsByOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"vulcanize", "bond", "v1beta1", "by-owner", "owner"}, "", runtime.AssumeColonVerbOpt(true)))
@ -496,7 +496,7 @@ var (
forward_Query_Bonds_0 = runtime.ForwardResponseMessage
forward_Query_GetBondById_0 = runtime.ForwardResponseMessage
forward_Query_GetBondByID_0 = runtime.ForwardResponseMessage
forward_Query_GetBondsByOwner_0 = runtime.ForwardResponseMessage

View File

@ -197,7 +197,7 @@ $ %s query %s get [ID]
return err
}
queryClient := types.NewQueryClient(clientCtx)
record, err := queryClient.GetRecord(cmd.Context(), &types.QueryRecordByIdRequest{Id: args[0]})
record, err := queryClient.GetRecord(cmd.Context(), &types.QueryRecordByIDRequest{Id: args[0]})
if err != nil {
return err
}
@ -261,7 +261,7 @@ $ %s query %s query-by-bond [bond id]
queryClient := types.NewQueryClient(clientCtx)
bondID := args[0]
res, err := queryClient.GetRecordByBondId(cmd.Context(), &types.QueryRecordByBondIdRequest{Id: bondID})
res, err := queryClient.GetRecordByBondID(cmd.Context(), &types.QueryRecordByBondIDRequest{Id: bondID})
if err != nil {
return err
}

View File

@ -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/nameservice/v1beta1/params"
testCases := []struct {
name string
@ -28,13 +28,13 @@ func (s *IntegrationTestSuite) TestGRPCQueryParams() {
}{
{
"invalid url",
reqUrl + "/asdasd",
reqURL + "/asdasd",
true,
"",
},
{
"Success",
reqUrl,
reqURL,
false,
"",
},
@ -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/nameservice/v1beta1/lookup?crn=%s"
authorityName := "QueryLookUp"
testCases := []struct {
@ -143,7 +143,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryLookup() {
}{
{
"invalid url",
reqUrl + "/asdasd",
reqURL + "/asdasd",
true,
"",
func(authorityName string) {
@ -151,7 +151,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryLookup() {
},
{
"Success",
reqUrl,
reqURL,
false,
"",
func(authorityName string) {
@ -165,7 +165,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryLookup() {
s.Run(tc.name, func() {
if !tc.expectErr {
tc.preRun(authorityName)
tc.url = fmt.Sprintf(reqUrl, fmt.Sprintf("crn://%s/", authorityName))
tc.url = fmt.Sprintf(reqURL, fmt.Sprintf("crn://%s/", authorityName))
}
resp, _ := rest.GetRequest(tc.url)
if tc.expectErr {
@ -234,7 +234,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryRecordExpiryQueue() {
for _, tc := range testCases {
s.Run(tc.name, func() {
if !tc.expectErr {
tc.preRun(s.bondId)
tc.preRun(s.bondID)
}
// wait 12 seconds for records expires
time.Sleep(time.Second * 12)
@ -378,7 +378,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryListRecords() {
for _, tc := range testCases {
s.Run(tc.name, func() {
if !tc.expectErr {
tc.preRun(s.bondId)
tc.preRun(s.bondID)
}
resp, _ := rest.GetRequest(tc.url)
require := s.Require()
@ -389,7 +389,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryListRecords() {
err := val.ClientCtx.Codec.UnmarshalJSON(resp, &response)
sr.NoError(err)
sr.NotZero(len(response.GetRecords()))
sr.Equal(s.bondId, response.GetRecords()[0].GetBondId())
sr.Equal(s.bondID, response.GetRecords()[0].GetBondId())
}
})
}
@ -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/nameservice/v1beta1/records/%s"
testCases := []struct {
name string
@ -409,7 +409,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByID() {
}{
{
"invalid url",
reqUrl + "/asdasd",
reqURL + "/asdasd",
true,
"",
func(bondId string) string {
@ -418,7 +418,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByID() {
},
{
"Success",
reqUrl,
reqURL,
false,
"",
func(bondId string) string {
@ -436,29 +436,29 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByID() {
var records []nstypes.RecordType
err = json.Unmarshal(out.Bytes(), &records)
sr.NoError(err)
return records[0].Id
return records[0].ID
},
},
}
for _, tc := range testCases {
s.Run(tc.name, func() {
var recordId string
var recordID string
if !tc.expectErr {
recordId = tc.preRun(s.bondId)
tc.url = fmt.Sprintf(reqUrl, recordId)
recordID = tc.preRun(s.bondID)
tc.url = fmt.Sprintf(reqURL, recordID)
}
resp, _ := rest.GetRequest(tc.url)
require := s.Require()
if tc.expectErr {
require.Contains(string(resp), tc.errorMsg)
} else {
var response nstypes.QueryRecordByIdResponse
var response nstypes.QueryRecordByIDResponse
err := val.ClientCtx.Codec.UnmarshalJSON(resp, &response)
sr.NoError(err)
record := response.GetRecord()
sr.NotZero(len(record.GetId()))
sr.Equal(record.GetId(), recordId)
sr.NotZero(len(record.GetID()))
sr.Equal(record.GetID(), recordID)
}
})
}
@ -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/nameservice/v1beta1/records-by-bond-id/%s"
testCases := []struct {
name string
@ -478,7 +478,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByBondID() {
}{
{
"invalid url",
reqUrl + "/asdasd",
reqURL + "/asdasd",
true,
"",
func(bondId string) {
@ -486,7 +486,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByBondID() {
},
{
"Success",
reqUrl,
reqURL,
false,
"",
func(bondId string) {
@ -499,20 +499,20 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByBondID() {
for _, tc := range testCases {
s.Run(tc.name, func() {
if !tc.expectErr {
tc.preRun(s.bondId)
tc.url = fmt.Sprintf(reqUrl, s.bondId)
tc.preRun(s.bondID)
tc.url = fmt.Sprintf(reqURL, s.bondID)
}
resp, _ := rest.GetRequest(tc.url)
require := s.Require()
if tc.expectErr {
require.Contains(string(resp), tc.errorMsg)
} else {
var response nstypes.QueryRecordByBondIdResponse
var response nstypes.QueryRecordByBondIDResponse
err := val.ClientCtx.Codec.UnmarshalJSON(resp, &response)
sr.NoError(err)
records := response.GetRecords()
sr.NotZero(len(records))
sr.Equal(records[0].GetBondId(), s.bondId)
sr.Equal(records[0].GetBondId(), s.bondID)
}
})
}
@ -521,7 +521,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetRecordByBondID() {
func (s *IntegrationTestSuite) TestGRPCQueryGetNameServiceModuleBalance() {
val := s.network.Validators[0]
sr := s.Require()
reqUrl := val.APIAddress + "/vulcanize/nameservice/v1beta1/balance"
reqURL := val.APIAddress + "/vulcanize/nameservice/v1beta1/balance"
testCases := []struct {
name string
@ -532,7 +532,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetNameServiceModuleBalance() {
}{
{
"invalid url",
reqUrl + "/asdasd",
reqURL + "/asdasd",
true,
"",
func(bondId string) {
@ -540,7 +540,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetNameServiceModuleBalance() {
},
{
"Success",
reqUrl,
reqURL,
false,
"",
func(bondId string) {
@ -553,7 +553,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryGetNameServiceModuleBalance() {
for _, tc := range testCases {
s.Run(tc.name, func() {
if !tc.expectErr {
tc.preRun(s.bondId)
tc.preRun(s.bondID)
}
resp, _ := rest.GetRequest(tc.url)
require := s.Require()
@ -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/nameservice/v1beta1/names"
testCases := []struct {
name string
@ -583,7 +583,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryNamesList() {
}{
{
"invalid url",
reqUrl + "/asdasd",
reqURL + "/asdasd",
true,
"",
func(authorityName string) {
@ -591,7 +591,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryNamesList() {
},
{
"Success",
reqUrl,
reqURL,
false,
"",
func(authorityName string) {
@ -620,7 +620,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryNamesList() {
}
}
func createRecord(bondId string, s *IntegrationTestSuite) {
func createRecord(bondID string, s *IntegrationTestSuite) {
val := s.network.Validators[0]
sr := s.Require()
@ -634,7 +634,7 @@ func createRecord(bondId string, s *IntegrationTestSuite) {
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
fmt.Sprintf("--%s=%s", flags.FlagFees, fmt.Sprintf("3%s", s.cfg.BondDenom)),
}
args = append([]string{payloadPath, bondId}, args...)
args = append([]string{payloadPath, bondID}, args...)
clientCtx := val.ClientCtx
cmd := cli.GetCmdSetRecord()

View File

@ -51,7 +51,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() {
val := s.network.Validators[0]
sr := s.Require()
var recordID string
var bondId string
var bondID string
testCases := []struct {
name string
@ -76,12 +76,12 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() {
func() {
CreateBond(s)
// get the bond id from bond list
bondId := GetBondId(s)
bondID := GetBondID(s)
dir, err := os.Getwd()
sr.NoError(err)
payloadPath := dir + "/example1.yml"
args := []string{
payloadPath, bondId,
payloadPath, bondID,
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
@ -118,8 +118,8 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() {
err := json.Unmarshal(out.Bytes(), &records)
sr.NoError(err)
sr.Equal(tc.noOfRecords, len(records))
recordID = records[0].Id
bondId = GetBondId(s)
recordID = records[0].ID
bondID = GetBondID(s)
}
})
}
@ -152,7 +152,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() {
sr.Error(err)
} else {
sr.NoError(err)
var response types.QueryRecordByIdResponse
var response types.QueryRecordByIDResponse
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &response)
sr.NoError(err)
sr.NotNil(response.GetRecord())
@ -173,7 +173,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() {
},
{
"get records by bond-id",
[]string{bondId, fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
[]string{bondID, fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
false,
},
}
@ -188,7 +188,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() {
sr.Error(err)
} else {
sr.NoError(err)
var response types.QueryRecordByBondIdResponse
var response types.QueryRecordByBondIDResponse
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &response)
sr.NoError(err)
}
@ -542,11 +542,11 @@ func createNameRecord(authorityName string, s *IntegrationTestSuite) {
CreateBond(s)
// Get the bond-id
bondId := GetBondId(s)
bondID := GetBondID(s)
// adding bond-id to name authority
args = []string{
authorityName, bondId,
authorityName, bondID,
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=json", tmcli.OutputFlag),

View File

@ -32,7 +32,7 @@ type IntegrationTestSuite struct {
cfg network.Config
network *network.Network
bondId string
bondID string
}
func NewIntegrationTestSuite(cfg network.Config) *IntegrationTestSuite {
@ -63,7 +63,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
// setting up random account
s.createAccountWithBalance(accountName)
CreateBond(s)
s.bondId = GetBondId(s)
s.bondID = GetBondID(s)
}
func (s *IntegrationTestSuite) createAccountWithBalance(accountName string) {
@ -139,7 +139,7 @@ func CreateBond(s *IntegrationTestSuite) {
}
}
func GetBondId(s *IntegrationTestSuite) string {
func GetBondID(s *IntegrationTestSuite) string {
cmd := bondcli.GetQueryBondLists()
val := s.network.Validators[0]
sr := s.Require()
@ -153,7 +153,7 @@ func GetBondId(s *IntegrationTestSuite) string {
// extract bond id from bonds list
bond := queryResponse.GetBonds()[0]
return bond.GetId()
return bond.GetID()
}
func (s *IntegrationTestSuite) TestGetCmdSetRecord() {
@ -195,12 +195,12 @@ func (s *IntegrationTestSuite) TestGetCmdSetRecord() {
// create the bond
CreateBond(s)
// get the bond id from bond list
bondId := GetBondId(s)
bondID := GetBondID(s)
dir, err := os.Getwd()
sr.NoError(err)
payloadPath := dir + "/example1.yml"
tc.args = append([]string{payloadPath, bondId}, tc.args...)
tc.args = append([]string{payloadPath, bondID}, tc.args...)
}
clientCtx := val.ClientCtx
cmd := cli.GetCmdSetRecord()
@ -345,11 +345,11 @@ func (s *IntegrationTestSuite) TestGetCmdSetName() {
CreateBond(s)
// Get the bond-id
bondId := GetBondId(s)
bondID := GetBondID(s)
// adding bond-id to name authority
args = []string{
authorityName, bondId,
authorityName, bondID,
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
@ -455,8 +455,8 @@ func (s *IntegrationTestSuite) TestGetCmdSetAuthorityBond() {
// creating the bond
CreateBond(s)
// getting the bond-id
bondId := GetBondId(s)
tc.args = append([]string{authorityName, bondId}, tc.args...)
bondID := GetBondID(s)
tc.args = append([]string{authorityName, bondID}, tc.args...)
}
clientCtx := val.ClientCtx
cmd := cli.GetCmdSetAuthorityBond()
@ -577,13 +577,13 @@ func (s *IntegrationTestSuite) TestGetCmdDissociateBond() {
// create the bond
CreateBond(s)
// get the bond id from bond list
bondId := GetBondId(s)
bondID := GetBondID(s)
dir, err := os.Getwd()
sr.NoError(err)
payloadPath := dir + "/example1.yml"
args := []string{
payloadPath, bondId,
payloadPath, bondID,
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
@ -609,7 +609,7 @@ func (s *IntegrationTestSuite) TestGetCmdDissociateBond() {
var records []nstypes.RecordType
err = json.Unmarshal(out.Bytes(), &records)
sr.NoError(err)
return records[0].Id
return records[0].ID
},
func(recordId string, s *IntegrationTestSuite) {
// checking the bond-id removed or not
@ -618,7 +618,7 @@ func (s *IntegrationTestSuite) TestGetCmdDissociateBond() {
cmd := cli.GetCmdGetResource()
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, args)
sr.NoError(err)
var response nstypes.QueryRecordByIdResponse
var response nstypes.QueryRecordByIDResponse
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &response)
sr.NoError(err)
record := response.GetRecord()
@ -630,10 +630,10 @@ func (s *IntegrationTestSuite) TestGetCmdDissociateBond() {
for _, tc := range testCasesForDeletingName {
s.Run(fmt.Sprintf("Case %s", tc.name), func() {
var recordId string
var recordID string
if !tc.err {
recordId = tc.preRun(s)
tc.args = append([]string{recordId}, tc.args...)
recordID = tc.preRun(s)
tc.args = append([]string{recordID}, tc.args...)
}
clientCtx := val.ClientCtx
cmd := cli.GetCmdDissociateBond()
@ -648,7 +648,7 @@ func (s *IntegrationTestSuite) TestGetCmdDissociateBond() {
sr.NoError(err)
sr.Zero(d.Code)
// post-run
tc.postRun(recordId, s)
tc.postRun(recordID, s)
}
})
}
@ -819,13 +819,13 @@ func (s *IntegrationTestSuite) TestGetCmdAssociateBond() {
// create the bond
CreateBond(s)
// get the bond id from bond list
bondId := GetBondId(s)
bondID := GetBondID(s)
dir, err := os.Getwd()
sr.NoError(err)
payloadPath := dir + "/example1.yml"
txArgs := []string{
payloadPath, bondId,
payloadPath, bondID,
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
@ -854,14 +854,14 @@ func (s *IntegrationTestSuite) TestGetCmdAssociateBond() {
// GetCmdDissociateBond bond
cmd = cli.GetCmdDissociateBond()
txArgs = append([]string{records[0].Id}, txArgs[2:]...)
txArgs = append([]string{records[0].ID}, txArgs[2:]...)
out, err = clitestutil.ExecTestCLICmd(clientCtx, cmd, txArgs)
sr.NoError(err)
err = val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &d)
sr.NoError(err)
sr.Zero(d.Code)
return records[0].Id, records[0].BondId
return records[0].ID, records[0].BondID
},
func(recordId, bondId string, s *IntegrationTestSuite) {
// checking the bond-id removed or not
@ -870,7 +870,7 @@ func (s *IntegrationTestSuite) TestGetCmdAssociateBond() {
cmd := cli.GetCmdGetResource()
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, args)
sr.NoError(err)
var response nstypes.QueryRecordByIdResponse
var response nstypes.QueryRecordByIDResponse
err = clientCtx.Codec.UnmarshalJSON(out.Bytes(), &response)
sr.NoError(err)
record := response.GetRecord()
@ -882,11 +882,11 @@ func (s *IntegrationTestSuite) TestGetCmdAssociateBond() {
for _, tc := range testCasesForDeletingName {
s.Run(fmt.Sprintf("Case %s", tc.name), func() {
var recordId string
var bondId string
var recordID string
var bondID string
if !tc.err {
recordId, bondId = tc.preRun(s)
tc.args = append([]string{recordId, bondId}, tc.args...)
recordID, bondID = tc.preRun(s)
tc.args = append([]string{recordID, bondID}, tc.args...)
}
clientCtx := val.ClientCtx
cmd := cli.GetCmdAssociateBond()
@ -901,7 +901,7 @@ func (s *IntegrationTestSuite) TestGetCmdAssociateBond() {
sr.NoError(err)
sr.Zero(d.Code)
// post-run
tc.postRun(recordId, bondId, s)
tc.postRun(recordID, bondID, s)
}
})
}

View File

@ -63,7 +63,7 @@ func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) types.GenesisState {
for name, record := range authorities {
authorityEntries = append(authorityEntries, types.AuthorityEntry{
Name: name,
Entry: &record,
Entry: &record, //nolint: all
})
}

View File

@ -30,8 +30,7 @@ func (q Querier) ListRecords(c context.Context, req *types.QueryListRecordsReque
ctx := sdk.UnwrapSDKContext(c)
attributes := req.GetAttributes()
all := req.GetAll()
records := []types.Record{}
var records []types.Record
if len(attributes) > 0 {
records = q.Keeper.MatchRecords(ctx, func(record *types.RecordType) bool {
return MatchOnAttributes(record, attributes, all)
@ -43,20 +42,20 @@ func (q Querier) ListRecords(c context.Context, req *types.QueryListRecordsReque
return &types.QueryListRecordsResponse{Records: records}, nil
}
func (q Querier) GetRecord(c context.Context, req *types.QueryRecordByIdRequest) (*types.QueryRecordByIdResponse, error) {
func (q Querier) GetRecord(c context.Context, req *types.QueryRecordByIDRequest) (*types.QueryRecordByIDResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
id := req.GetId()
if !q.Keeper.HasRecord(ctx, id) {
return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "Record not found.")
}
record := q.Keeper.GetRecord(ctx, id)
return &types.QueryRecordByIdResponse{Record: record}, nil
return &types.QueryRecordByIDResponse{Record: record}, nil
}
func (q Querier) GetRecordByBondId(c context.Context, req *types.QueryRecordByBondIdRequest) (*types.QueryRecordByBondIdResponse, error) {
func (q Querier) GetRecordByBondID(c context.Context, req *types.QueryRecordByBondIDRequest) (*types.QueryRecordByBondIDResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
records := q.recordKeeper.QueryRecordsByBond(ctx, req.GetId())
return &types.QueryRecordByBondIdResponse{Records: records}, nil
return &types.QueryRecordByBondIDResponse{Records: records}, nil
}
func (q Querier) GetNameServiceModuleBalance(c context.Context, _ *types.GetNameServiceModuleBalanceRequest) (*types.GetNameServiceModuleBalanceResponse, error) {
@ -122,7 +121,7 @@ func matchOnRecordField(record *types.RecordType, attr *types.QueryListRecordsRe
case BondIDAttributeName:
{
fieldFound = true
if record.BondId != attr.Value.GetString_() {
if record.BondID != attr.Value.GetString_() {
matched = false
return
}

View File

@ -64,12 +64,12 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
payload, err := cli.GetPayloadFromFile(dir + "/../helpers/examples/example1.yml")
sr.NoError(err)
record, err := suite.app.NameServiceKeeper.ProcessSetRecord(ctx, nameservicetypes.MsgSetRecord{
BondId: suite.bond.GetId(),
BondId: suite.bond.GetID(),
Signer: suite.accounts[0].String(),
Payload: payload.ToPayload(),
})
sr.NoError(err)
sr.NotNil(record.Id)
sr.NotNil(record.ID)
}
resp, err := grpcClient.ListRecords(context.Background(), test.req)
if test.expErr {
@ -78,9 +78,9 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
sr.NoError(err)
sr.Equal(test.noOfRecords, len(resp.GetRecords()))
if test.createRecord {
recordId = resp.GetRecords()[0].GetId()
recordId = resp.GetRecords()[0].GetID()
sr.NotZero(resp.GetRecords())
sr.Equal(resp.GetRecords()[0].GetBondId(), suite.bond.GetId())
sr.Equal(resp.GetRecords()[0].GetBondId(), suite.bond.GetID())
}
}
})
@ -89,21 +89,21 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
// Get the records by record id
testCases1 := []struct {
msg string
req *nameservicetypes.QueryRecordByIdRequest
req *nameservicetypes.QueryRecordByIDRequest
createRecord bool
expErr bool
noOfRecords int
}{
{
"Invalid Request without record id",
&nameservicetypes.QueryRecordByIdRequest{},
&nameservicetypes.QueryRecordByIDRequest{},
false,
true,
0,
},
{
"With Record ID",
&nameservicetypes.QueryRecordByIdRequest{
&nameservicetypes.QueryRecordByIDRequest{
Id: recordId,
},
true,
@ -120,7 +120,7 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
sr.NoError(err)
sr.NotNil(resp.GetRecord())
if test.createRecord {
sr.Equal(resp.GetRecord().BondId, suite.bond.GetId())
sr.Equal(resp.GetRecord().BondId, suite.bond.GetID())
sr.Equal(resp.GetRecord().Id, recordId)
}
}
@ -130,22 +130,22 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
// Get the records by record id
testCasesByBondID := []struct {
msg string
req *nameservicetypes.QueryRecordByBondIdRequest
req *nameservicetypes.QueryRecordByBondIDRequest
createRecord bool
expErr bool
noOfRecords int
}{
{
"Invalid Request without bond id",
&nameservicetypes.QueryRecordByBondIdRequest{},
&nameservicetypes.QueryRecordByBondIDRequest{},
false,
true,
0,
},
{
"With Bond ID",
&nameservicetypes.QueryRecordByBondIdRequest{
Id: suite.bond.GetId(),
&nameservicetypes.QueryRecordByBondIDRequest{
Id: suite.bond.GetID(),
},
true,
false,
@ -154,7 +154,7 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
}
for _, test := range testCasesByBondID {
suite.Run(fmt.Sprintf("Case %s ", test.msg), func() {
resp, err := grpcClient.GetRecordByBondId(context.Background(), test.req)
resp, err := grpcClient.GetRecordByBondID(context.Background(), test.req)
if test.expErr {
sr.Zero(resp.GetRecords())
} else {
@ -162,7 +162,7 @@ func (suite *KeeperTestSuite) TestGrpcGetRecordLists() {
sr.NotNil(resp.GetRecords())
if test.createRecord {
sr.NotZero(resp.GetRecords())
sr.Equal(resp.GetRecords()[0].GetBondId(), suite.bond.GetId())
sr.Equal(resp.GetRecords()[0].GetBondId(), suite.bond.GetID())
}
}
})
@ -195,12 +195,12 @@ func (suite *KeeperTestSuite) TestGrpcQueryNameserviceModuleBalance() {
payload, err := cli.GetPayloadFromFile(dir + "/../helpers/examples/example1.yml")
sr.NoError(err)
record, err := suite.app.NameServiceKeeper.ProcessSetRecord(ctx, nameservicetypes.MsgSetRecord{
BondId: suite.bond.GetId(),
BondId: suite.bond.GetID(),
Signer: suite.accounts[0].String(),
Payload: payload.ToPayload(),
})
sr.NoError(err)
sr.NotNil(record.Id)
sr.NotNil(record.ID)
}
resp, err := grpcClient.GetNameServiceModuleBalance(context.Background(), test.req)
if test.expErr {

View File

@ -175,7 +175,7 @@ func (k Keeper) GetRecordExpiryQueue(ctx sdk.Context) []*types.ExpiryQueueRecord
// ProcessSetRecord creates a record.
func (k Keeper) ProcessSetRecord(ctx sdk.Context, msg types.MsgSetRecord) (*types.RecordType, error) {
payload := msg.Payload.ToReadablePayload()
record := types.RecordType{Attributes: payload.Record, BondId: msg.BondId}
record := types.RecordType{Attributes: payload.Record, BondID: msg.BondId}
// Check signatures.
resourceSignBytes, _ := record.GetSignBytes()
@ -184,9 +184,9 @@ func (k Keeper) ProcessSetRecord(ctx sdk.Context, msg types.MsgSetRecord) (*type
return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Invalid record JSON")
}
record.Id = cid
record.ID = cid
if exists := k.HasRecord(ctx, record.Id); exists {
if exists := k.HasRecord(ctx, record.ID); exists {
// Immutable record already exists. No-op.
return &record, nil
}
@ -220,7 +220,7 @@ func (k Keeper) processRecord(ctx sdk.Context, record *types.RecordType, isRenew
params := k.GetParams(ctx)
rent := params.RecordRent
err := k.bondKeeper.TransferCoinsToModuleAccount(ctx, record.BondId, types.RecordRentModuleAccountName, sdk.NewCoins(rent))
err := k.bondKeeper.TransferCoinsToModuleAccount(ctx, record.BondID, types.RecordRentModuleAccountName, sdk.NewCoins(rent))
if err != nil {
return err
}
@ -234,7 +234,7 @@ func (k Keeper) processRecord(ctx sdk.Context, record *types.RecordType, isRenew
// Renewal doesn't change the name and bond indexes.
if !isRenewal {
k.AddBondToRecordIndexEntry(ctx, record.BondId, record.Id)
k.AddBondToRecordIndexEntry(ctx, record.BondID, record.ID)
}
return nil

View File

@ -38,7 +38,7 @@ func (m msgServer) SetRecord(c context.Context, msg *types.MsgSetRecord) (*types
sdk.NewEvent(
types.EventTypeSetRecord,
sdk.NewAttribute(types.AttributeKeySigner, msg.GetSigner()),
sdk.NewAttribute(types.AttributeKeyBondId, msg.GetBondId()),
sdk.NewAttribute(types.AttributeKeyBondID, msg.GetBondId()),
sdk.NewAttribute(types.AttributeKeyPayload, msg.Payload.String()),
),
sdk.NewEvent(
@ -48,7 +48,7 @@ func (m msgServer) SetRecord(c context.Context, msg *types.MsgSetRecord) (*types
),
})
return &types.MsgSetRecordResponse{Id: record.Id}, nil
return &types.MsgSetRecordResponse{Id: record.ID}, nil
}
//nolint: all
@ -124,7 +124,7 @@ func (m msgServer) SetAuthorityBond(c context.Context, msg *types.MsgSetAuthorit
types.EventTypeAuthorityBond,
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(types.AttributeKeyName, msg.Name),
sdk.NewAttribute(types.AttributeKeyBondId, msg.BondId),
sdk.NewAttribute(types.AttributeKeyBondID, msg.BondId),
),
sdk.NewEvent(
sdk.EventTypeMessage,
@ -163,6 +163,9 @@ func (m msgServer) DeleteName(c context.Context, msg *types.MsgDeleteNameAuthori
func (m msgServer) RenewRecord(c context.Context, msg *types.MsgRenewRecord) (*types.MsgRenewRecordResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
_, err := sdk.AccAddressFromBech32(msg.Signer)
if err != nil {
return nil, err
}
err = m.Keeper.ProcessRenewRecord(ctx, *msg)
if err != nil {
return nil, err
@ -171,7 +174,7 @@ func (m msgServer) RenewRecord(c context.Context, msg *types.MsgRenewRecord) (*t
sdk.NewEvent(
types.EventTypeRenewRecord,
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(types.AttributeKeyRecordId, msg.RecordId),
sdk.NewAttribute(types.AttributeKeyRecordID, msg.RecordId),
),
sdk.NewEvent(
sdk.EventTypeMessage,
@ -198,8 +201,8 @@ func (m msgServer) AssociateBond(c context.Context, msg *types.MsgAssociateBond)
sdk.NewEvent(
types.EventTypeAssociateBond,
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(types.AttributeKeyRecordId, msg.RecordId),
sdk.NewAttribute(types.AttributeKeyBondId, msg.BondId),
sdk.NewAttribute(types.AttributeKeyRecordID, msg.RecordId),
sdk.NewAttribute(types.AttributeKeyBondID, msg.BondId),
),
sdk.NewEvent(
sdk.EventTypeMessage,
@ -224,7 +227,7 @@ func (m msgServer) DissociateBond(c context.Context, msg *types.MsgDissociateBon
sdk.NewEvent(
types.EventTypeDissociateBond,
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(types.AttributeKeyRecordId, msg.RecordId),
sdk.NewAttribute(types.AttributeKeyRecordID, msg.RecordId),
),
sdk.NewEvent(
sdk.EventTypeMessage,
@ -249,7 +252,7 @@ func (m msgServer) DissociateRecords(c context.Context, msg *types.MsgDissociate
sdk.NewEvent(
types.EventTypeDissociateRecords,
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(types.AttributeKeyBondId, msg.BondId),
sdk.NewAttribute(types.AttributeKeyBondID, msg.BondId),
),
sdk.NewEvent(
sdk.EventTypeMessage,
@ -260,19 +263,23 @@ func (m msgServer) DissociateRecords(c context.Context, msg *types.MsgDissociate
return &types.MsgDissociateRecordsResponse{}, nil
}
func (m msgServer) ReAssociateRecords(c context.Context, msg *types.MsgReAssociateRecords) (*types.MsgReAssociateRecordsResponse, error) {
func (m msgServer) ReAssociateRecords(c context.Context, msg *types.MsgReAssociateRecords) (*types.MsgReAssociateRecordsResponse, error) { //nolint: all
ctx := sdk.UnwrapSDKContext(c)
_, err := sdk.AccAddressFromBech32(msg.Signer)
if err != nil {
return nil, err
}
err = m.Keeper.ProcessReAssociateRecords(ctx, *msg)
if err != nil {
return nil, err
}
ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
types.EventTypeReAssociateRecords,
sdk.NewAttribute(types.AttributeKeySigner, msg.Signer),
sdk.NewAttribute(types.AttributeKeyOldBondId, msg.OldBondId),
sdk.NewAttribute(types.AttributeKeyNewBondId, msg.NewBondId),
sdk.NewAttribute(types.AttributeKeyOldBondID, msg.OldBondId),
sdk.NewAttribute(types.AttributeKeyNewBondID, msg.NewBondId),
),
sdk.NewEvent(
sdk.EventTypeMessage,

View File

@ -651,7 +651,6 @@ func (k Keeper) GetAllExpiredAuthorities(ctx sdk.Context, currTime time.Time) (e
defer itr.Close()
for ; itr.Valid(); itr.Next() {
timeslice := []string{}
timeslice, err := helpers.BytesArrToStringArr(itr.Value())
if err != nil {
panic(err)

View File

@ -25,8 +25,8 @@ func (k RecordKeeper) UsesAuction(ctx sdk.Context, auctionID string) bool {
return k.GetAuctionToAuthorityMapping(ctx, auctionID) != ""
}
func (k RecordKeeper) OnAuction(ctx sdk.Context, auctionId string) {
updateBlockChangeSetForAuction(ctx, k, auctionId)
func (k RecordKeeper) OnAuction(ctx sdk.Context, auctionID string) {
updateBlockChangeSetForAuction(ctx, k, auctionID)
}
func (k RecordKeeper) OnAuctionBid(ctx sdk.Context, auctionID string, bidderAddress string) {
@ -111,8 +111,8 @@ func (k RecordKeeper) GetAuctionToAuthorityMapping(ctx sdk.Context, auctionID st
}
// UsesBond returns true if the bond has associated records.
func (k RecordKeeper) UsesBond(ctx sdk.Context, bondId string) bool {
bondIDPrefix := append(PrefixBondIDToRecordsIndex, []byte(bondId)...) //nolint: all
func (k RecordKeeper) UsesBond(ctx sdk.Context, bondID string) bool {
bondIDPrefix := append(PrefixBondIDToRecordsIndex, []byte(bondID)...) //nolint: all
store := ctx.KVStore(k.storeKey)
itr := sdk.KVStorePrefixIterator(store, bondIDPrefix)
defer itr.Close()

View File

@ -13,13 +13,13 @@ const (
AttributeKeySigner = "signer"
AttributeKeyOwner = "owner"
AttributeKeyBondId = "bond-id"
AttributeKeyBondID = "bond-id"
AttributeKeyPayload = "payload"
AttributeKeyOldBondId = "old-bond-id"
AttributeKeyNewBondId = "new-bond-id"
AttributeKeyOldBondID = "old-bond-id"
AttributeKeyNewBondID = "new-bond-id"
AttributeKeyCID = "cid"
AttributeKeyName = "name"
AttributeKeyCRN = "crn"
AttributeKeyRecordId = "record-id"
AttributeKeyRecordID = "record-id"
AttributeValueCategory = ModuleName
)

View File

@ -99,11 +99,11 @@ func (msg MsgReserveAuthority) GetSigners() []sdk.AccAddress {
}
// NewMsgSetAuthorityBond is the constructor function for MsgSetAuthorityBond.
func NewMsgSetAuthorityBond(name string, bondId string, signer sdk.AccAddress) MsgSetAuthorityBond {
func NewMsgSetAuthorityBond(name string, bondID string, signer sdk.AccAddress) MsgSetAuthorityBond {
return MsgSetAuthorityBond{
Name: name,
Signer: signer.String(),
BondId: bondId,
BondId: bondID,
}
}

View File

@ -199,7 +199,7 @@ func (m *Record) XXX_DiscardUnknown() {
var xxx_messageInfo_Record proto.InternalMessageInfo
func (m *Record) GetId() string {
func (m *Record) GetID() string {
if m != nil {
return m.Id
}

View File

@ -421,23 +421,23 @@ func (m *QueryListRecordsResponse) GetPagination() *query.PageResponse {
return nil
}
// QueryRecordByIdRequest is request type for nameservice records by id
type QueryRecordByIdRequest struct {
// QueryRecordByIDRequest is request type for nameservice records by id
type QueryRecordByIDRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *QueryRecordByIdRequest) Reset() { *m = QueryRecordByIdRequest{} }
func (m *QueryRecordByIdRequest) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByIdRequest) ProtoMessage() {}
func (*QueryRecordByIdRequest) Descriptor() ([]byte, []int) {
func (m *QueryRecordByIDRequest) Reset() { *m = QueryRecordByIDRequest{} }
func (m *QueryRecordByIDRequest) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByIDRequest) ProtoMessage() {}
func (*QueryRecordByIDRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_73d2465766c8f876, []int{4}
}
func (m *QueryRecordByIdRequest) XXX_Unmarshal(b []byte) error {
func (m *QueryRecordByIDRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryRecordByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
func (m *QueryRecordByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryRecordByIdRequest.Marshal(b, m, deterministic)
return xxx_messageInfo_QueryRecordByIDRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@ -447,42 +447,42 @@ func (m *QueryRecordByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]by
return b[:n], nil
}
}
func (m *QueryRecordByIdRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByIdRequest.Merge(m, src)
func (m *QueryRecordByIDRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByIDRequest.Merge(m, src)
}
func (m *QueryRecordByIdRequest) XXX_Size() int {
func (m *QueryRecordByIDRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryRecordByIdRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByIdRequest.DiscardUnknown(m)
func (m *QueryRecordByIDRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByIDRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryRecordByIdRequest proto.InternalMessageInfo
var xxx_messageInfo_QueryRecordByIDRequest proto.InternalMessageInfo
func (m *QueryRecordByIdRequest) GetId() string {
func (m *QueryRecordByIDRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
// QueryRecordByIdResponse is response type for nameservice records by id
type QueryRecordByIdResponse struct {
// QueryRecordByIDResponse is response type for nameservice records by id
type QueryRecordByIDResponse struct {
Record Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record"`
}
func (m *QueryRecordByIdResponse) Reset() { *m = QueryRecordByIdResponse{} }
func (m *QueryRecordByIdResponse) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByIdResponse) ProtoMessage() {}
func (*QueryRecordByIdResponse) Descriptor() ([]byte, []int) {
func (m *QueryRecordByIDResponse) Reset() { *m = QueryRecordByIDResponse{} }
func (m *QueryRecordByIDResponse) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByIDResponse) ProtoMessage() {}
func (*QueryRecordByIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_73d2465766c8f876, []int{5}
}
func (m *QueryRecordByIdResponse) XXX_Unmarshal(b []byte) error {
func (m *QueryRecordByIDResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryRecordByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
func (m *QueryRecordByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryRecordByIdResponse.Marshal(b, m, deterministic)
return xxx_messageInfo_QueryRecordByIDResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@ -492,19 +492,19 @@ func (m *QueryRecordByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]b
return b[:n], nil
}
}
func (m *QueryRecordByIdResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByIdResponse.Merge(m, src)
func (m *QueryRecordByIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByIDResponse.Merge(m, src)
}
func (m *QueryRecordByIdResponse) XXX_Size() int {
func (m *QueryRecordByIDResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryRecordByIdResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByIdResponse.DiscardUnknown(m)
func (m *QueryRecordByIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryRecordByIdResponse proto.InternalMessageInfo
var xxx_messageInfo_QueryRecordByIDResponse proto.InternalMessageInfo
func (m *QueryRecordByIdResponse) GetRecord() Record {
func (m *QueryRecordByIDResponse) GetRecord() Record {
if m != nil {
return m.Record
}
@ -512,24 +512,24 @@ func (m *QueryRecordByIdResponse) GetRecord() Record {
}
// QueryRecordByBondIdRequest is request type for get the records by bond-id
type QueryRecordByBondIdRequest struct {
type QueryRecordByBondIDRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// pagination defines an optional pagination for the request.
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (m *QueryRecordByBondIdRequest) Reset() { *m = QueryRecordByBondIdRequest{} }
func (m *QueryRecordByBondIdRequest) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByBondIdRequest) ProtoMessage() {}
func (*QueryRecordByBondIdRequest) Descriptor() ([]byte, []int) {
func (m *QueryRecordByBondIDRequest) Reset() { *m = QueryRecordByBondIDRequest{} }
func (m *QueryRecordByBondIDRequest) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByBondIDRequest) ProtoMessage() {}
func (*QueryRecordByBondIDRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_73d2465766c8f876, []int{6}
}
func (m *QueryRecordByBondIdRequest) XXX_Unmarshal(b []byte) error {
func (m *QueryRecordByBondIDRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryRecordByBondIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
func (m *QueryRecordByBondIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryRecordByBondIdRequest.Marshal(b, m, deterministic)
return xxx_messageInfo_QueryRecordByBondIDRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@ -539,26 +539,26 @@ func (m *QueryRecordByBondIdRequest) XXX_Marshal(b []byte, deterministic bool) (
return b[:n], nil
}
}
func (m *QueryRecordByBondIdRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByBondIdRequest.Merge(m, src)
func (m *QueryRecordByBondIDRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByBondIDRequest.Merge(m, src)
}
func (m *QueryRecordByBondIdRequest) XXX_Size() int {
func (m *QueryRecordByBondIDRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryRecordByBondIdRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByBondIdRequest.DiscardUnknown(m)
func (m *QueryRecordByBondIDRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByBondIDRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryRecordByBondIdRequest proto.InternalMessageInfo
var xxx_messageInfo_QueryRecordByBondIDRequest proto.InternalMessageInfo
func (m *QueryRecordByBondIdRequest) GetId() string {
func (m *QueryRecordByBondIDRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *QueryRecordByBondIdRequest) GetPagination() *query.PageRequest {
func (m *QueryRecordByBondIDRequest) GetPagination() *query.PageRequest {
if m != nil {
return m.Pagination
}
@ -566,24 +566,24 @@ func (m *QueryRecordByBondIdRequest) GetPagination() *query.PageRequest {
}
// QueryRecordByBondIdResponse is response type for records list by bond-id
type QueryRecordByBondIdResponse struct {
type QueryRecordByBondIDResponse struct {
Records []Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records"`
// pagination defines the pagination in the response.
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (m *QueryRecordByBondIdResponse) Reset() { *m = QueryRecordByBondIdResponse{} }
func (m *QueryRecordByBondIdResponse) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByBondIdResponse) ProtoMessage() {}
func (*QueryRecordByBondIdResponse) Descriptor() ([]byte, []int) {
func (m *QueryRecordByBondIDResponse) Reset() { *m = QueryRecordByBondIDResponse{} }
func (m *QueryRecordByBondIDResponse) String() string { return proto.CompactTextString(m) }
func (*QueryRecordByBondIDResponse) ProtoMessage() {}
func (*QueryRecordByBondIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_73d2465766c8f876, []int{7}
}
func (m *QueryRecordByBondIdResponse) XXX_Unmarshal(b []byte) error {
func (m *QueryRecordByBondIDResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryRecordByBondIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
func (m *QueryRecordByBondIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryRecordByBondIdResponse.Marshal(b, m, deterministic)
return xxx_messageInfo_QueryRecordByBondIDResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@ -593,26 +593,26 @@ func (m *QueryRecordByBondIdResponse) XXX_Marshal(b []byte, deterministic bool)
return b[:n], nil
}
}
func (m *QueryRecordByBondIdResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByBondIdResponse.Merge(m, src)
func (m *QueryRecordByBondIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRecordByBondIDResponse.Merge(m, src)
}
func (m *QueryRecordByBondIdResponse) XXX_Size() int {
func (m *QueryRecordByBondIDResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryRecordByBondIdResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByBondIdResponse.DiscardUnknown(m)
func (m *QueryRecordByBondIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRecordByBondIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryRecordByBondIdResponse proto.InternalMessageInfo
var xxx_messageInfo_QueryRecordByBondIDResponse proto.InternalMessageInfo
func (m *QueryRecordByBondIdResponse) GetRecords() []Record {
func (m *QueryRecordByBondIDResponse) GetRecords() []Record {
if m != nil {
return m.Records
}
return nil
}
func (m *QueryRecordByBondIdResponse) GetPagination() *query.PageResponse {
func (m *QueryRecordByBondIDResponse) GetPagination() *query.PageResponse {
if m != nil {
return m.Pagination
}
@ -1385,10 +1385,10 @@ func init() {
proto.RegisterType((*QueryListRecordsRequest_ValueInput)(nil), "vulcanize.nameservice.v1beta1.QueryListRecordsRequest.ValueInput")
proto.RegisterType((*QueryListRecordsRequest_KeyValueInput)(nil), "vulcanize.nameservice.v1beta1.QueryListRecordsRequest.KeyValueInput")
proto.RegisterType((*QueryListRecordsResponse)(nil), "vulcanize.nameservice.v1beta1.QueryListRecordsResponse")
proto.RegisterType((*QueryRecordByIdRequest)(nil), "vulcanize.nameservice.v1beta1.QueryRecordByIdRequest")
proto.RegisterType((*QueryRecordByIdResponse)(nil), "vulcanize.nameservice.v1beta1.QueryRecordByIdResponse")
proto.RegisterType((*QueryRecordByBondIdRequest)(nil), "vulcanize.nameservice.v1beta1.QueryRecordByBondIdRequest")
proto.RegisterType((*QueryRecordByBondIdResponse)(nil), "vulcanize.nameservice.v1beta1.QueryRecordByBondIdResponse")
proto.RegisterType((*QueryRecordByIDRequest)(nil), "vulcanize.nameservice.v1beta1.QueryRecordByIDRequest")
proto.RegisterType((*QueryRecordByIDResponse)(nil), "vulcanize.nameservice.v1beta1.QueryRecordByIDResponse")
proto.RegisterType((*QueryRecordByBondIDRequest)(nil), "vulcanize.nameservice.v1beta1.QueryRecordByBondIDRequest")
proto.RegisterType((*QueryRecordByBondIDResponse)(nil), "vulcanize.nameservice.v1beta1.QueryRecordByBondIDResponse")
proto.RegisterType((*GetNameServiceModuleBalanceRequest)(nil), "vulcanize.nameservice.v1beta1.GetNameServiceModuleBalanceRequest")
proto.RegisterType((*GetNameServiceModuleBalanceResponse)(nil), "vulcanize.nameservice.v1beta1.GetNameServiceModuleBalanceResponse")
proto.RegisterType((*AccountBalance)(nil), "vulcanize.nameservice.v1beta1.AccountBalance")
@ -1414,93 +1414,93 @@ func init() {
var fileDescriptor_73d2465766c8f876 = []byte{
// 1411 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4b, 0x6c, 0x1b, 0xc5,
0x1b, 0xcf, 0x24, 0xb1, 0xd3, 0x7c, 0xf9, 0x37, 0xfd, 0x77, 0x88, 0x5a, 0x77, 0xdb, 0x3a, 0x61,
0xfb, 0x72, 0xa0, 0xde, 0x6d, 0x52, 0xfa, 0x16, 0x88, 0x3a, 0x0d, 0x51, 0xa0, 0x20, 0xba, 0x20,
0x0a, 0x1c, 0xa8, 0xd6, 0xbb, 0x53, 0x77, 0xe9, 0x7a, 0xc6, 0xdd, 0x47, 0xa8, 0x5b, 0xf5, 0xc2,
0xa1, 0x67, 0x24, 0xce, 0x20, 0x90, 0x38, 0x55, 0x02, 0x2e, 0x1c, 0x2a,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0x4d, 0x0b, 0x83, 0xa6, 0x89, 0xec, 0x77, 0x29, 0x35, 0x89, 0xf4,
0x63, 0x24, 0x34, 0x95, 0x79, 0x98, 0x31, 0xc8, 0x55, 0xe2, 0x12, 0x6a, 0x09, 0xbf, 0x78, 0x06,
0xc6, 0xed, 0x06, 0x0f, 0xd4, 0xb4, 0x31, 0x6e, 0x37, 0x94, 0x1f, 0xc7, 0x01, 0xba, 0xb0, 0x30,
0x86, 0x49, 0xbf, 0xd3, 0x26, 0x52, 0x80, 0xaf, 0xf1, 0x2e, 0xc8, 0x7b, 0xbe, 0x6b, 0xd3, 0x26,
0x47, 0x38, 0x6d, 0xc8, 0xa7, 0x10, 0xb6, 0x4d, 0x7d, 0x8e, 0x6e, 0xc2, 0x08, 0x97, 0x78, 0x16,
0x72, 0x57, 0x1d, 0x66, 0xfa, 0xc5, 0xc9, 0x79, 0x54, 0x46, 0x86, 0x78, 0xc0, 0x45, 0x98, 0xaa,
0x33, 0xe6, 0x10, 0x93, 0x16, 0x73, 0x9c, 0x62, 0xf4, 0x88, 0x2d, 0x98, 0x76, 0x23, 0x78, 0xc5,
0x3c, 0x67, 0xb9, 0x3c, 0x62, 0x74, 0xd3, 0x34, 0x8d, 0xae, 0x5d, 0xfc, 0x01, 0xe4, 0xd7, 0x42,
0x82, 0x5e, 0x71, 0x8a, 0xe7, 0xef, 0xfc, 0x88, 0x1e, 0x12, 0xc9, 0x93, 0x06, 0x95, 0x5b, 0xb0,
0x3d, 0x95, 0xd5, 0x30, 0x24, 0xd7, 0x49, 0x47, 0x46, 0x2f, 0x5c, 0xe2, 0xcb, 0x90, 0xe3, 0xc2,
0x3c, 0x76, 0x5b, 0xe2, 0x5c, 0xd8, 0x53, 0xef, 0x21, 0x28, 0xae, 0x97, 0x96, 0x2d, 0xb1, 0x0c,
0x53, 0xae, 0xd8, 0x92, 0x45, 0x3b, 0xa8, 0x27, 0x84, 0x81, 0xda, 0xe4, 0x83, 0x47, 0x73, 0x63,
0x46, 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, 0xd6, 0x63, 0x91, 0x7c, 0xd6, 0x13, 0xa5, 0x77, 0xe4, 0x19, 0xe2,
0xf8, 0xe3, 0xaa, 0xf8, 0x01, 0x82, 0xd9, 0xbe, 0xf3, 0xcd, 0xe9, 0x2c, 0x00, 0xfa, 0x69, 0x2a,
0xaf, 0x8e, 0xaa, 0x19, 0x93, 0x78, 0x89, 0x93, 0xd0, 0xf0, 0xd1, 0x4c, 0x87, 0x4a, 0x85, 0x70,
0x13, 0xe1, 0x51, 0xb2, 0x7b, 0xa3, 0x79, 0xe2, 0x5c, 0x46, 0x4c, 0xfd, 0x94, 0x95, 0xa5, 0x67,
0x50, 0x8e, 0x39, 0x9d, 0xe2, 0x9c, 0xaa, 0x58, 0x1f, 0xc0, 0x29, 0x1e, 0xf8, 0x25, 0xad, 0xda,
0xea, 0x83, 0xc7, 0x25, 0xf4, 0xf0, 0x71, 0x09, 0xfd, 0xf1, 0xb8, 0x84, 0x3e, 0x7b, 0x52, 0x1a,
0x7b, 0xf8, 0xa4, 0x34, 0xf6, 0xdb, 0x93, 0xd2, 0xd8, 0x87, 0x7a, 0xf2, 0xba, 0x46, 0x5c, 0xab,
0x62, 0x33, 0xdd, 0x31, 0x2d, 0x46, 0x6d, 0xab, 0xa1, 0xdf, 0x4c, 0x59, 0xe7, 0x77, 0xb7, 0x7a,
0x9e, 0xff, 0x6b, 0x79, 0xfc, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xeb, 0xee, 0x3b, 0x4b, 0xb2,
0x15, 0x00, 0x00,
}
@ -1521,9 +1521,9 @@ type QueryClient interface {
// List records
ListRecords(ctx context.Context, in *QueryListRecordsRequest, opts ...grpc.CallOption) (*QueryListRecordsResponse, error)
// Get record by id
GetRecord(ctx context.Context, in *QueryRecordByIdRequest, opts ...grpc.CallOption) (*QueryRecordByIdResponse, error)
GetRecord(ctx context.Context, in *QueryRecordByIDRequest, opts ...grpc.CallOption) (*QueryRecordByIDResponse, error)
// Get records by bond id
GetRecordByBondId(ctx context.Context, in *QueryRecordByBondIdRequest, opts ...grpc.CallOption) (*QueryRecordByBondIdResponse, error)
GetRecordByBondID(ctx context.Context, in *QueryRecordByBondIDRequest, opts ...grpc.CallOption) (*QueryRecordByBondIDResponse, error)
// Get nameservice module balance
GetNameServiceModuleBalance(ctx context.Context, in *GetNameServiceModuleBalanceRequest, opts ...grpc.CallOption) (*GetNameServiceModuleBalanceResponse, error)
// List name records
@ -1566,8 +1566,8 @@ func (c *queryClient) ListRecords(ctx context.Context, in *QueryListRecordsReque
return out, nil
}
func (c *queryClient) GetRecord(ctx context.Context, in *QueryRecordByIdRequest, opts ...grpc.CallOption) (*QueryRecordByIdResponse, error) {
out := new(QueryRecordByIdResponse)
func (c *queryClient) GetRecord(ctx context.Context, in *QueryRecordByIDRequest, opts ...grpc.CallOption) (*QueryRecordByIDResponse, error) {
out := new(QueryRecordByIDResponse)
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Query/GetRecord", in, out, opts...)
if err != nil {
return nil, err
@ -1575,9 +1575,9 @@ func (c *queryClient) GetRecord(ctx context.Context, in *QueryRecordByIdRequest,
return out, nil
}
func (c *queryClient) GetRecordByBondId(ctx context.Context, in *QueryRecordByBondIdRequest, opts ...grpc.CallOption) (*QueryRecordByBondIdResponse, error) {
out := new(QueryRecordByBondIdResponse)
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Query/GetRecordByBondId", in, out, opts...)
func (c *queryClient) GetRecordByBondID(ctx context.Context, in *QueryRecordByBondIDRequest, opts ...grpc.CallOption) (*QueryRecordByBondIDResponse, error) {
out := new(QueryRecordByBondIDResponse)
err := c.cc.Invoke(ctx, "/vulcanize.nameservice.v1beta1.Query/GetRecordByBondID", in, out, opts...)
if err != nil {
return nil, err
}
@ -1654,9 +1654,9 @@ type QueryServer interface {
// List records
ListRecords(context.Context, *QueryListRecordsRequest) (*QueryListRecordsResponse, error)
// Get record by id
GetRecord(context.Context, *QueryRecordByIdRequest) (*QueryRecordByIdResponse, error)
GetRecord(context.Context, *QueryRecordByIDRequest) (*QueryRecordByIDResponse, error)
// Get records by bond id
GetRecordByBondId(context.Context, *QueryRecordByBondIdRequest) (*QueryRecordByBondIdResponse, error)
GetRecordByBondID(context.Context, *QueryRecordByBondIDRequest) (*QueryRecordByBondIDResponse, error)
// Get nameservice module balance
GetNameServiceModuleBalance(context.Context, *GetNameServiceModuleBalanceRequest) (*GetNameServiceModuleBalanceResponse, error)
// List name records
@ -1683,11 +1683,11 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsReq
func (*UnimplementedQueryServer) ListRecords(ctx context.Context, req *QueryListRecordsRequest) (*QueryListRecordsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListRecords not implemented")
}
func (*UnimplementedQueryServer) GetRecord(ctx context.Context, req *QueryRecordByIdRequest) (*QueryRecordByIdResponse, error) {
func (*UnimplementedQueryServer) GetRecord(ctx context.Context, req *QueryRecordByIDRequest) (*QueryRecordByIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRecord not implemented")
}
func (*UnimplementedQueryServer) GetRecordByBondId(ctx context.Context, req *QueryRecordByBondIdRequest) (*QueryRecordByBondIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRecordByBondId not implemented")
func (*UnimplementedQueryServer) GetRecordByBondID(ctx context.Context, req *QueryRecordByBondIDRequest) (*QueryRecordByBondIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRecordByBondID not implemented")
}
func (*UnimplementedQueryServer) GetNameServiceModuleBalance(ctx context.Context, req *GetNameServiceModuleBalanceRequest) (*GetNameServiceModuleBalanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetNameServiceModuleBalance not implemented")
@ -1752,7 +1752,7 @@ func _Query_ListRecords_Handler(srv interface{}, ctx context.Context, dec func(i
}
func _Query_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRecordByIdRequest)
in := new(QueryRecordByIDRequest)
if err := dec(in); err != nil {
return nil, err
}
@ -1764,25 +1764,25 @@ func _Query_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(int
FullMethod: "/vulcanize.nameservice.v1beta1.Query/GetRecord",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetRecord(ctx, req.(*QueryRecordByIdRequest))
return srv.(QueryServer).GetRecord(ctx, req.(*QueryRecordByIDRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetRecordByBondId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRecordByBondIdRequest)
func _Query_GetRecordByBondID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRecordByBondIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetRecordByBondId(ctx, in)
return srv.(QueryServer).GetRecordByBondID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/vulcanize.nameservice.v1beta1.Query/GetRecordByBondId",
FullMethod: "/vulcanize.nameservice.v1beta1.Query/GetRecordByBondID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetRecordByBondId(ctx, req.(*QueryRecordByBondIdRequest))
return srv.(QueryServer).GetRecordByBondID(ctx, req.(*QueryRecordByBondIDRequest))
}
return interceptor(ctx, in, info, handler)
}
@ -1930,8 +1930,8 @@ var _Query_serviceDesc = grpc.ServiceDesc{
Handler: _Query_GetRecord_Handler,
},
{
MethodName: "GetRecordByBondId",
Handler: _Query_GetRecordByBondId_Handler,
MethodName: "GetRecordByBondID",
Handler: _Query_GetRecordByBondID_Handler,
},
{
MethodName: "GetNameServiceModuleBalance",
@ -2288,7 +2288,7 @@ func (m *QueryListRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error
return len(dAtA) - i, nil
}
func (m *QueryRecordByIdRequest) Marshal() (dAtA []byte, err error) {
func (m *QueryRecordByIDRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2298,12 +2298,12 @@ func (m *QueryRecordByIdRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
func (m *QueryRecordByIdRequest) MarshalTo(dAtA []byte) (int, error) {
func (m *QueryRecordByIDRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryRecordByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
func (m *QueryRecordByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@ -2318,7 +2318,7 @@ func (m *QueryRecordByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
return len(dAtA) - i, nil
}
func (m *QueryRecordByIdResponse) Marshal() (dAtA []byte, err error) {
func (m *QueryRecordByIDResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2328,12 +2328,12 @@ func (m *QueryRecordByIdResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
func (m *QueryRecordByIdResponse) MarshalTo(dAtA []byte) (int, error) {
func (m *QueryRecordByIDResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryRecordByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
func (m *QueryRecordByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@ -2351,7 +2351,7 @@ func (m *QueryRecordByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
return len(dAtA) - i, nil
}
func (m *QueryRecordByBondIdRequest) Marshal() (dAtA []byte, err error) {
func (m *QueryRecordByBondIDRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2361,12 +2361,12 @@ func (m *QueryRecordByBondIdRequest) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
func (m *QueryRecordByBondIdRequest) MarshalTo(dAtA []byte) (int, error) {
func (m *QueryRecordByBondIDRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryRecordByBondIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
func (m *QueryRecordByBondIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@ -2393,7 +2393,7 @@ func (m *QueryRecordByBondIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, err
return len(dAtA) - i, nil
}
func (m *QueryRecordByBondIdResponse) Marshal() (dAtA []byte, err error) {
func (m *QueryRecordByBondIDResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@ -2403,12 +2403,12 @@ func (m *QueryRecordByBondIdResponse) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
func (m *QueryRecordByBondIdResponse) MarshalTo(dAtA []byte) (int, error) {
func (m *QueryRecordByBondIDResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryRecordByBondIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
func (m *QueryRecordByBondIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@ -3170,7 +3170,7 @@ func (m *QueryListRecordsResponse) Size() (n int) {
return n
}
func (m *QueryRecordByIdRequest) Size() (n int) {
func (m *QueryRecordByIDRequest) Size() (n int) {
if m == nil {
return 0
}
@ -3183,7 +3183,7 @@ func (m *QueryRecordByIdRequest) Size() (n int) {
return n
}
func (m *QueryRecordByIdResponse) Size() (n int) {
func (m *QueryRecordByIDResponse) Size() (n int) {
if m == nil {
return 0
}
@ -3194,7 +3194,7 @@ func (m *QueryRecordByIdResponse) Size() (n int) {
return n
}
func (m *QueryRecordByBondIdRequest) Size() (n int) {
func (m *QueryRecordByBondIDRequest) Size() (n int) {
if m == nil {
return 0
}
@ -3211,7 +3211,7 @@ func (m *QueryRecordByBondIdRequest) Size() (n int) {
return n
}
func (m *QueryRecordByBondIdResponse) Size() (n int) {
func (m *QueryRecordByBondIDResponse) Size() (n int) {
if m == nil {
return 0
}
@ -4300,7 +4300,7 @@ func (m *QueryListRecordsResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *QueryRecordByIdRequest) Unmarshal(dAtA []byte) error {
func (m *QueryRecordByIDRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@ -4323,10 +4323,10 @@ func (m *QueryRecordByIdRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryRecordByIdRequest: wiretype end group for non-group")
return fmt.Errorf("proto: QueryRecordByIDRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRecordByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire)
return fmt.Errorf("proto: QueryRecordByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@ -4382,7 +4382,7 @@ func (m *QueryRecordByIdRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *QueryRecordByIdResponse) Unmarshal(dAtA []byte) error {
func (m *QueryRecordByIDResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@ -4405,10 +4405,10 @@ func (m *QueryRecordByIdResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryRecordByIdResponse: wiretype end group for non-group")
return fmt.Errorf("proto: QueryRecordByIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRecordByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire)
return fmt.Errorf("proto: QueryRecordByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@ -4465,7 +4465,7 @@ func (m *QueryRecordByIdResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *QueryRecordByBondIdRequest) Unmarshal(dAtA []byte) error {
func (m *QueryRecordByBondIDRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@ -4488,10 +4488,10 @@ func (m *QueryRecordByBondIdRequest) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryRecordByBondIdRequest: wiretype end group for non-group")
return fmt.Errorf("proto: QueryRecordByBondIDRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRecordByBondIdRequest: illegal tag %d (wire type %d)", fieldNum, wire)
return fmt.Errorf("proto: QueryRecordByBondIDRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@ -4583,7 +4583,7 @@ func (m *QueryRecordByBondIdRequest) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *QueryRecordByBondIdResponse) Unmarshal(dAtA []byte) error {
func (m *QueryRecordByBondIDResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@ -4606,10 +4606,10 @@ func (m *QueryRecordByBondIdResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryRecordByBondIdResponse: wiretype end group for non-group")
return fmt.Errorf("proto: QueryRecordByBondIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRecordByBondIdResponse: illegal tag %d (wire type %d)", fieldNum, wire)
return fmt.Errorf("proto: QueryRecordByBondIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:

View File

@ -86,7 +86,7 @@ func local_request_Query_ListRecords_0(ctx context.Context, marshaler runtime.Ma
}
func request_Query_GetRecord_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordByIdRequest
var protoReq QueryRecordByIDRequest
var metadata runtime.ServerMetadata
var (
@ -113,7 +113,7 @@ func request_Query_GetRecord_0(ctx context.Context, marshaler runtime.Marshaler,
}
func local_request_Query_GetRecord_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordByIdRequest
var protoReq QueryRecordByIDRequest
var metadata runtime.ServerMetadata
var (
@ -140,11 +140,11 @@ func local_request_Query_GetRecord_0(ctx context.Context, marshaler runtime.Mars
}
var (
filter_Query_GetRecordByBondId_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
filter_Query_GetRecordByBondID_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
)
func request_Query_GetRecordByBondId_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordByBondIdRequest
func request_Query_GetRecordByBondID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordByBondIDRequest
var metadata runtime.ServerMetadata
var (
@ -168,17 +168,17 @@ func request_Query_GetRecordByBondId_0(ctx context.Context, marshaler runtime.Ma
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetRecordByBondId_0); err != nil {
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetRecordByBondID_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.GetRecordByBondId(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
msg, err := client.GetRecordByBondID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_GetRecordByBondId_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordByBondIdRequest
func local_request_Query_GetRecordByBondID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRecordByBondIDRequest
var metadata runtime.ServerMetadata
var (
@ -202,11 +202,11 @@ func local_request_Query_GetRecordByBondId_0(ctx context.Context, marshaler runt
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetRecordByBondId_0); err != nil {
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetRecordByBondID_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.GetRecordByBondId(ctx, &protoReq)
msg, err := server.GetRecordByBondID(ctx, &protoReq)
return msg, metadata, err
}
@ -529,7 +529,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
})
mux.Handle("GET", pattern_Query_GetRecordByBondId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
mux.Handle("GET", pattern_Query_GetRecordByBondID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
@ -538,14 +538,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_GetRecordByBondId_0(rctx, inboundMarshaler, server, req, pathParams)
resp, md, err := local_request_Query_GetRecordByBondID_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_GetRecordByBondId_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
forward_Query_GetRecordByBondID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
@ -790,7 +790,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
})
mux.Handle("GET", pattern_Query_GetRecordByBondId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
mux.Handle("GET", pattern_Query_GetRecordByBondID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
@ -799,14 +799,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_GetRecordByBondId_0(rctx, inboundMarshaler, client, req, pathParams)
resp, md, err := request_Query_GetRecordByBondID_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_GetRecordByBondId_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
forward_Query_GetRecordByBondID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
@ -960,7 +960,7 @@ var (
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_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", "nameservice", "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)))
@ -984,7 +984,7 @@ var (
forward_Query_GetRecord_0 = runtime.ForwardResponseMessage
forward_Query_GetRecordByBondId_0 = runtime.ForwardResponseMessage
forward_Query_GetRecordByBondID_0 = runtime.ForwardResponseMessage
forward_Query_GetNameServiceModuleBalance_0 = runtime.ForwardResponseMessage

View File

@ -58,9 +58,9 @@ func (msg MsgSetRecord) GetSignBytes() []byte {
}
// NewMsgRenewRecord is the constructor function for MsgRenewRecord.
func NewMsgRenewRecord(recordId string, signer sdk.AccAddress) MsgRenewRecord {
func NewMsgRenewRecord(recordID string, signer sdk.AccAddress) MsgRenewRecord {
return MsgRenewRecord{
RecordId: recordId,
RecordId: recordID,
Signer: signer.String(),
}
}
@ -97,10 +97,10 @@ func (msg MsgRenewRecord) GetSigners() []sdk.AccAddress {
}
// NewMsgAssociateBond is the constructor function for MsgAssociateBond.
func NewMsgAssociateBond(recordId, bondId string, signer sdk.AccAddress) MsgAssociateBond {
func NewMsgAssociateBond(recordID, bondID string, signer sdk.AccAddress) MsgAssociateBond {
return MsgAssociateBond{
BondId: bondId,
RecordId: recordId,
BondId: bondID,
RecordId: recordID,
Signer: signer.String(),
}
}
@ -139,9 +139,9 @@ func (msg MsgAssociateBond) GetSigners() []sdk.AccAddress {
}
// NewMsgDissociateBond is the constructor function for MsgDissociateBond.
func NewMsgDissociateBond(recordId string, signer sdk.AccAddress) MsgDissociateBond {
func NewMsgDissociateBond(recordID string, signer sdk.AccAddress) MsgDissociateBond {
return MsgDissociateBond{
RecordId: recordId,
RecordId: recordID,
Signer: signer.String(),
}
}
@ -177,9 +177,9 @@ func (msg MsgDissociateBond) GetSigners() []sdk.AccAddress {
}
// NewMsgDissociateRecords is the constructor function for MsgDissociateRecords.
func NewMsgDissociateRecords(bondId string, signer sdk.AccAddress) MsgDissociateRecords {
func NewMsgDissociateRecords(bondID string, signer sdk.AccAddress) MsgDissociateRecords {
return MsgDissociateRecords{
BondId: bondId,
BondId: bondID,
Signer: signer.String(),
}
}
@ -215,10 +215,10 @@ func (msg MsgDissociateRecords) GetSigners() []sdk.AccAddress {
}
// NewMsgReAssociateRecords is the constructor function for MsgReAssociateRecords.
func NewMsgReAssociateRecords(oldBondId, newBondId string, signer sdk.AccAddress) MsgReAssociateRecords {
func NewMsgReAssociateRecords(oldBondID, newBondID string, signer sdk.AccAddress) MsgReAssociateRecords {
return MsgReAssociateRecords{
OldBondId: oldBondId,
NewBondId: newBondId,
OldBondId: oldBondID,
NewBondId: newBondID,
Signer: signer.String(),
}
}

View File

@ -50,8 +50,8 @@ func (payload Payload) ToReadablePayload() PayloadType {
func (r *Record) ToRecordType() RecordType {
var resourceObj RecordType
resourceObj.Id = r.Id
resourceObj.BondId = r.BondId
resourceObj.ID = r.Id
resourceObj.BondID = r.BondId
resourceObj.CreateTime = r.CreateTime
resourceObj.ExpiryTime = r.ExpiryTime
resourceObj.Deleted = r.Deleted
@ -64,9 +64,9 @@ func (r *Record) ToRecordType() RecordType {
// RecordType represents a WNS record.
type RecordType struct {
Id string `json:"id,omitempty"`
ID string `json:"id,omitempty"`
Names []string `json:"names,omitempty"`
BondId string `json:"bondId,omitempty"`
BondID string `json:"bondId,omitempty"`
CreateTime string `json:"createTime,omitempty"`
ExpiryTime string `json:"expiryTime,omitempty"`
Deleted bool `json:"deleted,omitempty"`
@ -79,8 +79,8 @@ type RecordType struct {
func (r *RecordType) ToRecordObj() Record {
var resourceObj Record
resourceObj.Id = r.Id
resourceObj.BondId = r.BondId
resourceObj.Id = r.ID
resourceObj.BondId = r.BondID
resourceObj.CreateTime = r.CreateTime
resourceObj.ExpiryTime = r.ExpiryTime
resourceObj.Deleted = r.Deleted