Skip to content

Commit

Permalink
added integrations for commerce, governance, and compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
assetmantledevops committed Nov 23, 2024
1 parent a4612c6 commit dd8a744
Show file tree
Hide file tree
Showing 32 changed files with 16,478 additions and 371 deletions.
1,094 changes: 1,094 additions & 0 deletions docs/static/openapi.yml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ go 1.21

require (
cosmossdk.io/api v0.3.1
cosmossdk.io/math v1.0.1
cosmossdk.io/simapp v0.0.0-20230323161446-0af178d721ff
github.com/cometbft/cometbft v0.37.1
github.com/cometbft/cometbft-db v0.7.0
github.com/cosmos/cosmos-sdk v0.47.3
Expand Down Expand Up @@ -32,7 +34,6 @@ require (
cosmossdk.io/depinject v1.0.0-alpha.3 // indirect
cosmossdk.io/errors v1.0.0-beta.7 // indirect
cosmossdk.io/log v1.1.0 // indirect
cosmossdk.io/math v1.0.1 // indirect
cosmossdk.io/tools/rosetta v0.2.1 // indirect
filippo.io/edwards25519 v1.0.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
Expand Down
10 changes: 8 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ cosmossdk.io/log v1.1.0 h1:v0ogPHYeTzPcBTcPR1A3j1hkei4pZama8kz8LKlCMv0=
cosmossdk.io/log v1.1.0/go.mod h1:6zjroETlcDs+mm62gd8Ig7mZ+N+fVOZS91V17H+M4N4=
cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg=
cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k=
cosmossdk.io/simapp v0.0.0-20230323161446-0af178d721ff h1:P1ialzTepD1oxdNPYc5N8Eggq3RdejZq3cJs8YYMs9Y=
cosmossdk.io/simapp v0.0.0-20230323161446-0af178d721ff/go.mod h1:AKzx6Mb544LjJ9RHmGFHjY9rEOLiUAi8I0F727TR0dY=
cosmossdk.io/tools/rosetta v0.2.1 h1:ddOMatOH+pbxWbrGJKRAawdBkPYLfKXutK9IETnjYxw=
cosmossdk.io/tools/rosetta v0.2.1/go.mod h1:Pqdc1FdvkNV3LcNIkYWt2RQY6IP1ge6YWZk8MhhO9Hw=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
Expand Down Expand Up @@ -431,8 +433,9 @@ github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14=
github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M=
github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8=
github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
Expand All @@ -454,8 +457,9 @@ github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTM
github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=
github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho=
github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA=
github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY=
github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI=
github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ=
github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU=
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0=
Expand All @@ -464,6 +468,8 @@ github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8=
github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo=
github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk=
github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0=
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
Expand Down
16 changes: 15 additions & 1 deletion proto/hdoacommandcenter/hdoacommandcenter/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
syntax = "proto3";

package hdoacommandcenter.hdoacommandcenter;

import "gogoproto/gogo.proto";
import "hdoacommandcenter/hdoacommandcenter/params.proto";
import "hdoacommandcenter/hdoacommandcenter/commerce.proto";
import "hdoacommandcenter/hdoacommandcenter/governance.proto";
import "hdoacommandcenter/hdoacommandcenter/domain.proto";
import "hdoacommandcenter/hdoacommandcenter/compliance.proto";

option go_package = "hdoa-command-center/x/hdoacommandcenter/types";

// GenesisState defines the hdoacommandcenter module's genesis state.
message GenesisState {
Params params = 1 [(gogoproto.nullable) = false];
Params params = 1 [(gogoproto.nullable) = false];
repeated Commerce commerceList = 2 [(gogoproto.nullable) = false];
uint64 commerceCount = 3;
repeated Governance governanceList = 4 [(gogoproto.nullable) = false];
uint64 governanceCount = 5;
repeated Domain domainList = 6 [(gogoproto.nullable) = false];
uint64 domainCount = 7;
repeated Compliance complianceList = 8 [(gogoproto.nullable) = false];
uint64 complianceCount = 9;
}

122 changes: 119 additions & 3 deletions proto/hdoacommandcenter/hdoacommandcenter/query.proto
Original file line number Diff line number Diff line change
@@ -1,26 +1,142 @@
syntax = "proto3";

package hdoacommandcenter.hdoacommandcenter;

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "hdoacommandcenter/hdoacommandcenter/params.proto";
import "hdoacommandcenter/hdoacommandcenter/commerce.proto";
import "hdoacommandcenter/hdoacommandcenter/governance.proto";
import "hdoacommandcenter/hdoacommandcenter/domain.proto";
import "hdoacommandcenter/hdoacommandcenter/compliance.proto";

option go_package = "hdoa-command-center/x/hdoacommandcenter/types";

// Query defines the gRPC querier service.
service Query {

// Parameters queries the parameters of the module.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/hdoa-command-center/hdoacommandcenter/params";

}

// Queries a list of Commerce items.
rpc Commerce (QueryGetCommerceRequest) returns (QueryGetCommerceResponse) {
option (google.api.http).get = "/hdoa-command-center/hdoacommandcenter/commerce/{id}";

}
rpc CommerceAll (QueryAllCommerceRequest) returns (QueryAllCommerceResponse) {
option (google.api.http).get = "/hdoa-command-center/hdoacommandcenter/commerce";

}

// Queries a list of Governance items.
rpc Governance (QueryGetGovernanceRequest) returns (QueryGetGovernanceResponse) {
option (google.api.http).get = "/hdoa-command-center/hdoacommandcenter/governance/{id}";

}
rpc GovernanceAll (QueryAllGovernanceRequest) returns (QueryAllGovernanceResponse) {
option (google.api.http).get = "/hdoa-command-center/hdoacommandcenter/governance";

}

// Queries a list of Domain items.
rpc Domain (QueryGetDomainRequest) returns (QueryGetDomainResponse) {
option (google.api.http).get = "/hdoa-command-center/hdoacommandcenter/domain/{id}";

}
rpc DomainAll (QueryAllDomainRequest) returns (QueryAllDomainResponse) {
option (google.api.http).get = "/hdoa-command-center/hdoacommandcenter/domain";

}

// Queries a list of Compliance items.
rpc Compliance (QueryGetComplianceRequest) returns (QueryGetComplianceResponse) {
option (google.api.http).get = "/hdoa-command-center/hdoacommandcenter/compliance/{id}";

}
rpc ComplianceAll (QueryAllComplianceRequest) returns (QueryAllComplianceResponse) {
option (google.api.http).get = "/hdoa-command-center/hdoacommandcenter/compliance";

}
}

// 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 QueryGetCommerceRequest {
uint64 id = 1;
}

