Update pipeline to Node 24. Update Lerna. Update Vitepress to Beta. Replace...

This commit is contained in:
2026-08-08 11:06:49 +00:00
committed by Emergent Reasons
parent 53b7fb3aef
commit 1c3e920c85
11 changed files with 4456 additions and 5950 deletions
@@ -4,19 +4,18 @@
// However, Chaingraph backend is currently broken for many queries, so let's not do this yet.
import { beforeAll, describe, it, expect } from 'vitest';
import {
BaseBlockchain,
BlockchainChaingraph,
BlockchainElectrum,
} from '../../src/index.js';
import { BaseBlockchain, BlockchainElectrum } from '../../src/index.js';
const adapters: Record<
string,
() => Promise<BaseBlockchain<unknown, unknown>>
> = {
chaingraph: async () => {
return await BlockchainChaingraph.from();
},
// Commenting out since the chaingraph endopoints we are hitting are currently broken.
// demo won't allow non-browser clients
// Pat's server isn't responding to block height requests correctly (or we are using an old version, which the demo server is also running).
// chaingraph: async () => {
// return await BlockchainChaingraph.from();
// },
electrum: async () => {
return await BlockchainElectrum.from();
},
@@ -59,7 +58,7 @@ describe.each(Object.entries(adapters))('%s Adapter', (name, createAdapter) => {
});
it(`${name}.fetchBlockHeader() `, async () => {
const result = await blockchain.fetchBlockHeader(testBlockHeight);
const result = await blockchain.fetchBlockHeader(1);
expect(result).toBeDefined();
expect(result.toHex()).toBeTypeOf('string');