@cheqd/sdk 3.0.2 → 3.1.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/build/cjs/index.d.ts +14 -14
  2. package/build/cjs/index.d.ts.map +1 -1
  3. package/build/cjs/index.js +60 -60
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/modules/_.d.ts +3 -3
  6. package/build/cjs/modules/_.d.ts.map +1 -1
  7. package/build/cjs/modules/did.d.ts +5 -5
  8. package/build/cjs/modules/did.d.ts.map +1 -1
  9. package/build/cjs/modules/did.js +36 -36
  10. package/build/cjs/modules/did.js.map +1 -1
  11. package/build/cjs/modules/resource.d.ts +6 -6
  12. package/build/cjs/modules/resource.d.ts.map +1 -1
  13. package/build/cjs/modules/resource.js +15 -15
  14. package/build/cjs/modules/resource.js.map +1 -1
  15. package/build/cjs/querier.d.ts +1 -1
  16. package/build/cjs/querier.d.ts.map +1 -1
  17. package/build/cjs/signer.d.ts +6 -6
  18. package/build/cjs/signer.d.ts.map +1 -1
  19. package/build/cjs/signer.js +14 -14
  20. package/build/cjs/signer.js.map +1 -1
  21. package/build/cjs/types.d.ts +4 -4
  22. package/build/cjs/types.d.ts.map +1 -1
  23. package/build/cjs/utils.d.ts +1 -1
  24. package/build/cjs/utils.d.ts.map +1 -1
  25. package/build/cjs/utils.js +21 -21
  26. package/build/cjs/utils.js.map +1 -1
  27. package/build/esm/index.d.ts +45 -0
  28. package/build/esm/index.d.ts.map +1 -0
  29. package/build/esm/index.js +89 -0
  30. package/build/esm/index.js.map +1 -0
  31. package/build/esm/modules/_.d.ts +20 -0
  32. package/build/esm/modules/_.d.ts.map +1 -0
  33. package/build/esm/modules/_.js +40 -0
  34. package/build/esm/modules/_.js.map +1 -0
  35. package/build/esm/modules/did.d.ts +109 -0
  36. package/build/esm/modules/did.d.ts.map +1 -0
  37. package/build/esm/modules/did.js +441 -0
  38. package/build/esm/modules/did.js.map +1 -0
  39. package/build/esm/modules/resource.d.ts +62 -0
  40. package/build/esm/modules/resource.d.ts.map +1 -0
  41. package/build/esm/modules/resource.js +165 -0
  42. package/build/esm/modules/resource.js.map +1 -0
  43. package/build/esm/querier.d.ts +11 -0
  44. package/build/esm/querier.d.ts.map +1 -0
  45. package/{src/querier.ts → build/esm/querier.js} +8 -17
  46. package/build/esm/querier.js.map +1 -0
  47. package/build/esm/registry.d.ts +4 -0
  48. package/build/esm/registry.d.ts.map +1 -0
  49. package/build/esm/registry.js +9 -0
  50. package/build/esm/registry.js.map +1 -0
  51. package/build/esm/signer.d.ts +36 -0
  52. package/build/esm/signer.d.ts.map +1 -0
  53. package/build/esm/signer.js +197 -0
  54. package/build/esm/signer.js.map +1 -0
  55. package/build/esm/types.d.ts +80 -0
  56. package/build/esm/types.d.ts.map +1 -0
  57. package/build/esm/types.js +22 -0
  58. package/build/esm/types.js.map +1 -0
  59. package/build/esm/utils.d.ts +18 -0
  60. package/build/esm/utils.d.ts.map +1 -0
  61. package/{src/utils.ts → build/esm/utils.js} +81 -131
  62. package/build/esm/utils.js.map +1 -0
  63. package/build/types/index.d.ts +14 -14
  64. package/build/types/index.d.ts.map +1 -1
  65. package/build/types/modules/_.d.ts +3 -3
  66. package/build/types/modules/_.d.ts.map +1 -1
  67. package/build/types/modules/did.d.ts +5 -5
  68. package/build/types/modules/did.d.ts.map +1 -1
  69. package/build/types/modules/resource.d.ts +6 -6
  70. package/build/types/modules/resource.d.ts.map +1 -1
  71. package/build/types/querier.d.ts +1 -1
  72. package/build/types/querier.d.ts.map +1 -1
  73. package/build/types/signer.d.ts +6 -6
  74. package/build/types/signer.d.ts.map +1 -1
  75. package/build/types/types.d.ts +4 -4
  76. package/build/types/types.d.ts.map +1 -1
  77. package/build/types/utils.d.ts +1 -1
  78. package/build/types/utils.d.ts.map +1 -1
  79. package/package.json +28 -16
  80. package/.github/ISSUE_TEMPLATE/bug-report.yml +0 -74
  81. package/.github/ISSUE_TEMPLATE/config.yml +0 -14
  82. package/.github/ISSUE_TEMPLATE/feature-request.yaml +0 -27
  83. package/.github/dependabot.yml +0 -43
  84. package/.github/linters/.commitlint.rules.cjs +0 -37
  85. package/.github/linters/.eslintrc.json +0 -18
  86. package/.github/linters/.markdown-lint.yml +0 -139
  87. package/.github/linters/mlc_config.json +0 -13
  88. package/.github/workflows/build.yml +0 -26
  89. package/.github/workflows/cleanup-actions.yml +0 -45
  90. package/.github/workflows/cleanup-cache-automatic.yml +0 -24
  91. package/.github/workflows/cleanup-cache-manual.yml +0 -21
  92. package/.github/workflows/codeql.yml +0 -40
  93. package/.github/workflows/dispatch.yml +0 -30
  94. package/.github/workflows/lint.yml +0 -51
  95. package/.github/workflows/pull-request.yml +0 -48
  96. package/.github/workflows/release.yml +0 -42
  97. package/.github/workflows/test.yml +0 -66
  98. package/.releaserc.json +0 -60
  99. package/CHANGELOG.md +0 -325
  100. package/CODE_OF_CONDUCT.md +0 -81
  101. package/NOTICE.md +0 -10
  102. package/SECURITY.md +0 -12
  103. package/docker/Dockerfile +0 -55
  104. package/docker/entrypoint.sh +0 -58
  105. package/docker/localnet/build-latest.env +0 -7
  106. package/docker/localnet/container-env/observer-0.env +0 -13
  107. package/docker/localnet/container-env/seed-0.env +0 -17
  108. package/docker/localnet/container-env/validator-0.env +0 -13
  109. package/docker/localnet/container-env/validator-1.env +0 -13
  110. package/docker/localnet/container-env/validator-2.env +0 -13
  111. package/docker/localnet/container-env/validator-3.env +0 -13
  112. package/docker/localnet/docker-compose.yml +0 -281
  113. package/docker/localnet/gen-network-config.sh +0 -259
  114. package/docker/localnet/import-keys.sh +0 -31
  115. package/jest.config.js +0 -6
  116. package/src/index.ts +0 -192
  117. package/src/modules/_.ts +0 -61
  118. package/src/modules/did.ts +0 -601
  119. package/src/modules/resource.ts +0 -247
  120. package/src/registry.ts +0 -13
  121. package/src/signer.ts +0 -297
  122. package/src/types.ts +0 -110
  123. package/tests/index.test.ts +0 -155
  124. package/tests/modules/did.test.ts +0 -985
  125. package/tests/modules/resource.test.ts +0 -991
  126. package/tests/signer.test.ts +0 -202
  127. package/tests/testutils.test.ts +0 -29
  128. package/tests/utils.test.ts +0 -77
  129. package/tsconfig.cjs.json +0 -8
  130. package/tsconfig.json +0 -84
  131. package/tsconfig.types.json +0 -10
