Skip to content

Commit

Permalink
feat(lumos): export missing modules
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Jul 11, 2024
1 parent 4b9b93b commit 98b4fdd
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/lumos/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*
!src
!src/*
!src/**/*
!.gitignore
!.npmignore
!CHANGELOG.md
Expand Down
2 changes: 2 additions & 0 deletions packages/lumos/src/base/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./types";
export * as since from "./since";
15 changes: 15 additions & 0 deletions packages/lumos/src/base/since.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export {
type EpochSinceValue,
type SinceValidationInfo,
type SinceType,
generateSince,
generateAbsoluteEpochSince,
generateHeaderEpoch,
parseAbsoluteEpochSince,
parseSinceCompatible,
parseEpoch,
parseSince,
validateAbsoluteEpochSince,
validateSince,
maximumAbsoluteEpochSince,
} from "@ckb-lumos/base/lib/since";
26 changes: 26 additions & 0 deletions packages/lumos/src/base/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export {
type Script,
type Cell,
type RawTransaction,
type Transaction,
type OutPoint,
type CellDep,
type WitnessArgs,
type Header,
type Block,
type HashType,
type DepType,
type Input,
type Output,
} from "@ckb-lumos/base/lib/api";

export {
type Address,
type Hash,
type HexNumber,
type HexString,
type Hexadecimal,
type HexadecimalRange,
type PackedDao,
type PackedSince,
} from "@ckb-lumos/base/lib/primitive";
1 change: 1 addition & 0 deletions packages/lumos/src/bi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { BI, parseUnit, formatUnit, isBIish, type BIish } from "@ckb-lumos/bi";
7 changes: 7 additions & 0 deletions packages/lumos/src/ckb-indexer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export {
Indexer,
TransactionCollector,
CellCollector,
} from "@ckb-lumos/ckb-indexer";

export { type QueryOptions } from "@ckb-lumos/base";
2 changes: 1 addition & 1 deletion packages/lumos/src/codec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ export {
isFixedCodec,
} from "@ckb-lumos/codec";

export { blockchain } from "@ckb-lumos/base";
export * as blockchain from "./blockchain";
1 change: 1 addition & 0 deletions packages/lumos/src/hd.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "@ckb-lumos/hd";
1 change: 1 addition & 0 deletions packages/lumos/src/light-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { LightClientRPC } from "@ckb-lumos/light-client";
3 changes: 2 additions & 1 deletion packages/lumos/src/rpc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { RPC, CKBRPC, ParamsFormatter, ResultFormatter } from "@ckb-lumos/rpc";
export type { Base } from "@ckb-lumos/rpc/lib/Base";
export { Method } from "@ckb-lumos/rpc/lib/method";
export { Base } from "@ckb-lumos/rpc/lib/Base";
export type { RPC as RPCTypes } from "@ckb-lumos/rpc/lib/types/rpc";
export type { CKBComponents } from "@ckb-lumos/rpc/lib/types/api";
1 change: 1 addition & 0 deletions packages/lumos/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export {
assertHexadecimal,
computeScriptHash,
generateTypeIdScript,
ckbHash160,
} from "@ckb-lumos/base/lib/utils";

export { parseUnit, formatUnit } from "@ckb-lumos/bi";

0 comments on commit 98b4fdd

Please sign in to comment.