diff --git a/package.json b/package.json index c42dafd9ef..c46ee3c4e1 100644 --- a/package.json +++ b/package.json @@ -28,14 +28,13 @@ "scripts": { "analyze": "yarn clean && BUILD_ANALYZE=1 yarn run build:code && yarn source-map-explorer packages/apps/build/app.*.js", "build": "yarn run build:i18n && yarn run build:code", - "build:before": "yarn build:fixup && yarn build:images && yarn build:typesBundle", + "build:before": "yarn build:images && yarn build:typesBundle", "build:code": "NODE_ENV=production yarn polkadot-dev-build-ts", "build:devElectronMain": "cd packages/apps-electron && yarn polkadot-exec-webpack --config webpack.main.cjs", "build:devElectronRenderer": "cd packages/apps-electron && yarn polkadot-exec-webpack --config webpack.renderer.cjs", "build:electron": "yarn clean:electronBuild && yarn build:electronMain && yarn build:electronRenderer", "build:electronMain": "cd packages/apps-electron && NODE_ENV=production yarn polkadot-exec-webpack --config webpack.main.cjs", "build:electronRenderer": "cd packages/apps-electron && NODE_ENV=production yarn polkadot-exec-webpack --config webpack.renderer.cjs", - "build:fixup": "node ./scripts/fixupModules.cjs", "build:i18n": "i18next-scanner --config i18next-scanner.config.cjs && node ./scripts/i18nSort.cjs", "build:images": "node scripts/imgConvert.mjs", "build:release:electron": "yarn build && yarn build:electron && yarn postinstall:electron", @@ -52,7 +51,7 @@ "clean:electronRelease": "cd packages/apps-electron && rm -rf release", "clean:i18n": "rm -rf packages/apps/public/locales/en && mkdir -p packages/apps/public/locales/en", "docs": "echo \"skipping docs\"", - "lint": "yarn build:fixup && polkadot-dev-run-lint", + "lint": "polkadot-dev-run-lint", "packElectron": "yarn build:release:electron && yarn clean:electronRelease && electron-builder build -mwl", "packElectron:linux": "yarn build:release:electron && electron-builder build --linux", "packElectron:mac": "yarn build:release:electron && electron-builder build --mac", @@ -62,7 +61,7 @@ "postinstall:electron": "electron-builder install-app-deps", "start": "yarn clean && cd packages/apps && yarn polkadot-exec-webpack serve --config webpack.serve.cjs --port 3000", "start:electron": "yarn clean:electronBuild && concurrently 'yarn build:devElectronMain && cd packages/apps-electron && electron ./build/electron.js' 'yarn build:devElectronRenderer'", - "test": "polkadot-dev-run-test --env browser --require ./scripts/fixupModules.cjs --experimental-specifier-resolution=node ^typesBundle ^chainEndpoints ^chainTypes ^page- ^react- ^apps-electron", + "test": "polkadot-dev-run-test --env browser --experimental-specifier-resolution=node ^typesBundle ^chainEndpoints ^chainTypes ^page- ^react- ^apps-electron", "test:all": "polkadot-dev-run-test --env browser ^chainEndpoints ^chainTypes", "test:one": "polkadot-dev-run-test --env browser", "test:skipped": "echo 'tests skipped'" diff --git a/packages/apps-config/src/api/spec/fragnova.ts b/packages/apps-config/src/api/spec/fragnova.ts index f786514fcf..5a7cff6276 100644 --- a/packages/apps-config/src/api/spec/fragnova.ts +++ b/packages/apps-config/src/api/spec/fragnova.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 +// Not used/included in index.ts as of https://github.com/polkadot-js/apps/pull/9243 + import type { OverrideBundleDefinition } from '@polkadot/types/types'; import { options } from '@fragnova/api-augment'; diff --git a/packages/apps-config/src/api/spec/frequency.ts b/packages/apps-config/src/api/spec/frequency.ts index 9069ba7ac5..6eb8e4e863 100644 --- a/packages/apps-config/src/api/spec/frequency.ts +++ b/packages/apps-config/src/api/spec/frequency.ts @@ -1,6 +1,8 @@ // Copyright 2017-2023 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 +// Not used/included in index.ts as of https://github.com/polkadot-js/apps/pull/9243 + import type { OverrideBundleDefinition } from '@polkadot/types/types'; import { rpc, runtime, signedExtensions, types } from '@frequency-chain/api-augment'; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index 5562a2e1af..da74ea08b7 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -45,8 +45,10 @@ import encointerNodeTeeproxy from './encointer-node-teeproxy.js'; import encointerPara from './encointer-para.js'; import equilibrium from './equilibrium.js'; import fantour from './fantour.js'; -import fragnova from './fragnova.js'; -import frequency from './frequency.js'; +// See https://github.com/polkadot-js/apps/pull/9243 +// import fragnova from './fragnova.js'; +// See https://github.com/polkadot-js/apps/pull/9243 +// import frequency from './frequency.js'; import galital from './galital.js'; import galitalParachain from './galital-parachain.js'; import galois from './galois.js'; @@ -191,10 +193,12 @@ const spec: Record = { 'encointer-node-teeproxy': encointerNodeTeeproxy, 'encointer-parachain': encointerPara, fantour, - fragnova, - 'fragnova-testnet': fragnova, - frequency, - 'frequency-rococo': frequency, + // See https://github.com/polkadot-js/apps/pull/9243 + // fragnova, + // 'fragnova-testnet': fragnova, + // See https://github.com/polkadot-js/apps/pull/9243 + // frequency, + // 'frequency-rococo': frequency, galital, 'galital-collator': galitalParachain, gamepower, diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 790bd897ff..85817db093 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -54001,1018 +54001,6 @@ export const typesBundle = { } ] }, - "fragnova": { - "rpc": { - "fragments": { - "getDefinitions": { - "description": "Query and Return Fragment Definition(s) based on `params`", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetDefinitionsParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - }, - "getInstances": { - "description": "Query and Return Fragment Instance(s) based on `params`", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetInstancesParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - }, - "getInstanceOwner": { - "description": "Query the owner of a Fragment Instance. The return type is a String", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetInstanceOwnerParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - } - }, - "protos": { - "getData": { - "description": "Query and Return Proto-Fragment data based on `proto_hash`. The **return type** is base64 encoded bytes.", - "type": "String", - "params": [ - { - "name": "proto_hash", - "type": "BlockHash" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - }, - "getProtos": { - "description": "Query and Return Proto-Fragment(s) based on `params`. The return type is a JSON string", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetProtosParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - }, - "getGenealogy": { - "description": "Query the Genealogy of a Proto-Fragment based on `params`. The return type is a JSON string that represents an Adjacency List.", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetGenealogyParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - } - } - }, - "types": [ - { - "minmax": [ - 0, - null - ], - "types": { - "DefinitionMetadata": { - "name": "Vec", - "currency": "Option", - "_reserved1": "Option<()>", - "_reserved2": "Option<()>", - "_reserved3": "Option<()>" - }, - "GetDefinitionsParams": { - "desc": "bool", - "from": "u64", - "limit": "u64", - "metadata_keys": "Vec", - "owner": "Option", - "return_owners": "bool" - }, - "GetInstancesParams": { - "desc": "bool", - "from": "u64", - "limit": "u64", - "definition_hash": "String", - "metadata_keys": "Vec", - "owner": "Option", - "only_return_first_copies": "bool" - }, - "GetInstanceOwnerParams": { - "definition_hash": "String", - "edition_id": "InstanceUnit", - "copy_id": "InstanceUnit" - }, - "InstanceUnit": "u64", - "Categories": { - "_enum": { - "text": "TextCategories", - "trait": "Option", - "shards": "ShardsScriptInfo", - "audio": "AudioCategories", - "texture": "TextureCategories", - "vector": "VectorCategories", - "video": "VideoCategories", - "model": "ModelCategories", - "binary": "BinaryCategories" - } - }, - "AudioCategories": { - "_enum": [ - "oggFile", - "mp3File" - ] - }, - "ModelCategories": { - "_enum": [ - "gltfFile", - "sdf", - "physicsCollider" - ] - }, - "TextureCategories": { - "_enum": [ - "pngFile", - "jpgFile" - ] - }, - "VectorCategories": { - "_enum": [ - "svgFile", - "ttfFile", - "otfFile" - ] - }, - "VideoCategories": { - "_enum": [ - "mkvFile", - "mp4File" - ] - }, - "TextCategories": { - "_enum": [ - "plain", - "json", - "wgsl", - "markdown" - ] - }, - "BinaryCategories": { - "_enum": [ - "wasmProgram", - "wasmReactor", - "blendFile", - "onnxModel", - "safeTensors", - "rareDomain" - ] - }, - "ShardsScriptInfo": { - "format": "ShardsFormat", - "shardsVersion": "Compact", - "requiring": "Vec", - "implementing": "Vec" - }, - "ShardsTrait": "Vec", - "ShardsFormat": { - "_enum": [ - "edn", - "binary" - ] - }, - "GetProtosParams": { - "desc": "bool", - "from": "u32", - "limit": "u32", - "metadata_keys": "Vec", - "owner": "Option", - "return_owners": "bool", - "categories": "Vec", - "tags": "Vec", - "exclude_tags": "Vec", - "available": "Option" - }, - "GetGenealogyParams": { - "proto_hash": "String", - "get_ancestors": "bool" - } - } - } - ] - }, - "fragnova-testnet": { - "rpc": { - "fragments": { - "getDefinitions": { - "description": "Query and Return Fragment Definition(s) based on `params`", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetDefinitionsParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - }, - "getInstances": { - "description": "Query and Return Fragment Instance(s) based on `params`", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetInstancesParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - }, - "getInstanceOwner": { - "description": "Query the owner of a Fragment Instance. The return type is a String", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetInstanceOwnerParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - } - }, - "protos": { - "getData": { - "description": "Query and Return Proto-Fragment data based on `proto_hash`. The **return type** is base64 encoded bytes.", - "type": "String", - "params": [ - { - "name": "proto_hash", - "type": "BlockHash" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - }, - "getProtos": { - "description": "Query and Return Proto-Fragment(s) based on `params`. The return type is a JSON string", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetProtosParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - }, - "getGenealogy": { - "description": "Query the Genealogy of a Proto-Fragment based on `params`. The return type is a JSON string that represents an Adjacency List.", - "type": "String", - "params": [ - { - "name": "param", - "type": "GetGenealogyParams" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ] - } - } - }, - "types": [ - { - "minmax": [ - 0, - null - ], - "types": { - "DefinitionMetadata": { - "name": "Vec", - "currency": "Option", - "_reserved1": "Option<()>", - "_reserved2": "Option<()>", - "_reserved3": "Option<()>" - }, - "GetDefinitionsParams": { - "desc": "bool", - "from": "u64", - "limit": "u64", - "metadata_keys": "Vec", - "owner": "Option", - "return_owners": "bool" - }, - "GetInstancesParams": { - "desc": "bool", - "from": "u64", - "limit": "u64", - "definition_hash": "String", - "metadata_keys": "Vec", - "owner": "Option", - "only_return_first_copies": "bool" - }, - "GetInstanceOwnerParams": { - "definition_hash": "String", - "edition_id": "InstanceUnit", - "copy_id": "InstanceUnit" - }, - "InstanceUnit": "u64", - "Categories": { - "_enum": { - "text": "TextCategories", - "trait": "Option", - "shards": "ShardsScriptInfo", - "audio": "AudioCategories", - "texture": "TextureCategories", - "vector": "VectorCategories", - "video": "VideoCategories", - "model": "ModelCategories", - "binary": "BinaryCategories" - } - }, - "AudioCategories": { - "_enum": [ - "oggFile", - "mp3File" - ] - }, - "ModelCategories": { - "_enum": [ - "gltfFile", - "sdf", - "physicsCollider" - ] - }, - "TextureCategories": { - "_enum": [ - "pngFile", - "jpgFile" - ] - }, - "VectorCategories": { - "_enum": [ - "svgFile", - "ttfFile", - "otfFile" - ] - }, - "VideoCategories": { - "_enum": [ - "mkvFile", - "mp4File" - ] - }, - "TextCategories": { - "_enum": [ - "plain", - "json", - "wgsl", - "markdown" - ] - }, - "BinaryCategories": { - "_enum": [ - "wasmProgram", - "wasmReactor", - "blendFile", - "onnxModel", - "safeTensors", - "rareDomain" - ] - }, - "ShardsScriptInfo": { - "format": "ShardsFormat", - "shardsVersion": "Compact", - "requiring": "Vec", - "implementing": "Vec" - }, - "ShardsTrait": "Vec", - "ShardsFormat": { - "_enum": [ - "edn", - "binary" - ] - }, - "GetProtosParams": { - "desc": "bool", - "from": "u32", - "limit": "u32", - "metadata_keys": "Vec", - "owner": "Option", - "return_owners": "bool", - "categories": "Vec", - "tags": "Vec", - "exclude_tags": "Vec", - "available": "Option" - }, - "GetGenealogyParams": { - "proto_hash": "String", - "get_ancestors": "bool" - } - } - } - ] - }, - "frequency": { - "rpc": { - "frequency": { - "getEvents": { - "description": "Get block Events", - "params": [ - { - "name": "at", - "type": "H256" - } - ], - "type": "Vec" - } - }, - "messages": { - "getBySchemaId": { - "description": "Get messages by schemaId paginated", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - }, - { - "name": "pagination", - "type": "BlockPaginationRequest" - } - ], - "type": "BlockPaginationResponseMessage" - } - }, - "msa": { - "checkDelegations": { - "description": "Test a list of MSAs to see if they have delegated to the provider MSA", - "params": [ - { - "name": "delegator_msa_ids", - "type": "Vec" - }, - { - "name": "provider_msa_id", - "type": "ProviderId" - }, - { - "name": "block_number", - "type": "BlockNumber" - }, - { - "name": "schema_id", - "type": "Option" - } - ], - "type": "Vec<(DelegatorId, bool)>" - }, - "grantedSchemaIdsByMsaId": { - "description": "Fetch the list of schema ids that a delegator has granted to provider", - "params": [ - { - "name": "delegator_msa_id", - "type": "DelegatorId" - }, - { - "name": "provider_msa_id", - "type": "ProviderId" - } - ], - "type": "Option>" - } - }, - "schemas": { - "getBySchemaId": { - "description": "Get a Schema by Id", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - } - ], - "type": "Option" - }, - "checkSchemaValidity": { - "description": "", - "params": [ - { - "name": "model", - "type": "SchemaModel" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ], - "type": "bool" - } - } - }, - "runtime": { - "AdditionalRuntimeApi": [ - { - "methods": { - "get_events": { - "description": "Get the events with simple SCALE decoding", - "params": [], - "type": "Vec" - } - }, - "version": 1 - } - ], - "MessagesRuntimeApi": [ - { - "methods": { - "get_messages_by_schema_and_block": { - "description": "Retrieve the messages for a particular schema and block number", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - }, - { - "name": "schema_payload_location", - "type": "PayloadLocation" - }, - { - "name": "block_number", - "type": "BlockNumber" - } - ], - "type": "Vec" - }, - "get_schema_by_id": { - "description": "Retrieve a schema by id", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - } - ], - "type": "Option" - } - }, - "version": 1 - } - ], - "MsaRuntimeApi": [ - { - "methods": { - "has_delegation": { - "description": "Check to see if a delegation existed between the given delegator and provider at a given block", - "params": [ - { - "name": "delegator_id", - "type": "DelegatorId" - }, - { - "name": "provider_id", - "type": "ProviderId" - }, - { - "name": "block_number", - "type": "BlockNumber" - }, - { - "name": "schema_id", - "type": "Option" - } - ], - "type": "bool" - }, - "get_granted_schemas_by_msa_id": { - "description": "Get the list of schema ids (if any) that exist in any delegation between the delegator and provider", - "params": [ - { - "name": "delegator_id", - "type": "DelegatorId" - }, - { - "name": "provider_id", - "type": "ProviderId" - } - ], - "type": "Option>" - } - }, - "version": 1 - } - ], - "SchemasRuntimeApi": [ - { - "methods": { - "get_schema_by_id": { - "description": "Fetch the schema by id", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - } - ], - "type": "Option" - } - }, - "version": 1 - } - ] - }, - "signedExtensions": { - "CheckFreeExtrinsicUse": { - "extrinsic": {}, - "payload": {} - } - }, - "types": [ - { - "minmax": [ - 0, - null - ], - "types": { - "RpcEvent": { - "phase": "Option", - "pallet": "u8", - "event": "u8", - "data": "Vec" - }, - "BlockPaginationRequest": { - "from_block": "BlockNumber", - "from_index": "u32", - "to_block": "BlockNumber", - "page_size": "u32" - }, - "MessageResponse": { - "payload": "Option>", - "cid": "Option>", - "provider_msa_id": "MessageSourceId", - "msa_id": "Option", - "index": "u16", - "block_number": "BlockNumber", - "payload_length": "Option" - }, - "BlockPaginationResponseMessage": { - "content": "Vec", - "has_next": "bool", - "next_block": "Option", - "next_index": "Option" - }, - "MessageSourceId": "u64", - "DelegatorId": "MessageSourceId", - "ProviderId": "MessageSourceId", - "KeyInfoResponse": { - "key": "AccountId", - "msaId": "MessageSourceId" - }, - "SchemaId": "u16", - "SchemaModel": "Vec", - "SchemaResponse": { - "schema_id": "SchemaId", - "model": "SchemaModel", - "model_type": "ModelType", - "payload_location": "PayloadLocation" - }, - "ModelType": { - "_enum": [ - "AvroBinary", - "Parquet" - ] - }, - "PayloadLocation": { - "_enum": [ - "OnChain", - "IPFS" - ] - } - } - } - ] - }, - "frequency-rococo": { - "rpc": { - "frequency": { - "getEvents": { - "description": "Get block Events", - "params": [ - { - "name": "at", - "type": "H256" - } - ], - "type": "Vec" - } - }, - "messages": { - "getBySchemaId": { - "description": "Get messages by schemaId paginated", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - }, - { - "name": "pagination", - "type": "BlockPaginationRequest" - } - ], - "type": "BlockPaginationResponseMessage" - } - }, - "msa": { - "checkDelegations": { - "description": "Test a list of MSAs to see if they have delegated to the provider MSA", - "params": [ - { - "name": "delegator_msa_ids", - "type": "Vec" - }, - { - "name": "provider_msa_id", - "type": "ProviderId" - }, - { - "name": "block_number", - "type": "BlockNumber" - }, - { - "name": "schema_id", - "type": "Option" - } - ], - "type": "Vec<(DelegatorId, bool)>" - }, - "grantedSchemaIdsByMsaId": { - "description": "Fetch the list of schema ids that a delegator has granted to provider", - "params": [ - { - "name": "delegator_msa_id", - "type": "DelegatorId" - }, - { - "name": "provider_msa_id", - "type": "ProviderId" - } - ], - "type": "Option>" - } - }, - "schemas": { - "getBySchemaId": { - "description": "Get a Schema by Id", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - } - ], - "type": "Option" - }, - "checkSchemaValidity": { - "description": "", - "params": [ - { - "name": "model", - "type": "SchemaModel" - }, - { - "name": "at", - "type": "BlockHash", - "isOptional": true - } - ], - "type": "bool" - } - } - }, - "runtime": { - "AdditionalRuntimeApi": [ - { - "methods": { - "get_events": { - "description": "Get the events with simple SCALE decoding", - "params": [], - "type": "Vec" - } - }, - "version": 1 - } - ], - "MessagesRuntimeApi": [ - { - "methods": { - "get_messages_by_schema_and_block": { - "description": "Retrieve the messages for a particular schema and block number", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - }, - { - "name": "schema_payload_location", - "type": "PayloadLocation" - }, - { - "name": "block_number", - "type": "BlockNumber" - } - ], - "type": "Vec" - }, - "get_schema_by_id": { - "description": "Retrieve a schema by id", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - } - ], - "type": "Option" - } - }, - "version": 1 - } - ], - "MsaRuntimeApi": [ - { - "methods": { - "has_delegation": { - "description": "Check to see if a delegation existed between the given delegator and provider at a given block", - "params": [ - { - "name": "delegator_id", - "type": "DelegatorId" - }, - { - "name": "provider_id", - "type": "ProviderId" - }, - { - "name": "block_number", - "type": "BlockNumber" - }, - { - "name": "schema_id", - "type": "Option" - } - ], - "type": "bool" - }, - "get_granted_schemas_by_msa_id": { - "description": "Get the list of schema ids (if any) that exist in any delegation between the delegator and provider", - "params": [ - { - "name": "delegator_id", - "type": "DelegatorId" - }, - { - "name": "provider_id", - "type": "ProviderId" - } - ], - "type": "Option>" - } - }, - "version": 1 - } - ], - "SchemasRuntimeApi": [ - { - "methods": { - "get_schema_by_id": { - "description": "Fetch the schema by id", - "params": [ - { - "name": "schema_id", - "type": "SchemaId" - } - ], - "type": "Option" - } - }, - "version": 1 - } - ] - }, - "signedExtensions": { - "CheckFreeExtrinsicUse": { - "extrinsic": {}, - "payload": {} - } - }, - "types": [ - { - "minmax": [ - 0, - null - ], - "types": { - "RpcEvent": { - "phase": "Option", - "pallet": "u8", - "event": "u8", - "data": "Vec" - }, - "BlockPaginationRequest": { - "from_block": "BlockNumber", - "from_index": "u32", - "to_block": "BlockNumber", - "page_size": "u32" - }, - "MessageResponse": { - "payload": "Option>", - "cid": "Option>", - "provider_msa_id": "MessageSourceId", - "msa_id": "Option", - "index": "u16", - "block_number": "BlockNumber", - "payload_length": "Option" - }, - "BlockPaginationResponseMessage": { - "content": "Vec", - "has_next": "bool", - "next_block": "Option", - "next_index": "Option" - }, - "MessageSourceId": "u64", - "DelegatorId": "MessageSourceId", - "ProviderId": "MessageSourceId", - "KeyInfoResponse": { - "key": "AccountId", - "msaId": "MessageSourceId" - }, - "SchemaId": "u16", - "SchemaModel": "Vec", - "SchemaResponse": { - "schema_id": "SchemaId", - "model": "SchemaModel", - "model_type": "ModelType", - "payload_location": "PayloadLocation" - }, - "ModelType": { - "_enum": [ - "AvroBinary", - "Parquet" - ] - }, - "PayloadLocation": { - "_enum": [ - "OnChain", - "IPFS" - ] - } - } - } - ] - }, "galital": { "types": [ { diff --git a/scripts/fixupModules.cjs b/scripts/fixupModules.cjs deleted file mode 100755 index 33ca7130b3..0000000000 --- a/scripts/fixupModules.cjs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2017-2023 @polkadot/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -const fs = require('node:fs'); -const path = require('node:path'); -const process = require('node:process'); - -// incorrect packages without type specifier -[ - // See https://github.com/fragcolor-xyz/fragnova/issues/286 - '@fragnova/api-augment', - // See https://github.com/LibertyDSNP/frequency/issues/1116 - '@frequency-chain/api-augment' -].forEach((f) => { - const full = path.join(process.cwd(), `node_modules/${f}/package.json`); - const json = JSON.parse(fs.readFileSync(full, 'utf8')); - - if (!json.type) { - json.type = 'module'; - fs.writeFileSync(full, JSON.stringify(json, null, 2)); - console.log('Fixed package type::', f); - } -});