@@ -1,81 +0,0 @@
1
- # Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in the cheqd community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, country of origin, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behaviour that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behaviour include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or advances of any kind
22
- * Use of inappropriate or non-inclusive language or other behaviour deemed unprofessional or unwelcome in the community
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email address, without their explicit permission
26
- * Other conduct which could reasonably be considered inappropriate in a professional setting
27
-
28
- ## Enforcement Responsibilities
29
-
30
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behaviour and will take appropriate and fair corrective action in response to any behaviour that they deem inappropriate, threatening, offensive, or harmful.
31
-
32
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, messages, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
33
-
34
- ## Scope
35
-
36
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
37
-
38
- ## Enforcement
39
-
40
- Instances of abusive, harassing, or otherwise unacceptable behaviour may be reported to the community leaders responsible for enforcement at [support-github@cheqd.io](mailto:support-github@cheqd.io). All complaints will be reviewed and investigated promptly and fairly.
41
-
42
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
43
-
44
- ## Enforcement Guidelines
45
-
46
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
47
-
48
- ### 1. Correction
49
-
50
- **Community Impact**: Use of inappropriate language or other behaviour deemed unprofessional or unwelcome in the community.
51
-
52
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behaviour was inappropriate. A public apology may be requested.
53
-
54
- ### 2. Warning
55
-
56
- **Community Impact**: A violation through a single incident or series of actions. Any Community Impact assessment should take into account:
57
-
58
- 1. The severity and/or number of incidents/actions
59
- 2. Non-compliance with previous private warnings from community leaders (if applicable)
60
-
61
- **Consequence**: A warning with consequences for continued behaviour. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
62
-
63
- ### 3. Temporary Ban
64
-
65
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behaviour.
66
-
67
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
68
-
69
- ### 4. Permanent Ban
70
-
71
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behaviour, harassment of an individual, or aggression toward or disparagement of classes of individuals.
72
-
73
- **Consequence**: A permanent ban from any sort of public interaction within the community.
74
-
75
- ## Attribution
76
-
77
- This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 2.0, available at [https://www.contributor-covenant.org/version/2/0/code\_of\_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).
package/NOTICE.md DELETED
@@ -1,10 +0,0 @@
1
- ---
2
- description: >-
3
- This is the NOTICE file as described under the Apache License 2.0 terms for inclusion in downstream software projects that use this code.
4
- ---
5
-
6
- # Notice
7
-
8
- Copyright 2021-2022 Cheqd Foundation Limited
9
-
10
- This product includes software developed at Cheqd Foundation Limited, doing business as "cheqd"
package/SECURITY.md DELETED
@@ -1,12 +0,0 @@
1
- # Security Policy
2
-
3
- ## Reporting a Vulnerability
4
-
5
- If you think you have discovered a security issue in any of cheqd projects, we'd love to hear from you.
6
-
7
- We take all security bugs seriously. If confirmed upon investigation, we will patch it within a reasonable amount of time and release a public security bulletin discussing the impact and credit the discoverer.
8
-
9
- There are two ways to report a security bug:
10
-
11
- * Email us at [security-github@cheqd.io](mailto:security-github@cheqd.io)
12
- * Join [our cheqd Community Slack](http://cheqd.link/join-cheqd-slack) and post a message on the #security channel
package/docker/Dockerfile DELETED
@@ -1,55 +0,0 @@
1
- ###############################################################
2
- ### STAGE 1: Build node binary pre-requisites ###
3
- ###############################################################
4
-
5
- FROM golang:1.18-alpine AS builder
6
-
7
- # Install minimum necessary dependencies
8
- ENV PACKAGES curl make git libc-dev bash gcc linux-headers
9
- RUN apk update && apk add --no-cache $PACKAGES
10
-
11
- # Set working directory for the build
12
- WORKDIR /go/src/github.com/cheqd/cheqd-node
13
-
14
- # Add source files
15
- COPY . .
16
-
17
- # Make node binary
18
- RUN make build
19
-
20
- ###############################################################
21
- ### STAGE 2: Build cheqd-node image ###
22
- ###############################################################
23
-
24
- FROM alpine:3.17 AS runner
25
-
26
- # Install pre-requisites
27
- RUN apk update && apk add --no-cache bash ca-certificates
28
-
29
- # Copy over binaries from the build-env
30
- COPY --from=builder /go/src/github.com/cheqd/cheqd-node/build/cheqd-noded /bin/cheqd-noded
31
-
32
- # Set user directory and details
33
- ARG HOME_DIR="/home/cheqd"
34
- ARG USER="cheqd"
35
- ARG GROUP=${USER}
36
- ARG UID=1000
37
- ARG GID=${UID}
38
-
39
- # Add cheqd user to use in the container
40
- RUN addgroup --system ${GROUP} --gid ${GID} \
41
- && adduser ${USER} --uid ${UID} -G ${GROUP} --system --home ${HOME_DIR} --shell /bin/bash
42
-
43
- # Set entrypoint script
44
- COPY --chown=${USER}:${GROUP} docker/entrypoint.sh /bin/node-start
45
- RUN chmod +rx /bin/node-start
46
-
47
- # Set working directory & bash defaults
48
- WORKDIR ${HOME_DIR}
49
- USER ${USER}
50
- SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
51
-
52
- EXPOSE 26656 26657 26660 1317 9090 9091
53
-
54
- # Set plain vanilla default entrypoint/command
55
- CMD [ "cheqd-noded" ]
@@ -1,58 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Inits node configuration and runs the node.
4
- # e -> exit immediately, u -> treat unset variables as errors and immediately, o -> sets the exit code to the rightmost command
5
- set -euo pipefail
6
-
7
- # within the container, $HOME=/home/cheqd
8
- CHEQD_ROOT_DIR="$HOME/.cheqdnode"
9
-
10
- # Init node config directory
11
- if [ ! -d "${CHEQD_ROOT_DIR}/config" ]
12
- then
13
- echo "Node config not found. Initializing."
14
- cheqd-noded init "moniker-placeholder"
15
- else
16
- echo "Node config exists. Skipping initialization."
17
- fi
18
-
19
- # Check if a genesis file has been passed in config
20
- if [ -f "/genesis" ]
21
- then
22
- echo "Genesis file passed. Adding/replacing current genesis file."
23
- cp /genesis "${CHEQD_ROOT_DIR}/config/genesis.json"
24
- else
25
- echo "No genesis file passed. Skipping and retaining existing genesis."
26
- fi
27
-
28
- # Check if a seeds file has been passed in config
29
- if [ -f "/seeds" ]
30
- then
31
- echo "Seeds file passed. Overriding current seeds."
32
- cp /seeds "${CHEQD_ROOT_DIR}/config/seeds.txt"
33
- CHEQD_NODED_P2P_SEEDS="$(cat "${CHEQD_ROOT_DIR}/config/seeds.txt")"
34
- export CHEQD_NODED_P2P_SEEDS
35
- else
36
- echo "No seeds file passed. Skipping and retaining existing seeds."
37
- fi
38
-
39
- # Check if a node_key file has been passed in config
40
- if [ -f "/node_key" ]
41
- then
42
- echo "Node key file passed. Overriding current key."
43
- cp /node_key "${CHEQD_ROOT_DIR}/config/node_key.json"
44
- else
45
- echo "No node key file passed. Skipping and retaining existing node key."
46
- fi
47
-
48
- # Check if a priv_validator_key file has been passed in config
49
- if [ -f "/priv_validator_key" ]
50
- then
51
- echo "Private validator key file passed. Replacing current key."
52
- cp /priv_validator_key "${CHEQD_ROOT_DIR}/config/priv_validator_key.json"
53
- else
54
- echo "No private validator key file passed. Skipping and retaining existing key."
55
- fi
56
-
57
- # Run node
58
- cheqd-noded start
@@ -1,7 +0,0 @@
1
- # Environment variables used by Docker Compose
2
-
3
- ###############################################################
4
- ### REQUIRED: Node/network selection ###
5
- ###############################################################
6
- # Define cheqd-noded image source. Change if using your own build.
7
- BUILD_IMAGE="ghcr.io/cheqd/cheqd-node:1.0.4-develop.1"
@@ -1,13 +0,0 @@
1
- # Environment variables used by the container
2
-
3
- # General
4
- CHEQD_NODED_MONIKER="observer-0"
5
- CHEQD_NODED_RPC_LADDR="tcp://0.0.0.0:26657"
6
- CHEQD_NODED_API_ENABLE="true"
7
- CHEQD_NODED_MINIMUM_GAS_PRICES="25ncheq"
8
- # Consensus
9
- CHEQD_NODED_CONSENSUS_TIMEOUT_PROPOSE="500ms"
10
- CHEQD_NODED_CONSENSUS_TIMEOUT_PREVOTE="500ms"
11
- CHEQD_NODED_CONSENSUS_TIMEOUT_PRECOMMIT="500ms"
12
- CHEQD_NODED_CONSENSUS_TIMEOUT_COMMIT="500ms"
13
- CHEQD_NODED_CREATE_EMPTY_BLOCKS="false"
@@ -1,17 +0,0 @@
1
- # Environment variables used by the container
2
-
3
- # General
4
- CHEQD_NODED_MONIKER="seed-0"
5
- CHEQD_NODED_RPC_LADDR="tcp://0.0.0.0:26657"
6
- CHEQD_NODED_API_ENABLE="true"
7
- CHEQD_NODED_MINIMUM_GAS_PRICES="25ncheq"
8
-
9
- # Seed specific
10
- CHEQD_NODED_P2P_SEED_MODE
11
-
12
- # Consensus
13
- CHEQD_NODED_CONSENSUS_TIMEOUT_PROPOSE="500ms"
14
- CHEQD_NODED_CONSENSUS_TIMEOUT_PREVOTE="500ms"
15
- CHEQD_NODED_CONSENSUS_TIMEOUT_PRECOMMIT="500ms"
16
- CHEQD_NODED_CONSENSUS_TIMEOUT_COMMIT="500ms"
17
- CHEQD_NODED_CREATE_EMPTY_BLOCKS="false"
@@ -1,13 +0,0 @@
1
- # Environment variables used by the container
2
-
3
- # General
4
- CHEQD_NODED_MONIKER="validator-0"
5
- CHEQD_NODED_RPC_LADDR="tcp://0.0.0.0:26657"
6
- CHEQD_NODED_API_ENABLE="true"
7
- CHEQD_NODED_MINIMUM_GAS_PRICES="25ncheq"
8
- # Consensus
9
- CHEQD_NODED_CONSENSUS_TIMEOUT_PROPOSE="500ms"
10
- CHEQD_NODED_CONSENSUS_TIMEOUT_PREVOTE="500ms"
11
- CHEQD_NODED_CONSENSUS_TIMEOUT_PRECOMMIT="500ms"
12
- CHEQD_NODED_CONSENSUS_TIMEOUT_COMMIT="500ms"
13
- CHEQD_NODED_CREATE_EMPTY_BLOCKS="false"
@@ -1,13 +0,0 @@
1
- # Environment variables used by the container
2
-
3
- # General
4
- CHEQD_NODED_MONIKER="validator-1"
5
- CHEQD_NODED_RPC_LADDR="tcp://0.0.0.0:26657"
6
- CHEQD_NODED_API_ENABLE="true"
7
- CHEQD_NODED_MINIMUM_GAS_PRICES="25ncheq"
8
- # Consensus
9
- CHEQD_NODED_CONSENSUS_TIMEOUT_PROPOSE="500ms"
10
- CHEQD_NODED_CONSENSUS_TIMEOUT_PREVOTE="500ms"
11
- CHEQD_NODED_CONSENSUS_TIMEOUT_PRECOMMIT="500ms"
12
- CHEQD_NODED_CONSENSUS_TIMEOUT_COMMIT="500ms"
13
- CHEQD_NODED_CREATE_EMPTY_BLOCKS="false"
@@ -1,13 +0,0 @@
1
- # Environment variables used by the container
2
-
3
- # General
4
- CHEQD_NODED_MONIKER="validator-2"
5
- CHEQD_NODED_RPC_LADDR="tcp://0.0.0.0:26657"
6
- CHEQD_NODED_API_ENABLE="true"
7
- CHEQD_NODED_MINIMUM_GAS_PRICES="25ncheq"
8
- # Consensus
9
- CHEQD_NODED_CONSENSUS_TIMEOUT_PROPOSE="500ms"
10
- CHEQD_NODED_CONSENSUS_TIMEOUT_PREVOTE="500ms"
11
- CHEQD_NODED_CONSENSUS_TIMEOUT_PRECOMMIT="500ms"
12
- CHEQD_NODED_CONSENSUS_TIMEOUT_COMMIT="500ms"
13
- CHEQD_NODED_CREATE_EMPTY_BLOCKS="false"
@@ -1,13 +0,0 @@
1
- # Environment variables used by the container
2
-
3
- # General
4
- CHEQD_NODED_MONIKER="validator-3"
5
- CHEQD_NODED_RPC_LADDR="tcp://0.0.0.0:26657"
6
- CHEQD_NODED_API_ENABLE="true"
7
- CHEQD_NODED_MINIMUM_GAS_PRICES="25ncheq"
8
- # Consensus
9
- CHEQD_NODED_CONSENSUS_TIMEOUT_PROPOSE="500ms"
10
- CHEQD_NODED_CONSENSUS_TIMEOUT_PREVOTE="500ms"
11
- CHEQD_NODED_CONSENSUS_TIMEOUT_PRECOMMIT="500ms"
12
- CHEQD_NODED_CONSENSUS_TIMEOUT_COMMIT="500ms"
13
- CHEQD_NODED_CREATE_EMPTY_BLOCKS="false"
@@ -1,281 +0,0 @@
1
- version: '3.8'
2
-
3
- services:
4
- validator-0:
5
- image: ${BUILD_IMAGE}
6
- ports:
7
- - target: 26656
8
- published: 26656 # Tendermint peer-to-peer (P2P) port
9
- - target: 26657
10
- published: 26657 # Tendermint RPC port
11
- - target: 1317
12
- published: 1317 # Cosmos REST API port
13
- - target: 9090
14
- published: 9090 # gRPC port
15
- - target: 9091
16
- published: 9091 # gRPC-Gateway port
17
- - target: 26660
18
- published: 26660 # Prometheus metrics port
19
- entrypoint: [ "node-start", "--chain-id cheqd" ]
20
- healthcheck:
21
- test: curl -s http://localhost:26657/status | grep -c true
22
- interval: 10s
23
- timeout: 2s
24
- retries: 6
25
- start_period: 15s
26
- volumes:
27
- - type: volume
28
- source: validator-0-data
29
- target: /home/cheqd
30
- env_file:
31
- - container-env/validator-0.env
32
- configs:
33
- - source: genesis
34
- target: /genesis
35
- - source: seeds
36
- target: /seeds
37
- - source: validator-0-node-key
38
- target: /node_key
39
- - source: validator-0-priv-val-key
40
- target: /priv_validator_key
41
-
42
- validator-1:
43
- image: ${BUILD_IMAGE}
44
- ports:
45
- - target: 26656
46
- published: 26756 # Tendermint peer-to-peer (P2P) port
47
- - target: 26657
48
- published: 26757 # Tendermint RPC port
49
- - target: 1317
50
- published: 1417 # Cosmos REST API port
51
- - target: 9090
52
- published: 9190 # gRPC port
53
- - target: 9091
54
- published: 9191 # gRPC-Gateway port
55
- - target: 26660
56
- published: 26760 # Prometheus metrics port
57
- entrypoint: [ "node-start", "--chain-id cheqd" ]
58
- healthcheck:
59
- test: curl -s http://localhost:26757/status | grep -c true
60
- interval: 10s
61
- timeout: 2s
62
- retries: 6
63
- start_period: 15s
64
- volumes:
65
- - type: volume
66
- source: validator-1-data
67
- target: /home/cheqd
68
- env_file:
69
- - container-env/validator-1.env
70
- configs:
71
- - source: genesis
72
- target: /genesis
73
- - source: seeds
74
- target: /seeds
75
- - source: validator-1-node-key
76
- target: /node_key
77
- - source: validator-1-priv-val-key
78
- target: /priv_validator_key
79
-
80
- validator-2:
81
- image: ${BUILD_IMAGE}
82
- ports:
83
- - target: 26656
84
- published: 26856 # Tendermint peer-to-peer (P2P) port
85
- - target: 26657
86
- published: 26857 # Tendermint RPC port
87
- - target: 1317
88
- published: 1517 # Cosmos REST API port
89
- - target: 9090
90
- published: 9290 # gRPC port
91
- - target: 9091
92
- published: 9291 # gRPC-Gateway port
93
- - target: 26660
94
- published: 26860 # Prometheus metrics port
95
- entrypoint: [ "node-start", "--chain-id cheqd" ]
96
- healthcheck:
97
- test: curl -s http://localhost:26857/status | grep -c true
98
- interval: 10s
99
- timeout: 2s
100
- retries: 6
101
- start_period: 15s
102
- volumes:
103
- - type: volume
104
- source: validator-2-data
105
- target: /home/cheqd
106
- env_file:
107
- - container-env/validator-2.env
108
- configs:
109
- - source: genesis
110
- target: /genesis
111
- - source: seeds
112
- target: /seeds
113
- - source: validator-2-node-key
114
- target: /node_key
115
- - source: validator-2-priv-val-key
116
- target: /priv_validator_key
117
-
118
- validator-3:
119
- image: ${BUILD_IMAGE}
120
- ports:
121
- - target: 26656
122
- published: 26956 # Tendermint peer-to-peer (P2P) port
123
- - target: 26657
124
- published: 26957 # Tendermint RPC port
125
- - target: 1317
126
- published: 1617 # Cosmos REST API port
127
- - target: 9090
128
- published: 9390 # gRPC port
129
- - target: 9091
130
- published: 9391 # gRPC-Gateway port
131
- - target: 26660
132
- published: 26960 # Prometheus metrics port
133
- entrypoint: [ "node-start", "--chain-id cheqd" ]
134
- healthcheck:
135
- test: curl -s http://localhost:26957/status | grep -c true
136
- interval: 10s
137
- timeout: 2s
138
- retries: 6
139
- start_period: 15s
140
- volumes:
141
- - type: volume
142
- source: validator-3-data
143
- target: /home/cheqd
144
- env_file:
145
- - container-env/validator-3.env
146
- configs:
147
- - source: genesis
148
- target: /genesis
149
- - source: seeds
150
- target: /seeds
151
- - source: validator-3-node-key
152
- target: /node_key
153
- - source: validator-3-priv-val-key
154
- target: /priv_validator_key
155
-
156
- seed-0:
157
- image: ${BUILD_IMAGE}
158
- ports:
159
- - target: 26656
160
- published: 27056 # Tendermint peer-to-peer (P2P) port
161
- - target: 26657
162
- published: 27057 # Tendermint RPC port
163
- - target: 1317
164
- published: 1717 # Cosmos REST API port
165
- - target: 9090
166
- published: 9490 # gRPC port
167
- - target: 9091
168
- published: 9491 # gRPC-Gateway port
169
- - target: 26660
170
- published: 27060 # Prometheus metrics port
171
- entrypoint: [ "node-start", "--chain-id cheqd" ]
172
- healthcheck:
173
- test: curl -s http://localhost:27057/status | grep -c true
174
- interval: 10s
175
- timeout: 2s
176
- retries: 6
177
- start_period: 15s
178
- volumes:
179
- - type: volume
180
- source: seed-0-data
181
- target: /home/cheqd
182
- env_file:
183
- - container-env/seed-0.env
184
- configs:
185
- - source: genesis
186
- target: /genesis
187
- - source: seeds
188
- target: /seeds
189
- - source: seed-0-node-key
190
- target: /node_key
191
- - source: seed-0-priv-val-key
192
- target: /priv_validator_key
193
-
194
- observer-0:
195
- image: ${BUILD_IMAGE}
196
- ports:
197
- - target: 26656
198
- published: 27156 # Tendermint peer-to-peer (P2P) port
199
- - target: 26657
200
- published: 27157 # Tendermint RPC port
201
- - target: 1317
202
- published: 1817 # Cosmos REST API port
203
- - target: 9090
204
- published: 9590 # gRPC port
205
- - target: 9091
206
- published: 9591 # gRPC-Gateway port
207
- - target: 26660
208
- published: 27160 # Prometheus metrics port
209
- volumes:
210
- - type: volume
211
- source: observer-0-data
212
- target: /home/cheqd
213
- entrypoint: [ "node-start", "--chain-id cheqd" ]
214
- healthcheck:
215
- test: curl -s http://localhost:27157/status | grep -c true
216
- interval: 10s
217
- timeout: 2s
218
- retries: 6
219
- start_period: 15s
220
- env_file:
221
- - container-env/observer-0.env
222
- configs:
223
- - source: genesis
224
- target: /genesis
225
- - source: seeds
226
- target: /seeds
227
- - source: observer-0-node-key
228
- target: /node_key
229
- - source: observer-0-priv-val-key
230
- target: /priv_validator_key
231
-
232
- configs:
233
- # Genesis and seeds
234
- genesis:
235
- file: network-config/genesis.json
236
- seeds:
237
- file: network-config/seeds.txt
238
-
239
- # Validator 0
240
- validator-0-node-key:
241
- file: network-config/validator-0/config/node_key.json
242
- validator-0-priv-val-key:
243
- file: network-config/validator-0/config/priv_validator_key.json
244
-
245
- # Validator 1
246
- validator-1-node-key:
247
- file: network-config/validator-1/config/node_key.json
248
- validator-1-priv-val-key:
249
- file: network-config/validator-1/config/priv_validator_key.json
250
-
251
- # Validator 2
252
- validator-2-node-key:
253
- file: network-config/validator-2/config/node_key.json
254
- validator-2-priv-val-key:
255
- file: network-config/validator-2/config/priv_validator_key.json
256
-
257
- # Validator 3
258
- validator-3-node-key:
259
- file: network-config/validator-3/config/node_key.json
260
- validator-3-priv-val-key:
261
- file: network-config/validator-3/config/priv_validator_key.json
262
-
263
- # Seed 0
264
- seed-0-node-key:
265
- file: network-config/seed-0/config/node_key.json
266
- seed-0-priv-val-key:
267
- file: network-config/seed-0/config/priv_validator_key.json
268
-
269
- # Observer 0
270
- observer-0-node-key:
271
- file: network-config/observer-0/config/node_key.json
272
- observer-0-priv-val-key:
273
- file: network-config/observer-0/config/priv_validator_key.json
274
-
275
- volumes:
276
- validator-0-data:
277
- validator-1-data:
278
- validator-2-data:
279
- validator-3-data:
280
- seed-0-data:
281
- observer-0-data: