diff --git a/packages/apps-config/src/api/spec/bulletin.ts b/packages/apps-config/src/api/spec/bulletin.ts new file mode 100644 index 0000000000..c906121c36 --- /dev/null +++ b/packages/apps-config/src/api/spec/bulletin.ts @@ -0,0 +1,33 @@ +// Copyright 2017-2026 @polkadot/apps-config authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import type { OverrideBundleDefinition } from '@polkadot/types/types'; + +/* eslint-disable sort-keys */ + +const definitions: OverrideBundleDefinition = { + types: [ + { + minmax: [0, undefined], + types: { + HashingAlgorithm: { + _enum: ['Blake2b256', 'Sha2_256', 'Keccak256'] + }, + CidConfig: { + codec: 'u64', + hashing: 'HashingAlgorithm' + } + } + } + ], + signedExtensions: { + ProvideCidConfig: { + extrinsic: { + cidConfig: 'Option' + }, + payload: {} + } + } +}; + +export default definitions; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index 8e6dcb09ba..1f016af304 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -21,6 +21,7 @@ import bitcountry from './bitcountry.js'; import bitcountryPioneer from './bitcountry-pioneer.js'; import bitcountryParachain from './bitcountry-rococo.js'; import bittensor from './bittensor.js'; +import bulletin from './bulletin.js'; import centrifuge from './centrifuge.js'; import centrifugeChain from './centrifuge-chain.js'; import chainx from './chainx.js'; @@ -168,6 +169,8 @@ const spec: Record = { 'bitcountry-node': bitcountry, 'bitcountry-parachain': bitcountryParachain, bittensor, + 'bulletin-polkadot': bulletin, + 'bulletin-westend': bulletin, centrifuge, 'centrifuge-chain': centrifugeChain, chainx, diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 8454067fcb..f5ed2ac6b2 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -20307,6 +20307,68 @@ export const typesBundle = { } ] }, + "bulletin-polkadot": { + "types": [ + { + "minmax": [ + 0, + null + ], + "types": { + "HashingAlgorithm": { + "_enum": [ + "Blake2b256", + "Sha2_256", + "Keccak256" + ] + }, + "CidConfig": { + "codec": "u64", + "hashing": "HashingAlgorithm" + } + } + } + ], + "signedExtensions": { + "ProvideCidConfig": { + "extrinsic": { + "cidConfig": "Option" + }, + "payload": {} + } + } + }, + "bulletin-westend": { + "types": [ + { + "minmax": [ + 0, + null + ], + "types": { + "HashingAlgorithm": { + "_enum": [ + "Blake2b256", + "Sha2_256", + "Keccak256" + ] + }, + "CidConfig": { + "codec": "u64", + "hashing": "HashingAlgorithm" + } + } + } + ], + "signedExtensions": { + "ProvideCidConfig": { + "extrinsic": { + "cidConfig": "Option" + }, + "payload": {} + } + } + }, "centrifuge": { "types": [ {