mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-09-13 11:50:11 +00:00

* added DER module * scaffold type --module der DER zigbeeID dirigeraID dirigeraMAC plmntAddress liquidAddress * ./ignite scaffold message registerDER der:DER --module der * changed URL * storing DER * added query * added liquid der asset type * added der asset notarization logic * added nft notarization for DER * added nft query * added query and fixed linter aspects * added store testcases to the der module * added test cases adjusted to the linter requirements * addd ignite generate code changes * added metadata json instead of specific data Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
61 lines
1.5 KiB
Protocol Buffer
61 lines
1.5 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package planetmintgo.der;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "google/api/annotations.proto";
|
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
|
import "planetmintgo/der/params.proto";
|
|
import "planetmintgo/der/der.proto";
|
|
import "planetmintgo/der/liquid_der_asset.proto";
|
|
|
|
option go_package = "github.com/planetmint/planetmint-go/x/der/types";
|
|
|
|
// Query defines the gRPC querier service.
|
|
service Query {
|
|
|
|
// Parameters queries the parameters of the module.
|
|
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {
|
|
option (google.api.http).get = "/planetmint/der/params";
|
|
|
|
}
|
|
|
|
// Queries a list of Der items.
|
|
rpc Der (QueryDerRequest) returns (QueryDerResponse) {
|
|
option (google.api.http).get = "/planetmint/der/der/{zigbeeID}";
|
|
|
|
}
|
|
|
|
// Queries a list of Nft items.
|
|
rpc Nft (QueryNftRequest) returns (QueryNftResponse) {
|
|
option (google.api.http).get = "/planetmint/der/nft/{zigbeeID}";
|
|
|
|
}
|
|
}
|
|
// QueryParamsRequest is request type for the Query/Params RPC method.
|
|
message QueryParamsRequest {}
|
|
|
|
// QueryParamsResponse is response type for the Query/Params RPC method.
|
|
message QueryParamsResponse {
|
|
|
|
// params holds all the parameters of this module.
|
|
Params params = 1 [(gogoproto.nullable) = false];
|
|
}
|
|
|
|
message QueryDerRequest {
|
|
string zigbeeID = 1;
|
|
}
|
|
|
|
message QueryDerResponse {
|
|
DER der = 1;
|
|
}
|
|
|
|
message QueryNftRequest {
|
|
string zigbeeID = 1;
|
|
}
|
|
|
|
message QueryNftResponse {
|
|
LiquidDerAsset derNft = 1;
|
|
}
|
|
|