Add custom extension for Bulletin (#12160)

* Add custom extension for Bulletin

* Generate types bundle
This commit is contained in:
Branislav Kontur 2026-02-10 21:53:22 +01:00 committed by GitHub
parent 6d692a9dbd
commit 8e71eae1d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 98 additions and 0 deletions

View File

@ -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<CidConfig>'
},
payload: {}
}
}
};
export default definitions;

View File

@ -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<string, OverrideBundleDefinition> = {
'bitcountry-node': bitcountry,
'bitcountry-parachain': bitcountryParachain,
bittensor,
'bulletin-polkadot': bulletin,
'bulletin-westend': bulletin,
centrifuge,
'centrifuge-chain': centrifugeChain,
chainx,

View File

@ -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<CidConfig>"
},
"payload": {}
}
}
},
"bulletin-westend": {
"types": [
{
"minmax": [
0,
null
],
"types": {
"HashingAlgorithm": {
"_enum": [
"Blake2b256",
"Sha2_256",
"Keccak256"
]
},
"CidConfig": {
"codec": "u64",
"hashing": "HashingAlgorithm"
}
}
}
],
"signedExtensions": {
"ProvideCidConfig": {
"extrinsic": {
"cidConfig": "Option<CidConfig>"
},
"payload": {}
}
}
},
"centrifuge": {
"types": [
{