feat: add enums.pulsar.go file for PermissionScope enum (#4)

* feat: add enums.pulsar.go file for PermissionScope enum

* refactor: remove PERMISSION_SCOPE_IDENTIFIERS_ENS enum value

* feat: Add MsgRegisterService to handle service registration

The commit message for these changes would be:

feat: Add MsgRegisterService to handle service registration

This commit adds a new message type `MsgRegisterService` to the DID module's transaction proto file. This message allows users to register a new service with a given permission scope and origin URI. The domain must have a valid TXT record containing the public key.

The changes include:

- Adding the `MsgRegisterService` message type with fields for authority, origin URI, and scopes
- Adding the `MsgRegisterServiceResponse` message type to handle the response
- Updating the Msg service to include a new `RegisterService` RPC method
- Implementing the `RegisterService` method in the keeper

This feature allows users to register new services on the DID chain, which is an important part of the overall DID functionality.

* (no commit message provided)

* fix: Add ProveWitness and SyncVault RPCs

The commit message should be:

feat: Add ProveWitness and SyncVault RPCs

This change adds two new RPCs to the DID module:

1. ProveWitness: An operation to prove the controller has a valid property using ZK Accumulators.
2. SyncVault: Synchronizes the controller with the Vault Motr DWN WASM Wallet.

These new RPCs allow for more advanced DID management functionality.

* fix: Remove unused `Meta` message from `genesis.proto`

* refactor: Simplify the types and properties to keep a consistent structure for the blockchain

* (no commit message provided)

* {}

* feat: add Equal methods for AssetInfo and ChainInfo types
This commit is contained in:
Prad Nukala
2024-08-10 18:27:11 -04:00
committed by GitHub
parent 5b1aeabc4e
commit 1810ee1c7f
38 changed files with 25776 additions and 10264 deletions
+3 -46
View File
@@ -3,11 +3,13 @@ package did.v1;
import "gogoproto/gogo.proto";
import "amino/amino.proto";
import "did/v1/types.proto";
option go_package = "github.com/onsonr/hway/x/did/types";
// GenesisState defines the module genesis state
message GenesisState {
// Params defines all the paramaters of the module.
// Params defines all the parameters of the module.
Params params = 1 [(gogoproto.nullable) = false];
}
@@ -24,49 +26,4 @@ message Params {
repeated ChainInfo whitelisted_chains = 2;
}
// Meta represents
message Meta {
option (amino.name) = "did/meta";
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
// Key value data for the Property
map<string, string> data = 1;
}
message AssetInfo {
string denom = 1;
string asset_type = 2;
string origin_chain = 3;
string origin_denom = 4;
string origin_type = 5;
string symbol = 6;
int32 decimals = 7;
string description = 8;
string image = 9;
string coinGeckoId = 10;
bool enable = 11;
string path = 12;
string channel = 13;
string port = 14;
Meta counter_party = 15;
}
message ChainInfo {
string chain_id_cosmos = 1;
string chain_name = 2;
string symbol = 3;
string bechAccountPrefix = 4;
string bechValidatorPrefix = 5;
string origin_genesis_time = 6;
repeated Meta accountType = 7;
repeated Meta grpc_endpoint = 8;
repeated Meta lcd_endpoint = 9;
Meta explorer = 10;
string fee_base = 11;
repeated string fee_rate = 12;
int32 fee_init_gas_limit = 13;
bool fee_isSimulable = 14;
double simul_gas_multiply = 15;
}