diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index bb84973a8e..99526188b2 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- Add some constants for Starknet + ## [5.4.0] - 2024-12-11 ### Changed - Updated codegen to support id types other than string (#2622) diff --git a/packages/cli/src/controller/add-chain-controller.ts b/packages/cli/src/controller/add-chain-controller.ts index ba7d19e6f1..c067592ea3 100644 --- a/packages/cli/src/controller/add-chain-controller.ts +++ b/packages/cli/src/controller/add-chain-controller.ts @@ -15,6 +15,7 @@ const nodeToDockerImage: Record = { '@subql/node-near': 'onfinality/subql-node-near', '@subql/node-stellar': 'subquerynetwork/subql-node-stellar', '@subql/node-concordium': 'subquerynetwork/subql-node-concordium', + '@subql/node-starknet': 'subquerynetwork/subql-node-starknet', }; type DockerComposeDependsOn = { diff --git a/packages/cli/src/modulars/config.ts b/packages/cli/src/modulars/config.ts index ca325190d6..f159722f8c 100644 --- a/packages/cli/src/modulars/config.ts +++ b/packages/cli/src/modulars/config.ts @@ -11,4 +11,5 @@ export const networkPackages: {[key in NETWORK_FAMILY]: string} = { [NETWORK_FAMILY.near]: '@subql/common-near', [NETWORK_FAMILY.stellar]: '@subql/common-stellar', [NETWORK_FAMILY.substrate]: '@subql/common-substrate', + [NETWORK_FAMILY.starknet]: '@subql/common-starknet', }; diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 1bf77edf8e..ed1f4e3b01 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- Add starknet to network family constants + ## [5.2.2] - 2024-12-11 ### Fixed - Missing form-data dependency (#2622) diff --git a/packages/common/src/constants.ts b/packages/common/src/constants.ts index ac9a07b954..441727a09d 100644 --- a/packages/common/src/constants.ts +++ b/packages/common/src/constants.ts @@ -26,6 +26,7 @@ export enum NETWORK_FAMILY { near = 'Near', stellar = 'Stellar', concordium = 'Concordium', + starknet = 'Starknet', } export const runnerMapping = { @@ -37,6 +38,7 @@ export const runnerMapping = { '@subql/node-near': NETWORK_FAMILY.near, '@subql/node-stellar': NETWORK_FAMILY.stellar, '@subql/node-concordium': NETWORK_FAMILY.concordium, + '@subql/node-starknet': NETWORK_FAMILY.starknet, }; // DATABASE ERROR REGEX