Skip to content

Commit

Permalink
use latest subql cli (#815)
Browse files Browse the repository at this point in the history
* use latest subql

* fix

* fix flaky test

* update
  • Loading branch information
shunjizhan authored Sep 1, 2023
1 parent a31619f commit eb51224
Show file tree
Hide file tree
Showing 6 changed files with 1,547 additions and 474 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"typescript": "^5.0.4",
"unplugin-swc": "^1.3.2",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.31.0"
"vitest": "^0.34.3"
},
"lint-staged": {
"*.{js,ts}": "eslint . --cache --ext .js,.ts --fix"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('connect random', () => {
});
});

describe.concurrent('getReceiptAtBlock', async () => {
describe('getReceiptAtBlock', async () => {
const provider = EvmRpcProvider.from(ACALA_NODE_URL, { subqlUrl: ACALA_SUBQL });
await provider.isReady();

Expand Down
4 changes: 2 additions & 2 deletions packages/evm-subql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@acala-network/eth-providers": "workspace:*"
},
"devDependencies": {
"@subql/cli": "~1.10.0",
"@subql/types": "~1.7.0",
"@subql/cli": "~3.6.0",
"@subql/types": "~2.2.0",
"@vercel/ncc": "^0.36.1",
"pino": "~7.0.0-rc.3",
"typescript": "~4.6.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/evm-subql/src/mappings/mappingHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { parseReceiptsFromBlockData } from '@acala-network/eth-providers/utils';

export const handleBlock = async (substrateBlock: SubstrateBlock): Promise<void> => {
const receipts = await parseReceiptsFromBlockData(
global.unsafeApi,
unsafeApi,
substrateBlock,
substrateBlock.events,
);
Expand Down
2 changes: 1 addition & 1 deletion vitest.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
testTimeout: 30_000,
hookTimeout: 30_000,
coverage: {
provider: 'c8', // or 'istanbul'
provider: 'v8', // or 'istanbul'
reporter: ['text', 'json', 'html'],
},
exclude: ['**/e2e/*'],
Expand Down
Loading

0 comments on commit eb51224

Please sign in to comment.