Skip to content

Commit

Permalink
Add exports for all submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
WietseWind committed Dec 11, 2023
1 parent 19a24df commit 8668fd3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 deletions.
20 changes: 0 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"devDependencies": {
"@types/babel__core": "^7.1.19",
"@types/babel__traverse": "^7.17.1",
"@types/bip39": "^3.0.0",
"@types/elliptic": "^6.4.14",
"@types/jest": "^27.5.2",
"@types/lodash": "^4.14.191",
Expand Down
39 changes: 36 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Methods ==================================================================== */
/* Methods ================================================================== */
import * as generate from "./generate";
import * as derive from "./derive";
import * as utils from "./utils";
Expand All @@ -8,10 +8,25 @@ import * as rawSigning from "./rawSigning";
/* Types ==================================================================== */
import XRPL_Account from "./schema/Account";

/* Client ==================================================================== */
/* Client =================================================================== */
import { XrplClient } from "xrpl-client";

/* Defs ==================================================================== */
/* All Libs ================================================================= */
import * as bip32 from "bip32";
import * as bip39 from "bip39";
import * as bnJs from "bn.js";
import * as elliptic from "elliptic";
import * as hashJs from "hash.js";
import * as lodash from "lodash";
import * as rippleAddressCodec from "ripple-address-codec";
import * as rippleKeypairs from "ripple-keypairs";
import * as rippleSecretCodec from "ripple-secret-codec";
import * as xrplBinaryCodecPrerelease from "xrpl-binary-codec-prerelease";
import * as xrplClient from "xrpl-client";
import * as xrplSecretNumbers from "xrpl-secret-numbers";
import * as xrplSign from "xrpl-sign-keypairs";

/* Defs ===================================================================== */
import {
XrplDefinitions,
encode,
Expand All @@ -31,6 +46,23 @@ const binary = {
encodeForSigningClaim,
};

const libraries = {
bip32,
bip39,
bnJs,
elliptic,
hashJs,
lodash,
rippleAddressCodec,
rippleKeypairs,
rippleSecretCodec,
xrplBinaryCodecPrerelease,
rippleBinaryCodec: xrplBinaryCodecPrerelease,
xrplClient,
xrplSecretNumbers,
xrplSign,
};

/* Export ==================================================================== */
export {
XRPL_Account,
Expand All @@ -44,6 +76,7 @@ export {
binary,
XrplClient,
nativeAsset,
libraries,
};

export type { DefinitionsData };

0 comments on commit 8668fd3

Please sign in to comment.