├── ts-client ├── cosmos.consensus.v1 │ ├── types.ts │ ├── types │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── cosmos │ │ │ └── msg │ │ │ │ └── v1 │ │ │ │ └── msg.ts │ │ └── google │ │ │ └── api │ │ │ └── annotations.ts │ ├── index.ts │ └── registry.ts ├── cosmos.mint.v1beta1 │ ├── types.ts │ ├── types │ │ ├── amino │ │ │ └── amino.ts │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── cosmos │ │ │ └── msg │ │ │ │ └── v1 │ │ │ │ └── msg.ts │ │ └── google │ │ │ └── api │ │ │ └── annotations.ts │ ├── index.ts │ └── registry.ts ├── zigbeealliance.distributedcomplianceledger.dclgenutil │ ├── types.ts │ ├── types │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── google │ │ │ └── api │ │ │ │ └── annotations.ts │ │ └── zigbeealliance │ │ │ └── distributedcomplianceledger │ │ │ └── dclgenutil │ │ │ ├── tx.ts │ │ │ └── query.ts │ ├── registry.ts │ ├── index.ts │ ├── api.swagger.yml │ └── module.ts ├── cosmos.tx.v1beta1 │ ├── types │ │ ├── amino │ │ │ └── amino.ts │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ └── google │ │ │ └── api │ │ │ └── annotations.ts │ ├── registry.ts │ ├── index.ts │ └── types.ts ├── cosmos.auth.v1beta1 │ ├── types │ │ ├── amino │ │ │ └── amino.ts │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── cosmos │ │ │ ├── msg │ │ │ │ └── v1 │ │ │ │ │ └── msg.ts │ │ │ ├── query │ │ │ │ └── v1 │ │ │ │ │ └── query.ts │ │ │ └── auth │ │ │ │ └── v1beta1 │ │ │ │ └── genesis.ts │ │ └── google │ │ │ └── api │ │ │ └── annotations.ts │ ├── registry.ts │ ├── index.ts │ ├── types.ts │ └── module.ts ├── cosmos.params.v1beta1 │ ├── types │ │ ├── amino │ │ │ └── amino.ts │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ └── google │ │ │ └── api │ │ │ └── annotations.ts │ ├── registry.ts │ ├── index.ts │ ├── types.ts │ └── module.ts ├── cosmos.upgrade.v1beta1 │ ├── types │ │ ├── amino │ │ │ └── amino.ts │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── cosmos │ │ │ └── msg │ │ │ │ └── v1 │ │ │ │ └── msg.ts │ │ └── google │ │ │ └── api │ │ │ └── annotations.ts │ ├── index.ts │ ├── registry.ts │ └── types.ts ├── cosmos.vesting.v1beta1 │ ├── types │ │ ├── amino │ │ │ └── amino.ts │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ └── cosmos │ │ │ └── msg │ │ │ └── v1 │ │ │ └── msg.ts │ ├── index.ts │ ├── types.ts │ └── registry.ts ├── cosmos.base.tendermint.v1beta1 │ ├── types │ │ ├── amino │ │ │ └── amino.ts │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ └── google │ │ │ └── api │ │ │ └── annotations.ts │ ├── registry.ts │ ├── index.ts │ ├── types.ts │ └── module.ts ├── zigbeealliance.distributedcomplianceledger.dclauth │ ├── types │ │ ├── amino │ │ │ └── amino.ts │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── google │ │ │ └── api │ │ │ │ └── annotations.ts │ │ └── zigbeealliance │ │ │ └── distributedcomplianceledger │ │ │ ├── common │ │ │ └── uint16_range.ts │ │ │ └── dclauth │ │ │ ├── rejected_account.ts │ │ │ └── pending_account.ts │ ├── index.ts │ ├── types.ts │ └── registry.ts ├── zigbeealliance.distributedcomplianceledger.dclupgrade │ ├── types │ │ ├── amino │ │ │ └── amino.ts │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ └── google │ │ │ └── api │ │ │ └── annotations.ts │ ├── index.ts │ ├── types.ts │ └── registry.ts ├── zigbeealliance.distributedcomplianceledger.pki │ ├── types │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── google │ │ │ └── api │ │ │ │ └── annotations.ts │ │ └── zigbeealliance │ │ │ └── distributedcomplianceledger │ │ │ └── pki │ │ │ ├── certificate_identifier.ts │ │ │ ├── revoked_root_certificates.ts │ │ │ └── approved_root_certificates.ts │ └── index.ts ├── zigbeealliance.distributedcomplianceledger.model │ ├── types │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── google │ │ │ └── api │ │ │ │ └── annotations.ts │ │ └── zigbeealliance │ │ │ └── distributedcomplianceledger │ │ │ └── model │ │ │ └── vendor_products.ts │ ├── index.ts │ ├── types.ts │ └── registry.ts ├── zigbeealliance.distributedcomplianceledger.compliance │ ├── types │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ └── google │ │ │ └── api │ │ │ └── annotations.ts │ ├── index.ts │ ├── types.ts │ └── registry.ts ├── zigbeealliance.distributedcomplianceledger.validator │ ├── types │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── google │ │ │ └── api │ │ │ │ └── annotations.ts │ │ └── zigbeealliance │ │ │ └── distributedcomplianceledger │ │ │ └── validator │ │ │ └── last_validator_power.ts │ ├── index.ts │ ├── types.ts │ └── registry.ts ├── zigbeealliance.distributedcomplianceledger.vendorinfo │ ├── types │ │ ├── gogoproto │ │ │ └── gogo.ts │ │ ├── google │ │ │ └── api │ │ │ │ └── annotations.ts │ │ └── zigbeealliance │ │ │ └── distributedcomplianceledger │ │ │ └── vendorinfo │ │ │ └── genesis.ts │ ├── types.ts │ ├── index.ts │ └── registry.ts ├── env.ts ├── modules.ts ├── tsconfig.json ├── types.d.ts ├── helpers.ts └── package.json ├── public ├── favicon.ico ├── images │ ├── themes │ │ ├── nova.png │ │ ├── rhea.png │ │ ├── arya-blue.png │ │ ├── luna-blue.png │ │ ├── luna-pink.png │ │ ├── nova-alt.png │ │ ├── nova-vue.png │ │ ├── saga-blue.png │ │ ├── vela-blue.png │ │ ├── arya-green.png │ │ ├── arya-orange.png │ │ ├── arya-purple.png │ │ ├── luna-amber.png │ │ ├── luna-green.png │ │ ├── nova-accent.png │ │ ├── saga-green.png │ │ ├── saga-orange.png │ │ ├── saga-purple.png │ │ ├── vela-green.png │ │ ├── vela-orange.png │ │ ├── vela-purple.png │ │ ├── fluent-light.png │ │ ├── lara-dark-blue.png │ │ ├── lara-dark-teal.png │ │ ├── tailwind-light.png │ │ ├── lara-dark-indigo.png │ │ ├── lara-dark-purple.png │ │ ├── lara-light-blue.png │ │ ├── lara-light-teal.png │ │ ├── lara-light-indigo.png │ │ ├── lara-light-purple.png │ │ ├── md-dark-indigo.svg │ │ ├── md-light-indigo.svg │ │ ├── md-dark-deeppurple.svg │ │ ├── md-light-deeppurple.svg │ │ ├── bootstrap4-dark-purple.svg │ │ ├── bootstrap4-light-purple.svg │ │ ├── bootstrap4-light-blue.svg │ │ └── bootstrap4-dark-blue.svg │ ├── logo-transparent.png │ ├── blocks │ │ └── logos │ │ │ └── hyper.svg │ └── pages │ │ ├── icon-diamond.svg │ │ └── icon-document.svg ├── layout │ └── images │ │ ├── avatar.png │ │ ├── mockup.png │ │ ├── screen.png │ │ ├── screen-1.png │ │ ├── startup.png │ │ ├── enterprise.png │ │ ├── mockup-desktop.png │ │ ├── themes │ │ ├── arya-blue.png │ │ ├── luna-blue.png │ │ ├── luna-pink.png │ │ ├── saga-blue.png │ │ ├── vela-blue.png │ │ ├── arya-green.png │ │ ├── arya-orange.png │ │ ├── arya-purple.png │ │ ├── fluent-light.png │ │ ├── luna-amber.png │ │ ├── luna-green.png │ │ ├── saga-green.png │ │ ├── saga-orange.png │ │ ├── saga-purple.png │ │ ├── vela-green.png │ │ ├── vela-orange.png │ │ ├── vela-purple.png │ │ ├── lara-dark-blue.png │ │ ├── lara-dark-teal.png │ │ ├── tailwind-light.png │ │ ├── lara-dark-indigo.png │ │ ├── lara-dark-purple.png │ │ ├── lara-light-blue.png │ │ ├── lara-light-indigo.png │ │ ├── lara-light-purple.png │ │ ├── lara-light-teal.png │ │ ├── md-dark-deeppurple.svg │ │ ├── md-dark-indigo.svg │ │ ├── md-light-indigo.svg │ │ ├── md-light-deeppurple.svg │ │ ├── bootstrap4-light-purple.svg │ │ ├── bootstrap4-dark-purple.svg │ │ ├── bootstrap4-dark-blue.svg │ │ └── bootstrap4-light-blue.svg │ │ ├── banner-primeblocks.png │ │ └── icon.svg └── themes │ ├── lara-dark-blue │ └── fonts │ │ ├── Inter-roman.var.woff2 │ │ └── Inter-italic.var.woff2 │ ├── lara-light-blue │ └── fonts │ │ ├── Inter-italic.var.woff2 │ │ └── Inter-roman.var.woff2 │ └── application.css ├── src ├── store │ ├── generated │ │ ├── readme.md │ │ ├── postinstall.js │ │ ├── local-check.js │ │ ├── tsconfig.json │ │ ├── cosmos.bank.v1beta1 │ │ │ ├── index.js │ │ │ └── index.ts │ │ ├── cosmos.staking.v1beta1 │ │ │ ├── index.js │ │ │ └── index.ts │ │ ├── package.json │ │ ├── index.d.ts │ │ └── zigbeealliance.distributedcomplianceledger.dclgenutil │ │ │ └── index.ts │ ├── config.js │ └── index.js ├── components │ ├── SpWallet.vue │ └── Sidebar.vue ├── layout │ ├── AppSidebar.vue │ ├── AppFooter.vue │ ├── composables │ │ └── layout.js │ ├── AppLayout.vue │ ├── AppTopbar.vue │ └── AppMenuItem.vue ├── assets │ ├── layout │ │ ├── _footer.scss │ │ ├── _variables.scss │ │ ├── _content.scss │ │ ├── layout.scss │ │ ├── _mixins.scss │ │ ├── _main.scss │ │ ├── _utils.scss │ │ ├── _preloading.scss │ │ ├── _typography.scss │ │ ├── _config.scss │ │ └── _responsive.scss │ └── styles.scss ├── mixins │ └── scrollToTopMixin.js ├── router │ └── index.js ├── ThemeToggle.vue ├── AppTopbar.vue ├── AppWallet.vue ├── AppSubmenu.vue ├── AppMenu.vue └── AppMenuItem.vue ├── .editorconfig ├── babel.config.js ├── .prettierrc.json ├── .env.spn ├── .env.development ├── .env.sample ├── NOTICE.md ├── index.html ├── tsconfig.json ├── .eslintrc.js ├── CONTRIBUTING.md ├── package.json ├── .gitignore ├── vite.config.js ├── README.md └── CODE_OF_CONDUCT.md /ts-client/cosmos.consensus.v1/types.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | export { 4 | 5 | } -------------------------------------------------------------------------------- /ts-client/cosmos.mint.v1beta1/types.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | export { 4 | 5 | } -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/favicon.ico -------------------------------------------------------------------------------- /src/store/generated/readme.md: -------------------------------------------------------------------------------- 1 | THIS FOLDER IS GENERATED AUTOMATICALLY. DO NOT MODIFY. 2 | -------------------------------------------------------------------------------- /public/images/themes/nova.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/nova.png -------------------------------------------------------------------------------- /public/images/themes/rhea.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/rhea.png -------------------------------------------------------------------------------- /public/layout/images/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/avatar.png -------------------------------------------------------------------------------- /public/layout/images/mockup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/mockup.png -------------------------------------------------------------------------------- /public/layout/images/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/screen.png -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclgenutil/types.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | export { 4 | 5 | } -------------------------------------------------------------------------------- /public/images/logo-transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/logo-transparent.png -------------------------------------------------------------------------------- /public/images/themes/arya-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/arya-blue.png -------------------------------------------------------------------------------- /public/images/themes/luna-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/luna-blue.png -------------------------------------------------------------------------------- /public/images/themes/luna-pink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/luna-pink.png -------------------------------------------------------------------------------- /public/images/themes/nova-alt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/nova-alt.png -------------------------------------------------------------------------------- /public/images/themes/nova-vue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/nova-vue.png -------------------------------------------------------------------------------- /public/images/themes/saga-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/saga-blue.png -------------------------------------------------------------------------------- /public/images/themes/vela-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/vela-blue.png -------------------------------------------------------------------------------- /public/layout/images/screen-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/screen-1.png -------------------------------------------------------------------------------- /public/layout/images/startup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/startup.png -------------------------------------------------------------------------------- /ts-client/cosmos.tx.v1beta1/types/amino/amino.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "amino"; 3 | -------------------------------------------------------------------------------- /public/images/themes/arya-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/arya-green.png -------------------------------------------------------------------------------- /public/images/themes/arya-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/arya-orange.png -------------------------------------------------------------------------------- /public/images/themes/arya-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/arya-purple.png -------------------------------------------------------------------------------- /public/images/themes/luna-amber.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/luna-amber.png -------------------------------------------------------------------------------- /public/images/themes/luna-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/luna-green.png -------------------------------------------------------------------------------- /public/images/themes/nova-accent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/nova-accent.png -------------------------------------------------------------------------------- /public/images/themes/saga-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/saga-green.png -------------------------------------------------------------------------------- /public/images/themes/saga-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/saga-orange.png -------------------------------------------------------------------------------- /public/images/themes/saga-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/saga-purple.png -------------------------------------------------------------------------------- /public/images/themes/vela-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/vela-green.png -------------------------------------------------------------------------------- /public/images/themes/vela-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/vela-orange.png -------------------------------------------------------------------------------- /public/images/themes/vela-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/vela-purple.png -------------------------------------------------------------------------------- /public/layout/images/enterprise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/enterprise.png -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/types/amino/amino.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "amino"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.params.v1beta1/types/amino/amino.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "amino"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.upgrade.v1beta1/types/amino/amino.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "amino"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.vesting.v1beta1/types/amino/amino.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "amino"; 3 | -------------------------------------------------------------------------------- /public/images/themes/fluent-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/fluent-light.png -------------------------------------------------------------------------------- /public/images/themes/lara-dark-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/lara-dark-blue.png -------------------------------------------------------------------------------- /public/images/themes/lara-dark-teal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/lara-dark-teal.png -------------------------------------------------------------------------------- /public/images/themes/tailwind-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/tailwind-light.png -------------------------------------------------------------------------------- /public/layout/images/mockup-desktop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/mockup-desktop.png -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.consensus.v1/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.mint.v1beta1/types/amino/amino.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | 3 | export const protobufPackage = "amino"; 4 | -------------------------------------------------------------------------------- /ts-client/cosmos.params.v1beta1/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.tx.v1beta1/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /public/images/themes/lara-dark-indigo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/lara-dark-indigo.png -------------------------------------------------------------------------------- /public/images/themes/lara-dark-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/lara-dark-purple.png -------------------------------------------------------------------------------- /public/images/themes/lara-light-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/lara-light-blue.png -------------------------------------------------------------------------------- /public/images/themes/lara-light-teal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/lara-light-teal.png -------------------------------------------------------------------------------- /public/layout/images/themes/arya-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/arya-blue.png -------------------------------------------------------------------------------- /public/layout/images/themes/luna-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/luna-blue.png -------------------------------------------------------------------------------- /public/layout/images/themes/luna-pink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/luna-pink.png -------------------------------------------------------------------------------- /public/layout/images/themes/saga-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/saga-blue.png -------------------------------------------------------------------------------- /public/layout/images/themes/vela-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/vela-blue.png -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "cosmos.msg.v1"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.base.tendermint.v1beta1/types/amino/amino.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "amino"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "cosmos.msg.v1"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.mint.v1beta1/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | 3 | export const protobufPackage = "gogoproto"; 4 | -------------------------------------------------------------------------------- /ts-client/cosmos.tx.v1beta1/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.upgrade.v1beta1/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.vesting.v1beta1/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /public/images/themes/lara-light-indigo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/lara-light-indigo.png -------------------------------------------------------------------------------- /public/images/themes/lara-light-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/images/themes/lara-light-purple.png -------------------------------------------------------------------------------- /public/layout/images/banner-primeblocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/banner-primeblocks.png -------------------------------------------------------------------------------- /public/layout/images/themes/arya-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/arya-green.png -------------------------------------------------------------------------------- /public/layout/images/themes/arya-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/arya-orange.png -------------------------------------------------------------------------------- /public/layout/images/themes/arya-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/arya-purple.png -------------------------------------------------------------------------------- /public/layout/images/themes/fluent-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/fluent-light.png -------------------------------------------------------------------------------- /public/layout/images/themes/luna-amber.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/luna-amber.png -------------------------------------------------------------------------------- /public/layout/images/themes/luna-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/luna-green.png -------------------------------------------------------------------------------- /public/layout/images/themes/saga-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/saga-green.png -------------------------------------------------------------------------------- /public/layout/images/themes/saga-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/saga-orange.png -------------------------------------------------------------------------------- /public/layout/images/themes/saga-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/saga-purple.png -------------------------------------------------------------------------------- /public/layout/images/themes/vela-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/vela-green.png -------------------------------------------------------------------------------- /public/layout/images/themes/vela-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/vela-orange.png -------------------------------------------------------------------------------- /public/layout/images/themes/vela-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/vela-purple.png -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.consensus.v1/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | 3 | export const protobufPackage = "cosmos.msg.v1"; 4 | -------------------------------------------------------------------------------- /ts-client/cosmos.params.v1beta1/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "cosmos.msg.v1"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.upgrade.v1beta1/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "cosmos.msg.v1"; 3 | -------------------------------------------------------------------------------- /public/layout/images/themes/lara-dark-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/lara-dark-blue.png -------------------------------------------------------------------------------- /public/layout/images/themes/lara-dark-teal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/lara-dark-teal.png -------------------------------------------------------------------------------- /public/layout/images/themes/tailwind-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/tailwind-light.png -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "cosmos.query.v1"; 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.mint.v1beta1/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | 3 | export const protobufPackage = "google.api"; 4 | -------------------------------------------------------------------------------- /public/layout/images/themes/lara-dark-indigo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/lara-dark-indigo.png -------------------------------------------------------------------------------- /public/layout/images/themes/lara-dark-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/lara-dark-purple.png -------------------------------------------------------------------------------- /public/layout/images/themes/lara-light-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/lara-light-blue.png -------------------------------------------------------------------------------- /public/layout/images/themes/lara-light-indigo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/lara-light-indigo.png -------------------------------------------------------------------------------- /public/layout/images/themes/lara-light-purple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/lara-light-purple.png -------------------------------------------------------------------------------- /public/layout/images/themes/lara-light-teal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/layout/images/themes/lara-light-teal.png -------------------------------------------------------------------------------- /ts-client/cosmos.base.tendermint.v1beta1/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | [*.{js,jsx,ts,tsx,vue}] 2 | indent_style = tab 3 | indent_size = 2 4 | trim_trailing_whitespace = true 5 | insert_final_newline = true 6 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclauth/types/amino/amino.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "amino"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclupgrade/types/amino/amino.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "amino"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.pki/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclauth/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.model/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /public/themes/lara-dark-blue/fonts/Inter-roman.var.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.compliance/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclgenutil/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclupgrade/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.pki/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.validator/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/types/gogoproto/gogo.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "gogoproto"; 3 | -------------------------------------------------------------------------------- /public/themes/lara-dark-blue/fonts/Inter-italic.var.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 -------------------------------------------------------------------------------- /public/themes/lara-light-blue/fonts/Inter-italic.var.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/themes/lara-light-blue/fonts/Inter-italic.var.woff2 -------------------------------------------------------------------------------- /public/themes/lara-light-blue/fonts/Inter-roman.var.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/comcast/dcl-ui/main/public/themes/lara-light-blue/fonts/Inter-roman.var.woff2 -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclauth/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.model/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.validator/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/env.ts: -------------------------------------------------------------------------------- 1 | import { OfflineSigner } from "@cosmjs/proto-signing"; 2 | 3 | export interface Env { 4 | apiURL: string 5 | rpcURL: string 6 | prefix?: string 7 | } -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.compliance/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclgenutil/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclupgrade/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/types/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "google.api"; 3 | -------------------------------------------------------------------------------- /src/components/SpWallet.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | 3 | const msgTypes: Array<[string, GeneratedType]> = [ 4 | 5 | ]; 6 | 7 | export { msgTypes } -------------------------------------------------------------------------------- /ts-client/cosmos.params.v1beta1/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | 3 | const msgTypes: Array<[string, GeneratedType]> = [ 4 | 5 | ]; 6 | 7 | export { msgTypes } -------------------------------------------------------------------------------- /ts-client/cosmos.tx.v1beta1/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | 3 | const msgTypes: Array<[string, GeneratedType]> = [ 4 | 5 | ]; 6 | 7 | export { msgTypes } -------------------------------------------------------------------------------- /ts-client/cosmos.base.tendermint.v1beta1/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | 3 | const msgTypes: Array<[string, GeneratedType]> = [ 4 | 5 | ]; 6 | 7 | export { msgTypes } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['@vue/cli-plugin-babel/preset'], 3 | plugins: [ 4 | '@babel/plugin-proposal-numeric-separator', 5 | '@babel/plugin-proposal-optional-chaining' 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /src/layout/AppSidebar.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclgenutil/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | 3 | const msgTypes: Array<[string, GeneratedType]> = [ 4 | 5 | ]; 6 | 7 | export { msgTypes } -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/types.ts: -------------------------------------------------------------------------------- 1 | import { VendorInfo } from "./types/zigbeealliance/distributedcomplianceledger/vendorinfo/vendor_info" 2 | 3 | 4 | export { 5 | VendorInfo, 6 | 7 | } -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": false, 3 | "tabWidth": 4, 4 | "trailingComma": "none", 5 | "semi": true, 6 | "singleQuote": true, 7 | "vueIndentScriptAndStyle": false, 8 | "printWidth": 250, 9 | "bracketSameLine": false 10 | } -------------------------------------------------------------------------------- /src/assets/layout/_footer.scss: -------------------------------------------------------------------------------- 1 | .layout-footer { 2 | transition: margin-left $transitionDuration; 3 | display: flex; 4 | align-items: center; 5 | justify-content: center; 6 | padding-top: 1rem; 7 | border-top: 1px solid var(--surface-border); 8 | } 9 | -------------------------------------------------------------------------------- /ts-client/cosmos.tx.v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/cosmos.consensus.v1/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/cosmos.params.v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/cosmos.upgrade.v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/cosmos.vesting.v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/cosmos.mint.v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | import IgntModule from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { IgntModule, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/cosmos.base.tendermint.v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /.env.spn: -------------------------------------------------------------------------------- 1 | VUE_APP_ADDRESS_PREFIX=cosmos 2 | VUE_APP_API_COSMOS=https://rest.alpha.starport.network 3 | VUE_APP_API_TENDERMINT=https://rpc.alpha.starport.network 4 | VUE_APP_CHAIN_ID=spn 5 | VUE_APP_CHAIN_NAME="Starport Network" 6 | VUE_APP_WS_TENDERMINT=wss://rpc.alpha.starport.network/websocket 7 | -------------------------------------------------------------------------------- /ts-client/modules.ts: -------------------------------------------------------------------------------- 1 | import { IgniteClient } from "./client"; 2 | import { GeneratedType } from "@cosmjs/proto-signing"; 3 | 4 | export type ModuleInterface = { [key: string]: any } 5 | export type Module = (instance: IgniteClient) => { module: ModuleInterface, registry: [string, GeneratedType][] } 6 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.pki/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /src/assets/layout/_variables.scss: -------------------------------------------------------------------------------- 1 | /* General */ 2 | $scale:14px; /* main font size */ 3 | $borderRadius:12px; /* border radius of layout element e.g. card, sidebar */ 4 | $transitionDuration:.2s; /* transition duration of layout elements e.g. sidebar, overlay menus */ 5 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclauth/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.model/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.validator/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.compliance/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclgenutil/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclupgrade/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/index.ts: -------------------------------------------------------------------------------- 1 | import Module from './module'; 2 | import { txClient, queryClient, registry } from './module'; 3 | import { msgTypes } from './registry'; 4 | 5 | export * from "./types"; 6 | export { Module, msgTypes, txClient, queryClient, registry }; 7 | -------------------------------------------------------------------------------- /src/store/generated/postinstall.js: -------------------------------------------------------------------------------- 1 | /* eslint-env node */ 2 | const pkgjson = require("./package.json"); 3 | var exec = require("child_process").exec; 4 | 5 | for (let pkg in pkgjson.dependencies) { 6 | if (pkgjson.dependencies[pkg].startsWith("file:")) { 7 | exec(`cd ./node_modules/${pkg} && npm install`); 8 | } 9 | } -------------------------------------------------------------------------------- /ts-client/cosmos.consensus.v1/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { MsgUpdateParams } from "./types/cosmos/consensus/v1/tx"; 3 | 4 | const msgTypes: Array<[string, GeneratedType]> = [ 5 | ["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams], 6 | 7 | ]; 8 | 9 | export { msgTypes } -------------------------------------------------------------------------------- /src/assets/layout/_content.scss: -------------------------------------------------------------------------------- 1 | .layout-main-container { 2 | display: flex; 3 | flex-direction: column; 4 | min-height: 100vh; 5 | justify-content: space-between; 6 | padding: 7rem 2rem 2rem 4rem; 7 | transition: margin-left $transitionDuration; 8 | } 9 | 10 | .layout-main { 11 | flex: 1 1 auto; 12 | } 13 | -------------------------------------------------------------------------------- /src/assets/layout/layout.scss: -------------------------------------------------------------------------------- 1 | @import './_variables'; 2 | @import "./_mixins"; 3 | @import "./_preloading"; 4 | @import "./_main"; 5 | @import "./_topbar"; 6 | @import "./_menu"; 7 | @import "./_config"; 8 | @import "./_content"; 9 | @import "./_footer"; 10 | @import "./_responsive"; 11 | @import "./_utils"; 12 | @import "./_typography"; -------------------------------------------------------------------------------- /ts-client/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2020", 4 | "module": "ES2020", 5 | "moduleResolution": "node", 6 | "outDir": "./lib", 7 | "allowSyntheticDefaultImports": true, 8 | "esModuleInterop": false, 9 | "strict": false, 10 | "skipLibCheck": true 11 | } 12 | } -------------------------------------------------------------------------------- /src/assets/layout/_mixins.scss: -------------------------------------------------------------------------------- 1 | @mixin focused() { 2 | outline: 0 none; 3 | outline-offset: 0; 4 | transition: box-shadow .2s; 5 | box-shadow: var(--focus-ring); 6 | } 7 | 8 | @mixin focused-inset() { 9 | outline: 0 none; 10 | outline-offset: 0; 11 | transition: box-shadow .2s; 12 | box-shadow: inset var(--focus-ring); 13 | } 14 | -------------------------------------------------------------------------------- /ts-client/cosmos.params.v1beta1/types.ts: -------------------------------------------------------------------------------- 1 | import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params" 2 | import { ParamChange } from "./types/cosmos/params/v1beta1/params" 3 | import { Subspace } from "./types/cosmos/params/v1beta1/query" 4 | 5 | 6 | export { 7 | ParameterChangeProposal, 8 | ParamChange, 9 | Subspace, 10 | 11 | } -------------------------------------------------------------------------------- /src/store/config.js: -------------------------------------------------------------------------------- 1 | import { env, blocks, wallet, transfers, relayers } from '@starport/vuex' 2 | import generated from './generated' 3 | export default function init(store) { 4 | for (const moduleInit of Object.values(generated)) { 5 | moduleInit(store) 6 | } 7 | transfers(store) 8 | blocks(store) 9 | env(store) 10 | wallet(store) 11 | relayers(store) 12 | } 13 | -------------------------------------------------------------------------------- /.env.development: -------------------------------------------------------------------------------- 1 | VITE_APP_DCL_API_NODE=http://localhost:8080/api 2 | VITE_APP_DCL_RPC_NODE=http://localhost:8080/rpc 3 | VITE_APP_DCL_WEBSOCKET_NODE=ws://localhost:8080/websocket 4 | VITE_APP_DCL_CHAIN_ID=dclchain 5 | VITE_APP_DCL_CHAIN_NAME=dclchain-localhost 6 | VITE_APP_DCL_ADDR_PREFIX=cosmos 7 | VITE_APP_DCL_SDK_VERSION=Stargate 8 | VITE_APP_DCL_TX_API=/rpc/tx?hash=0x 9 | VITE_APP_DCL_REFRESH=500000 -------------------------------------------------------------------------------- /.env.sample: -------------------------------------------------------------------------------- 1 | VITE_APP_DCL_API_NODE=https://<>/api 2 | VITE_APP_DCL_RPC_NODE=https://<>/rpc 3 | VITE_APP_DCL_WEBSOCKET_NODE=wss://<>:443/websocket 4 | VITE_APP_DCL_CHAIN_ID=testnet-2.0 5 | VITE_APP_DCL_CHAIN_NAME=dclchain-testnet 6 | VITE_APP_DCL_ADDR_PREFIX=cosmos 7 | VITE_APP_DCL_SDK_VERSION=Stargate 8 | VITE_APP_DCL_TX_API=/rpc/tx?hash=0x 9 | VITE_APP_DCL_REFRESH=500000 -------------------------------------------------------------------------------- /public/themes/application.css: -------------------------------------------------------------------------------- 1 | justify-content-end { 2 | justify-content: flex-end; 3 | } 4 | 5 | .p-fluid .p-button { 6 | width: fit-content; 7 | margin-right: 1rem; 8 | } 9 | 10 | .p-tooltip { 11 | z-index: 9999; /* Adjust this value to be higher than the modal's z-index */ 12 | max-width: 200px; /* Optional: Adjust max width of the tooltip */ 13 | } 14 | 15 | .p-dialog-mask { 16 | z-index: 1101 !important; 17 | } 18 | -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/types.ts: -------------------------------------------------------------------------------- 1 | import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth" 2 | import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth" 3 | import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth" 4 | import { Params } from "./types/cosmos/auth/v1beta1/auth" 5 | 6 | 7 | export { 8 | BaseAccount, 9 | ModuleAccount, 10 | ModuleCredential, 11 | Params, 12 | 13 | } -------------------------------------------------------------------------------- /src/mixins/scrollToTopMixin.js: -------------------------------------------------------------------------------- 1 | export const scrollToTopMixin = { 2 | methods: { 3 | scrollToTop() { 4 | this.$nextTick(() => { 5 | const modal = document.querySelector('.p-dialog-content'); 6 | if (modal) { 7 | modal.scrollTo({ 8 | top: 0, 9 | behavior: 'smooth' 10 | }); 11 | } else { 12 | console.error('Element .p-dialog-content not found'); 13 | } 14 | }); 15 | } 16 | } 17 | }; 18 | -------------------------------------------------------------------------------- /ts-client/cosmos.upgrade.v1beta1/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; 3 | import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; 4 | 5 | const msgTypes: Array<[string, GeneratedType]> = [ 6 | ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], 7 | ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade], 8 | 9 | ]; 10 | 11 | export { msgTypes } -------------------------------------------------------------------------------- /src/assets/styles.scss: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | 3 | $gutter: 1rem; //for primeflex grid system 4 | @import '@/assets/layout/layout.scss'; 5 | 6 | /* PrimeVue */ 7 | // @import 'primevue/resources/primevue.min.css'; // version deplicated. You must open the command line if you are using < 3.29.00 8 | @import 'primeflex/primeflex.scss'; 9 | @import 'primeicons/primeicons.css'; 10 | 11 | // /* Demos */ 12 | // @import '@/assets/demo/demo.scss'; 13 | -------------------------------------------------------------------------------- /ts-client/cosmos.upgrade.v1beta1/types.ts: -------------------------------------------------------------------------------- 1 | import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade" 2 | import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade" 3 | import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade" 4 | import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade" 5 | 6 | 7 | export { 8 | Plan, 9 | SoftwareUpgradeProposal, 10 | CancelSoftwareUpgradeProposal, 11 | ModuleVersion, 12 | 13 | } -------------------------------------------------------------------------------- /src/store/generated/local-check.js: -------------------------------------------------------------------------------- 1 | /* eslint-env node */ 2 | const pkgjson = require("./package.json"); 3 | 4 | for (let pkg in pkgjson.dependencies) { 5 | if (pkgjson.dependencies[pkg].startsWith("file:")) { 6 | console.error( 7 | "\x1b[31m%s\x1b[0m", 8 | `Package '${pkg}' located at '${pkgjson.dependencies[pkg].replace( 9 | "file:", 10 | "" 11 | )}' needs to be published and your package.json file updated before publishing.` 12 | ); 13 | process.exit(1) 14 | } 15 | } -------------------------------------------------------------------------------- /src/assets/layout/_main.scss: -------------------------------------------------------------------------------- 1 | * { 2 | box-sizing: border-box; 3 | } 4 | 5 | html { 6 | height: 100%; 7 | font-size: $scale; 8 | } 9 | 10 | body { 11 | font-family: var(--font-family); 12 | color: var(--text-color); 13 | background-color: var(--surface-ground); 14 | margin: 0; 15 | padding: 0; 16 | min-height: 100%; 17 | -webkit-font-smoothing: antialiased; 18 | -moz-osx-font-smoothing: grayscale; 19 | } 20 | 21 | a { 22 | text-decoration: none; 23 | } 24 | 25 | .layout-wrapper { 26 | min-height: 100vh; 27 | } 28 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclgenutil/types/zigbeealliance/distributedcomplianceledger/dclgenutil/tx.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.dclgenutil"; 3 | 4 | /** Msg defines the Msg service. */ 5 | export interface Msg { 6 | } 7 | 8 | export class MsgClientImpl implements Msg { 9 | private readonly rpc: Rpc; 10 | constructor(rpc: Rpc) { 11 | this.rpc = rpc; 12 | } 13 | } 14 | 15 | interface Rpc { 16 | request(service: string, method: string, data: Uint8Array): Promise; 17 | } 18 | -------------------------------------------------------------------------------- /src/assets/layout/_utils.scss: -------------------------------------------------------------------------------- 1 | /* Utils */ 2 | .clearfix:after { 3 | content: " "; 4 | display: block; 5 | clear: both; 6 | } 7 | 8 | .card { 9 | background: var(--surface-card); 10 | border: 1px solid var(--surface-border); 11 | padding: 2rem; 12 | margin-bottom: 2rem; 13 | box-shadow: var(--card-shadow); 14 | border-radius: $borderRadius; 15 | 16 | &:last-child { 17 | margin-bottom: 0; 18 | } 19 | } 20 | 21 | .p-toast { 22 | &.p-toast-top-right, 23 | &.p-toast-top-left, 24 | &.p-toast-top-center { 25 | top: 100px; 26 | } 27 | } -------------------------------------------------------------------------------- /src/store/generated/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es2020", 4 | "module": "es2020", /* Specify the root folder within your source files. */ 5 | "moduleResolution": "node", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ 6 | "outDir": "./lib", 7 | "esModuleInterop": true, 8 | "strict": false, 9 | "skipLibCheck": true /* Skip type checking all .d.ts files. */ 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclgenutil/types/zigbeealliance/distributedcomplianceledger/dclgenutil/query.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.dclgenutil"; 3 | 4 | /** Query defines the gRPC querier service. */ 5 | export interface Query { 6 | } 7 | 8 | export class QueryClientImpl implements Query { 9 | private readonly rpc: Rpc; 10 | constructor(rpc: Rpc) { 11 | this.rpc = rpc; 12 | } 13 | } 14 | 15 | interface Rpc { 16 | request(service: string, method: string, data: Uint8Array): Promise; 17 | } 18 | -------------------------------------------------------------------------------- /src/layout/AppFooter.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 19 | 20 | -------------------------------------------------------------------------------- /public/images/themes/md-dark-indigo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 2 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /public/images/themes/md-light-indigo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 2 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /public/images/themes/md-dark-deeppurple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /public/images/themes/md-light-deeppurple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /public/layout/images/themes/md-dark-deeppurple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /public/layout/images/themes/md-dark-indigo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 2 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /public/layout/images/themes/md-light-indigo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 2 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /public/layout/images/themes/md-light-deeppurple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclupgrade/types.ts: -------------------------------------------------------------------------------- 1 | import { ApprovedUpgrade } from "./types/zigbeealliance/distributedcomplianceledger/dclupgrade/approved_upgrade" 2 | import { Grant } from "./types/zigbeealliance/distributedcomplianceledger/dclupgrade/grant" 3 | import { ProposedUpgrade } from "./types/zigbeealliance/distributedcomplianceledger/dclupgrade/proposed_upgrade" 4 | import { RejectedUpgrade } from "./types/zigbeealliance/distributedcomplianceledger/dclupgrade/rejected_upgrade" 5 | 6 | 7 | export { 8 | ApprovedUpgrade, 9 | Grant, 10 | ProposedUpgrade, 11 | RejectedUpgrade, 12 | 13 | } -------------------------------------------------------------------------------- /ts-client/types.d.ts: -------------------------------------------------------------------------------- 1 | import { Keplr, Window as KeplrWindow } from '@keplr-wallet/types'; 2 | 3 | declare global { 4 | interface KeplrIntereactionOptions { 5 | readonly sign?: KeplrSignOptions; 6 | } 7 | 8 | export interface KeplrSignOptions { 9 | readonly preferNoSetFee?: boolean; 10 | readonly preferNoSetMemo?: boolean; 11 | readonly disableBalanceCheck?: boolean; 12 | } 13 | interface CustomKeplr extends Keplr { 14 | enable(chainId: string | string[]): Promise; 15 | 16 | defaultOptions: KeplrIntereactionOptions; 17 | } 18 | interface Window extends KeplrWindow { 19 | keplr: CustomKeplr; 20 | } 21 | } -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { MsgUpdateVendorInfo } from "./types/zigbeealliance/distributedcomplianceledger/vendorinfo/tx"; 3 | import { MsgCreateVendorInfo } from "./types/zigbeealliance/distributedcomplianceledger/vendorinfo/tx"; 4 | 5 | const msgTypes: Array<[string, GeneratedType]> = [ 6 | ["/zigbeealliance.distributedcomplianceledger.vendorinfo.MsgUpdateVendorInfo", MsgUpdateVendorInfo], 7 | ["/zigbeealliance.distributedcomplianceledger.vendorinfo.MsgCreateVendorInfo", MsgCreateVendorInfo], 8 | 9 | ]; 10 | 11 | export { msgTypes } -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.model/types.ts: -------------------------------------------------------------------------------- 1 | import { Model } from "./types/zigbeealliance/distributedcomplianceledger/model/model" 2 | import { ModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/model_version" 3 | import { ModelVersions } from "./types/zigbeealliance/distributedcomplianceledger/model/model_versions" 4 | import { Product } from "./types/zigbeealliance/distributedcomplianceledger/model/product" 5 | import { VendorProducts } from "./types/zigbeealliance/distributedcomplianceledger/model/vendor_products" 6 | 7 | 8 | export { 9 | Model, 10 | ModelVersion, 11 | ModelVersions, 12 | Product, 13 | VendorProducts, 14 | 15 | } -------------------------------------------------------------------------------- /ts-client/cosmos.base.tendermint.v1beta1/types.ts: -------------------------------------------------------------------------------- 1 | import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query" 2 | import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query" 3 | import { Module } from "./types/cosmos/base/tendermint/v1beta1/query" 4 | import { ProofOp } from "./types/cosmos/base/tendermint/v1beta1/query" 5 | import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query" 6 | import { Block } from "./types/cosmos/base/tendermint/v1beta1/types" 7 | import { Header } from "./types/cosmos/base/tendermint/v1beta1/types" 8 | 9 | 10 | export { 11 | Validator, 12 | VersionInfo, 13 | Module, 14 | ProofOp, 15 | ProofOps, 16 | Block, 17 | Header, 18 | 19 | } -------------------------------------------------------------------------------- /ts-client/cosmos.vesting.v1beta1/types.ts: -------------------------------------------------------------------------------- 1 | import { BaseVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting" 2 | import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting" 3 | import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting" 4 | import { Period } from "./types/cosmos/vesting/v1beta1/vesting" 5 | import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting" 6 | import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting" 7 | 8 | 9 | export { 10 | BaseVestingAccount, 11 | ContinuousVestingAccount, 12 | DelayedVestingAccount, 13 | Period, 14 | PeriodicVestingAccount, 15 | PermanentLockedAccount, 16 | 17 | } -------------------------------------------------------------------------------- /public/images/blocks/logos/hyper.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /ts-client/cosmos.vesting.v1beta1/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; 3 | import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; 4 | import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; 5 | 6 | const msgTypes: Array<[string, GeneratedType]> = [ 7 | ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], 8 | ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount], 9 | ["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], 10 | 11 | ]; 12 | 13 | export { msgTypes } -------------------------------------------------------------------------------- /NOTICE.md: -------------------------------------------------------------------------------- 1 | Comcast.github.io 2 | Copyright 2017 Comcast Cable Communications Management, LLC 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | 16 | This product includes software developed at Comcast (https://www.comcast.com/). 17 | -------------------------------------------------------------------------------- /src/store/generated/cosmos.bank.v1beta1/index.js: -------------------------------------------------------------------------------- 1 | // Stub module to prevent errors from @starport/vuex 2 | export default function (store) { 3 | const moduleName = 'cosmos.bank.v1beta1'; 4 | 5 | if (!store.hasModule([moduleName])) { 6 | const module = { 7 | namespaced: true, 8 | state: () => ({ 9 | supply: [] 10 | }), 11 | getters: {}, 12 | mutations: {}, 13 | actions: { 14 | QueryTotalSupply: () => { 15 | // Stub action - returns empty supply 16 | return Promise.resolve({ 17 | data: { 18 | supply: [] 19 | } 20 | }); 21 | } 22 | } 23 | }; 24 | 25 | store.registerModule([moduleName], module); 26 | } 27 | } -------------------------------------------------------------------------------- /src/store/generated/cosmos.bank.v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // Stub module to prevent errors from @starport/vuex 2 | export default function (store: any) { 3 | const moduleName = 'cosmos.bank.v1beta1' 4 | 5 | if (!store.hasModule([moduleName])) { 6 | const module = { 7 | namespaced: true, 8 | state: () => ({ 9 | supply: [] 10 | }), 11 | getters: {}, 12 | mutations: {}, 13 | actions: { 14 | QueryTotalSupply: () => { 15 | // Stub action - returns empty supply 16 | return Promise.resolve({ 17 | data: { 18 | supply: [] 19 | } 20 | }) 21 | } 22 | } 23 | } 24 | 25 | store.registerModule([moduleName], module) 26 | } 27 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Distributed Compliance Ledger 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 |
17 |
18 |
19 |
20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclgenutil/api.swagger.yml: -------------------------------------------------------------------------------- 1 | swagger: '2.0' 2 | info: 3 | title: HTTP API Console zigbeealliance.distributedcomplianceledger.dclgenutil 4 | name: '' 5 | description: '' 6 | definitions: 7 | Any: 8 | type: object 9 | properties: 10 | '@type': 11 | type: string 12 | additionalProperties: {} 13 | Status: 14 | type: object 15 | properties: 16 | code: 17 | type: integer 18 | format: int32 19 | message: 20 | type: string 21 | details: 22 | type: array 23 | items: 24 | type: object 25 | properties: 26 | '@type': 27 | type: string 28 | additionalProperties: {} 29 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclupgrade/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { MsgApproveUpgrade } from "./types/zigbeealliance/distributedcomplianceledger/dclupgrade/tx"; 3 | import { MsgProposeUpgrade } from "./types/zigbeealliance/distributedcomplianceledger/dclupgrade/tx"; 4 | import { MsgRejectUpgrade } from "./types/zigbeealliance/distributedcomplianceledger/dclupgrade/tx"; 5 | 6 | const msgTypes: Array<[string, GeneratedType]> = [ 7 | ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgApproveUpgrade", MsgApproveUpgrade], 8 | ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgProposeUpgrade", MsgProposeUpgrade], 9 | ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgRejectUpgrade", MsgRejectUpgrade], 10 | 11 | ]; 12 | 13 | export { msgTypes } -------------------------------------------------------------------------------- /src/store/generated/cosmos.staking.v1beta1/index.js: -------------------------------------------------------------------------------- 1 | // Stub module to prevent errors from @starport/vuex 2 | export default function (store) { 3 | const moduleName = 'cosmos.staking.v1beta1'; 4 | 5 | if (!store.hasModule([moduleName])) { 6 | const module = { 7 | namespaced: true, 8 | state: () => ({ 9 | params: { 10 | bond_denom: 'stake' 11 | } 12 | }), 13 | getters: {}, 14 | mutations: {}, 15 | actions: { 16 | QueryParams: () => { 17 | // Stub action - returns default params 18 | return Promise.resolve({ 19 | data: { 20 | params: { 21 | bond_denom: 'stake' 22 | } 23 | } 24 | }); 25 | } 26 | } 27 | }; 28 | 29 | store.registerModule([moduleName], module); 30 | } 31 | } -------------------------------------------------------------------------------- /src/store/generated/cosmos.staking.v1beta1/index.ts: -------------------------------------------------------------------------------- 1 | // Stub module to prevent errors from @starport/vuex 2 | export default function (store: any) { 3 | const moduleName = 'cosmos.staking.v1beta1' 4 | 5 | if (!store.hasModule([moduleName])) { 6 | const module = { 7 | namespaced: true, 8 | state: () => ({ 9 | params: { 10 | bond_denom: 'stake' 11 | } 12 | }), 13 | getters: {}, 14 | mutations: {}, 15 | actions: { 16 | QueryParams: () => { 17 | // Stub action - returns default params 18 | return Promise.resolve({ 19 | data: { 20 | params: { 21 | bond_denom: 'stake' 22 | } 23 | } 24 | }) 25 | } 26 | } 27 | } 28 | 29 | store.registerModule([moduleName], module) 30 | } 31 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "esnext", 4 | "module": "esnext", 5 | "moduleResolution": "node", 6 | "lib": [ 7 | "esnext", 8 | "dom" 9 | ], 10 | "strict": true, 11 | "jsx": "preserve", 12 | "esModuleInterop": true, 13 | "allowSyntheticDefaultImports": true, 14 | "sourceMap": true, 15 | "baseUrl": ".", 16 | "paths": { 17 | "@/components/*": [ 18 | "./src/components/*" 19 | ], 20 | "@/views/*": [ 21 | "./src/views/*" 22 | ] 23 | }, 24 | "resolveJsonModule": true, 25 | "experimentalDecorators": true, 26 | "skipLibCheck": true, 27 | "forceConsistentCasingInFileNames": true 28 | }, 29 | "include": [ 30 | "src/**/*.ts", 31 | "src/**/*.vue", 32 | "src/**/*.d.ts" 33 | ], 34 | "exclude": [ 35 | "node_modules", 36 | "dist" 37 | ] 38 | } -------------------------------------------------------------------------------- /ts-client/helpers.ts: -------------------------------------------------------------------------------- 1 | export type Constructor = new (...args: any[]) => T; 2 | 3 | export type AnyFunction = (...args: any) => any; 4 | 5 | export type UnionToIntersection = 6 | (Union extends any 7 | ? (argument: Union) => void 8 | : never 9 | ) extends (argument: infer Intersection) => void 10 | ? Intersection 11 | : never; 12 | 13 | export type Return = 14 | T extends AnyFunction 15 | ? ReturnType 16 | : T extends AnyFunction[] 17 | ? UnionToIntersection> 18 | : never 19 | 20 | 21 | export const MissingWalletError = new Error("wallet is required"); 22 | 23 | export function getStructure(template) { 24 | let structure = { fields: [] as Array} 25 | for (const [key, value] of Object.entries(template)) { 26 | let field: any = {} 27 | field.name = key 28 | field.type = typeof value 29 | structure.fields.push(field) 30 | } 31 | return structure 32 | } -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | require('@rushstack/eslint-patch/modern-module-resolution'); 2 | module.exports = { 3 | root: true, 4 | env: { 5 | node: true 6 | }, 7 | extends: [ 8 | 'plugin:vue/vue3-essential', 9 | 'eslint:recommended', 10 | 'plugin:prettier/recommended', 11 | '@vue/prettier', 12 | '@vue/eslint-config-prettier' 13 | ], 14 | parserOptions: { 15 | parser: 'babel-eslint', 16 | ecmaVersion: 'latest' 17 | }, 18 | plugins: ['prettier'], 19 | rules: { 20 | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 21 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 22 | 'no-unused-vars': 'off', 23 | 'vue/component-name-in-template-casing': ['error', 'PascalCase'], 24 | 'vue/multi-word-component-names': 'off', 25 | 'vue/no-reserved-component-names': 'off', 26 | 'vue/component-tags-order': [ 27 | 'error', 28 | { 29 | order: ['script', 'template', 'style'] 30 | } 31 | ] 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /src/store/generated/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Ignite Codegen ", 3 | "dependencies": { 4 | "buffer": "^6.0.3", 5 | "zigbee-alliance-distributed-compliance-ledger-client-ts": "file:../../../ts-client" 6 | }, 7 | "description": "Autogenerated Vuex Stores", 8 | "devDependencies": { 9 | "typescript": "^4.8.4" 10 | }, 11 | "license": "Apache-2.0", 12 | "licenses": [ 13 | { 14 | "type": "Apache-2.0", 15 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 16 | } 17 | ], 18 | "main": "./index.js", 19 | "name": "zigbee-alliance-distributed-compliance-ledger-vuex", 20 | "peerDependencies": { 21 | "@cosmjs/proto-signing": "0.27.0", 22 | "@cosmjs/stargate": "0.27.0", 23 | "vue": "3.2.31" 24 | }, 25 | "publishConfig": { 26 | "access": "public" 27 | }, 28 | "scripts": { 29 | "build": "tsc", 30 | "postinstall": "node postinstall.js", 31 | "prepublishOnly": "node local-check.js && tsc" 32 | }, 33 | "version": "0.0.1" 34 | } 35 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclauth/types.ts: -------------------------------------------------------------------------------- 1 | import { Account } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/account" 2 | import { AccountStat } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/account_stat" 3 | import { Grant } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/grant" 4 | import { PendingAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/pending_account" 5 | import { PendingAccountRevocation } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/pending_account_revocation" 6 | import { RejectedAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/rejected_account" 7 | import { RevokedAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/revoked_account" 8 | 9 | 10 | export { 11 | Account, 12 | AccountStat, 13 | Grant, 14 | PendingAccount, 15 | PendingAccountRevocation, 16 | RejectedAccount, 17 | RevokedAccount, 18 | 19 | } -------------------------------------------------------------------------------- /ts-client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zigbee-alliance-distributed-compliance-ledger-client-ts", 3 | "version": "0.0.1", 4 | "description": "Autogenerated Typescript Client", 5 | "author": "Ignite Codegen ", 6 | "license": "Apache-2.0", 7 | "licenses": [ 8 | { 9 | "type": "Apache-2.0", 10 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 11 | } 12 | ], 13 | "main": "index.ts", 14 | "publishConfig": { 15 | "access": "public" 16 | }, 17 | "dependencies": { 18 | "@cosmjs/launchpad": "0.27.1", 19 | "@cosmjs/proto-signing": "0.32.3", 20 | "@cosmjs/stargate": "0.32.3", 21 | "@keplr-wallet/types": "^0.11.3", 22 | "axios": "0.21.4", 23 | "buffer": "^6.0.3", 24 | "events": "^3.3.0" 25 | }, 26 | "peerDependencies": { 27 | "@cosmjs/launchpad": "0.27.1", 28 | "@cosmjs/proto-signing": "0.32.3", 29 | "@cosmjs/stargate": "0.32.3" 30 | }, 31 | "devDependencies": { 32 | "@types/events": "^3.0.0", 33 | "typescript": "^4.8.4" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/assets/layout/_preloading.scss: -------------------------------------------------------------------------------- 1 | .preloader { 2 | position: fixed; 3 | z-index: 999999; 4 | background: #edf1f5; 5 | width: 100%; 6 | height: 100%; 7 | } 8 | .preloader-content { 9 | border: 0 solid transparent; 10 | border-radius: 50%; 11 | width: 150px; 12 | height: 150px; 13 | position: absolute; 14 | top: calc(50vh - 75px); 15 | left: calc(50vw - 75px); 16 | } 17 | 18 | .preloader-content:before, .preloader-content:after{ 19 | content: ''; 20 | border: 1em solid var(--primary-color); 21 | border-radius: 50%; 22 | width: inherit; 23 | height: inherit; 24 | position: absolute; 25 | top: 0; 26 | left: 0; 27 | animation: loader 2s linear infinite; 28 | opacity: 0; 29 | } 30 | 31 | .preloader-content:before{ 32 | animation-delay: 0.5s; 33 | } 34 | 35 | @keyframes loader{ 36 | 0%{ 37 | transform: scale(0); 38 | opacity: 0; 39 | } 40 | 50%{ 41 | opacity: 1; 42 | } 43 | 100%{ 44 | transform: scale(1); 45 | opacity: 0; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.validator/types.ts: -------------------------------------------------------------------------------- 1 | import { Description } from "./types/zigbeealliance/distributedcomplianceledger/validator/description" 2 | import { DisabledValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/disabled_validator" 3 | import { Grant } from "./types/zigbeealliance/distributedcomplianceledger/validator/grant" 4 | import { LastValidatorPower } from "./types/zigbeealliance/distributedcomplianceledger/validator/last_validator_power" 5 | import { ProposedDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/proposed_disable_validator" 6 | import { RejectedDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/rejected_validator" 7 | import { Validator } from "./types/zigbeealliance/distributedcomplianceledger/validator/validator" 8 | 9 | 10 | export { 11 | Description, 12 | DisabledValidator, 13 | Grant, 14 | LastValidatorPower, 15 | ProposedDisableValidator, 16 | RejectedDisableValidator, 17 | Validator, 18 | 19 | } -------------------------------------------------------------------------------- /ts-client/cosmos.tx.v1beta1/types.ts: -------------------------------------------------------------------------------- 1 | import { Tx } from "./types/cosmos/tx/v1beta1/tx" 2 | import { TxRaw } from "./types/cosmos/tx/v1beta1/tx" 3 | import { SignDoc } from "./types/cosmos/tx/v1beta1/tx" 4 | import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx" 5 | import { TxBody } from "./types/cosmos/tx/v1beta1/tx" 6 | import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx" 7 | import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx" 8 | import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx" 9 | import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx" 10 | import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx" 11 | import { Fee } from "./types/cosmos/tx/v1beta1/tx" 12 | import { Tip } from "./types/cosmos/tx/v1beta1/tx" 13 | import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx" 14 | 15 | 16 | export { 17 | Tx, 18 | TxRaw, 19 | SignDoc, 20 | SignDocDirectAux, 21 | TxBody, 22 | AuthInfo, 23 | SignerInfo, 24 | ModeInfo, 25 | ModeInfo_Single, 26 | ModeInfo_Multi, 27 | Fee, 28 | Tip, 29 | AuxSignerData, 30 | 31 | } -------------------------------------------------------------------------------- /src/assets/layout/_typography.scss: -------------------------------------------------------------------------------- 1 | h1, h2, h3, h4, h5, h6 { 2 | margin: 1.5rem 0 1rem 0; 3 | font-family: inherit; 4 | font-weight: 500; 5 | line-height: 1.2; 6 | color: var(--surface-900); 7 | 8 | &:first-child { 9 | margin-top: 0; 10 | } 11 | } 12 | 13 | h1 { 14 | font-size: 2.5rem; 15 | } 16 | 17 | h2 { 18 | font-size: 2rem; 19 | } 20 | 21 | h3 { 22 | font-size: 1.75rem; 23 | } 24 | 25 | h4 { 26 | font-size: 1.5rem; 27 | } 28 | 29 | h5 { 30 | font-size: 1.25rem; 31 | } 32 | 33 | h6 { 34 | font-size: 1rem; 35 | } 36 | 37 | mark { 38 | background: #FFF8E1; 39 | padding: .25rem .4rem; 40 | border-radius: $borderRadius; 41 | font-family: monospace; 42 | } 43 | 44 | blockquote { 45 | margin: 1rem 0; 46 | padding: 0 2rem; 47 | border-left: 4px solid #90A4AE; 48 | } 49 | 50 | hr { 51 | border-top: solid var(--surface-border); 52 | border-width: 1px 0 0 0; 53 | margin: 1rem 0; 54 | } 55 | 56 | p { 57 | margin: 0 0 1rem 0; 58 | line-height: 1.5; 59 | 60 | &:last-child { 61 | margin-bottom: 0; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/assets/layout/_config.scss: -------------------------------------------------------------------------------- 1 | .layout-config-button { 2 | display: block; 3 | position: fixed; 4 | width: 3rem; 5 | height: 3rem; 6 | line-height: 3rem; 7 | background: var(--primary-color); 8 | color: var(--primary-color-text); 9 | text-align: center; 10 | top: 50%; 11 | right: 0; 12 | margin-top: -1.5rem; 13 | border-top-left-radius: var(--border-radius); 14 | border-bottom-left-radius: var(--border-radius); 15 | border-top-right-radius: 0; 16 | border-bottom-right-radius: 0; 17 | transition: background-color var(--transition-duration); 18 | overflow: hidden; 19 | cursor: pointer; 20 | z-index: 999; 21 | box-shadow: -0.25rem 0 1rem rgba(0, 0, 0, 0.15); 22 | 23 | i { 24 | font-size: 2rem; 25 | line-height: inherit; 26 | transform: rotate(0deg); 27 | transition: transform 1s; 28 | } 29 | 30 | &:hover { 31 | background: var(--primary-400); 32 | } 33 | } 34 | 35 | .layout-config-sidebar { 36 | &.p-sidebar { 37 | .p-sidebar-content { 38 | padding-left: 2rem; 39 | padding-right: 2rem; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.compliance/types.ts: -------------------------------------------------------------------------------- 1 | import { CertifiedModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/certified_model" 2 | import { ComplianceHistoryItem } from "./types/zigbeealliance/distributedcomplianceledger/compliance/compliance_history_item" 3 | import { ComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/compliance_info" 4 | import { DeviceSoftwareCompliance } from "./types/zigbeealliance/distributedcomplianceledger/compliance/device_software_compliance" 5 | import { ProvisionalModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/provisional_model" 6 | import { RevokedModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/revoked_model" 7 | import { MsgCertifyModel, MsgRevokeModel, MsgProvisionModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx" 8 | 9 | 10 | export { 11 | CertifiedModel, 12 | ComplianceHistoryItem, 13 | ComplianceInfo, 14 | DeviceSoftwareCompliance, 15 | ProvisionalModel, 16 | RevokedModel, 17 | MsgCertifyModel, 18 | MsgRevokeModel, 19 | MsgProvisionModel, 20 | 21 | } -------------------------------------------------------------------------------- /src/components/Sidebar.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 36 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.compliance/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { MsgDeleteComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; 3 | import { MsgUpdateComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; 4 | import { MsgProvisionModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; 5 | import { MsgCertifyModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; 6 | import { MsgRevokeModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; 7 | 8 | const msgTypes: Array<[string, GeneratedType]> = [ 9 | ["/zigbeealliance.distributedcomplianceledger.compliance.MsgDeleteComplianceInfo", MsgDeleteComplianceInfo], 10 | ["/zigbeealliance.distributedcomplianceledger.compliance.MsgUpdateComplianceInfo", MsgUpdateComplianceInfo], 11 | ["/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel", MsgProvisionModel], 12 | ["/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", MsgCertifyModel], 13 | ["/zigbeealliance.distributedcomplianceledger.compliance.MsgRevokeModel", MsgRevokeModel], 14 | 15 | ]; 16 | 17 | export { msgTypes } -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclauth/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { MsgProposeRevokeAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; 3 | import { MsgApproveAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; 4 | import { MsgRejectAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; 5 | import { MsgProposeAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; 6 | import { MsgApproveRevokeAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; 7 | 8 | const msgTypes: Array<[string, GeneratedType]> = [ 9 | ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", MsgProposeRevokeAccount], 10 | ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveAddAccount", MsgApproveAddAccount], 11 | ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", MsgRejectAddAccount], 12 | ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeAddAccount", MsgProposeAddAccount], 13 | ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveRevokeAccount", MsgApproveRevokeAccount], 14 | 15 | ]; 16 | 17 | export { msgTypes } -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to Contribute 2 | 3 | Thank you for considering helping out! 4 | 5 | Looking to update information or feature your project? Feel free to make the change yourself. [This is the right place to get started](https://github.com/Comcast). 6 | 7 | First, please read the [code of conduct](https://github.com/Comcast/Comcast.github.io/blob/main/CODE_OF_CONDUCT.md). We take it very seriously! 8 | 9 | Next, if you want to help out, do the following: 10 | 11 | 1. Fork the project. 12 | 2. Make a feature branch with the name of your change. 13 | 3. Make a change. 14 | 4. Commit your code. 15 | 5. Issue a Pull Request. 16 | 17 | Once your PR is issued, we will review your work and decide on adding it to the project! 18 | 19 | For more details about contributing to GitHub projects see [How to use Github: Fork, Branch, Track, Squash and Pull Request](http://gun.io/blog/how-to-github-fork-branch-and-pull-request/) 20 | 21 | ## Contributor License Agreement 22 | 23 | Before Comcast merges your code into the project you must sign the [Comcast Contributor License Agreement (CLA)](https://gist.github.com/ComcastOSS/a7b8933dd8e368535378cda25c92d19a). 24 | 25 | If you haven't previously signed a Comcast CLA, you'll automatically be asked to when you open a pull request. Alternatively, we can send you a PDF that you can sign and scan back to us. Please create a new GitHub issue to request a PDF version of the CLA. -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.model/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { MsgUpdateModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; 3 | import { MsgCreateModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; 4 | import { MsgCreateModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; 5 | import { MsgDeleteModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; 6 | import { MsgDeleteModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; 7 | import { MsgUpdateModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; 8 | 9 | const msgTypes: Array<[string, GeneratedType]> = [ 10 | ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", MsgUpdateModelVersion], 11 | ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", MsgCreateModelVersion], 12 | ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModel", MsgCreateModel], 13 | ["/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModel", MsgDeleteModel], 14 | ["/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModelVersion", MsgDeleteModelVersion], 15 | ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModel", MsgUpdateModel], 16 | 17 | ]; 18 | 19 | export { msgTypes } -------------------------------------------------------------------------------- /src/router/index.js: -------------------------------------------------------------------------------- 1 | import { createRouter, createWebHistory } from 'vue-router' 2 | import Dashboard from '@/components/Dashboard.vue' 3 | import Accounts from '@/views/Accounts/Accounts.vue' 4 | import Vendors from '@/views/VendorInfo/Vendors.vue' 5 | import Models from '@/views/Models/Models.vue' 6 | import Compliance from '@/views/Compliance/Compliance.vue' 7 | import PKI from '@/views/PKI/PKI.vue' 8 | import Validators from '@/views/Validators/Validators.vue' 9 | import Upgrades from '@/views/Upgrades/Upgrades.vue' 10 | import LegacyWallet from '@/views/Tools/LegacyWallet.vue' 11 | import KeplrConnectionDocs from '@/views/Docs/KeplrConnectionDocs.vue' 12 | import Transactions from '@/views/Tools/Transactions.vue' 13 | const routerHistory = createWebHistory() 14 | const routes = [ 15 | { 16 | path: '/', 17 | component: Dashboard 18 | }, 19 | { path: '/accounts', component: Accounts }, 20 | { path: '/vendors', component: Vendors }, 21 | { path: '/models', component: Models }, 22 | { path: '/compliance', component: Compliance }, 23 | { path: '/pki', component: PKI }, 24 | { path: '/validators', component: Validators }, 25 | { path: '/upgrades', component: Upgrades }, 26 | { path: "/legacy-wallet", component: LegacyWallet }, 27 | { path: '/keplr-wallet', component: KeplrConnectionDocs }, 28 | { path: '/transactions/blocks/:height?', component: Transactions }, 29 | ] 30 | 31 | const router = createRouter({ 32 | history: routerHistory, 33 | routes 34 | }) 35 | 36 | export default router -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.validator/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { MsgCreateValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; 3 | import { MsgProposeDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; 4 | import { MsgEnableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; 5 | import { MsgApproveDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; 6 | import { MsgDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; 7 | import { MsgRejectDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; 8 | 9 | const msgTypes: Array<[string, GeneratedType]> = [ 10 | ["/zigbeealliance.distributedcomplianceledger.validator.MsgCreateValidator", MsgCreateValidator], 11 | ["/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", MsgProposeDisableValidator], 12 | ["/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", MsgEnableValidator], 13 | ["/zigbeealliance.distributedcomplianceledger.validator.MsgApproveDisableValidator", MsgApproveDisableValidator], 14 | ["/zigbeealliance.distributedcomplianceledger.validator.MsgDisableValidator", MsgDisableValidator], 15 | ["/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", MsgRejectDisableValidator], 16 | 17 | ]; 18 | 19 | export { msgTypes } -------------------------------------------------------------------------------- /public/images/themes/bootstrap4-dark-purple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /public/images/themes/bootstrap4-light-purple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /public/layout/images/themes/bootstrap4-light-purple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /public/layout/images/themes/bootstrap4-dark-purple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /public/images/themes/bootstrap4-light-blue.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /public/images/themes/bootstrap4-dark-blue.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /public/layout/images/themes/bootstrap4-dark-blue.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /public/layout/images/themes/bootstrap4-light-blue.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/layout/composables/layout.js: -------------------------------------------------------------------------------- 1 | import { toRefs, reactive, computed } from 'vue'; 2 | 3 | const layoutConfig = reactive({ 4 | ripple: true, 5 | darkTheme: false, 6 | inputStyle: 'outlined', 7 | menuMode: 'static', 8 | theme: 'aura-light-green', 9 | scale: 14, 10 | activeMenuItem: null 11 | }); 12 | 13 | const layoutState = reactive({ 14 | staticMenuDesktopInactive: false, 15 | overlayMenuActive: false, 16 | profileSidebarVisible: false, 17 | configSidebarVisible: false, 18 | staticMenuMobileActive: false, 19 | menuHoverActive: false 20 | }); 21 | 22 | export function useLayout() { 23 | const setScale = (scale) => { 24 | layoutConfig.scale = scale; 25 | }; 26 | 27 | const setActiveMenuItem = (item) => { 28 | layoutConfig.activeMenuItem = item.value || item; 29 | }; 30 | 31 | const onMenuToggle = () => { 32 | if (layoutConfig.menuMode === 'overlay') { 33 | layoutState.overlayMenuActive = !layoutState.overlayMenuActive; 34 | } 35 | 36 | if (window.innerWidth > 991) { 37 | layoutState.staticMenuDesktopInactive = !layoutState.staticMenuDesktopInactive; 38 | } else { 39 | layoutState.staticMenuMobileActive = !layoutState.staticMenuMobileActive; 40 | } 41 | }; 42 | 43 | const isSidebarActive = computed(() => layoutState.overlayMenuActive || layoutState.staticMenuMobileActive); 44 | 45 | const isDarkTheme = computed(() => layoutConfig.darkTheme); 46 | 47 | return { layoutConfig: toRefs(layoutConfig), layoutState: toRefs(layoutState), setScale, onMenuToggle, isSidebarActive, isDarkTheme, setActiveMenuItem }; 48 | } 49 | -------------------------------------------------------------------------------- /src/ThemeToggle.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 43 | 44 | 57 | -------------------------------------------------------------------------------- /src/store/generated/index.d.ts: -------------------------------------------------------------------------------- 1 | declare const _default: { 2 | CosmosCosmosSdkCosmosAuthzV1Beta1: (store: any) => void; 3 | CosmosCosmosSdkCosmosBankV1Beta1: (store: any) => void; 4 | CosmosCosmosSdkCosmosCrisisV1Beta1: (store: any) => void; 5 | CosmosCosmosSdkCosmosDistributionV1Beta1: (store: any) => void; 6 | CosmosCosmosSdkCosmosEvidenceV1Beta1: (store: any) => void; 7 | CosmosCosmosSdkCosmosFeegrantV1Beta1: (store: any) => void; 8 | CosmosCosmosSdkCosmosGovV1Beta1: (store: any) => void; 9 | CosmosCosmosSdkCosmosSlashingV1Beta1: (store: any) => void; 10 | CosmosCosmosSdkCosmosStakingV1Beta1: (store: any) => void; 11 | CosmosCosmosSdkCosmosVestingV1Beta1: (store: any) => void; 12 | CosmosIbcGoIbcApplicationsTransferV1: (store: any) => void; 13 | ZigbeeAllianceDistributedComplianceLedgerZigbeeallianceDistributedcomplianceledgerCompliance: (store: any) => void; 14 | ZigbeeAllianceDistributedComplianceLedgerZigbeeallianceDistributedcomplianceledgerCompliancetest: (store: any) => void; 15 | ZigbeeAllianceDistributedComplianceLedgerZigbeeallianceDistributedcomplianceledgerDclauth: (store: any) => void; 16 | ZigbeeAllianceDistributedComplianceLedgerZigbeeallianceDistributedcomplianceledgerDclupgrade: (store: any) => void; 17 | ZigbeeAllianceDistributedComplianceLedgerZigbeeallianceDistributedcomplianceledgerModel: (store: any) => void; 18 | ZigbeeAllianceDistributedComplianceLedgerZigbeeallianceDistributedcomplianceledgerPki: (store: any) => void; 19 | ZigbeeAllianceDistributedComplianceLedgerZigbeeallianceDistributedcomplianceledgerValidator: (store: any) => void; 20 | ZigbeeAllianceDistributedComplianceLedgerZigbeeallianceDistributedcomplianceledgerVendorinfo: (store: any) => void; 21 | }; 22 | export default _default; 23 | -------------------------------------------------------------------------------- /src/AppTopbar.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 48 | 49 | 55 | -------------------------------------------------------------------------------- /ts-client/cosmos.mint.v1beta1/registry.ts: -------------------------------------------------------------------------------- 1 | import { GeneratedType } from "@cosmjs/proto-signing"; 2 | import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; 3 | import { Minter } from "./types/cosmos/mint/v1beta1/mint"; 4 | import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; 5 | import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; 6 | import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; 7 | import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; 8 | import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; 9 | import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; 10 | import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; 11 | import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; 12 | import { Params } from "./types/cosmos/mint/v1beta1/mint"; 13 | 14 | const msgTypes: Array<[string, GeneratedType]> = [ 15 | ["/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", QueryAnnualProvisionsResponse], 16 | ["/cosmos.mint.v1beta1.Minter", Minter], 17 | ["/cosmos.mint.v1beta1.QueryInflationResponse", QueryInflationResponse], 18 | ["/cosmos.mint.v1beta1.QueryParamsRequest", QueryParamsRequest], 19 | ["/cosmos.mint.v1beta1.QueryParamsResponse", QueryParamsResponse], 20 | ["/cosmos.mint.v1beta1.QueryInflationRequest", QueryInflationRequest], 21 | ["/cosmos.mint.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], 22 | ["/cosmos.mint.v1beta1.MsgUpdateParams", MsgUpdateParams], 23 | ["/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", QueryAnnualProvisionsRequest], 24 | ["/cosmos.mint.v1beta1.GenesisState", GenesisState], 25 | ["/cosmos.mint.v1beta1.Params", Params], 26 | 27 | ]; 28 | 29 | export { msgTypes } -------------------------------------------------------------------------------- /src/AppWallet.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 21 | 22 | 86 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dcl-ui", 3 | "version": "1.15.6", 4 | "description": "A Vuejs based application for managing CSA Distributed Compliance Ledger", 5 | "author": "Comcast Inc.", 6 | "private": true, 7 | "scripts": { 8 | "dev": "vite", 9 | "build": "vite build", 10 | "preview": "vite preview", 11 | "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore" 12 | }, 13 | "dependencies": { 14 | "@chainapsis/cosmosjs": "^0.0.3-alpha.3", 15 | "@cosmjs/launchpad": "^0.27.1", 16 | "@cosmjs/proto-signing": "^0.32.3", 17 | "@cosmjs/stargate": "^0.32.3", 18 | "@esbuild-plugins/node-globals-polyfill": "^0.2.3", 19 | "@keplr-wallet/cosmos": "^0.11.59", 20 | "@starport/vue": "^0.1.53", 21 | "@starport/vuex": "^0.1.53", 22 | "@vuelidate/core": "^2.0.3", 23 | "@vuelidate/validators": "^2.0.4", 24 | "bip39": "^3.0.4", 25 | "buffer": "^6.0.3", 26 | "chart.js": "^3.3.2", 27 | "core-js": "^3.11.2", 28 | "crypto-browserify": "^3.12.0", 29 | "crypto-js": "^4.0.0", 30 | "global": "^4.4.0", 31 | "primeflex": "^3.3.1", 32 | "primeicons": "^6.0.1", 33 | "primevue": "3.53.1", 34 | "process": "^0.11.10", 35 | "regenerator-runtime": "^0.14.1", 36 | "rollup-plugin-polyfill-node": "^0.13.0", 37 | "vite-plugin-node-polyfills": "^0.22.0", 38 | "vue": "^3.2.41", 39 | "vue-loading-overlay": "^5.0.3", 40 | "vue-router": "^4.1.5", 41 | "vue3-autocounter": "^1.0.6", 42 | "vuex": "^4.0.0", 43 | "zigbee-alliance-distributed-compliance-ledger-client-ts": "file:./ts-client" 44 | }, 45 | "devDependencies": { 46 | "@rushstack/eslint-patch": "^1.1.4", 47 | "@vitejs/plugin-vue": "^4.1.0", 48 | "@vue/eslint-config-prettier": "^7.0.0", 49 | "eslint": "^8.22.0", 50 | "eslint-plugin-vue": "^9.3.0", 51 | "prettier": "^2.7.1", 52 | "sass": "^1.55.0", 53 | "typescript": "^5.4.5", 54 | "vite": "^4.5.5" 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /public/images/pages/icon-diamond.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | icon-diamond 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | .env.local 75 | 76 | # parcel-bundler cache (https://parceljs.org/) 77 | .cache 78 | 79 | # Next.js build output 80 | .next 81 | 82 | # Nuxt.js build / generate output 83 | .nuxt 84 | dist 85 | 86 | # tmp directory 87 | tmp 88 | 89 | # Gatsby files 90 | .cache/ 91 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 92 | # https://nextjs.org/blog/next-9-1#public-directory-support 93 | # public 94 | 95 | # vuepress build output 96 | .vuepress/dist 97 | 98 | # Serverless directories 99 | .serverless/ 100 | 101 | # FuseBox cache 102 | .fusebox/ 103 | 104 | # DynamoDB Local files 105 | .dynamodb/ 106 | 107 | # TernJS port file 108 | .tern-port 109 | 110 | # Linter files 111 | repolinter.json 112 | repolinter_output.txt 113 | 114 | .vscode/** 115 | .vscode/ 116 | .DS_Store 117 | .browserslistrc 118 | -------------------------------------------------------------------------------- /src/store/index.js: -------------------------------------------------------------------------------- 1 | import { createStore } from 'vuex' 2 | import init from './config' 3 | import pkiOptimized from './pki-optimized' 4 | 5 | const store = createStore({ 6 | modules: { 7 | pkiOptimized 8 | }, 9 | state() { 10 | return { 11 | packageVersion: APP_VERSION, 12 | keplrSigner: null, 13 | selectedKeplrAccount: null, 14 | selectedKeplrAccountName: null, 15 | }; 16 | }, 17 | mutations: { 18 | setKeplrSigner(state, signer) { 19 | state.keplrSigner = signer; 20 | }, 21 | setSelectedKeplrAccount(state, account) { 22 | state.selectedKeplrAccount = account; 23 | state.selectedKeplrAccountName = account?.name; 24 | }, 25 | }, 26 | actions: { 27 | async setKeplrSigner({ commit, dispatch }) { 28 | const keplr = window.keplr; 29 | if (!keplr) { 30 | throw new Error("Please install the Keplr wallet extension"); 31 | } 32 | const chainId = import.meta.env.VITE_APP_DCL_CHAIN_ID; // Replace with your chain ID 33 | await keplr.enable(chainId); 34 | const signer = keplr.getOfflineSigner(chainId); 35 | signer.key = await signer.keplr.getKey(signer.chainId); 36 | commit("setKeplrSigner", signer); 37 | 38 | const accounts = await signer.getAccounts(); 39 | if (accounts.length > 1) { 40 | // Dispatch another action to show a UI for account selection 41 | dispatch("showAccountSelection", accounts); 42 | } else if (accounts.length === 1) { 43 | const account = accounts[0]; 44 | commit("setSelectedKeplrAccount", { address: account.address, name: account.name }); 45 | } else { 46 | throw new Error("No accounts found in the Keplr wallet"); 47 | } 48 | }, 49 | 50 | async disconnectKeplr({ commit }) { 51 | commit("setKeplrSigner", null); 52 | commit("setSelectedKeplrAccount", null); 53 | }, 54 | 55 | showAccountSelection({ commit }, accounts) { 56 | // Show a UI for the user to select an account from the `accounts` array 57 | // ... 58 | // Once the user has selected an account, commit the selected account to the Vuex state: 59 | commit("setSelectedKeplrAccount", selectedAccount); 60 | }, 61 | }, 62 | getters: { 63 | appVersion: (state) => { 64 | return state.packageVersion; 65 | }, 66 | loggedIn: (state) => { 67 | return state.selectedKeplrAccount !== null; 68 | }, 69 | keplrSigner: (state) => { 70 | return state.keplrSigner; 71 | }, 72 | selectedKeplrAccount: (state) => { 73 | return state.selectedKeplrAccount; 74 | } 75 | }, 76 | }); 77 | 78 | init(store); 79 | export default store; 80 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclgenutil/module.ts: -------------------------------------------------------------------------------- 1 | // Generated by Ignite ignite.com/cli 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient, DeliverTxResponse } from "@cosmjs/stargate"; 5 | import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; 6 | import { msgTypes } from './registry'; 7 | import { IgniteClient } from "../client" 8 | import { MissingWalletError } from "../helpers" 9 | import { Api } from "./rest"; 10 | 11 | 12 | export { }; 13 | 14 | 15 | 16 | export const registry = new Registry(msgTypes); 17 | 18 | type Field = { 19 | name: string; 20 | type: unknown; 21 | } 22 | function getStructure(template) { 23 | const structure: {fields: Field[]} = { fields: [] } 24 | for (let [key, value] of Object.entries(template)) { 25 | let field = { name: key, type: typeof value } 26 | structure.fields.push(field) 27 | } 28 | return structure 29 | } 30 | const defaultFee = { 31 | amount: [], 32 | gas: "200000", 33 | }; 34 | 35 | interface TxClientOptions { 36 | addr: string 37 | prefix: string 38 | signer?: OfflineSigner 39 | } 40 | 41 | export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "http://localhost:26657", prefix: "cosmos" }) => { 42 | 43 | return { 44 | 45 | 46 | } 47 | }; 48 | 49 | interface QueryClientOptions { 50 | addr: string 51 | } 52 | 53 | export const queryClient = ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 54 | return new Api({ baseURL: addr }); 55 | }; 56 | 57 | class SDKModule { 58 | public query: ReturnType; 59 | public tx: ReturnType; 60 | public structure: Record; 61 | public registry: Array<[string, GeneratedType]> = []; 62 | 63 | constructor(client: IgniteClient) { 64 | 65 | this.query = queryClient({ addr: client.env.apiURL }); 66 | this.updateTX(client); 67 | this.structure = { 68 | 69 | }; 70 | client.on('signer-changed',(signer) => { 71 | this.updateTX(client); 72 | }) 73 | } 74 | updateTX(client: IgniteClient) { 75 | const methods = txClient({ 76 | signer: client.signer, 77 | addr: client.env.rpcURL, 78 | prefix: client.env.prefix ?? "cosmos", 79 | }) 80 | 81 | this.tx = methods; 82 | for (let m in methods) { 83 | this.tx[m] = methods[m].bind(this.tx); 84 | } 85 | } 86 | }; 87 | 88 | const Module = (test: IgniteClient) => { 89 | return { 90 | module: { 91 | ZigbeeallianceDistributedcomplianceledgerDclgenutil: new SDKModule(test) 92 | }, 93 | registry: msgTypes 94 | } 95 | } 96 | export default Module; -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | // vite.config.js 2 | 3 | import { fileURLToPath, URL } from 'node:url'; 4 | import { defineConfig } from 'vite'; 5 | import vue from '@vitejs/plugin-vue'; 6 | import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'; 7 | import NodePolyfills from 'rollup-plugin-polyfill-node'; 8 | 9 | const useLocal = false; // set to false to use the test-net 10 | const apiTarget = useLocal ? 'http://localhost:26640' : 'https://on.test-net.dcl.csa-iot.org'; 11 | const rpcTarget = useLocal ? 'http://localhost:26657' : 'https://on.test-net.dcl.csa-iot.org:26657'; 12 | 13 | export default defineConfig(() => { 14 | return { 15 | plugins: [ 16 | vue(), 17 | NodeGlobalsPolyfillPlugin({ 18 | process: true, 19 | buffer: true, 20 | }), 21 | ], 22 | resolve: { 23 | alias: { 24 | '@': fileURLToPath(new URL('./src', import.meta.url)), 25 | buffer: require.resolve('buffer/'), // ensure this is resolving to the correct location 26 | stream: require.resolve('stream-browserify'), // using stream-browserify as a polyfill 27 | } 28 | }, 29 | optimizeDeps: { 30 | esbuildOptions: { 31 | plugins: [ 32 | NodeGlobalsPolyfillPlugin({ 33 | process: true, 34 | buffer: true, 35 | }), 36 | ], 37 | define: { 38 | global: 'globalThis', 39 | }, 40 | }, 41 | }, 42 | define: { 43 | 'process.env': {}, 44 | global: 'globalThis', 45 | 'APP_VERSION': JSON.stringify(require('./package.json').version), 46 | }, 47 | build: { 48 | rollupOptions: { 49 | plugins: [ 50 | NodePolyfills(), 51 | ], 52 | }, 53 | }, 54 | server: { 55 | port: 8080, 56 | proxy: { 57 | '/api': { 58 | target: apiTarget, 59 | changeOrigin: true, 60 | rewrite: (path) => path.replace(/^\/api/, '') 61 | }, 62 | '/rpc': { 63 | target: rpcTarget, 64 | changeOrigin: true, 65 | rewrite: (path) => path.replace(/^\/rpc/, ''), 66 | ws: true 67 | }, 68 | '/websocket': { 69 | target: rpcTarget, 70 | changeOrigin: true, 71 | ws: true, 72 | upgrade: true 73 | } 74 | } 75 | } 76 | }; 77 | }); 78 | -------------------------------------------------------------------------------- /src/assets/layout/_responsive.scss: -------------------------------------------------------------------------------- 1 | @media screen and (min-width: 1960px) { 2 | .layout-main, .landing-wrapper { 3 | width: 1504px; 4 | margin-left: auto !important; 5 | margin-right: auto !important; 6 | } 7 | 8 | } 9 | 10 | @media (min-width: 992px) { 11 | .layout-wrapper { 12 | &.layout-overlay { 13 | .layout-main-container { 14 | margin-left: 0; 15 | padding-left: 2rem; 16 | } 17 | 18 | .layout-sidebar { 19 | transform: translateX(-100%); 20 | left: 0; 21 | top: 0; 22 | height: 100vh; 23 | border-top-left-radius: 0; 24 | border-bottom-left-radius: 0; 25 | } 26 | 27 | &.layout-overlay-active { 28 | .layout-sidebar { 29 | transform: translateX(0); 30 | } 31 | } 32 | } 33 | 34 | &.layout-static { 35 | .layout-main-container { 36 | margin-left: 300px; 37 | } 38 | 39 | &.layout-static-inactive { 40 | .layout-sidebar { 41 | transform: translateX(-100%); 42 | left: 0; 43 | } 44 | 45 | .layout-main-container { 46 | margin-left: 0; 47 | padding-left: 2rem; 48 | } 49 | } 50 | } 51 | 52 | .layout-mask { 53 | display: none; 54 | } 55 | } 56 | } 57 | 58 | @media (max-width: 991px) { 59 | .blocked-scroll { 60 | overflow: hidden; 61 | } 62 | 63 | .layout-wrapper { 64 | .layout-main-container { 65 | margin-left: 0; 66 | padding-left: 2rem; 67 | } 68 | 69 | .layout-sidebar { 70 | transform: translateX(-100%); 71 | left: 0; 72 | top: 0; 73 | height: 100vh; 74 | border-top-left-radius: 0; 75 | border-bottom-left-radius: 0; 76 | } 77 | 78 | .layout-mask { 79 | display: none; 80 | position: fixed; 81 | top: 0; 82 | left: 0; 83 | z-index: 998; 84 | width: 100%; 85 | height: 100%; 86 | background-color: var(--maskbg); 87 | } 88 | 89 | &.layout-mobile-active { 90 | .layout-sidebar { 91 | transform: translateX(0); 92 | } 93 | 94 | .layout-mask { 95 | display: block; 96 | animation: fadein $transitionDuration; 97 | } 98 | } 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclauth/types/zigbeealliance/distributedcomplianceledger/common/uint16_range.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | 4 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.common"; 5 | 6 | export interface Uint16Range { 7 | min: number; 8 | max: number; 9 | } 10 | 11 | function createBaseUint16Range(): Uint16Range { 12 | return { min: 0, max: 0 }; 13 | } 14 | 15 | export const Uint16Range = { 16 | encode(message: Uint16Range, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 17 | if (message.min !== 0) { 18 | writer.uint32(8).int32(message.min); 19 | } 20 | if (message.max !== 0) { 21 | writer.uint32(16).int32(message.max); 22 | } 23 | return writer; 24 | }, 25 | 26 | decode(input: _m0.Reader | Uint8Array, length?: number): Uint16Range { 27 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 28 | let end = length === undefined ? reader.len : reader.pos + length; 29 | const message = createBaseUint16Range(); 30 | while (reader.pos < end) { 31 | const tag = reader.uint32(); 32 | switch (tag >>> 3) { 33 | case 1: 34 | message.min = reader.int32(); 35 | break; 36 | case 2: 37 | message.max = reader.int32(); 38 | break; 39 | default: 40 | reader.skipType(tag & 7); 41 | break; 42 | } 43 | } 44 | return message; 45 | }, 46 | 47 | fromJSON(object: any): Uint16Range { 48 | return { min: isSet(object.min) ? Number(object.min) : 0, max: isSet(object.max) ? Number(object.max) : 0 }; 49 | }, 50 | 51 | toJSON(message: Uint16Range): unknown { 52 | const obj: any = {}; 53 | message.min !== undefined && (obj.min = Math.round(message.min)); 54 | message.max !== undefined && (obj.max = Math.round(message.max)); 55 | return obj; 56 | }, 57 | 58 | fromPartial, I>>(object: I): Uint16Range { 59 | const message = createBaseUint16Range(); 60 | message.min = object.min ?? 0; 61 | message.max = object.max ?? 0; 62 | return message; 63 | }, 64 | }; 65 | 66 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 67 | 68 | export type DeepPartial = T extends Builtin ? T 69 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 70 | : T extends {} ? { [K in keyof T]?: DeepPartial } 71 | : Partial; 72 | 73 | type KeysOfUnion = T extends T ? keyof T : never; 74 | export type Exact = P extends Builtin ? P 75 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 76 | 77 | function isSet(value: any): boolean { 78 | return value !== null && value !== undefined; 79 | } 80 | -------------------------------------------------------------------------------- /public/images/pages/icon-document.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | icon-document 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/AppSubmenu.vue: -------------------------------------------------------------------------------- 1 | 31 | 75 | -------------------------------------------------------------------------------- /src/store/generated/zigbeealliance.distributedcomplianceledger.dclgenutil/index.ts: -------------------------------------------------------------------------------- 1 | import { Client, registry, MissingWalletError } from 'zigbee-alliance-distributed-compliance-ledger-client-ts' 2 | 3 | 4 | 5 | export { }; 6 | 7 | function initClient(vuexGetters) { 8 | return new Client({ 9 | apiURL: vuexGetters['common/env/apiCosmos'], 10 | rpcURL: vuexGetters['common/env/apiTendermint'], 11 | prefix: vuexGetters['common/env/addrPrefix'] 12 | }, vuexGetters['keplrSigner']) 13 | } 14 | 15 | function mergeResults(value, next_values) { 16 | for (let prop of Object.keys(next_values)) { 17 | if (Array.isArray(next_values[prop])) { 18 | value[prop]=[...value[prop], ...next_values[prop]] 19 | }else{ 20 | value[prop]=next_values[prop] 21 | } 22 | } 23 | return value 24 | } 25 | 26 | type Field = { 27 | name: string; 28 | type: unknown; 29 | } 30 | function getStructure(template) { 31 | let structure: {fields: Field[]} = { fields: [] } 32 | for (const [key, value] of Object.entries(template)) { 33 | let field = { name: key, type: typeof value } 34 | structure.fields.push(field) 35 | } 36 | return structure 37 | } 38 | const getDefaultState = () => { 39 | return { 40 | 41 | _Structure: { 42 | 43 | }, 44 | _Registry: registry, 45 | _Subscriptions: new Set(), 46 | } 47 | } 48 | 49 | // initial state 50 | const state = getDefaultState() 51 | 52 | export default { 53 | namespaced: true, 54 | state, 55 | mutations: { 56 | RESET_STATE(state) { 57 | Object.assign(state, getDefaultState()) 58 | }, 59 | QUERY(state, { query, key, value }) { 60 | state[query][JSON.stringify(key)] = value 61 | }, 62 | SUBSCRIBE(state, subscription) { 63 | state._Subscriptions.add(JSON.stringify(subscription)) 64 | }, 65 | UNSUBSCRIBE(state, subscription) { 66 | state._Subscriptions.delete(JSON.stringify(subscription)) 67 | } 68 | }, 69 | getters: { 70 | 71 | getTypeStructure: (state) => (type) => { 72 | return state._Structure[type].fields 73 | }, 74 | getRegistry: (state) => { 75 | return state._Registry 76 | } 77 | }, 78 | actions: { 79 | init({ dispatch, rootGetters }) { 80 | console.log('Vuex module: zigbeealliance.distributedcomplianceledger.dclgenutil initialized!') 81 | if (rootGetters['common/env/client']) { 82 | rootGetters['common/env/client'].on('newblock', () => { 83 | dispatch('StoreUpdate') 84 | }) 85 | } 86 | }, 87 | resetState({ commit }) { 88 | commit('RESET_STATE') 89 | }, 90 | unsubscribe({ commit }, subscription) { 91 | commit('UNSUBSCRIBE', subscription) 92 | }, 93 | async StoreUpdate({ state, dispatch }) { 94 | state._Subscriptions.forEach(async (subscription) => { 95 | try { 96 | const sub=JSON.parse(subscription) 97 | await dispatch(sub.action, sub.payload) 98 | }catch(e) { 99 | throw new Error('Subscriptions: ' + e.message) 100 | } 101 | }) 102 | }, 103 | 104 | 105 | 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/types/zigbeealliance/distributedcomplianceledger/vendorinfo/genesis.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | import { VendorInfo } from "./vendor_info"; 4 | 5 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.vendorinfo"; 6 | 7 | /** GenesisState defines the vendorinfo module's genesis state. */ 8 | export interface GenesisState { 9 | /** this line is used by starport scaffolding # genesis/proto/state */ 10 | vendorInfoList: VendorInfo[]; 11 | } 12 | 13 | function createBaseGenesisState(): GenesisState { 14 | return { vendorInfoList: [] }; 15 | } 16 | 17 | export const GenesisState = { 18 | encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 19 | for (const v of message.vendorInfoList) { 20 | VendorInfo.encode(v!, writer.uint32(10).fork()).ldelim(); 21 | } 22 | return writer; 23 | }, 24 | 25 | decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { 26 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 27 | let end = length === undefined ? reader.len : reader.pos + length; 28 | const message = createBaseGenesisState(); 29 | while (reader.pos < end) { 30 | const tag = reader.uint32(); 31 | switch (tag >>> 3) { 32 | case 1: 33 | message.vendorInfoList.push(VendorInfo.decode(reader, reader.uint32())); 34 | break; 35 | default: 36 | reader.skipType(tag & 7); 37 | break; 38 | } 39 | } 40 | return message; 41 | }, 42 | 43 | fromJSON(object: any): GenesisState { 44 | return { 45 | vendorInfoList: Array.isArray(object?.vendorInfoList) 46 | ? object.vendorInfoList.map((e: any) => VendorInfo.fromJSON(e)) 47 | : [], 48 | }; 49 | }, 50 | 51 | toJSON(message: GenesisState): unknown { 52 | const obj: any = {}; 53 | if (message.vendorInfoList) { 54 | obj.vendorInfoList = message.vendorInfoList.map((e) => e ? VendorInfo.toJSON(e) : undefined); 55 | } else { 56 | obj.vendorInfoList = []; 57 | } 58 | return obj; 59 | }, 60 | 61 | fromPartial, I>>(object: I): GenesisState { 62 | const message = createBaseGenesisState(); 63 | message.vendorInfoList = object.vendorInfoList?.map((e) => VendorInfo.fromPartial(e)) || []; 64 | return message; 65 | }, 66 | }; 67 | 68 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 69 | 70 | export type DeepPartial = T extends Builtin ? T 71 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 72 | : T extends {} ? { [K in keyof T]?: DeepPartial } 73 | : Partial; 74 | 75 | type KeysOfUnion = T extends T ? keyof T : never; 76 | export type Exact = P extends Builtin ? P 77 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 78 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DCL UI Web-based App for Managing CSA-DCL 2 | 3 | DCL-UI is a [Vue.js](https://vuejs.org/)-based web application for managing the CSA Distributed Compliance Ledger. This app provides a web interface to view and manage data in the Ledger. 4 | 5 | ## Overview 6 | The DCL-UI provides features for: 7 | - Viewing and managing compliance records 8 | - Interacting with the distributed ledger 9 | - Managing user access and permissions 10 | - Monitoring ledger status and transactions 11 | 12 | ## Prerequisites 13 | - [Node.js](https://nodejs.org) version 20.x 14 | - Git 15 | - Modern web browser (Chrome, Firefox, Safari, or Edge) 16 | - Basic knowledge of Vue.js and blockchain concepts 17 | 18 | ## Project Setup 19 | 20 | ### Getting Started 21 | Clone the repository: 22 | ```bash 23 | git clone https://github.com/Comcast/dcl-ui.git 24 | cd dcl-ui 25 | ``` 26 | 27 | Install dependencies: 28 | ```bash 29 | npm install 30 | ``` 31 | 32 | ### Development 33 | Start the development server with hot-reload: 34 | ```bash 35 | npm run dev 36 | ``` 37 | 38 | Build for production: 39 | ```bash 40 | npm run build 41 | ``` 42 | 43 | ### Project Structure 44 | ``` 45 | dcl-ui/ 46 | ├── src/ # Source code 47 | ├── public/ # Static assets 48 | ├── dist/ # Production build output 49 | ├── tests/ # Test files 50 | └── vite.config.js # Vite configuration 51 | ``` 52 | 53 | ## Configuration 54 | 55 | ### Development Environment 56 | The default configuration connects to the CSA Testnet Observer Node. The development environment uses a proxy server for CORS-disabled endpoints. 57 | 58 | Environment variables (.env.development): 59 | ```env 60 | VITE_APP_DCL_API_NODE=http://localhost:8080/api 61 | VITE_APP_DCL_RPC_NODE=http://localhost:8080/rpc 62 | VITE_APP_DCL_WEBSOCKET_NODE=ws://localhost:8080/websocket 63 | VITE_APP_DCL_CHAIN_ID=testnet-2.0 64 | VITE_APP_DCL_CHAIN_NAME=DCL-Chain-Testnet 65 | VITE_APP_DCL_ADDR_PREFIX=cosmos 66 | VITE_APP_DCL_SDK_VERSION=Stargate 67 | VITE_APP_DCL_TX_API=/rpc/tx?hash=0x 68 | VITE_APP_DCL_REFRESH=500000 69 | ``` 70 | 71 | ### Production Deployment 72 | 73 | 1. Create a `.env` file for production settings (use `.env.sample` as reference) 74 | 2. Build the application: 75 | ```bash 76 | npm run build 77 | ``` 78 | 3. Deploy the contents of the `/dist` folder to your web server 79 | 80 | ## Troubleshooting 81 | 82 | Common issues and solutions: 83 | 1. **CORS Issues**: Ensure proxy settings are correct in development 84 | 2. **Build Errors**: Check Node.js version and dependencies 85 | 3. **API Connection**: Verify environment variables and network connectivity 86 | 87 | ## Contributing 88 | 1. Fork the repository 89 | 2. Create a feature branch 90 | 3. Submit a pull request 91 | 92 | ## Additional Resources 93 | - [Vue.js Documentation](https://vuejs.org/guide/introduction.html) 94 | - [Vite Documentation](https://vitejs.dev/guide/) 95 | - [CSA DCL](https://github.com/zigbee-alliance/distributed-compliance-ledger) 96 | 97 | 98 | ## Support 99 | For issues and feature requests, please use the GitHub issue tracker. -------------------------------------------------------------------------------- /src/layout/AppLayout.vue: -------------------------------------------------------------------------------- 1 | 58 | 59 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /ts-client/cosmos.params.v1beta1/module.ts: -------------------------------------------------------------------------------- 1 | // Generated by Ignite ignite.com/cli 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient, DeliverTxResponse } from "@cosmjs/stargate"; 5 | import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; 6 | import { msgTypes } from './registry'; 7 | import { IgniteClient } from "../client" 8 | import { MissingWalletError } from "../helpers" 9 | import { Api } from "./rest"; 10 | 11 | import { ParameterChangeProposal as typeParameterChangeProposal} from "./types" 12 | import { ParamChange as typeParamChange} from "./types" 13 | import { Subspace as typeSubspace} from "./types" 14 | 15 | export { }; 16 | 17 | 18 | 19 | export const registry = new Registry(msgTypes); 20 | 21 | type Field = { 22 | name: string; 23 | type: unknown; 24 | } 25 | function getStructure(template) { 26 | const structure: {fields: Field[]} = { fields: [] } 27 | for (let [key, value] of Object.entries(template)) { 28 | let field = { name: key, type: typeof value } 29 | structure.fields.push(field) 30 | } 31 | return structure 32 | } 33 | const defaultFee = { 34 | amount: [], 35 | gas: "200000", 36 | }; 37 | 38 | interface TxClientOptions { 39 | addr: string 40 | prefix: string 41 | signer?: OfflineSigner 42 | } 43 | 44 | export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "http://localhost:26657", prefix: "cosmos" }) => { 45 | 46 | return { 47 | 48 | 49 | } 50 | }; 51 | 52 | interface QueryClientOptions { 53 | addr: string 54 | } 55 | 56 | export const queryClient = ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 57 | return new Api({ baseURL: addr }); 58 | }; 59 | 60 | class SDKModule { 61 | public query: ReturnType; 62 | public tx: ReturnType; 63 | public structure: Record; 64 | public registry: Array<[string, GeneratedType]> = []; 65 | 66 | constructor(client: IgniteClient) { 67 | 68 | this.query = queryClient({ addr: client.env.apiURL }); 69 | this.updateTX(client); 70 | this.structure = { 71 | ParameterChangeProposal: getStructure(typeParameterChangeProposal.fromPartial({})), 72 | ParamChange: getStructure(typeParamChange.fromPartial({})), 73 | Subspace: getStructure(typeSubspace.fromPartial({})), 74 | 75 | }; 76 | client.on('signer-changed',(signer) => { 77 | this.updateTX(client); 78 | }) 79 | } 80 | updateTX(client: IgniteClient) { 81 | const methods = txClient({ 82 | signer: client.signer, 83 | addr: client.env.rpcURL, 84 | prefix: client.env.prefix ?? "cosmos", 85 | }) 86 | 87 | this.tx = methods; 88 | for (let m in methods) { 89 | this.tx[m] = methods[m].bind(this.tx); 90 | } 91 | } 92 | }; 93 | 94 | const Module = (test: IgniteClient) => { 95 | return { 96 | module: { 97 | CosmosParamsV1Beta1: new SDKModule(test) 98 | }, 99 | registry: msgTypes 100 | } 101 | } 102 | export default Module; -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/certificate_identifier.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | 4 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.pki"; 5 | 6 | export interface CertificateIdentifier { 7 | subject: string; 8 | subjectKeyId: string; 9 | } 10 | 11 | function createBaseCertificateIdentifier(): CertificateIdentifier { 12 | return { subject: "", subjectKeyId: "" }; 13 | } 14 | 15 | export const CertificateIdentifier = { 16 | encode(message: CertificateIdentifier, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 17 | if (message.subject !== "") { 18 | writer.uint32(10).string(message.subject); 19 | } 20 | if (message.subjectKeyId !== "") { 21 | writer.uint32(18).string(message.subjectKeyId); 22 | } 23 | return writer; 24 | }, 25 | 26 | decode(input: _m0.Reader | Uint8Array, length?: number): CertificateIdentifier { 27 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 28 | let end = length === undefined ? reader.len : reader.pos + length; 29 | const message = createBaseCertificateIdentifier(); 30 | while (reader.pos < end) { 31 | const tag = reader.uint32(); 32 | switch (tag >>> 3) { 33 | case 1: 34 | message.subject = reader.string(); 35 | break; 36 | case 2: 37 | message.subjectKeyId = reader.string(); 38 | break; 39 | default: 40 | reader.skipType(tag & 7); 41 | break; 42 | } 43 | } 44 | return message; 45 | }, 46 | 47 | fromJSON(object: any): CertificateIdentifier { 48 | return { 49 | subject: isSet(object.subject) ? String(object.subject) : "", 50 | subjectKeyId: isSet(object.subjectKeyId) ? String(object.subjectKeyId) : "", 51 | }; 52 | }, 53 | 54 | toJSON(message: CertificateIdentifier): unknown { 55 | const obj: any = {}; 56 | message.subject !== undefined && (obj.subject = message.subject); 57 | message.subjectKeyId !== undefined && (obj.subjectKeyId = message.subjectKeyId); 58 | return obj; 59 | }, 60 | 61 | fromPartial, I>>(object: I): CertificateIdentifier { 62 | const message = createBaseCertificateIdentifier(); 63 | message.subject = object.subject ?? ""; 64 | message.subjectKeyId = object.subjectKeyId ?? ""; 65 | return message; 66 | }, 67 | }; 68 | 69 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 70 | 71 | export type DeepPartial = T extends Builtin ? T 72 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 73 | : T extends {} ? { [K in keyof T]?: DeepPartial } 74 | : Partial; 75 | 76 | type KeysOfUnion = T extends T ? keyof T : never; 77 | export type Exact = P extends Builtin ? P 78 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 79 | 80 | function isSet(value: any): boolean { 81 | return value !== null && value !== undefined; 82 | } 83 | -------------------------------------------------------------------------------- /public/layout/images/icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/module.ts: -------------------------------------------------------------------------------- 1 | // Generated by Ignite ignite.com/cli 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient, DeliverTxResponse } from "@cosmjs/stargate"; 5 | import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; 6 | import { msgTypes } from './registry'; 7 | import { IgniteClient } from "../client" 8 | import { MissingWalletError } from "../helpers" 9 | import { Api } from "./rest"; 10 | 11 | import { BaseAccount as typeBaseAccount} from "./types" 12 | import { ModuleAccount as typeModuleAccount} from "./types" 13 | import { ModuleCredential as typeModuleCredential} from "./types" 14 | import { Params as typeParams} from "./types" 15 | 16 | export { }; 17 | 18 | 19 | 20 | export const registry = new Registry(msgTypes); 21 | 22 | type Field = { 23 | name: string; 24 | type: unknown; 25 | } 26 | function getStructure(template) { 27 | const structure: {fields: Field[]} = { fields: [] } 28 | for (let [key, value] of Object.entries(template)) { 29 | let field = { name: key, type: typeof value } 30 | structure.fields.push(field) 31 | } 32 | return structure 33 | } 34 | const defaultFee = { 35 | amount: [], 36 | gas: "200000", 37 | }; 38 | 39 | interface TxClientOptions { 40 | addr: string 41 | prefix: string 42 | signer?: OfflineSigner 43 | } 44 | 45 | export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "http://localhost:26657", prefix: "cosmos" }) => { 46 | 47 | return { 48 | 49 | 50 | } 51 | }; 52 | 53 | interface QueryClientOptions { 54 | addr: string 55 | } 56 | 57 | export const queryClient = ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 58 | return new Api({ baseURL: addr }); 59 | }; 60 | 61 | class SDKModule { 62 | public query: ReturnType; 63 | public tx: ReturnType; 64 | public structure: Record; 65 | public registry: Array<[string, GeneratedType]> = []; 66 | 67 | constructor(client: IgniteClient) { 68 | 69 | this.query = queryClient({ addr: client.env.apiURL }); 70 | this.updateTX(client); 71 | this.structure = { 72 | BaseAccount: getStructure(typeBaseAccount.fromPartial({})), 73 | ModuleAccount: getStructure(typeModuleAccount.fromPartial({})), 74 | ModuleCredential: getStructure(typeModuleCredential.fromPartial({})), 75 | Params: getStructure(typeParams.fromPartial({})), 76 | 77 | }; 78 | client.on('signer-changed',(signer) => { 79 | this.updateTX(client); 80 | }) 81 | } 82 | updateTX(client: IgniteClient) { 83 | const methods = txClient({ 84 | signer: client.signer, 85 | addr: client.env.rpcURL, 86 | prefix: client.env.prefix ?? "cosmos", 87 | }) 88 | 89 | this.tx = methods; 90 | for (let m in methods) { 91 | this.tx[m] = methods[m].bind(this.tx); 92 | } 93 | } 94 | }; 95 | 96 | const Module = (test: IgniteClient) => { 97 | return { 98 | module: { 99 | CosmosAuthV1Beta1: new SDKModule(test) 100 | }, 101 | registry: msgTypes 102 | } 103 | } 104 | export default Module; -------------------------------------------------------------------------------- /src/AppMenu.vue: -------------------------------------------------------------------------------- 1 | 67 | 68 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /src/layout/AppTopbar.vue: -------------------------------------------------------------------------------- 1 | 62 | 63 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /ts-client/cosmos.base.tendermint.v1beta1/module.ts: -------------------------------------------------------------------------------- 1 | // Generated by Ignite ignite.com/cli 2 | 3 | import { StdFee } from "@cosmjs/launchpad"; 4 | import { SigningStargateClient, DeliverTxResponse } from "@cosmjs/stargate"; 5 | import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; 6 | import { msgTypes } from './registry'; 7 | import { IgniteClient } from "../client" 8 | import { MissingWalletError } from "../helpers" 9 | import { Api } from "./rest"; 10 | 11 | import { Validator as typeValidator} from "./types" 12 | import { VersionInfo as typeVersionInfo} from "./types" 13 | import { Module as typeModule} from "./types" 14 | import { ProofOp as typeProofOp} from "./types" 15 | import { ProofOps as typeProofOps} from "./types" 16 | import { Block as typeBlock} from "./types" 17 | import { Header as typeHeader} from "./types" 18 | 19 | export { }; 20 | 21 | 22 | 23 | export const registry = new Registry(msgTypes); 24 | 25 | type Field = { 26 | name: string; 27 | type: unknown; 28 | } 29 | function getStructure(template) { 30 | const structure: {fields: Field[]} = { fields: [] } 31 | for (let [key, value] of Object.entries(template)) { 32 | let field = { name: key, type: typeof value } 33 | structure.fields.push(field) 34 | } 35 | return structure 36 | } 37 | const defaultFee = { 38 | amount: [], 39 | gas: "200000", 40 | }; 41 | 42 | interface TxClientOptions { 43 | addr: string 44 | prefix: string 45 | signer?: OfflineSigner 46 | } 47 | 48 | export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "http://localhost:26657", prefix: "cosmos" }) => { 49 | 50 | return { 51 | 52 | 53 | } 54 | }; 55 | 56 | interface QueryClientOptions { 57 | addr: string 58 | } 59 | 60 | export const queryClient = ({ addr: addr }: QueryClientOptions = { addr: "http://localhost:1317" }) => { 61 | return new Api({ baseURL: addr }); 62 | }; 63 | 64 | class SDKModule { 65 | public query: ReturnType; 66 | public tx: ReturnType; 67 | public structure: Record; 68 | public registry: Array<[string, GeneratedType]> = []; 69 | 70 | constructor(client: IgniteClient) { 71 | 72 | this.query = queryClient({ addr: client.env.apiURL }); 73 | this.updateTX(client); 74 | this.structure = { 75 | Validator: getStructure(typeValidator.fromPartial({})), 76 | VersionInfo: getStructure(typeVersionInfo.fromPartial({})), 77 | Module: getStructure(typeModule.fromPartial({})), 78 | ProofOp: getStructure(typeProofOp.fromPartial({})), 79 | ProofOps: getStructure(typeProofOps.fromPartial({})), 80 | Block: getStructure(typeBlock.fromPartial({})), 81 | Header: getStructure(typeHeader.fromPartial({})), 82 | 83 | }; 84 | client.on('signer-changed',(signer) => { 85 | this.updateTX(client); 86 | }) 87 | } 88 | updateTX(client: IgniteClient) { 89 | const methods = txClient({ 90 | signer: client.signer, 91 | addr: client.env.rpcURL, 92 | prefix: client.env.prefix ?? "cosmos", 93 | }) 94 | 95 | this.tx = methods; 96 | for (let m in methods) { 97 | this.tx[m] = methods[m].bind(this.tx); 98 | } 99 | } 100 | }; 101 | 102 | const Module = (test: IgniteClient) => { 103 | return { 104 | module: { 105 | CosmosBaseTendermintV1Beta1: new SDKModule(test) 106 | }, 107 | registry: msgTypes 108 | } 109 | } 110 | export default Module; -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, gender identity and expression, level of experience, 9 | nationality, personal appearance, race, religion, or sexual identity and 10 | orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at [Comcast_Open_Source_Services@comcast.com](mailto:Comcast_Open_Source_Services@comcast.com). 59 | All complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at [contributor-covenant.org/version/1/4][version] 72 | 73 | [homepage]: http://contributor-covenant.org 74 | [version]: http://contributor-covenant.org/version/1/4/ -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.validator/types/zigbeealliance/distributedcomplianceledger/validator/last_validator_power.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | 4 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.validator"; 5 | 6 | export interface LastValidatorPower { 7 | owner: string; 8 | power: number; 9 | schemaVersion: number; 10 | } 11 | 12 | function createBaseLastValidatorPower(): LastValidatorPower { 13 | return { owner: "", power: 0, schemaVersion: 0 }; 14 | } 15 | 16 | export const LastValidatorPower = { 17 | encode(message: LastValidatorPower, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 18 | if (message.owner !== "") { 19 | writer.uint32(10).string(message.owner); 20 | } 21 | if (message.power !== 0) { 22 | writer.uint32(16).int32(message.power); 23 | } 24 | if (message.schemaVersion !== 0) { 25 | writer.uint32(24).uint32(message.schemaVersion); 26 | } 27 | return writer; 28 | }, 29 | 30 | decode(input: _m0.Reader | Uint8Array, length?: number): LastValidatorPower { 31 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 32 | let end = length === undefined ? reader.len : reader.pos + length; 33 | const message = createBaseLastValidatorPower(); 34 | while (reader.pos < end) { 35 | const tag = reader.uint32(); 36 | switch (tag >>> 3) { 37 | case 1: 38 | message.owner = reader.string(); 39 | break; 40 | case 2: 41 | message.power = reader.int32(); 42 | break; 43 | case 3: 44 | message.schemaVersion = reader.uint32(); 45 | break; 46 | default: 47 | reader.skipType(tag & 7); 48 | break; 49 | } 50 | } 51 | return message; 52 | }, 53 | 54 | fromJSON(object: any): LastValidatorPower { 55 | return { 56 | owner: isSet(object.owner) ? String(object.owner) : "", 57 | power: isSet(object.power) ? Number(object.power) : 0, 58 | schemaVersion: isSet(object.schemaVersion) ? Number(object.schemaVersion) : 0, 59 | }; 60 | }, 61 | 62 | toJSON(message: LastValidatorPower): unknown { 63 | const obj: any = {}; 64 | message.owner !== undefined && (obj.owner = message.owner); 65 | message.power !== undefined && (obj.power = Math.round(message.power)); 66 | message.schemaVersion !== undefined && (obj.schemaVersion = Math.round(message.schemaVersion)); 67 | return obj; 68 | }, 69 | 70 | fromPartial, I>>(object: I): LastValidatorPower { 71 | const message = createBaseLastValidatorPower(); 72 | message.owner = object.owner ?? ""; 73 | message.power = object.power ?? 0; 74 | message.schemaVersion = object.schemaVersion ?? 0; 75 | return message; 76 | }, 77 | }; 78 | 79 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 80 | 81 | export type DeepPartial = T extends Builtin ? T 82 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 83 | : T extends {} ? { [K in keyof T]?: DeepPartial } 84 | : Partial; 85 | 86 | type KeysOfUnion = T extends T ? keyof T : never; 87 | export type Exact = P extends Builtin ? P 88 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 89 | 90 | function isSet(value: any): boolean { 91 | return value !== null && value !== undefined; 92 | } 93 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/revoked_root_certificates.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | import { CertificateIdentifier } from "./certificate_identifier"; 4 | 5 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.pki"; 6 | 7 | export interface RevokedRootCertificates { 8 | certs: CertificateIdentifier[]; 9 | schemaVersion: number; 10 | } 11 | 12 | function createBaseRevokedRootCertificates(): RevokedRootCertificates { 13 | return { certs: [], schemaVersion: 0 }; 14 | } 15 | 16 | export const RevokedRootCertificates = { 17 | encode(message: RevokedRootCertificates, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 18 | for (const v of message.certs) { 19 | CertificateIdentifier.encode(v!, writer.uint32(10).fork()).ldelim(); 20 | } 21 | if (message.schemaVersion !== 0) { 22 | writer.uint32(16).uint32(message.schemaVersion); 23 | } 24 | return writer; 25 | }, 26 | 27 | decode(input: _m0.Reader | Uint8Array, length?: number): RevokedRootCertificates { 28 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 29 | let end = length === undefined ? reader.len : reader.pos + length; 30 | const message = createBaseRevokedRootCertificates(); 31 | while (reader.pos < end) { 32 | const tag = reader.uint32(); 33 | switch (tag >>> 3) { 34 | case 1: 35 | message.certs.push(CertificateIdentifier.decode(reader, reader.uint32())); 36 | break; 37 | case 2: 38 | message.schemaVersion = reader.uint32(); 39 | break; 40 | default: 41 | reader.skipType(tag & 7); 42 | break; 43 | } 44 | } 45 | return message; 46 | }, 47 | 48 | fromJSON(object: any): RevokedRootCertificates { 49 | return { 50 | certs: Array.isArray(object?.certs) ? object.certs.map((e: any) => CertificateIdentifier.fromJSON(e)) : [], 51 | schemaVersion: isSet(object.schemaVersion) ? Number(object.schemaVersion) : 0, 52 | }; 53 | }, 54 | 55 | toJSON(message: RevokedRootCertificates): unknown { 56 | const obj: any = {}; 57 | if (message.certs) { 58 | obj.certs = message.certs.map((e) => e ? CertificateIdentifier.toJSON(e) : undefined); 59 | } else { 60 | obj.certs = []; 61 | } 62 | message.schemaVersion !== undefined && (obj.schemaVersion = Math.round(message.schemaVersion)); 63 | return obj; 64 | }, 65 | 66 | fromPartial, I>>(object: I): RevokedRootCertificates { 67 | const message = createBaseRevokedRootCertificates(); 68 | message.certs = object.certs?.map((e) => CertificateIdentifier.fromPartial(e)) || []; 69 | message.schemaVersion = object.schemaVersion ?? 0; 70 | return message; 71 | }, 72 | }; 73 | 74 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 75 | 76 | export type DeepPartial = T extends Builtin ? T 77 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 78 | : T extends {} ? { [K in keyof T]?: DeepPartial } 79 | : Partial; 80 | 81 | type KeysOfUnion = T extends T ? keyof T : never; 82 | export type Exact = P extends Builtin ? P 83 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 84 | 85 | function isSet(value: any): boolean { 86 | return value !== null && value !== undefined; 87 | } 88 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/approved_root_certificates.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | import { CertificateIdentifier } from "./certificate_identifier"; 4 | 5 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.pki"; 6 | 7 | export interface ApprovedRootCertificates { 8 | certs: CertificateIdentifier[]; 9 | schemaVersion: number; 10 | } 11 | 12 | function createBaseApprovedRootCertificates(): ApprovedRootCertificates { 13 | return { certs: [], schemaVersion: 0 }; 14 | } 15 | 16 | export const ApprovedRootCertificates = { 17 | encode(message: ApprovedRootCertificates, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 18 | for (const v of message.certs) { 19 | CertificateIdentifier.encode(v!, writer.uint32(10).fork()).ldelim(); 20 | } 21 | if (message.schemaVersion !== 0) { 22 | writer.uint32(16).uint32(message.schemaVersion); 23 | } 24 | return writer; 25 | }, 26 | 27 | decode(input: _m0.Reader | Uint8Array, length?: number): ApprovedRootCertificates { 28 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 29 | let end = length === undefined ? reader.len : reader.pos + length; 30 | const message = createBaseApprovedRootCertificates(); 31 | while (reader.pos < end) { 32 | const tag = reader.uint32(); 33 | switch (tag >>> 3) { 34 | case 1: 35 | message.certs.push(CertificateIdentifier.decode(reader, reader.uint32())); 36 | break; 37 | case 2: 38 | message.schemaVersion = reader.uint32(); 39 | break; 40 | default: 41 | reader.skipType(tag & 7); 42 | break; 43 | } 44 | } 45 | return message; 46 | }, 47 | 48 | fromJSON(object: any): ApprovedRootCertificates { 49 | return { 50 | certs: Array.isArray(object?.certs) ? object.certs.map((e: any) => CertificateIdentifier.fromJSON(e)) : [], 51 | schemaVersion: isSet(object.schemaVersion) ? Number(object.schemaVersion) : 0, 52 | }; 53 | }, 54 | 55 | toJSON(message: ApprovedRootCertificates): unknown { 56 | const obj: any = {}; 57 | if (message.certs) { 58 | obj.certs = message.certs.map((e) => e ? CertificateIdentifier.toJSON(e) : undefined); 59 | } else { 60 | obj.certs = []; 61 | } 62 | message.schemaVersion !== undefined && (obj.schemaVersion = Math.round(message.schemaVersion)); 63 | return obj; 64 | }, 65 | 66 | fromPartial, I>>(object: I): ApprovedRootCertificates { 67 | const message = createBaseApprovedRootCertificates(); 68 | message.certs = object.certs?.map((e) => CertificateIdentifier.fromPartial(e)) || []; 69 | message.schemaVersion = object.schemaVersion ?? 0; 70 | return message; 71 | }, 72 | }; 73 | 74 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 75 | 76 | export type DeepPartial = T extends Builtin ? T 77 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 78 | : T extends {} ? { [K in keyof T]?: DeepPartial } 79 | : Partial; 80 | 81 | type KeysOfUnion = T extends T ? keyof T : never; 82 | export type Exact = P extends Builtin ? P 83 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 84 | 85 | function isSet(value: any): boolean { 86 | return value !== null && value !== undefined; 87 | } 88 | -------------------------------------------------------------------------------- /src/AppMenuItem.vue: -------------------------------------------------------------------------------- 1 | 71 | 72 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /src/layout/AppMenuItem.vue: -------------------------------------------------------------------------------- 1 | 71 | 72 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /ts-client/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | import { Any } from "../../../google/protobuf/any"; 4 | import { Params } from "./auth"; 5 | 6 | export const protobufPackage = "cosmos.auth.v1beta1"; 7 | 8 | /** GenesisState defines the auth module's genesis state. */ 9 | export interface GenesisState { 10 | /** params defines all the parameters of the module. */ 11 | params: 12 | | Params 13 | | undefined; 14 | /** accounts are the accounts present at genesis. */ 15 | accounts: Any[]; 16 | } 17 | 18 | function createBaseGenesisState(): GenesisState { 19 | return { params: undefined, accounts: [] }; 20 | } 21 | 22 | export const GenesisState = { 23 | encode(message: GenesisState, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 24 | if (message.params !== undefined) { 25 | Params.encode(message.params, writer.uint32(10).fork()).ldelim(); 26 | } 27 | for (const v of message.accounts) { 28 | Any.encode(v!, writer.uint32(18).fork()).ldelim(); 29 | } 30 | return writer; 31 | }, 32 | 33 | decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState { 34 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 35 | let end = length === undefined ? reader.len : reader.pos + length; 36 | const message = createBaseGenesisState(); 37 | while (reader.pos < end) { 38 | const tag = reader.uint32(); 39 | switch (tag >>> 3) { 40 | case 1: 41 | message.params = Params.decode(reader, reader.uint32()); 42 | break; 43 | case 2: 44 | message.accounts.push(Any.decode(reader, reader.uint32())); 45 | break; 46 | default: 47 | reader.skipType(tag & 7); 48 | break; 49 | } 50 | } 51 | return message; 52 | }, 53 | 54 | fromJSON(object: any): GenesisState { 55 | return { 56 | params: isSet(object.params) ? Params.fromJSON(object.params) : undefined, 57 | accounts: Array.isArray(object?.accounts) ? object.accounts.map((e: any) => Any.fromJSON(e)) : [], 58 | }; 59 | }, 60 | 61 | toJSON(message: GenesisState): unknown { 62 | const obj: any = {}; 63 | message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined); 64 | if (message.accounts) { 65 | obj.accounts = message.accounts.map((e) => e ? Any.toJSON(e) : undefined); 66 | } else { 67 | obj.accounts = []; 68 | } 69 | return obj; 70 | }, 71 | 72 | fromPartial, I>>(object: I): GenesisState { 73 | const message = createBaseGenesisState(); 74 | message.params = (object.params !== undefined && object.params !== null) 75 | ? Params.fromPartial(object.params) 76 | : undefined; 77 | message.accounts = object.accounts?.map((e) => Any.fromPartial(e)) || []; 78 | return message; 79 | }, 80 | }; 81 | 82 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 83 | 84 | export type DeepPartial = T extends Builtin ? T 85 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 86 | : T extends {} ? { [K in keyof T]?: DeepPartial } 87 | : Partial; 88 | 89 | type KeysOfUnion = T extends T ? keyof T : never; 90 | export type Exact = P extends Builtin ? P 91 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 92 | 93 | function isSet(value: any): boolean { 94 | return value !== null && value !== undefined; 95 | } 96 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclauth/types/zigbeealliance/distributedcomplianceledger/dclauth/rejected_account.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | import { Account } from "./account"; 4 | 5 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.dclauth"; 6 | 7 | export interface RejectedAccount { 8 | account: Account | undefined; 9 | rejectedAccountSchemaVersion: number; 10 | } 11 | 12 | function createBaseRejectedAccount(): RejectedAccount { 13 | return { account: undefined, rejectedAccountSchemaVersion: 0 }; 14 | } 15 | 16 | export const RejectedAccount = { 17 | encode(message: RejectedAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 18 | if (message.account !== undefined) { 19 | Account.encode(message.account, writer.uint32(10).fork()).ldelim(); 20 | } 21 | if (message.rejectedAccountSchemaVersion !== 0) { 22 | writer.uint32(16).uint32(message.rejectedAccountSchemaVersion); 23 | } 24 | return writer; 25 | }, 26 | 27 | decode(input: _m0.Reader | Uint8Array, length?: number): RejectedAccount { 28 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 29 | let end = length === undefined ? reader.len : reader.pos + length; 30 | const message = createBaseRejectedAccount(); 31 | while (reader.pos < end) { 32 | const tag = reader.uint32(); 33 | switch (tag >>> 3) { 34 | case 1: 35 | message.account = Account.decode(reader, reader.uint32()); 36 | break; 37 | case 2: 38 | message.rejectedAccountSchemaVersion = reader.uint32(); 39 | break; 40 | default: 41 | reader.skipType(tag & 7); 42 | break; 43 | } 44 | } 45 | return message; 46 | }, 47 | 48 | fromJSON(object: any): RejectedAccount { 49 | return { 50 | account: isSet(object.account) ? Account.fromJSON(object.account) : undefined, 51 | rejectedAccountSchemaVersion: isSet(object.rejectedAccountSchemaVersion) 52 | ? Number(object.rejectedAccountSchemaVersion) 53 | : 0, 54 | }; 55 | }, 56 | 57 | toJSON(message: RejectedAccount): unknown { 58 | const obj: any = {}; 59 | message.account !== undefined && (obj.account = message.account ? Account.toJSON(message.account) : undefined); 60 | message.rejectedAccountSchemaVersion !== undefined 61 | && (obj.rejectedAccountSchemaVersion = Math.round(message.rejectedAccountSchemaVersion)); 62 | return obj; 63 | }, 64 | 65 | fromPartial, I>>(object: I): RejectedAccount { 66 | const message = createBaseRejectedAccount(); 67 | message.account = (object.account !== undefined && object.account !== null) 68 | ? Account.fromPartial(object.account) 69 | : undefined; 70 | message.rejectedAccountSchemaVersion = object.rejectedAccountSchemaVersion ?? 0; 71 | return message; 72 | }, 73 | }; 74 | 75 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 76 | 77 | export type DeepPartial = T extends Builtin ? T 78 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 79 | : T extends {} ? { [K in keyof T]?: DeepPartial } 80 | : Partial; 81 | 82 | type KeysOfUnion = T extends T ? keyof T : never; 83 | export type Exact = P extends Builtin ? P 84 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 85 | 86 | function isSet(value: any): boolean { 87 | return value !== null && value !== undefined; 88 | } 89 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.model/types/zigbeealliance/distributedcomplianceledger/model/vendor_products.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | import { Product } from "./product"; 4 | 5 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.model"; 6 | 7 | export interface VendorProducts { 8 | vid: number; 9 | products: Product[]; 10 | schemaVersion: number; 11 | } 12 | 13 | function createBaseVendorProducts(): VendorProducts { 14 | return { vid: 0, products: [], schemaVersion: 0 }; 15 | } 16 | 17 | export const VendorProducts = { 18 | encode(message: VendorProducts, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 19 | if (message.vid !== 0) { 20 | writer.uint32(8).int32(message.vid); 21 | } 22 | for (const v of message.products) { 23 | Product.encode(v!, writer.uint32(18).fork()).ldelim(); 24 | } 25 | if (message.schemaVersion !== 0) { 26 | writer.uint32(24).uint32(message.schemaVersion); 27 | } 28 | return writer; 29 | }, 30 | 31 | decode(input: _m0.Reader | Uint8Array, length?: number): VendorProducts { 32 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 33 | let end = length === undefined ? reader.len : reader.pos + length; 34 | const message = createBaseVendorProducts(); 35 | while (reader.pos < end) { 36 | const tag = reader.uint32(); 37 | switch (tag >>> 3) { 38 | case 1: 39 | message.vid = reader.int32(); 40 | break; 41 | case 2: 42 | message.products.push(Product.decode(reader, reader.uint32())); 43 | break; 44 | case 3: 45 | message.schemaVersion = reader.uint32(); 46 | break; 47 | default: 48 | reader.skipType(tag & 7); 49 | break; 50 | } 51 | } 52 | return message; 53 | }, 54 | 55 | fromJSON(object: any): VendorProducts { 56 | return { 57 | vid: isSet(object.vid) ? Number(object.vid) : 0, 58 | products: Array.isArray(object?.products) ? object.products.map((e: any) => Product.fromJSON(e)) : [], 59 | schemaVersion: isSet(object.schemaVersion) ? Number(object.schemaVersion) : 0, 60 | }; 61 | }, 62 | 63 | toJSON(message: VendorProducts): unknown { 64 | const obj: any = {}; 65 | message.vid !== undefined && (obj.vid = Math.round(message.vid)); 66 | if (message.products) { 67 | obj.products = message.products.map((e) => e ? Product.toJSON(e) : undefined); 68 | } else { 69 | obj.products = []; 70 | } 71 | message.schemaVersion !== undefined && (obj.schemaVersion = Math.round(message.schemaVersion)); 72 | return obj; 73 | }, 74 | 75 | fromPartial, I>>(object: I): VendorProducts { 76 | const message = createBaseVendorProducts(); 77 | message.vid = object.vid ?? 0; 78 | message.products = object.products?.map((e) => Product.fromPartial(e)) || []; 79 | message.schemaVersion = object.schemaVersion ?? 0; 80 | return message; 81 | }, 82 | }; 83 | 84 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 85 | 86 | export type DeepPartial = T extends Builtin ? T 87 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 88 | : T extends {} ? { [K in keyof T]?: DeepPartial } 89 | : Partial; 90 | 91 | type KeysOfUnion = T extends T ? keyof T : never; 92 | export type Exact = P extends Builtin ? P 93 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 94 | 95 | function isSet(value: any): boolean { 96 | return value !== null && value !== undefined; 97 | } 98 | -------------------------------------------------------------------------------- /ts-client/zigbeealliance.distributedcomplianceledger.dclauth/types/zigbeealliance/distributedcomplianceledger/dclauth/pending_account.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import _m0 from "protobufjs/minimal"; 3 | import { Account } from "./account"; 4 | 5 | export const protobufPackage = "zigbeealliance.distributedcomplianceledger.dclauth"; 6 | 7 | /** 8 | * TODO issue 99: do we need that ??? 9 | * option (gogoproto.goproto_getters) = false; 10 | * option (gogoproto.goproto_stringer) = false; 11 | */ 12 | export interface PendingAccount { 13 | account: Account | undefined; 14 | pendingAccountSchemaVersion: number; 15 | } 16 | 17 | function createBasePendingAccount(): PendingAccount { 18 | return { account: undefined, pendingAccountSchemaVersion: 0 }; 19 | } 20 | 21 | export const PendingAccount = { 22 | encode(message: PendingAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { 23 | if (message.account !== undefined) { 24 | Account.encode(message.account, writer.uint32(10).fork()).ldelim(); 25 | } 26 | if (message.pendingAccountSchemaVersion !== 0) { 27 | writer.uint32(16).uint32(message.pendingAccountSchemaVersion); 28 | } 29 | return writer; 30 | }, 31 | 32 | decode(input: _m0.Reader | Uint8Array, length?: number): PendingAccount { 33 | const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); 34 | let end = length === undefined ? reader.len : reader.pos + length; 35 | const message = createBasePendingAccount(); 36 | while (reader.pos < end) { 37 | const tag = reader.uint32(); 38 | switch (tag >>> 3) { 39 | case 1: 40 | message.account = Account.decode(reader, reader.uint32()); 41 | break; 42 | case 2: 43 | message.pendingAccountSchemaVersion = reader.uint32(); 44 | break; 45 | default: 46 | reader.skipType(tag & 7); 47 | break; 48 | } 49 | } 50 | return message; 51 | }, 52 | 53 | fromJSON(object: any): PendingAccount { 54 | return { 55 | account: isSet(object.account) ? Account.fromJSON(object.account) : undefined, 56 | pendingAccountSchemaVersion: isSet(object.pendingAccountSchemaVersion) 57 | ? Number(object.pendingAccountSchemaVersion) 58 | : 0, 59 | }; 60 | }, 61 | 62 | toJSON(message: PendingAccount): unknown { 63 | const obj: any = {}; 64 | message.account !== undefined && (obj.account = message.account ? Account.toJSON(message.account) : undefined); 65 | message.pendingAccountSchemaVersion !== undefined 66 | && (obj.pendingAccountSchemaVersion = Math.round(message.pendingAccountSchemaVersion)); 67 | return obj; 68 | }, 69 | 70 | fromPartial, I>>(object: I): PendingAccount { 71 | const message = createBasePendingAccount(); 72 | message.account = (object.account !== undefined && object.account !== null) 73 | ? Account.fromPartial(object.account) 74 | : undefined; 75 | message.pendingAccountSchemaVersion = object.pendingAccountSchemaVersion ?? 0; 76 | return message; 77 | }, 78 | }; 79 | 80 | type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 81 | 82 | export type DeepPartial = T extends Builtin ? T 83 | : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> 84 | : T extends {} ? { [K in keyof T]?: DeepPartial } 85 | : Partial; 86 | 87 | type KeysOfUnion = T extends T ? keyof T : never; 88 | export type Exact = P extends Builtin ? P 89 | : P & { [K in keyof P]: Exact } & { [K in Exclude>]: never }; 90 | 91 | function isSet(value: any): boolean { 92 | return value !== null && value !== undefined; 93 | } 94 | --------------------------------------------------------------------------------