Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed circular dependencies #199

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/classes/utils/clean-block.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { BlockResponse } from '../..';
import { toChecksumAddress } from '../..';
import { tinyBig } from '../../shared/tiny-big/tiny-big';
import type { RPCBlock } from '../../types/Block.types';
import type { BlockResponse, RPCBlock } from '../../types/Block.types';
import type { RPCTransaction } from '../../types/Transaction.types';
import { toChecksumAddress } from '../../utils/to-checksum-address';
import { cleanTransaction } from './clean-transaction';
import { hexToDecimal } from './hex-to-decimal';

Expand Down
3 changes: 2 additions & 1 deletion src/classes/utils/clean-transaction-receipt.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { tinyBig, toChecksumAddress } from '../..';
import { tinyBig } from '../../shared/tiny-big/tiny-big';
import type {
Log,
RPCLog,
RPCTransactionReceipt,
TransactionReceipt,
} from '../../types/Transaction.types';
import { toChecksumAddress } from '../../utils/to-checksum-address';
import { cleanLog } from './clean-log';
import { cleanTransaction } from './clean-transaction';
import { hexToDecimal } from './hex-to-decimal';
Expand Down
3 changes: 2 additions & 1 deletion src/classes/utils/clean-transaction.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { tinyBig, toChecksumAddress } from '../..';
import { tinyBig } from '../../shared/tiny-big/tiny-big';
import type {
RPCTransaction,
TransactionResponse,
} from '../../types/Transaction.types';
import { toChecksumAddress } from '../../utils/to-checksum-address';
import { hexToDecimal } from './hex-to-decimal';

/**
Expand Down
3 changes: 2 additions & 1 deletion src/classes/utils/encode-decode-transaction.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Keccak } from 'sha3';
import { tinyBig, toChecksumAddress } from '../..';
import { tinyBig } from '../../shared/tiny-big/tiny-big';
import type {
ContractTypes,
JSONABIArgument,
} from '../../types/Contract.types';
import { toChecksumAddress } from '../../utils/to-checksum-address';
import { hexToDecimal } from './hex-to-decimal';

export const hexFalse = '0'.repeat(64);
Expand Down
3 changes: 2 additions & 1 deletion src/utils/compute-address.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { computePublicKey, toChecksumAddress } from '..';
import { hexDataSlice } from './bytes';
import { computePublicKey } from './compute-public-key';
import { keccak256 } from './keccak256';
import { toChecksumAddress } from './to-checksum-address';

/**
* Computes the address that corresponds to a specified public or private key
Expand Down
6 changes: 4 additions & 2 deletions src/utils/hash-message.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { Bytes } from '../index';
import { concat, keccak256, toUtf8Bytes } from '../index';
import type { Bytes } from './bytes';
import { concat } from './bytes';
import { keccak256 } from './keccak256';
import { toUtf8Bytes } from './to-utf8-bytes';

const messagePrefix = '\x19Ethereum Signed Message:\n';

Expand Down
2 changes: 1 addition & 1 deletion src/utils/is-address.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toChecksumAddress } from '..';
import { validateType } from '../shared/validate-type';
import { toChecksumAddress } from './to-checksum-address';

/**
* Returns a boolean as to whether the input is a valid address.
Expand Down