ghost-portal/packages/apps-config/src/api/spec/bulletin.ts
Branislav Kontur 8e71eae1d3
Add custom extension for Bulletin (#12160)
* Add custom extension for Bulletin

* Generate types bundle
2026-02-10 15:53:22 -05:00

34 lines
703 B
TypeScript

// 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;