diff --git a/.changeset/curvy-grapes-roll.md b/.changeset/curvy-grapes-roll.md new file mode 100644 index 0000000..376c047 --- /dev/null +++ b/.changeset/curvy-grapes-roll.md @@ -0,0 +1,5 @@ +--- +"@delvtech/evm-client": patch +--- + +Added NetworkGetBlockOptions type diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a3a672..da7a80e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,8 @@ jobs: id: changesets uses: changesets/action@v1 with: + commit: 'chore: version packages' + title: 'chore: version packages' publish: yarn release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/packages/evm-client/src/exports/types.ts b/packages/evm-client/src/exports/types.ts index bc73df0..5b8f978 100644 --- a/packages/evm-client/src/exports/types.ts +++ b/packages/evm-client/src/exports/types.ts @@ -44,6 +44,7 @@ export type { Block, BlockTag } from 'src/network/types/Block'; export type { Network, NetworkGetBlockArgs, + NetworkGetBlockOptions, NetworkGetTransactionArgs, } from 'src/network/types/Network'; export type { diff --git a/packages/evm-client/src/network/types/Network.ts b/packages/evm-client/src/network/types/Network.ts index 868e0e0..d957f04 100644 --- a/packages/evm-client/src/network/types/Network.ts +++ b/packages/evm-client/src/network/types/Network.ts @@ -21,26 +21,23 @@ export interface Network { ): Promise; } -export type NetworkGetBlockArgs = [ - options?: - | { - blockHash?: `0x${string}`; - blockNumber?: never; - blockTag?: never; - } - | { - blockHash?: never; - blockNumber?: bigint; - blockTag?: never; - } - | { - blockHash?: never; - blockNumber?: never; - /** - * @default 'latest' - */ - blockTag?: BlockTag; - }, -]; +export type NetworkGetBlockOptions = + | { + blockHash?: `0x${string}`; + blockNumber?: never; + blockTag?: never; + } + | { + blockHash?: never; + blockNumber?: bigint; + blockTag?: never; + } + | { + blockHash?: never; + blockNumber?: never; + blockTag?: BlockTag; + }; + +export type NetworkGetBlockArgs = [options?: NetworkGetBlockOptions]; export type NetworkGetTransactionArgs = [hash: `0x${string}`];