Skip to content

Commit

Permalink
Merge branch 'main' into update/dictionary-mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqiang90 authored Nov 8, 2023
2 parents c9d1229 + 912322a commit 01098dc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bifrost-parachain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions bifrost-parachain/src/chaintypes.ts
Original file line number Diff line number Diff line change
@@ -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 };
1 change: 0 additions & 1 deletion bifrost-parachain/src/mappings/mappingHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export async function handleBlock(block: SubstrateBlock): Promise<void> {
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()
Expand Down

0 comments on commit 01098dc

Please sign in to comment.