diff --git a/docs/transactions.md b/docs/transactions.md index 2fb877186..bf750c6a4 100644 --- a/docs/transactions.md +++ b/docs/transactions.md @@ -120,165 +120,165 @@ Please make sure that TLS is enabled in gRPC, REST or Light Client Proxy for sec ### [VENDOR INFO](transactions/vendor-info.md) -| Method | Description | CLI command | -|------------------------------------------------------|----------------------------------------------------|-------------------------------------| -| [ADD_VENDOR_INFO](transactions/vendor-info.md) | Adds a record about a Vendor | `dcld tx vendorinfo add-vendor` | -| [UPDATE_VENDOR_INFO](transactions/vendor-info.md) | Updates a record about a Vendor | `dcld tx vendorinfo update-vendor` | -| [GET_VENDOR_INFO](transactions/vendor-info.md) | Gets a Vendor Info for the given `vid` (vendor ID) | `dcld query vendorinfo vendor` | -| [GET_ALL_VENDOR_INFO](transactions/vendor-info.md) | Gets information about all vendors for all VIDs | `dcld query vendorinfo all-vendors` | +| Method | Description | CLI command / REST API | +|------------------------------------------------------------------------|----------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [ADD_VENDOR_INFO](transactions/vendor-info.md#add_vendor_info) | Adds a record about a Vendor | `dcld tx vendorinfo add-vendor`

