diff --git a/CHANGELOG.md b/CHANGELOG.md index 49b953c..b8b020e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,45 +28,45 @@ Previously ```ts - import { publicL1Actions } from "op-viem"; - import { base } from "op-viem/chains"; - import { createPublicClient } from "viem"; + import { publicL1Actions } from 'op-viem' + import { base } from 'op-viem/chains' + import { createPublicClient } from 'viem' const publicClient = createPublicClient({ account, chain: mainnet, transport: http(), - }).extend(publicL1Actions); + }).extend(publicL1Actions) await getOutputForL2Block(publicClient, { blockNumber: 2725977n, l2Chain: base, - }); + }) ``` Now ```ts - import { publicL1Actions } from "op-viem"; - import { baseAddresses } from "op-viem/chains"; - import { createPublicClient } from "viem"; + import { publicL1Actions } from 'op-viem' + import { baseAddresses } from 'op-viem/chains' + import { createPublicClient } from 'viem' const publicClient = createPublicClient({ account, chain: mainnet, transport: http(), - }).extend(publicL1Actions); + }).extend(publicL1Actions) await getOutputForL2Block(publicClient, { blockNumber: 2725977n, l2OutputOracle: baseAddresses.l2OutputOracle, - }); + }) // more simply await getOutputForL2Block(publicClient, { blockNumber: 2725977n, ...baseAddresses, - }); + }) ``` - 6938582: Add readFinalizedWithdrawals to decorator and export in actions @@ -82,45 +82,45 @@ Previously ```ts - import { publicL1Actions } from "op-viem"; - import { base } from "op-viem/chains"; - import { createPublicClient } from "viem"; + import { publicL1Actions } from 'op-viem' + import { base } from 'op-viem/chains' + import { createPublicClient } from 'viem' const publicClient = createPublicClient({ account, chain: mainnet, transport: http(), - }).extend(publicL1Actions); + }).extend(publicL1Actions) await getOutputForL2Block(publicClient, { blockNumber: 2725977n, l2Chain: base, - }); + }) ``` Now ```ts - import { publicL1Actions } from "op-viem"; - import { baseAddresses } from "op-viem/chains"; - import { createPublicClient } from "viem"; + import { publicL1Actions } from 'op-viem' + import { baseAddresses } from 'op-viem/chains' + import { createPublicClient } from 'viem' const publicClient = createPublicClient({ account, chain: mainnet, transport: http(), - }).extend(publicL1Actions); + }).extend(publicL1Actions) await getOutputForL2Block(publicClient, { blockNumber: 2725977n, l2OutputOracle: baseAddresses.l2OutputOracle, - }); + }) // more simply await getOutputForL2Block(publicClient, { blockNumber: 2725977n, ...baseAddresses, - }); + }) ``` - 1cedfab: Add writeContractDeposit