diff --git a/.changeset/honest-mails-check.md b/.changeset/honest-mails-check.md deleted file mode 100644 index 7b4e7c06..00000000 --- a/.changeset/honest-mails-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"op-viem": minor ---- - -Export more types and ensure that we export every action defined. diff --git a/CHANGELOG.md b/CHANGELOG.md index b8b020e3..7fdaa59b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # op-viem +## 1.1.0 + +### Minor Changes + +- cbb4427: Export more types and ensure that we export every action defined. + ## 1.0.0 ### Major Changes @@ -28,45 +34,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 +88,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 diff --git a/package.json b/package.json index a657ca24..9a05665b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "op-viem", - "version": "1.0.0", + "version": "1.1.0", "type": "module", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js",