POST `/cosmos/tx/v1beta1/txs`([NewMsgCreateVendorInfo](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/vendorinfo/tx.proto#L18)) | +| [UPDATE_VENDOR_INFO](transactions/vendor-info.md#update_vendor_info) | Updates a record about a Vendor | `dcld tx vendorinfo update-vendor`

POST `/cosmos/tx/v1beta1/txs`([MsgUpdateVendorInfo](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/vendorinfo/tx.proto#L30)) | +| [GET_VENDOR_INFO](transactions/vendor-info.md#get_vendor_info) | Gets a Vendor Info for the given `vid` (vendor ID) | `dcld query vendorinfo vendor`

GET `/dcl/vendorinfo/vendors/{vid}` | +| [GET_ALL_VENDOR_INFO](transactions/vendor-info.md#get_all_vendor_info) | Gets information about all vendors for all VIDs | `dcld query vendorinfo all-vendors`

GET `/dcl/vendorinfo/vendors` | ### [MODEL and MODEL_VERSION](transactions/model.md) -| Method | Description | CLI command | -|---------------------------------------------------|---------------------------------------------------|---------------------------------------| -| [ADD_MODEL](transactions/model.md) | Adds a new Model | `dcld tx model add-model` | -| [EDIT_MODEL](transactions/model.md) | Edits an existing Model | `dcld tx model update-model` | -| [DELETE_MODEL](transactions/model.md) | Deletes an existing Model | `dcld tx model delete-model` | -| [ADD_MODEL_VERSION](transactions/model.md) | Adds a new Model Software Version | `dcld tx model add-model-version` | -| [EDIT_MODEL_VERSION](transactions/model.md) | Edits an existing Model Software Version | `dcld tx model update-model-version` | -| [DELETE_MODEL_VERSION](transactions/model.md) | Deletes an existing Model Version | `dcld tx model delete-model-version` | -| [GET_MODEL](transactions/model.md) | Gets a Model Info | `dcld query model get-model` | -| [GET_MODEL_VERSION](transactions/model.md) | Gets a Model Software Versions | `dcld query model model-version` | -| [GET_ALL_MODELS](transactions/model.md) | Gets all Model Infos for all vendors | `dcld query model all-models` | -| [GET_ALL_VENDOR_MODELS](transactions/model.md) | Gets all Model Infos by the given Vendor | `dcld query model vendor-models` | -| [GET_ALL_MODEL_VERSIONS](transactions/model.md) | Gets all Model Software Versions for vid and pid | `dcld query model all-model-versions` | +| Method | Description | CLI command / REST API | +|------------------------------------------------------------------------|--------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [ADD_MODEL](transactions/model.md#ADD_MODEL) | Adds a new Model | `dcld tx model add-model`

POST `/cosmos/tx/v1beta1/txs`([MsgCreateModel](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/model/tx.proto#L24)) | +| [EDIT_MODEL](transactions/model.md#EDIT_MODEL) | Edits an existing Model | `dcld tx model update-model`

POST `/cosmos/tx/v1beta1/txs`([MsgUpdateModel](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/model/tx.proto#L55)) | +| [DELETE_MODEL](transactions/model.md#DELETE_MODEL) | Deletes an existing Model | `dcld tx model delete-model`

POST `/cosmos/tx/v1beta1/txs`([MsgDeleteModel](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/model/tx.proto#L83)) | +| [ADD_MODEL_VERSION](transactions/model.md#ADD_MODEL_VERSION) | Adds a new Model Software Version | `dcld tx model add-model-version`

POST `/cosmos/tx/v1beta1/txs`([MsgCreateModelVersion](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/model/tx.proto#L90)) | +| [EDIT_MODEL_VERSION](transactions/model.md#EDIT_MODEL_VERSION) | Edits an existing Model Software Version | `dcld tx model update-model-version`

POST `/cosmos/tx/v1beta1/txs`([MsgUpdateModelVersion](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/model/tx.proto#L110)) | +| [DELETE_MODEL_VERSION](transactions/model.md#DELETE_MODEL_VERSION) | Deletes an existing Model Version | `dcld tx model delete-model-version`

POST `/cosmos/tx/v1beta1/txs`([MsgDeleteModelVersion](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/model/tx.proto#L126)) | +| [GET_MODEL](transactions/model.md#GET_MODEL) | Gets a Model Info | `dcld query model get-model`

GET `/dcl/model/models/{vid}/{pid}` | +| [GET_MODEL_VERSION](transactions/model.md#GET_MODEL_VERSION) | Gets a Model Software Versions | `dcld query model model-version`

GET `/dcl/model/versions/{vid}/{pid}/{softwareVersion}` | +| [GET_ALL_MODELS](transactions/model.md#GET_ALL_MODELS) | Gets all Model Infos for all vendors | `dcld query model all-models`

GET `/dcl/model/models` | +| [GET_ALL_VENDOR_MODELS](transactions/model.md#GET_ALL_VENDOR_MODELS) | Gets all Model Infos by the given Vendor | `dcld query model vendor-models`

GET `/dcl/model/models/{vid}` | +| [GET_ALL_MODEL_VERSIONS](transactions/model.md#GET_ALL_MODEL_VERSIONS) | Gets all Model Software Versions for vid and pid | `dcld query model all-model-versions`

GET `/dcl/model/versions/{vid}/{pid}` | ### [CERTIFY_DEVICE_COMPLIANCE](transactions/compliance.md) -| Method | Description | CLI command | -|--------------------------------------------------------------------|------------------------------------------------|--------------------------------------------------------| -| [CERTIFY_MODEL](transactions/compliance.md) | Attests compliance of the Model Version | `dcld tx compliance certify-model` | -| [UPDATE_COMPLIANCE_INFO](transactions/compliance.md) | Updates a compliance info | `dcld tx compliance update-compliance-info` | -| [DELETE_COMPLIANCE_INFO](transactions/compliance.md) | Delete compliance of the Model Version | `dcld tx compliance delete-compliance-info` | -| [REVOKE_MODEL_CERTIFICATION](transactions/compliance.md) | Revoke compliance of the Model Version | `dcld tx compliance revoke-model` | -| [PROVISION_MODEL](transactions/compliance.md) | Sets provisional state for the Model Version | `dcld tx compliance provision-model` | -| [GET_CERTIFIED_MODEL](transactions/compliance.md) | Gets Model compliance information | `dcld query compliance certified-model` | -| [GET_REVOKED_MODEL](transactions/compliance.md) | Gets Model revocation information | `dcld query compliance revoked-model` | -| [GET_PROVISIONAL_MODEL](transactions/compliance.md) | Gets Model Version provisional information | `dcld query compliance provisional-model` | -| [GET_COMPLIANCE_INFO](transactions/compliance.md) | Gets Model Version compliance information | `dcld query compliance compliance-info` | -| [GET_DEVICE_SOFTWARE_COMPLIANCE](transactions/compliance.md) | Gets device software compliance | `dcld query compliance device-software-compliance` | -| [GET_ALL_CERTIFIED_MODELS](transactions/compliance.md) | Gets all compliant Model Versions | `dcld query compliance all-certified-models` | -| [GET_ALL_REVOKED_MODELS](transactions/compliance.md) | Gets all revoked Model Versions | `dcld query compliance all-revoked-models` | -| [GET_ALL_PROVISIONAL_MODELS](transactions/compliance.md) | Gets all Model Versions in provisional state | `dcld query compliance all-provisional-models` | -| [GET_ALL_COMPLIANCE_INFO_RECORDS](transactions/compliance.md) | Gets all stored compliance information records | `dcld query compliance all-compliance-info` | -| [GET_ALL_DEVICE_SOFTWARE_COMPLIANCES](transactions/compliance.md) | Gets all stored device software compliance's | `dcld query compliance all-device-software-compliance` | +| Method | Description | CLI command / REST API | +|--------------------------------------------------------------------------------------------------|------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [CERTIFY_MODEL](transactions/compliance.md#CERTIFY_MODEL) | Attests compliance of the Model Version | `dcld tx compliance certify-model`

POST `/cosmos/tx/v1beta1/txs`([MsgCertifyModel](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/compliance/tx.proto#L21)) | +| [UPDATE_COMPLIANCE_INFO](transactions/compliance.md#UPDATE_COMPLIANCE_INFO) | Updates a compliance info | `dcld tx compliance update-compliance-info`

POST `/cosmos/tx/v1beta1/txs`([MsgUpdateComplianceInfo](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/compliance/tx.proto#L93)) | +| [DELETE_COMPLIANCE_INFO](transactions/compliance.md#DELETE_COMPLIANCE_INFO) | Delete compliance of the Model Version | `dcld tx compliance delete-compliance-info`

POST `/cosmos/tx/v1beta1/txs`([MsgUpdateComplianceInfo](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/compliance/tx.proto#L121)) | +| [REVOKE_MODEL_CERTIFICATION](transactions/compliance.md#REVOKE_MODEL_CERTIFICATION) | Revoke compliance of the Model Version | `dcld tx compliance revoke-model`

POST `/cosmos/tx/v1beta1/txs`([MsgRevokeModel](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/compliance/tx.proto#L49)) | +| [PROVISION_MODEL](transactions/compliance.md#PROVISION_MODEL) | Sets provisional state for the Model Version | `dcld tx compliance provision-model`

POST `/cosmos/tx/v1beta1/txs`([MsgRevokeModel](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/compliance/tx.proto#L65)) | +| [GET_CERTIFIED_MODEL](transactions/compliance.md#GET_CERTIFIED_MODEL) | Gets Model compliance information | `dcld query compliance certified-model`

GET `/dcl/compliance/certified-models/{vid}/{pid}/{software_version}/{certification_type}` | +| [GET_REVOKED_MODEL](transactions/compliance.md#GET_REVOKED_MODEL) | Gets Model revocation information | `dcld query compliance revoked-model`

GET `/dcl/compliance/revoked-models/{vid}/{pid}/{software_version}/{certification_type}` | +| [GET_PROVISIONAL_MODEL](transactions/compliance.md#GET_PROVISIONAL_MODEL) | Gets Model Version provisional information | `dcld query compliance provisional-model`

GET `/dcl/compliance/provisional-models/{vid}/{pid}/{software_version}/{certification_type}` | +| [GET_COMPLIANCE_INFO](transactions/compliance.md#GET_COMPLIANCE_INFO) | Gets Model Version compliance information | `dcld query compliance compliance-info`

GET `/dcl/compliance/compliance-info/{vid}/{pid}/{software_version}/{certification_type}` | +| [GET_DEVICE_SOFT_COMPLIANCE](transactions/compliance.md#GET_DEVICE_SOFTWARE_COMPLIANCE) | Gets device software compliance | `dcld query compliance device-software-compliance`

GET `/dcl/compliance/device-software-compliance/{cDCertificateId}` | +| [GET_ALL_CERTIFIED_MODELS](transactions/compliance.md#GET_ALL_CERTIFIED_MODELS) | Gets all compliant Model Versions | `dcld query compliance all-certified-models`

GET `/dcl/compliance/certified-models` | +| [GET_ALL_REVOKED_MODELS](transactions/compliance.md#GET_ALL_REVOKED_MODELS) | Gets all revoked Model Versions | `dcld query compliance all-revoked-models`

GET `/dcl/compliance/revoked-models` | +| [GET_ALL_PROVISIONAL_MODELS](transactions/compliance.md#GET_ALL_PROVISIONAL_MODELS) | Gets all Model Versions in provisional state | `dcld query compliance all-provisional-models`

GET `/dcl/compliance/provisional-models` | +| [GET_ALL_COMPLIANCE_RECORDS](transactions/compliance.md#GET_ALL_COMPLIANCE_INFO_RECORDS) | Gets all stored compliance information records | `dcld query compliance all-compliance-info`

GET `/dcl/compliance/compliance-info` | +| [GET_ALL_DEVICE_SOFT_CMPLIANCES](transactions/compliance.md#GET_ALL_DEVICE_SOFTWARE_COMPLIANCES) | Gets all stored device software compliance's | `dcld query compliance all-device-software-compliance`

GET `/dcl/compliance/device-software-compliance` | ### [X509 PKI](transactions/pki.md) -| Method | Description | CLI command | -|------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|---------------------------------------------------------| -| Global | Work for all certificate types (DA, NOC) | | -| [GET_CERT](transactions/pki.md#get_cert) | Gets a certificate (PAA, PAI, RCAC, ICAC) | `dcld query pki cert` | -| [GET_ALL_CERTS](transactions/pki.md#get_all_certs) | Gets all certificates (PAA, PAI, RCAC, ICAC) | `dcld query pki all-certs` | -| [GET_ALL_CERTS_BY_SUBJECT](transactions/pki.md#get_all_certs_by_subject) | Gets all DA certificates associated with a subject | `dcld query pki all-subject-x509-certs` | -| [GET_CHILD_CERTS](transactions/pki.md#get_child_certs) | ets all child certificates for the given certificate | `dcld query pki all-child-x509-certs` | -| DA | Work for DA certificate types (PAA, PAI) | | -| [PROPOSE_ADD_PAA](transactions/pki.md#propose_add_paa) | Proposes a new PAA (self-signed root certificate) | `dcld tx pki propose-add-x509-root-cert` | -| [APPROVE_ADD_PAA](transactions/pki.md#approve_add_paa) | Approves the proposed PAA / Re-vote | `dcld tx pki approve-add-x509-root-cert` | -| [REJECT_ADD_PAA](transactions/pki.md#reject_add_paa) | Rejects the proposed PAA / Re-vote | `dcld tx pki reject-add-x509-root-cert` | -| [PROPOSE_REVOKE_PAA](transactions/pki.md#propose_revoke_paa) | Proposes revocation of the given PAA | `dcld tx pki propose-revoke-x509-root-cert` | -| [APPROVE_REVOKE_PAA](transactions/pki.md#approve_revoke_paa) | Approves the revocation of the given PAA | `dcld tx pki approve-revoke-x509-root-cert` | -| [ASSIGN_VID_TO_PAA](transactions/pki.md#assign_vid_to_paa) | Assigns a Vendor ID to non-VID scoped PAAs | `dcld tx pki assign-vid` | -| [ADD_REVOCATION_DISTRIBUTION_POINT](transactions/pki.md#add_revocation_distribution_point) | Publishes a PKI Revocation distribution endpoint | `dcld tx pki add-revocation-point` | -| [UPDATE_REVOCATION_DISTRIBUTION_POINT](transactions/pki.md#update_revocation_distribution_point) | Updates an existing PKI Revocation distribution endpoint | `dcld tx pki update-revocation-point` | -| [DELETE_REVOCATION_DISTRIBUTION_POINT](transactions/pki.md#delete_revocation_distribution_point) | Deletes a PKI Revocation distribution endpoint | `dcld tx pki delete-revocation-point` | -| [ADD_PAI](transactions/pki.md#add_pai) | Adds a PAI (intermediate certificate) | `dcld tx pki add-x509-cert` | -| [REVOKE_PAI](transactions/pki.md#revoke_pai) | Revokes the given PAI (intermediate certificate) | `dcld tx pki revoke-x509-cert` | -| [REMOVE_PAI](transactions/pki.md#remove_pai) | Removes the given PAI from approved and revoked lists | `dcld tx pki remove-x509-cert` | -| [GET_ALL_DA_CERTS](transactions/pki.md#get_all_da_certs) | Gets all DA certificates | `dcld query pki all-x509-certs` | -| [GET_ALL_PAA](transactions/pki.md#get_all_paa) | Gets all approved PAA certificates | `dcld query pki all-x509-root-certs` | -| [GET_DA_CERT](transactions/pki.md#get_da_cert) | Gets a DA certificate (PAA, PAI) | `dcld query pki x509-cert` | -| [GET_DA_CERTS_BY_SKID](transactions/pki.md#get_da_certs_by_skid) | Gets all DA certificates by the given subject key ID | `dcld query pki x509-cert` | -| [GET_DA_CERTS_BY_SUBJECT](transactions/pki.md#get_da_certs_by_subject) | Gets all DA certificates associated with a subject | `dcld query pki all-subject-x509-certs` | -| [GET_PKI_REVOCATION_DISTRIBUTION_POINT](transactions/pki.md#get_pki_revocation_distribution_point) | Gets a revocation distribution point | `dcld query pki revocation-point` | -| [GET_PKI_REVOCATION_DISTRIBUTION_POINTS_BY_SUBJECT_KEY_ID](transactions/pki.md#get_pki_revocation_distribution_points_by_subject_key_id) | Gets a list of revocation distribution point by subject key id | `dcld query pki revocation-points` | -| [GET_ALL_PKI_REVOCATION_DISTRIBUTION_POINT](transactions/pki.md#get_all_pki_revocation_distribution_point) | Gets a list of all revocation distribution points | `dcld query pki all-revocation-points` | -| [GET_ALL_PROPOSED_PAA](transactions/pki.md#get_all_proposed_paa) | Gets all proposed but not approved root certificates | `dcld query pki all-proposed-x509-root-certs` | -| [GET_PROPOSED_PAA](transactions/pki.md#get_proposed_paa) | Gets a proposed but not approved PAA certificate | `dcld query pki proposed-x509-root-cert` | -| [GET_ALL_PROPOSED_PAA_TO_REVOKE](transactions/pki.md#get_all_proposed_paa_to_revoke) | Gets all proposed but not approved root certificates to be revoked | `dcld query pki all-proposed-x509-root-certs-to-revoke` | -| [GET_PROPOSED_PAA_TO_REVOKE](transactions/pki.md#get_proposed_paa_to_revoke) | Gets a proposed but not approved PAA certificate to be revoked | `dcld query pki proposed-x509-root-cert-to-revoke` | -| [GET_ALL_REVOKED_DA_CERTS](transactions/pki.md#get_all_revoked_da_certs) | Gets all revoked DA certificates | `dcld query pki all-revoked-x509-certs` | -| [GET_REVOKED_DA_CERT](transactions/pki.md#get_revoked_da_cert) | Gets a revoked DA certificate (PAA, PAI) | `dcld query pki revoked-x509-cert` | -| [GET_ALL_REVOKED_PAA](transactions/pki.md#get_all_revoked_paa) | Gets all revoked PAA certificates | `dcld query pki all-revoked-x509-root-certs` | -| [GET_ALL_REJECTED_PAA](transactions/pki.md#get_all_rejected_paa) | Gets all rejected root certificates | `dcld query pki all-rejected-x509-root-certs` | -| [GET_REJECTED_PAA](transactions/pki.md#get_rejected_paa) | Get a rejected PAA certificate | `dcld query pki rejected-x509-root-cert` | -| NOC | Work for NOC certificate types (RCAC, ICAC) | | -| [ADD_NOC_ROOT](transactions/pki.md#add_noc_root-rcac) | Adds a NOC root certificate (RCAC) | `dcld tx pki add-noc-x509-root-cert` | -| [REVOKE_NOC_ROOT](transactions/pki.md#revoke_noc_root-rcac) | Revokes a NOC root certificate (RCAC) | `dcld tx pki revoke-noc-x509-root-cert` | -| [ADD_NOC_ICA](transactions/pki.md#add_noc_ica-icac) | Adds a NOC ica certificate (ICAC) | `dcld tx pki add-noc-x509-ica-cert` | -| [REVOKE_NOC_ICA](transactions/pki.md#revoke_noc_ica-icac) | Revokes a NOC ica certificate (ICAC) | `dcld tx pki revoke-noc-x509-ica-cert` | -| [REMOVE_NOC_ICA](transactions/pki.md#remove_noc_ica-icac) | Remove a NOC ica certificate (ICAC) | `dcld tx pki remove-noc-x509-ica-cert` | -| [GET_NOC_CERT](transactions/pki.md#get_noc_cert) | Gets a NOC certificate (RCAC, ICAC) | `dcld query pki noc-x509-cert` | -| [GET_NOC_ROOT_BY_VID](transactions/pki.md#get_noc_root_by_vid-rcacs) | Retrieve NOC root certificates (RCACs) associated with a specific VID | `dcld query pki noc-x509-root-certs` | -| [GET_NOC_BY_VID_AND_SKID](transactions/pki.md#get_noc_by_vid_and_skid-rcacsicacs) | Retrieve NOC certificates (RCACs/ICACs) associated with a specific VID and SKID | `dcld query pki noc-x509-certs` | -| [GET_NOC_ICA_BY_VID](transactions/pki.md#get_noc_ica_by_vid-icacs) | Retrieve NOC ICA certificates (ICACs) associated with a specific VID | `dcld query pki noc-x509-ica-certs` | -| [GET_NOC_CERTS_BY_SUBJECT](transactions/pki.md#get_noc_certs_by_subject) | Gets all NOC certificates associated with a subject | `dcld query pki all-noc-subject-x509-certs` | -| [GET_REVOKED_NOC_ROOT](transactions/pki.md#get_revoked_noc_root-rcac) | Gets a revoked NOC root certificate (RCAC) by the given subject and SKID | `dcld query pki revoked-noc-x509-root-cert` | -| [GET_REVOKED_NOC_ICA](transactions/pki.md#get_revoked_noc_ica-icac) | Gets a revoked NOC ica certificate (ICAC) by the given subject and SKID | `dcld query pki revoked-noc-x509-ica-cert` | -| [GET_ALL_NOC](transactions/pki.md#get_all_noc-rcacsicacs) | Retrieve a list of all of NOC certificates (RCACs of ICACs) | `dcld query pki all-noc-x509-certs` | -| [GET_ALL_NOC_ROOT](transactions/pki.md#get_all_noc_root-rcacs) | Retrieve a list of all of NOC root certificates (RCACs) | `dcld query pki all-noc-x509-root-certs` | -| [GET_ALL_NOC_ICA](transactions/pki.md#get_all_noc_ica-icacs) | Retrieve a list of all of NOC ICA certificates (ICACs) | `dcld query pki all-noc-x509-ica-certs` | -| [GET_ALL_REVOKED_NOC_ROOT](transactions/pki.md#get_all_revoked_noc_root-rcacs) | Gets all revoked NOC root certificates (RCACs) | `dcld query pki all-revoked-noc-x509-root-certs` | -| [GET_ALL_REVOKED_NOC_ICA](transactions/pki.md#get_all_revoked_noc_ica-icacs) | Gets all revoked NOC ica certificates (ICACs) | `dcld query pki all-revoked-noc-x509-ica-certs` | +| Method | Description | CLI command / REST API | +|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Global | Work for all certificate types (DA, NOC) | | +| [GET_CERT](transactions/pki.md#get_cert) | Gets a certificate (PAA, PAI, RCAC, ICAC) | `dcld query pki cert`

GET `/dcl/pki/all-certificates/{subject}/{subject_key_id}` | +| [GET_ALL_CERTS](transactions/pki.md#get_all_certs) | Gets all certificates (PAA, PAI, RCAC, ICAC) | `dcld query pki all-certs`

GET `/dcl/pki/all-certificates` | +| [GET_ALL_CERTS_BY_SUBJECT](transactions/pki.md#get_all_certs_by_subject) | Gets all DA certificates associated with a subject | `dcld query pki all-subject-x509-certs`

GET `/dcl/pki/all-certificates/{subject}` | +| [GET_CHILD_CERTS](transactions/pki.md#get_child_certs) | ets all child certificates for the given certificate | `dcld query pki all-child-x509-certs`

GET `/dcl/pki/child-certificates/{subject}/{subject_key_id}` | +| DA | Work for DA certificate types (PAA, PAI) | | +| [PROPOSE_ADD_PAA](transactions/pki.md#propose_add_paa) | Proposes a new PAA (self-signed root certificate) | `dcld tx pki propose-add-x509-root-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgProposeAddX509RootCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L34)) | +| [APPROVE_ADD_PAA](transactions/pki.md#approve_add_paa) | Approves the proposed PAA / Re-vote | `dcld tx pki approve-add-x509-root-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgApproveAddX509RootCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L46)) | +| [REJECT_ADD_PAA](transactions/pki.md#reject_add_paa) | Rejects the proposed PAA / Re-vote | `dcld tx pki reject-add-x509-root-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgRejectAddX509RootCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L106)) | +| [PROPOSE_REVOKE_PAA](transactions/pki.md#propose_revoke_paa) | Proposes revocation of the given PAA | `dcld tx pki propose-revoke-x509-root-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgProposeRevokeX509RootCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L68)) | +| [APPROVE_REVOKE_PAA](transactions/pki.md#approve_revoke_paa) | Approves the revocation of the given PAA | `dcld tx pki approve-revoke-x509-root-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgApproveRevokeX509RootCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L81)) | +| [ASSIGN_VID_TO_PAA](transactions/pki.md#assign_vid_to_paa) | Assigns a Vendor ID to non-VID scoped PAAs | `dcld tx pki assign-vid`

POST `/cosmos/tx/v1beta1/txs`([MsgAssignVid](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L164)) | +| [ADD_REVOCATION_DIST_POINT](transactions/pki.md#add_revocation_distribution_point) | Publishes a PKI Revocation distribution endpoint | `dcld tx pki add-revocation-point`

POST `/cosmos/tx/v1beta1/txs`([MsgAddPkiRevocationDistributionPoint](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L117)) | +| [UPDATE_REVOCATION_DIST_POINT](transactions/pki.md#update_revocation_distribution_point) | Updates an existing PKI Revocation distribution endpoint | `dcld tx pki update-revocation-point`

POST `/cosmos/tx/v1beta1/txs`([MsgUpdatePkiRevocationDistributionPoint](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L137)) | +| [DELETE_REVOCATION_DIST_POINT](transactions/pki.md#delete_revocation_distribution_point) | Deletes a PKI Revocation distribution endpoint | `dcld tx pki delete-revocation-point`

POST `/cosmos/tx/v1beta1/txs`([MsgDeletePkiRevocationDistributionPoint](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L154)) | +| [ADD_PAI](transactions/pki.md#add_pai) | Adds a PAI (intermediate certificate) | `dcld tx pki add-x509-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgAddX509Cert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L57)) | +| [REVOKE_PAI](transactions/pki.md#revoke_pai) | Revokes the given PAI (intermediate certificate) | `dcld tx pki revoke-x509-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgRevokeX509Cert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L93)) | +| [REMOVE_PAI](transactions/pki.md#remove_pai) | Removes the given PAI from approved and revoked lists | `dcld tx pki remove-x509-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgRemoveX509Cert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L183)) | +| [GET_ALL_DA_CERTS](transactions/pki.md#get_all_da_certs) | Gets all DA certificates | `dcld query pki all-x509-certs`

GET `/dcl/pki/certificates` | +| [GET_ALL_PAA](transactions/pki.md#get_all_paa) | Gets all approved PAA certificates | `dcld query pki all-x509-root-certs`

GET `/dcl/pki/root-certificates` | +| [GET_DA_CERT](transactions/pki.md#get_da_cert) | Gets a DA certificate (PAA, PAI) | `dcld query pki x509-cert`

GET `/dcl/pki/certificates/{subject}/{subject_key_id}` | +| [GET_DA_CERTS_BY_SKID](transactions/pki.md#get_da_certs_by_skid) | Gets all DA certificates by the given subject key ID | `dcld query pki x509-cert`

GET `/dcl/pki/certificates?subjectKeyId={subjectKeyId}` | +| [GET_DA_CERTS_BY_SUBJECT](transactions/pki.md#get_da_certs_by_subject) | Gets all DA certificates associated with a subject | `dcld query pki all-subject-x509-certs`

GET `/dcl/pki/certificates/{subject}` | +| [GET_REV_DIST_POINT](transactions/pki.md#get_pki_revocation_distribution_point) | Gets a revocation distribution point | `dcld query pki revocation-point`

GET `/dcl/pki/revocation-points/{issuerSubjectKeyID}/{vid}/{label}` | +| [GET_REV_DIST_POINTS_BY_SKID](transactions/pki.md#get_pki_revocation_distribution_points_by_subject_key_id) | Gets a list of revocation distribution point by subject key id | `dcld query pki revocation-points`

GET `/dcl/pki/revocation-points/{issuerSubjectKeyID}` | +| [GET_ALL_PKI_REVOCATION_DIST_POINT](transactions/pki.md#get_all_pki_revocation_distribution_point) | Gets a list of all revocation distribution points | `dcld query pki all-revocation-points`

GET `/dcl/pki/revocation-points` | +| [GET_ALL_PROPOSED_PAA](transactions/pki.md#get_all_proposed_paa) | Gets all proposed but not approved root certificates | `dcld query pki all-proposed-x509-root-certs`

GET `/dcl/pki/revocation-points` | +| [GET_PROPOSED_PAA](transactions/pki.md#get_proposed_paa) | Gets a proposed but not approved PAA certificate | `dcld query pki proposed-x509-root-cert`

GET `/dcl/pki/proposed-certificates/{subject}/{subject_key_id}` | +| [GET_ALL_PROPOSED_PAA_TO_REVOKE](transactions/pki.md#get_all_proposed_paa_to_revoke) | Gets all proposed but not approved root certificates to be revoked | `dcld query pki all-proposed-x509-root-certs-to-revoke`

GET `/dcl/pki/proposed-revocation-certificates` | +| [GET_PROPOSED_PAA_TO_REVOKE](transactions/pki.md#get_proposed_paa_to_revoke) | Gets a proposed but not approved PAA certificate to be revoked | `dcld query pki proposed-x509-root-cert-to-revoke`

GET `/dcl/pki/proposed-revocation-certificates/{subject}/{subject_key_id}?serialnumber={serialnumber}` | +| [GET_ALL_REVOKED_DA_CERTS](transactions/pki.md#get_all_revoked_da_certs) | Gets all revoked DA certificates | `dcld query pki all-revoked-x509-certs`

GET `/dcl/pki/revoked-certificates` | +| [GET_REVOKED_DA_CERT](transactions/pki.md#get_revoked_da_cert) | Gets a revoked DA certificate (PAA, PAI) | `dcld query pki revoked-x509-cert`

GET `/dcl/pki/revoked-certificates/{subject}/{subject_key_id}` | +| [GET_ALL_REVOKED_PAA](transactions/pki.md#get_all_revoked_paa) | Gets all revoked PAA certificates | `dcld query pki all-revoked-x509-root-certs`

GET `/dcl/pki/revoked-root-certificates` | +| [GET_ALL_REJECTED_PAA](transactions/pki.md#get_all_rejected_paa) | Gets all rejected root certificates | `dcld query pki all-rejected-x509-root-certs`

GET `dcl/pki/rejected-certificates` | +| [GET_REJECTED_PAA](transactions/pki.md#get_rejected_paa) | Get a rejected PAA certificate | `dcld query pki rejected-x509-root-cert`

GET `/dcl/pki/rejected-certificates/{subject}/{subject_key_id}` | +| NOC | Work for NOC certificate types (RCAC, ICAC) | | +| [ADD_NOC_ROOT](transactions/pki.md#add_noc_root-rcac) | Adds a NOC root certificate (RCAC) | `dcld tx pki add-noc-x509-root-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgAddNocX509RootCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L174)) | +| [REVOKE_NOC_ROOT](transactions/pki.md#revoke_noc_root-rcac) | Revokes a NOC root certificate (RCAC) | `dcld tx pki revoke-noc-x509-root-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgRevokeNocX509RootCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L202)) | +| [ADD_NOC_ICA](transactions/pki.md#add_noc_ica-icac) | Adds a NOC ica certificate (ICAC) | `dcld tx pki add-noc-x509-ica-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgAddNocX509IcaCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L193)) | +| [REVOKE_NOC_ICA](transactions/pki.md#revoke_noc_ica-icac) | Revokes a NOC ica certificate (ICAC) | `dcld tx pki revoke-noc-x509-ica-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgRevokeNocX509IcaCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L215)) | +| [REMOVE_NOC_ICA](transactions/pki.md#remove_noc_ica-icac) | Remove a NOC ica certificate (ICAC) | `dcld tx pki remove-noc-x509-ica-cert`

POST `/cosmos/tx/v1beta1/txs`([MsgRemoveNocX509IcaCert](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/tx.proto#L228)) | +| [GET_NOC_CERT](transactions/pki.md#get_noc_cert) | Gets a NOC certificate (RCAC, ICAC) | `dcld query pki noc-x509-cert`

GET `/dcl/pki/all-noc-certificates/{subject}/{subject_key_id}` | +| [GET_NOC_ROOT_BY_VID](transactions/pki.md#get_noc_root_by_vid-rcacs) | Retrieve NOC root certificates (RCACs) associated with a specific VID | `dcld query pki noc-x509-root-certs`

GET `/dcl/pki/noc-vid-root-certificates/{vid}` | +| [GET_NOC_BY_VID_AND_SKID](transactions/pki.md#get_noc_by_vid_and_skid-rcacsicacs) | Retrieve NOC certificates (RCACs/ICACs) associated with a specific VID and SKID | `dcld query pki noc-x509-certs`

GET `/dcl/pki/noc-vid-certificates/{vid}/{subject_key_id}` | +| [GET_NOC_ICA_BY_VID](transactions/pki.md#get_noc_ica_by_vid-icacs) | Retrieve NOC ICA certificates (ICACs) associated with a specific VID | `dcld query pki noc-x509-ica-certs`

GET `/dcl/pki/noc-vid-ica-certificates/{vid}` | +| [GET_NOC_CERTS_BY_SUBJECT](transactions/pki.md#get_noc_certs_by_subject) | Gets all NOC certificates associated with a subject | `dcld query pki all-noc-subject-x509-certs`

GET `/dcl/pki/all-noc-certificates/{subject}` | +| [GET_REVOKED_NOC_ROOT](transactions/pki.md#get_revoked_noc_root-rcac) | Gets a revoked NOC root certificate (RCAC) by the given subject and SKID | `dcld query pki revoked-noc-x509-root-cert`

GET `/dcl/pki/revoked-noc-root-certificates/{subject}/{subject_key_id}` | +| [GET_REVOKED_NOC_ICA](transactions/pki.md#get_revoked_noc_ica-icac) | Gets a revoked NOC ica certificate (ICAC) by the given subject and SKID | `dcld query pki revoked-noc-x509-ica-cert`

GET `/dcl/pki/revoked-noc-ica-certificates/{subject}/{subject_key_id}` | +| [GET_ALL_NOC](transactions/pki.md#get_all_noc-rcacsicacs) | Retrieve a list of all of NOC certificates (RCACs of ICACs) | `dcld query pki all-noc-x509-certs`

GET `/dcl/pki/all-noc-certificates` | +| [GET_ALL_NOC_ROOT](transactions/pki.md#get_all_noc_root-rcacs) | Retrieve a list of all of NOC root certificates (RCACs) | `dcld query pki all-noc-x509-root-certs`

GET `/dcl/pki/noc-root-certificates` | +| [GET_ALL_NOC_ICA](transactions/pki.md#get_all_noc_ica-icacs) | Retrieve a list of all of NOC ICA certificates (ICACs) | `dcld query pki all-noc-x509-ica-certs`

GET `/dcl/pki/noc-ica-certificates` | +| [GET_ALL_REVOKED_NOC_ROOT](transactions/pki.md#get_all_revoked_noc_root-rcacs) | Gets all revoked NOC root certificates (RCACs) | `dcld query pki all-revoked-noc-x509-root-certs`

GET `/dcl/pki/revoked-noc-root-certificates` | +| [GET_ALL_REVOKED_NOC_ICA](transactions/pki.md#get_all_revoked_noc_ica-icacs) | Gets all revoked NOC ica certificates (ICACs) | `dcld query pki all-revoked-noc-x509-ica-certs`

GET `/dcl/pki/revoked-noc-ica-certificates` | ### [AUTH](transactions/auth.md) -| Method | Description | CLI command | -|-------------------------------------------------------------------------------------------------|-----------------------------------------------------------|---------------------------------------------------| -| [PROPOSE_ADD_ACCOUNT](transactions/auth.md#propose_add_account) | Proposes a new Account | `dcld tx auth propose-add-account` | -| [APPROVE_ADD_ACCOUNT](transactions/auth.md#approve_add_account) | Approves the proposed account / Re-vote | `dcld tx auth approve-add-account` | -| [REJECT_ADD_ACCOUNT](transactions/auth.md#reject_add_account) | Rejects the proposed account / Re-vote | `dcld tx auth reject-add-account` | -| [PROPOSE_REVOKE_ACCOUNT](transactions/auth.md#propose_revoke_account) | Proposes revocation of the Account | `dcld tx auth propose-revoke-account` | -| [APPROVE_REVOKE_ACCOUNT](transactions/auth.md#approve_revoke_account) | Approves the proposed revocation of the account | `dcld tx auth approve-revoke-account` | -| [GET_ACCOUNT](transactions/auth.md#get_account) | Gets an accounts | `dcld query auth account` | -| [GET_PROPOSED_ACCOUNT](transactions/auth.md#get_proposed_account) | Gets a proposed but not approved accounts | `dcld query auth proposed-account` | -| [GET_REJECTED_ACCOUNT](transactions/auth.md#get_rejected_account) | Get a rejected accounts | `dcld query auth rejected-account` | -| [GET_PROPOSED_ACCOUNT_TO_REVOKE](transactions/auth.md#get_proposed_account_to_revoke) | Gets a proposed but not approved accounts to be revoked | `dcld query auth proposed-account-to-revoke` | -| [GET_REVOKED_ACCOUNT](transactions/auth.md#get_revoked_account) | Gets a revoked account by its address | `dcld query auth revoked-account` | -| [GET_ALL_ACCOUNTS](transactions/auth.md#get_all_accounts) | Gets all accounts | `dcld query auth all-accounts` | -| [GET_ALL_PROPOSED_ACCOUNTS](transactions/auth.md#get_all_proposed_accounts) | Gets all proposed but not approved accounts | `dcld query auth all-proposed-accounts` | -| [GET_ALL_REJECTED_ACCOUNTS](transactions/auth.md#get_all_rejected_accounts) | Get all rejected accounts | `dcld query auth all-rejected-accounts` | -| [GET_ALL_PROPOSED_ACCOUNTS_TO_REVOKE](transactions/auth.md#get_all_proposed_accounts_to_revoke) | Gets all proposed but not approved accounts to be revoked | `dcld query auth all-proposed-accounts-to-revoke` | -| [GET_ALL_REVOKED_ACCOUNTS](transactions/auth.md#get_all_revoked_accounts) | Gets all revoked accounts | `dcld query auth all-revoked-accounts` | +| Method | Description | CLI command / REST API | +|----------------------------------------------------------------------------------------------|-----------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [PROPOSE_ADD_ACCOUNT](transactions/auth.md#propose_add_account) | Proposes a new Account | `dcld tx auth propose-add-account`

POST `/cosmos/tx/v1beta1/txs`([MsgProposeAddAccount](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/dclauth/tx.proto#L23)) | +| [APPROVE_ADD_ACCOUNT](transactions/auth.md#approve_add_account) | Approves the proposed account / Re-vote | `dcld tx auth approve-add-account`

POST `/cosmos/tx/v1beta1/txs`([MsgApproveAddAccount](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/dclauth/tx.proto#L37)) | +| [REJECT_ADD_ACCOUNT](transactions/auth.md#reject_add_account) | Rejects the proposed account / Re-vote | `dcld tx auth reject-add-account`

POST `/cosmos/tx/v1beta1/txs`([MsgRejectAddAccount](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/dclauth/tx.proto#L67)) | +| [PROPOSE_REVOKE_ACCOUNT](transactions/auth.md#propose_revoke_account) | Proposes revocation of the Account | `dcld tx auth propose-revoke-account`

POST `/cosmos/tx/v1beta1/txs`([MsgProposeRevokeAccount](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/dclauth/tx.proto#L47)) | +| [APPROVE_REVOKE_ACCOUNT](transactions/auth.md#approve_revoke_account) | Approves the proposed revocation of the account | `dcld tx auth approve-revoke-account`

POST `/cosmos/tx/v1beta1/txs`([MsgApproveRevokeAccount](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/dclauth/tx.proto#L57)) | +| [GET_ACCOUNT](transactions/auth.md#get_account) | Gets an accounts | `dcld query auth account`

GET `/dcl/auth/accounts/{address}` | +| [GET_PROPOSED_ACCOUNT](transactions/auth.md#get_proposed_account) | Gets a proposed but not approved accounts | `dcld query auth proposed-account`

GET `/dcl/auth/proposed-accounts/{address}` | +| [GET_REJECTED_ACCOUNT](transactions/auth.md#get_rejected_account) | Get a rejected accounts | `dcld query auth rejected-account`

GET `/dcl/auth/rejected-accounts/{address}` | +| [GET_PROPOSED_ACCOUNT_TO_REVOKE](transactions/auth.md#get_proposed_account_to_revoke) | Gets a proposed but not approved accounts to be revoked | `dcld query auth proposed-account-to-revoke`

GET `/dcl/auth/proposed-revocation-accounts/{address}` | +| [GET_REVOKED_ACCOUNT](transactions/auth.md#get_revoked_account) | Gets a revoked account by its address | `dcld query auth revoked-account`

GET `/dcl/auth/revoked-accounts/{address}` | +| [GET_ALL_ACCOUNTS](transactions/auth.md#get_all_accounts) | Gets all accounts | `dcld query auth all-accounts`

GET `/dcl/auth/accounts` | +| [GET_ALL_PROPOSED_ACCOUNTS](transactions/auth.md#get_all_proposed_accounts) | Gets all proposed but not approved accounts | `dcld query auth all-proposed-accounts`

GET `/dcl/auth/proposed-accounts` | +| [GET_ALL_REJECTED_ACCOUNTS](transactions/auth.md#get_all_rejected_accounts) | Get all rejected accounts | `dcld query auth all-rejected-accounts`

GET `/dcl/auth/rejected-accounts` | +| [GET_ALL_PROPOSED_ACCS_TO_REVOKE](transactions/auth.md#get_all_proposed_accounts_to_revoke) | Gets all proposed but not approved accounts to be revoked | `dcld query auth all-proposed-accounts-to-revoke`

GET `/dcl/auth/proposed-revocation-accounts` | +| [GET_ALL_REVOKED_ACCOUNTS](transactions/auth.md#get_all_revoked_accounts) | Gets all revoked accounts | `dcld query auth all-revoked-accounts`

GET `/dcl/auth/revoked-accounts` | ### [VALIDATOR_NODE](transactions/validator-node.md) -| Method | Description | CLI command | -|-----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|---------------------------------------------------| -| [ADD_VALIDATOR_NODE](transactions/validator-node.md#add_validator_node) | Adds a new Validator node | `dcld tx validator add-node` | -| [DISABLE_VALIDATOR_NODE](transactions/validator-node.md#disable_validator_node) | Disables the Validator node by owner | `dcld tx validator disable-node` | -| [PROPOSE_DISABLE_VALIDATOR_NODE](transactions/validator-node.md#propose_disable_validator_node) | Proposes disabling of the Validator node by a Trustee | `dcld tx validator propose-disable-node` | -| [APPROVE_DISABLE_VALIDATOR_NODE](transactions/validator-node.md#approve_disable_validator_node) | Approves disabling of the Validator node by a Trustee / Re-vote | `dcld tx validator approve-disable-node` | -| [REJECT_DISABLE_VALIDATOR_NODE](transactions/validator-node.md#reject_disable_validator_node) | Rejects disabling of the Validator node by a Trustee / Re-vote | `dcld tx validator reject-disable-node` | -| [ENABLE_VALIDATOR_NODE](transactions/validator-node.md#enable_validator_node) | Enables the Validator node by the owner | `dcld tx validator enable-node` | -| [GET_VALIDATOR](transactions/validator-node.md#get_validator) | Gets a validator node | `dcld query validator node` | -| [GET_ALL_VALIDATORS](transactions/validator-node.md#get_all_validators) | Gets the list of all validator nodes | `dcld query validator all-nodes` | -| [GET_PROPOSED_DISABLE_VALIDATOR](transactions/validator-node.md#get_proposed_disable_validator) | Gets a proposed validator node | `dcld query validator proposed-disable-node` | -| [GET_ALL_PROPOSED_DISABLE_VALIDATORS](transactions/validator-node.md#get_all_proposed_disable_validators) | Gets the list of all proposed disable validator nodes | `dcld query validator all-proposed-disable-nodes` | -| [GET_REJECTED_DISABLE_VALIDATOR](transactions/validator-node.md#get_rejected_disable_validator) | Gets a rejected validator node | `dcld query validator rejected-disable-node` | -| [GET_ALL_REJECTED_DISABLE_VALIDATORS](transactions/validator-node.md#get_all_rejected_disable_validators) | Gets the list of all rejected disable validator nodes | `dcld query validator all-rejected-disable-nodes` | -| [GET_DISABLED_VALIDATOR](transactions/validator-node.md#get_disabled_validator) | Gets a disabled validator node | `dcld query validator disabled-node` | -| [GET_ALL_DISABLED_VALIDATORS](transactions/validator-node.md#get_all_disabled_validators) | Gets the list of all disabled validator nodes | `dcld query validator all-disabled-nodes` | -| [GET_LAST_VALIDATOR_POWER](transactions/validator-node.md#get_last_validator_power) | Gets a last validator node power | `dcld query validator last-power` | -| [GET_ALL_LAST_VALIDATORS_POWER](transactions/validator-node.md#get_all_last_validators_power) | Gets the list of all last validator nodes power | `dcld query validator all-last-powers` | -| [UPDATE_VALIDATOR_NODE](transactions/validator-node.md#update_validator_node) | Updates the Validator node by the owner | | +| Method | Description | CLI command / REST API | +|-----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [ADD_VALIDATOR_NODE](transactions/validator-node.md#add_validator_node) | Adds a new Validator node | `dcld tx validator add-node`

POST `/cosmos/tx/v1beta1/txs`([MsgCreateValidator](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/validator/tx.proto#L24)) | +| [DISABLE_VALIDATOR_NODE](transactions/validator-node.md#disable_validator_node) | Disables the Validator node by owner | `dcld tx validator disable-node`

POST `/cosmos/tx/v1beta1/txs`([MsgDisableValidator](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/validator/tx.proto#L56)) | +| [PROPOSE_DISABLE_VALIDATOR_NODE](transactions/validator-node.md#propose_disable_validator_node) | Proposes disabling of the Validator node by a Trustee | `dcld tx validator propose-disable-node`

POST `/cosmos/tx/v1beta1/txs`([MsgProposeDisableValidator](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/validator/tx.proto#L36)) | +| [APPROVE_DISABLE_VALIDATOR_NODE](transactions/validator-node.md#approve_disable_validator_node) | Approves disabling of the Validator node by a Trustee / Re-vote | `dcld tx validator approve-disable-node`

POST `/cosmos/tx/v1beta1/txs`([MsgApproveDisableValidator](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/validator/tx.proto#L46)) | +| [REJECT_DISABLE_VALIDATOR_NODE](transactions/validator-node.md#reject_disable_validator_node) | Rejects disabling of the Validator node by a Trustee / Re-vote | `dcld tx validator reject-disable-node`

POST `/cosmos/tx/v1beta1/txs`([MsgRejectDisableValidator](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/validator/tx.proto#L76)) | +| [ENABLE_VALIDATOR_NODE](transactions/validator-node.md#enable_validator_node) | Enables the Validator node by the owner | `dcld tx validator enable-node`

POST `/cosmos/tx/v1beta1/txs`([MsgEnableValidator](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/validator/tx.proto#L63)) | +| [GET_VALIDATOR](transactions/validator-node.md#get_validator) | Gets a validator node | `dcld query validator node`

GET `/dcl/validator/nodes/{owner}` | +| [GET_ALL_VALIDATORS](transactions/validator-node.md#get_all_validators) | Gets the list of all validator nodes | `dcld query validator all-nodes`

GET `/dcl/validator/nodes` | +| [GET_PROPOSED_DISABLE_VALIDATOR](transactions/validator-node.md#get_proposed_disable_validator) | Gets a proposed validator node | `dcld query validator proposed-disable-node`

GET `/dcl/validator/proposed-disable-nodes/{address}` | +| [GET_ALL_PROPOSED_DISABLE_VALIDATORS](transactions/validator-node.md#get_all_proposed_disable_validators) | Gets the list of all proposed disable validator nodes | `dcld query validator all-proposed-disable-nodes`

GET `/dcl/validator/proposed-disable-nodes` | +| [GET_REJECTED_DISABLE_VALIDATOR](transactions/validator-node.md#get_rejected_disable_validator) | Gets a rejected validator node | `dcld query validator rejected-disable-node`

GET `/dcl/validator/rejected-disable-nodes/{address}` | +| [GET_ALL_REJECTED_DISABLE_VALIDATORS](transactions/validator-node.md#get_all_rejected_disable_validators) | Gets the list of all rejected disable validator nodes | `dcld query validator all-rejected-disable-nodes`

GET `/dcl/validator/rejected-disable-nodes` | +| [GET_DISABLED_VALIDATOR](transactions/validator-node.md#get_disabled_validator) | Gets a disabled validator node | `dcld query validator disabled-node`

GET `/dcl/validator/disabled-nodes/{address}` | +| [GET_ALL_DISABLED_VALIDATORS](transactions/validator-node.md#get_all_disabled_validators) | Gets the list of all disabled validator nodes | `dcld query validator all-disabled-nodes`

GET `/dcl/validator/disabled-nodes` | +| [GET_LAST_VALIDATOR_POWER](transactions/validator-node.md#get_last_validator_power) | Gets a last validator node power | `dcld query validator last-power`

GET `/dcl/validator/last-powers/{owner}` | +| [GET_ALL_LAST_VALIDATORS_POWER](transactions/validator-node.md#get_all_last_validators_power) | Gets the list of all last validator nodes power | `dcld query validator all-last-powers`

GET `/dcl/validator/last-powers` | +| [UPDATE_VALIDATOR_NODE](transactions/validator-node.md#update_validator_node) | Updates the Validator node by the owner | | ### [UPGRADE](transactions/upgrade.md) -| Method | Description | CLI command | -|--------------------------------------------------------------------------------|----------------------------------------------------------------------|-----------------------------------------------| -| [PROPOSE_UPGRADE](transactions/upgrade.md#propose_upgrade) | Proposes an upgrade plan with the given name at the given height | `dcld tx dclupgrade propose-upgrade` | -| [APPROVE_UPGRADE](transactions/upgrade.md#approve_upgrade) | Approves the proposed upgrade plan with the given name / Re-vote | `dcld tx dclupgrade approve-upgrade` | -| [REJECT_UPGRADE](transactions/upgrade.md#reject_upgrade) | Rejects the proposed upgrade plan with the given name / Re-vote | `dcld tx dclupgrade reject-upgrade` | -| [GET_PROPOSED_UPGRADE](transactions/upgrade.md#get_proposed_upgrade) | Gets the proposed upgrade plan with the given name | `dcld query dclupgrade proposed-upgrade` | -| [GET_APPROVED_UPGRADE](transactions/upgrade.md#get_approved_upgrade) | Gets the approved upgrade plan with the given name | `dcld query dclupgrade approved-upgrade` | -| [GET_REJECTED_UPGRADE](transactions/upgrade.md#get_rejected_upgrade) | Gets the rejected upgrade plan with the given name | `dcld query dclupgrade rejected-upgrade` | -| [GET_ALL_PROPOSED_UPGRADES](transactions/upgrade.md#get_all_proposed_upgrades) | Gets all the proposed upgrade plans | `dcld query dclupgrade all-proposed-upgrades` | -| [GET_ALL_APPROVED_UPGRADES](transactions/upgrade.md#get_all_approved_upgrades) | Gets all the approved upgrade plans | `dcld query dclupgrade all-approved-upgrades` | -| [GET_ALL_REJECTED_UPGRADES](transactions/upgrade.md#get_all_rejected_upgrades) | Gets all the rejected upgrade plans | `dcld query dclupgrade all-rejected-upgrades` | -| [GET_UPGRADE_PLAN](transactions/upgrade.md#get_upgrade_plan) | Gets the currently scheduled upgrade plan, if it exists | `dcld query upgrade plan` | -| [GET_APPLIED_UPGRADE](transactions/upgrade.md#get_applied_upgrade) | Gets header block at which the upgrade was applied | `dcld query upgrade applied` | -| [GET_MODULE_VERSIONS](transactions/upgrade.md#get_module_versions) | Gets a list of module names and their respective consensus versions | `dcld query upgrade module_versions` | +| Method | Description | CLI command / REST API | +|--------------------------------------------------------------------------------|----------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [PROPOSE_UPGRADE](transactions/upgrade.md#propose_upgrade) | Proposes an upgrade plan with the given name at the given height | `dcld tx dclupgrade propose-upgrade`

POST `/cosmos/tx/v1beta1/txs`([MsgProposeUpgrade](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/dclupgrade/tx.proto#L19)) | +| [APPROVE_UPGRADE](transactions/upgrade.md#approve_upgrade) | Approves the proposed upgrade plan with the given name / Re-vote | `dcld tx dclupgrade approve-upgrade`

POST `/cosmos/tx/v1beta1/txs`([MsgApproveUpgrade](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/dclupgrade/tx.proto#L29)) | +| [REJECT_UPGRADE](transactions/upgrade.md#reject_upgrade) | Rejects the proposed upgrade plan with the given name / Re-vote | `dcld tx dclupgrade reject-upgrade`

POST `/cosmos/tx/v1beta1/txs`([MsgRejectUpgrade](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/dclupgrade/tx.proto#L39)) | +| [GET_PROPOSED_UPGRADE](transactions/upgrade.md#get_proposed_upgrade) | Gets the proposed upgrade plan with the given name | `dcld query dclupgrade proposed-upgrade`

GET `/dcl/dclupgrade/proposed-upgrades/{name}` | +| [GET_APPROVED_UPGRADE](transactions/upgrade.md#get_approved_upgrade) | Gets the approved upgrade plan with the given name | `dcld query dclupgrade approved-upgrade`

GET `/dcl/dclupgrade/approved-upgrades/{name}` | +| [GET_REJECTED_UPGRADE](transactions/upgrade.md#get_rejected_upgrade) | Gets the rejected upgrade plan with the given name | `dcld query dclupgrade rejected-upgrade`

GET `/dcl/dclupgrade/rejected-upgrades/{name}` | +| [GET_ALL_PROPOSED_UPGRADES](transactions/upgrade.md#get_all_proposed_upgrades) | Gets all the proposed upgrade plans | `dcld query dclupgrade all-proposed-upgrades`

GET `/dcl/dclupgrade/proposed-upgrades` | +| [GET_ALL_APPROVED_UPGRADES](transactions/upgrade.md#get_all_approved_upgrades) | Gets all the approved upgrade plans | `dcld query dclupgrade all-approved-upgrades`

GET `/dcl/dclupgrade/approved-upgrades` | +| [GET_ALL_REJECTED_UPGRADES](transactions/upgrade.md#get_all_rejected_upgrades) | Gets all the rejected upgrade plans | `dcld query dclupgrade all-rejected-upgrades`

GET `/dcl/dclupgrade/rejected-upgrades` | +| [GET_UPGRADE_PLAN](transactions/upgrade.md#get_upgrade_plan) | Gets the currently scheduled upgrade plan, if it exists | `dcld query upgrade plan`

GET `/cosmos/upgrade/v1beta1/current_plan` | +| [GET_APPLIED_UPGRADE](transactions/upgrade.md#get_applied_upgrade) | Gets header block at which the upgrade was applied | `dcld query upgrade applied`

GET `/cosmos/upgrade/v1beta1/applied_plan/{name}` | +| [GET_MODULE_VERSIONS](transactions/upgrade.md#get_module_versions) | Gets a list of module names and their respective consensus versions | `dcld query upgrade module_versions`

GET `/cosmos/upgrade/v1beta1/module_versions` | ## Extensions diff --git a/docs/transactions/compliance.md b/docs/transactions/compliance.md index 794e6d3d2..bee0b7fb4 100644 --- a/docs/transactions/compliance.md +++ b/docs/transactions/compliance.md @@ -365,7 +365,7 @@ Should be sent to trusted nodes only. - CLI command: - `dcld query compliance all-device-software-compliance` - REST API: - - `/dcl/compliance/device-software-compliance` + - GET `/dcl/compliance/device-software-compliance`