diff --git a/bifrost-parachain/package.json b/bifrost-parachain/package.json index a3dbdf2..5de62c5 100644 --- a/bifrost-parachain/package.json +++ b/bifrost-parachain/package.json @@ -20,7 +20,7 @@ "author": "SubQuery Network", "license": "Apache-2.0", "devDependencies": { - "@bifrost-finance/type-definitions": "latest", + "@bifrost-finance/type-definitions": "1.11.3", "@polkadot/api": "^10.9.1", "@subql/cli": "latest", "@subql/types": "latest", diff --git a/bifrost-parachain/src/chaintypes.ts b/bifrost-parachain/src/chaintypes.ts index c3648f8..f6a3904 100644 --- a/bifrost-parachain/src/chaintypes.ts +++ b/bifrost-parachain/src/chaintypes.ts @@ -1,3 +1,14 @@ import { typesBundleForPolkadot } from '@bifrost-finance/type-definitions'; +// @ts-ignore +typesBundleForPolkadot.spec.bifrost.types[0].types.DispatchErrorModule = 'DispatchErrorModuleU8' +typesBundleForPolkadot.spec.bifrost.types.push( + { + minmax: [0, undefined], + types:{ + // @ts-ignore + DispatchErrorModule: 'DispatchErrorModuleU8', + } + } +) export default { typesBundle: typesBundleForPolkadot }; diff --git a/bifrost-parachain/src/mappings/mappingHandlers.ts b/bifrost-parachain/src/mappings/mappingHandlers.ts index c8e3f57..bcb2ed2 100644 --- a/bifrost-parachain/src/mappings/mappingHandlers.ts +++ b/bifrost-parachain/src/mappings/mappingHandlers.ts @@ -34,7 +34,6 @@ export async function handleBlock(block: SubstrateBlock): Promise { handleCall(`${block.block.header.number.toString()}-${idx}`, ext) ); - // Save all data // All save order should always follow this structure for (const event of events) { await event.save()