Skip to content

Commit f438faf

Browse files
authored
chore: mv modules to core/ (#17)
* chore: move modules to core/ * chore: changeset * chore: tweak package.json * chore: tweak package.json
1 parent 580131b commit f438faf

File tree

191 files changed

+151
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+151
-152
lines changed

.changeset/quiet-horses-sniff.md

+5

.github/workflows/snapshot.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@ jobs:
2020
- name: Install dependencies
2121
uses: ./.github/actions/install-dependencies
2222

23-
- name: Setup .npmrc file
24-
uses: actions/setup-node@v4
25-
with:
26-
registry-url: 'https://registry.npmjs.org'
27-
28-
- name: Publish to npm
29-
run: |
30-
cd src && pnpm version $(npm pkg get version | sed 's/"//g')-$(date +'%Y%m%dT%H%M%S') && cd ../
31-
pnpm changeset:prepublish
32-
cd src && pnpm publish --no-git-checks --provenance false && cd ../
23+
- name: Publish Snapshots
24+
continue-on-error: true
3325
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: |
29+
snapshot=$(git branch --show-current | tr -cs '[:alnum:]-' '-' | tr '[:upper:]' '[:lower:]' | sed 's/-$//')
30+
npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN"
31+
pnpm clean
32+
pnpm changeset version --no-git-tag --snapshot $snapshot
33+
pnpm changeset:prepublish
34+
pnpm changeset publish --no-git-tag --snapshot $snapshot --tag $snapshot
35+

scripts/utils/exports.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export function getExports({
2727
if (!parentEntry.isDirectory()) {
2828
if (parentEntry.name.endsWith('test.ts')) continue
2929
if (parentEntry.name === 'jsr.json') continue
30+
if (parentEntry.name === 'tsdoc.json') continue
3031
if (
3132
!parentEntry.name.endsWith('.ts') &&
3233
!parentEntry.name.endsWith('.json')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/AccountProof.ts renamed to src/core/AccountProof.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Address, Hex } from './index.js'
1+
import type { Address, Hex } from '../index.js'
22

33
/** An Account Proof as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/state.yaml). */
44
export type AccountProof<bigintType = bigint, numberType = number> = {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/RpcRequest.ts renamed to src/core/RpcRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { Errors } from '../index.js'
12
import type * as RpcSchema from './RpcSchema.js'
2-
import type { Errors } from './index.js'
33
import type * as RpcSchema_internal from './internal/rpcSchema.js'
44
import type { Compute } from './internal/types.js'
55

src/RpcResponse.ts renamed to src/core/RpcResponse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Errors, RpcRequest } from './index.js'
1+
import type { Errors, RpcRequest } from '../index.js'
22
import type {
33
Compute,
44
IsNarrowable,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/_test/AbiConstructor.test.ts renamed to src/core/_test/AbiConstructor.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { AbiConstructor } from 'ox'
22
import { describe, expect, test } from 'vitest'
33

4-
import { Constructor } from '../../contracts/generated.js'
5-
import { anvilMainnet } from '../../test/anvil.js'
6-
import { seaportContractConfig } from '../../test/constants/abis.js'
7-
import { address } from '../../test/constants/addresses.js'
4+
import { Constructor } from '../../../contracts/generated.js'
5+
import { anvilMainnet } from '../../../test/anvil.js'
6+
import { seaportContractConfig } from '../../../test/constants/abis.js'
7+
import { address } from '../../../test/constants/addresses.js'
88

99
describe('decode', () => {
1010
test('default', () => {
File renamed without changes.

src/_test/AbiError.test.ts renamed to src/core/_test/AbiError.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Abi, AbiError, AbiFunction, AbiItem } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { Errors } from '../../contracts/generated.js'
4-
import { anvilMainnet } from '../../test/anvil.js'
5-
import { seaportContractConfig } from '../../test/constants/abis.js'
3+
import { Errors } from '../../../contracts/generated.js'
4+
import { anvilMainnet } from '../../../test/anvil.js'
5+
import { seaportContractConfig } from '../../../test/constants/abis.js'
66

77
describe('decode', () => {
88
test('behavior: no args', () => {

src/_test/AbiEvent.snap-d.ts renamed to src/core/_test/AbiEvent.snap-d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { describe, test } from 'vitest'
44
import {
55
seaportContractConfig,
66
wagmiContractConfig,
7-
} from '../../test/constants/abis.js'
7+
} from '../../../test/constants/abis.js'
88

99
describe('decode', () => {
1010
test('behavior: named', () => {

src/_test/AbiEvent.test.ts renamed to src/core/_test/AbiEvent.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Abi, AbiEvent, Hex } from 'ox'
22
import { describe, expect, test } from 'vitest'
33

4-
import { anvilMainnet } from '../../test/anvil.js'
5-
import { wagmiContractConfig } from '../../test/constants/abis.js'
6-
import { address } from '../../test/constants/addresses.js'
4+
import { anvilMainnet } from '../../../test/anvil.js'
5+
import { wagmiContractConfig } from '../../../test/constants/abis.js'
6+
import { address } from '../../../test/constants/addresses.js'
77

88
describe('assertArgs', () => {
99
test('default', () => {

src/_test/AbiFunction.snap-d.ts renamed to src/core/_test/AbiFunction.snap-d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { attest } from '@ark/attest'
22
import { Abi, AbiFunction, AbiParameters } from 'ox'
33
import { describe, test } from 'vitest'
4-
import { erc20Abi, wagmiContractConfig } from '../../test/constants/abis.js'
5-
import { address } from '../../test/constants/addresses.js'
4+
import { erc20Abi, wagmiContractConfig } from '../../../test/constants/abis.js'
5+
import { address } from '../../../test/constants/addresses.js'
66

77
describe('decodeData', () => {
88
test('default', () => {

src/_test/AbiFunction.test.ts renamed to src/core/_test/AbiFunction.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Abi, AbiFunction, AbiParameters } from 'ox'
22
import { describe, expect, test } from 'vitest'
33

4-
import { anvilMainnet } from '../../test/anvil.js'
5-
import { erc20Abi, wagmiContractConfig } from '../../test/constants/abis.js'
6-
import { address } from '../../test/constants/addresses.js'
4+
import { anvilMainnet } from '../../../test/anvil.js'
5+
import { erc20Abi, wagmiContractConfig } from '../../../test/constants/abis.js'
6+
import { address } from '../../../test/constants/addresses.js'
77

88
describe('decodeData', () => {
99
test('default', () => {

src/_test/AbiItem.snap-d.ts renamed to src/core/_test/AbiItem.snap-d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { attest } from '@ark/attest'
22
import { Abi, AbiFunction, AbiItem } from 'ox'
33
import { describe, test } from 'vitest'
44

5-
import { wagmiContractConfig } from '../../test/constants/abis.js'
5+
import { wagmiContractConfig } from '../../../test/constants/abis.js'
66

77
describe('fromAbi', () => {
88
test('default', () => {
File renamed without changes.

src/_test/AbiParameters.bench.ts renamed to src/core/_test/AbiParameters.bench.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { AbiItem } from 'ox'
33
import { bench, describe } from 'vitest'
44
import { Web3 } from 'web3'
55

6-
import { seaportContractConfig } from '../../test/constants/abis.js'
7-
import { address } from '../../test/constants/addresses.js'
6+
import { seaportContractConfig } from '../../../test/constants/abis.js'
7+
import { address } from '../../../test/constants/addresses.js'
88
import { decode, encode } from '../AbiParameters.js'
99

1010
const fulfillAdvancedOrder = AbiItem.fromAbi(

src/_test/AbiParameters.decode.test.ts renamed to src/core/_test/AbiParameters.decode.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { assertType, describe, expect, test } from 'vitest'
44
import {
55
multicall3Abi,
66
seaportContractConfig,
7-
} from '../../test/constants/abis.js'
8-
import { address } from '../../test/constants/addresses.js'
7+
} from '../../../test/constants/abis.js'
8+
import { address } from '../../../test/constants/addresses.js'
99

1010
describe('static', () => {
1111
test('blank', () => {

src/_test/AbiParameters.encode.test.ts renamed to src/core/_test/AbiParameters.encode.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { AbiItem, AbiParameters } from 'ox'
22
import { describe, expect, test } from 'vitest'
33

4-
import { seaportContractConfig } from '../../test/constants/abis.js'
5-
import { address } from '../../test/constants/addresses.js'
4+
import { seaportContractConfig } from '../../../test/constants/abis.js'
5+
import { address } from '../../../test/constants/addresses.js'
66
import { getArrayComponents } from '../internal/abiParameters.js'
77

88
describe('static', () => {

src/_test/AbiParameters.test.ts renamed to src/core/_test/AbiParameters.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AbiParameters } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { address } from '../../test/constants/addresses.js'
3+
import { address } from '../../../test/constants/addresses.js'
44

55
describe('encodePacked', () => {
66
test.each([
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/_test/Authorization.test.ts renamed to src/core/_test/Authorization.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Authorization, Secp256k1 } from 'ox'
22
import { describe, expect, expectTypeOf, test } from 'vitest'
3-
import { accounts } from '../../test/constants/accounts.js'
3+
import { accounts } from '../../../test/constants/accounts.js'
44

55
describe('from', () => {
66
test('default', () => {
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/_test/Blobs.test.ts renamed to src/core/_test/Blobs.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Blobs, Bytes, Hex } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { blobData, kzg } from '../../test/kzg.js'
3+
import { blobData, kzg } from '../../../test/kzg.js'
44

55
describe('commitmentsToVersionedHashes', () => {
66
test('from hex', () => {

src/_test/Block.test.ts renamed to src/core/_test/Block.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Block } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { anvilMainnet } from '../../test/anvil.js'
3+
import { anvilMainnet } from '../../../test/anvil.js'
44

55
describe('fromRpc', () => {
66
test('default', () => {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/_test/HdKey.test.ts renamed to src/core/_test/HdKey.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Address, HdKey, Mnemonic } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { accounts } from '../../test/constants/accounts.js'
3+
import { accounts } from '../../../test/constants/accounts.js'
44
import * as exports from '../HdKey.js'
55

66
const seed = Mnemonic.toSeed(

src/_test/Hex.bench.ts renamed to src/core/_test/Hex.bench.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { bytesToHex as bytesToHex_ethjs } from '@ethereumjs/util'
22
import * as ethers from 'ethers'
33
import { bench, describe } from 'vitest'
4+
import { Bytes } from '../../index.js'
45
import * as Hex from '../Hex.js'
5-
import { Bytes } from '../index.js'
66

77
// TODO: random hex
88
describe('concat (hex)', () => {
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/_test/Kzg.test.ts renamed to src/core/_test/Kzg.test.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@ import { Hex, Kzg } from 'ox'
55
import { Paths } from 'ox/trusted-setups'
66
import { describe, expect, test } from 'vitest'
77

8-
import * as exports from '../Kzg.js'
9-
108
describe('from', () => {
119
const blobToKzgCommitmentCases = JSON.parse(
1210
readFileSync(
13-
resolve(__dirname, '../../test/kzg/blob-to-kzg-commitment.json'),
11+
resolve(__dirname, '../../../test/kzg/blob-to-kzg-commitment.json'),
1412
'utf8',
1513
),
1614
)
1715
const computeBlobKzgProofCases = JSON.parse(
1816
readFileSync(
19-
resolve(__dirname, '../../test/kzg/compute-blob-kzg-proof.json'),
17+
resolve(__dirname, '../../../test/kzg/compute-blob-kzg-proof.json'),
2018
'utf8',
2119
),
2220
)
@@ -83,7 +81,7 @@ describe('from', () => {
8381
})
8482

8583
test('exports', () => {
86-
expect(Object.keys(exports)).toMatchInlineSnapshot(`
84+
expect(Object.keys(Kzg)).toMatchInlineSnapshot(`
8785
[
8886
"versionedHashVersion",
8987
"from",

src/_test/Log.test.ts renamed to src/core/_test/Log.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AbiEvent, Hex, Log } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { anvilMainnet } from '../../test/anvil.js'
3+
import { anvilMainnet } from '../../../test/anvil.js'
44

55
describe('fromRpc', () => {
66
test('default', () => {
File renamed without changes.

src/_test/P256.test.ts renamed to src/core/_test/P256.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Bytes, P256 } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { accounts } from '../../test/constants/accounts.js'
3+
import { accounts } from '../../../test/constants/accounts.js'
44

55
describe('getPublicKey', () => {
66
const privateKey =

src/_test/PersonalMessage.test.ts renamed to src/core/_test/PersonalMessage.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Bytes, Hex, PersonalMessage, Secp256k1 } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { accounts } from '../../test/constants/accounts.js'
3+
import { accounts } from '../../../test/constants/accounts.js'
44

55
describe('encode', () => {
66
test('default', () => {

src/_test/Provider.test.ts renamed to src/core/_test/Provider.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Provider, RpcRequest, RpcResponse } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { anvilMainnet } from '../../test/anvil.js'
4-
import { address } from '../../test/constants/addresses.js'
3+
import { anvilMainnet } from '../../../test/anvil.js'
4+
import { address } from '../../../test/constants/addresses.js'
55

66
describe('createEmitter', () => {
77
test('default', () => {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/_test/RpcRequest.test.ts renamed to src/core/_test/RpcRequest.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { RpcRequest, RpcResponse } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { anvilMainnet } from '../../test/anvil.js'
3+
import { anvilMainnet } from '../../../test/anvil.js'
44

55
describe('createStore', () => {
66
test('default', async () => {

src/_test/RpcResponse.test.ts renamed to src/core/_test/RpcResponse.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type Hex, RpcRequest, RpcResponse } from 'ox'
22
import { assertType, describe, expect, test } from 'vitest'
3-
import { anvilMainnet } from '../../test/anvil.js'
3+
import { anvilMainnet } from '../../../test/anvil.js'
44

55
describe('from', () => {
66
test('default', async () => {
File renamed without changes.

src/_test/RpcTransport.test.ts renamed to src/core/_test/RpcTransport.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { setTimeout } from 'node:timers/promises'
22
import { RpcTransport } from 'ox'
33
import { describe, expect, test } from 'vitest'
44

5-
import { anvilMainnet } from '../../test/anvil.js'
6-
import { createHttpServer } from '../../test/http.js'
5+
import { anvilMainnet } from '../../../test/anvil.js'
6+
import { createHttpServer } from '../../../test/http.js'
77

88
describe('fromHttp', () => {
99
test('default', async () => {

src/_test/Secp256k1.test.ts renamed to src/core/_test/Secp256k1.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Address, Bytes, PublicKey, Secp256k1 } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { accounts } from '../../test/constants/accounts.js'
3+
import { accounts } from '../../../test/constants/accounts.js'
44

55
describe('getPublicKey', () => {
66
test('default', () => {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/_test/Transaction.test.ts renamed to src/core/_test/Transaction.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
TransactionEnvelopeLegacy,
77
} from 'ox'
88
import { describe, expect, test } from 'vitest'
9-
import { anvilMainnet } from '../../test/anvil.js'
10-
import { accounts } from '../../test/constants/accounts.js'
9+
import { anvilMainnet } from '../../../test/anvil.js'
10+
import { accounts } from '../../../test/constants/accounts.js'
1111

1212
describe('fromRpc', () => {
1313
describe('legacy', () => {

src/_test/TransactionEnvelopeEip1559.test.ts renamed to src/core/_test/TransactionEnvelopeEip1559.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Hex, Rlp, Secp256k1, TransactionEnvelopeEip1559, Value } from 'ox'
22
import { assertType, describe, expect, test } from 'vitest'
3-
import { anvilMainnet } from '../../test/anvil.js'
4-
import { accounts } from '../../test/constants/accounts.js'
3+
import { anvilMainnet } from '../../../test/anvil.js'
4+
import { accounts } from '../../../test/constants/accounts.js'
55

66
describe('assert', () => {
77
test('fee cap too high', () => {

src/_test/TransactionEnvelopeEip2930.test.ts renamed to src/core/_test/TransactionEnvelopeEip2930.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Rlp, Secp256k1, TransactionEnvelopeEip2930, Value } from 'ox'
22
import { assertType, describe, expect, expectTypeOf, test } from 'vitest'
3-
import { anvilMainnet } from '../../test/anvil.js'
4-
import { accounts } from '../../test/constants/accounts.js'
3+
import { anvilMainnet } from '../../../test/anvil.js'
4+
import { accounts } from '../../../test/constants/accounts.js'
55

66
describe('assert', () => {
77
test('fee cap too high', () => {

src/_test/TransactionEnvelopeEip4844.test.ts renamed to src/core/_test/TransactionEnvelopeEip4844.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {
77
Value,
88
} from 'ox'
99
import { assertType, describe, expect, test } from 'vitest'
10-
import { anvilMainnet } from '../../test/anvil.js'
11-
import { accounts } from '../../test/constants/accounts.js'
12-
import { kzg } from '../../test/kzg.js'
10+
import { anvilMainnet } from '../../../test/anvil.js'
11+
import { accounts } from '../../../test/constants/accounts.js'
12+
import { kzg } from '../../../test/kzg.js'
1313

1414
describe('assert', () => {
1515
test('empty blobs', () => {

src/_test/TransactionEnvelopeEip7702.test.ts renamed to src/core/_test/TransactionEnvelopeEip7702.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
Value,
99
} from 'ox'
1010
import { assertType, describe, expect, test } from 'vitest'
11-
import { anvilMainnet } from '../../test/anvil.js'
12-
import { wagmiContractConfig } from '../../test/constants/abis.js'
13-
import { accounts } from '../../test/constants/accounts.js'
11+
import { anvilMainnet } from '../../../test/anvil.js'
12+
import { wagmiContractConfig } from '../../../test/constants/abis.js'
13+
import { accounts } from '../../../test/constants/accounts.js'
1414

1515
describe('assert', () => {
1616
test('invalid chainId', () => {

src/_test/TransactionEnvelopeLegacy.test.ts renamed to src/core/_test/TransactionEnvelopeLegacy.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Hex, Rlp, Secp256k1, TransactionEnvelopeLegacy, Value } from 'ox'
22
import { assertType, describe, expect, expectTypeOf, test } from 'vitest'
3-
import { anvilMainnet } from '../../test/anvil.js'
4-
import { accounts } from '../../test/constants/accounts.js'
3+
import { anvilMainnet } from '../../../test/anvil.js'
4+
import { accounts } from '../../../test/constants/accounts.js'
55

66
describe('assert', () => {
77
test('fee cap too high', () => {

src/_test/TransactionReceipt.test.ts renamed to src/core/_test/TransactionReceipt.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { TransactionReceipt } from 'ox'
22
import { describe, expect, test } from 'vitest'
3-
import { anvilMainnet } from '../../test/anvil.js'
3+
import { anvilMainnet } from '../../../test/anvil.js'
44

55
describe('fromRpc', () => {
66
test('default', () => {

0 commit comments

Comments
 (0)