Add custom extension for Bulletin (#12160)
* Add custom extension for Bulletin * Generate types bundle
This commit is contained in:
parent
6d692a9dbd
commit
8e71eae1d3
33
packages/apps-config/src/api/spec/bulletin.ts
Normal file
33
packages/apps-config/src/api/spec/bulletin.ts
Normal 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;
|
||||
@ -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,
|
||||
|
||||
@ -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": [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user