Skip to content

Commit

Permalink
exported buffer lib
Browse files Browse the repository at this point in the history
  • Loading branch information
uluCthulhu committed Sep 19, 2024
1 parent 9091f90 commit 63c4cad
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 29 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/index.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
Expand Down
2 changes: 1 addition & 1 deletion dist/index.node.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/index.node.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */

/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */
Expand Down
5 changes: 4 additions & 1 deletion dist/lib/src/exports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ declare const Models: {
LiquidityStakeEntry: typeof LiquidityStakeEntry;
LiquidityStakeList: typeof LiquidityStakeList;
};
export { Enums, Primitives, Constants, Models };
declare const Libs: {
Buffer: BufferConstructor;
};
export { Enums, Primitives, Constants, Models, Libs };
26 changes: 15 additions & 11 deletions lib/src/exports.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {PowStatus} from "./pow/pow";
import {GetRequiredParam} from "./model/embedded/plasma";
import {AccountBlockTemplate} from "./model/nom/account_block_template";
import {Address, pillarAddress, plasmaAddress, stakeAddress} from "./model/primitives/address";
import {Hash} from "./model/primitives/hash";
import { PowStatus } from "./pow/pow";
import { GetRequiredParam } from "./model/embedded/plasma";
import { AccountBlockTemplate } from "./model/nom/account_block_template";
import { Address, pillarAddress, plasmaAddress, stakeAddress } from "./model/primitives/address";
import { Hash } from "./model/primitives/hash";
import {
TokenStandard,
znnTokenStandard,
Expand All @@ -12,11 +12,11 @@ import {
qsrZts,
emptyZts,
} from "./model/primitives/token_standard";
import {LiquidityStakeEntry, LiquidityStakeList, TokenTuple} from "./model/embedded/liquidity";
import {AccountBlock} from "./model/nom/account_block";
import {AccountInfo, BalanceInfoListItem} from "./model/nom/account_info";
import {DEFAULT_CHAINID_PATH, DEFAULT_WALLET_PATH} from "./wallet/manager";
import {defaultChainId, netId} from "./global";
import { LiquidityStakeEntry, LiquidityStakeList, TokenTuple } from "./model/embedded/liquidity";
import { AccountBlock } from "./model/nom/account_block";
import { AccountInfo, BalanceInfoListItem } from "./model/nom/account_info";
import { DEFAULT_CHAINID_PATH, DEFAULT_WALLET_PATH } from "./wallet/manager";
import { defaultChainId, netId } from "./global";

const Primitives = {
Address,
Expand Down Expand Up @@ -57,4 +57,8 @@ const Models = {
LiquidityStakeList,
};

export {Enums, Primitives, Constants, Models};
const Libs = {
Buffer: Buffer,
};

export { Enums, Primitives, Constants, Models, Libs };
18 changes: 9 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "znn-ts-sdk",
"version": "0.1.2",
"version": "0.1.3",
"description": "",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -49,7 +49,7 @@
"path": "^0.12.7",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"rpc-websockets": "^7.11.0",
"rpc-websockets": "^7.11.2",
"terser-webpack-plugin": "^5.3.3",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
Expand Down

0 comments on commit 63c4cad

Please sign in to comment.