message QueryGetCommerceResponse {
Commerce Commerce = 1 [(gogoproto.nullable) = false];
}

message QueryAllCommerceRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 1;
}

message QueryAllCommerceResponse {
repeated Commerce Commerce = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

message QueryGetGovernanceRequest {
uint64 id = 1;
}

message QueryGetGovernanceResponse {
Governance Governance = 1 [(gogoproto.nullable) = false];
}

message QueryAllGovernanceRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 1;
}

message QueryAllGovernanceResponse {
repeated Governance Governance = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

message QueryGetDomainRequest {
uint64 id = 1;
}

message QueryGetDomainResponse {
Domain Domain = 1 [(gogoproto.nullable) = false];
}

message QueryAllDomainRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 1;
}

message QueryAllDomainResponse {
repeated Domain Domain = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

message QueryGetComplianceRequest {
uint64 id = 1;
}

message QueryGetComplianceResponse {
Compliance Compliance = 1 [(gogoproto.nullable) = false];
}

message QueryAllComplianceRequest {
cosmos.base.query.v1beta1.PageRequest pagination = 1;
}

message QueryAllComplianceResponse {
repeated Compliance Compliance = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

139 changes: 138 additions & 1 deletion proto/hdoacommandcenter/hdoacommandcenter/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,144 @@
syntax = "proto3";

package hdoacommandcenter.hdoacommandcenter;

import "hdoacommandcenter/hdoacommandcenter/commerce.proto";
import "hdoacommandcenter/hdoacommandcenter/governance.proto";
import "hdoacommandcenter/hdoacommandcenter/domain.proto";
import "hdoacommandcenter/hdoacommandcenter/compliance.proto";

option go_package = "hdoa-command-center/x/hdoacommandcenter/types";

// Msg defines the Msg service.
service Msg {}
service Msg {
rpc CreateCommerce (MsgCreateCommerce ) returns (MsgCreateCommerceResponse );
rpc UpdateCommerce (MsgUpdateCommerce ) returns (MsgUpdateCommerceResponse );
rpc DeleteCommerce (MsgDeleteCommerce ) returns (MsgDeleteCommerceResponse );
rpc CreateGovernance (MsgCreateGovernance) returns (MsgCreateGovernanceResponse);
rpc UpdateGovernance (MsgUpdateGovernance) returns (MsgUpdateGovernanceResponse);
rpc DeleteGovernance (MsgDeleteGovernance) returns (MsgDeleteGovernanceResponse);
rpc CreateDomain (MsgCreateDomain ) returns (MsgCreateDomainResponse );
rpc UpdateDomain (MsgUpdateDomain ) returns (MsgUpdateDomainResponse );
rpc DeleteDomain (MsgDeleteDomain ) returns (MsgDeleteDomainResponse );
rpc CreateCompliance (MsgCreateCompliance) returns (MsgCreateComplianceResponse);
rpc UpdateCompliance (MsgUpdateCompliance) returns (MsgUpdateComplianceResponse);
rpc DeleteCompliance (MsgDeleteCompliance) returns (MsgDeleteComplianceResponse);
}
message MsgCreateCommerce {
string creator = 1;
bool fractionalize = 2;
bool access = 3;
bool sell = 4;
}

message MsgCreateCommerceResponse {
uint64 id = 1;
}

message MsgUpdateCommerce {
string creator = 1;
uint64 id = 2;
bool fractionalize = 3;
bool access = 4;
bool sell = 5;
}

message MsgUpdateCommerceResponse {}

message MsgDeleteCommerce {
string creator = 1;
uint64 id = 2;
}

message MsgDeleteCommerceResponse {}

message MsgCreateGovernance {
string creator = 1;
bool healthcareGov = 2;
bool commerceGov = 3;
bool complianceGov = 4;
}

message MsgCreateGovernanceResponse {
uint64 id = 1;
}

message MsgUpdateGovernance {
string creator = 1;
uint64 id = 2;
bool healthcareGov = 3;
bool commerceGov = 4;
bool complianceGov = 5;
}

message MsgUpdateGovernanceResponse {}

message MsgDeleteGovernance {
string creator = 1;
uint64 id = 2;
}

message MsgDeleteGovernanceResponse {}

message MsgCreateDomain {
string creator = 1;
bool docPathway = 2;
bool nursePathway = 3;
bool adminPathway = 4;
bool pharmaPathway = 5;
bool pathModelling = 6;
bool resourceTracing = 7;
}

message MsgCreateDomainResponse {
uint64 id = 1;
}

message MsgUpdateDomain {
string creator = 1;
uint64 id = 2;
bool docPathway = 3;
bool nursePathway = 4;
bool adminPathway = 5;
bool pharmaPathway = 6;
bool pathModelling = 7;
bool resourceTracing = 8;
}

message MsgUpdateDomainResponse {}

message MsgDeleteDomain {
string creator = 1;
uint64 id = 2;
}

message MsgDeleteDomainResponse {}

message MsgCreateCompliance {
string creator = 1;
bool hipaaOversight = 2;
bool govOversight = 3;
bool dataSecCompliance = 4;
}

message MsgCreateComplianceResponse {
uint64 id = 1;
}

message MsgUpdateCompliance {
string creator = 1;
uint64 id = 2;
bool hipaaOversight = 3;
bool govOversight = 4;
bool dataSecCompliance = 5;
}

message MsgUpdateComplianceResponse {}

message MsgDeleteCompliance {
string creator = 1;
uint64 id = 2;
}

message MsgDeleteComplianceResponse {}

6 changes: 3 additions & 3 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
"vite": "^3.2.1"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
"node": "\u003e=16.0.0",
"npm": "\u003e=8.0.0"
},
"name": "@ignt/react-template",
"private": true,
"scripts": {
"build": "tsc && vite build",
"build": "tsc \u0026\u0026 vite build",
"dev": "vite",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"postinstall": "node postinstall.cjs",
Expand Down
Loading

0 comments on commit dd8a744

Please sign in to comment.