Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 69x 69x 69x 69x 69x 69x 69x 69x 69x 69x 69x 69x 69x 69x 69x 69x 69x | import {new_} from './methods/new';
import {get} from './methods/get';
import {view} from './methods/view';
import {upd} from './methods/upd';
import {del} from './methods/del';
import {scan} from './methods/scan';
import {listen} from './methods/listen';
import {
BlockId,
BlockPatch,
BlockPatchPartial,
BlockPatchPartialReturn,
BlockCur,
BlockSnapshot,
NewBlockSnapshotResponse,
BlockEvent,
BlockBatch,
BlockBatchPartial,
BlockBatchPartialReturn,
BlockBatchSeq,
BlockSnapshotReturn,
Block,
} from './schema';
import type {RouteDeps, Router, RouterBase} from '../types';
import {pull} from './methods/pull';
export const block =
(d: RouteDeps) =>
<R extends RouterBase>(r: Router<R>) => {
const {system} = d;
system.alias('BlockId', BlockId);
system.alias('BlockCur', BlockCur);
system.alias('BlockBatchSeq', BlockBatchSeq);
system.alias('Block', Block);
system.alias('BlockSnapshotReturn', BlockSnapshotReturn);
system.alias('BlockSnapshot', BlockSnapshot);
system.alias('NewBlockSnapshotResponse', NewBlockSnapshotResponse);
system.alias('BlockPatch', BlockPatch);
system.alias('BlockPatchPartial', BlockPatchPartial);
system.alias('BlockPatchPartialReturn', BlockPatchPartialReturn);
system.alias('BlockBatch', BlockBatch);
system.alias('BlockBatchPartial', BlockBatchPartial);
system.alias('BlockBatchPartialReturn', BlockBatchPartialReturn);
system.alias('BlockEvent', BlockEvent);
// biome-ignore format: each on its own line
return (
( new_(d)
( get(d)
( view(d)
( upd(d)
( del(d)
( listen(d)
( scan(d)
( pull(d)
( r ))))))))));
};
|