Skip to content

Commit

Permalink
Merge pull request #162 from base-org/changeset-release/main
Browse files Browse the repository at this point in the history
chore: version packages 🔖
  • Loading branch information
zencephalon authored Nov 6, 2023
2 parents d15535f + 962e23f commit 3cc5bc5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
5 changes: 0 additions & 5 deletions .changeset/honest-mails-check.md

This file was deleted.

50 changes: 28 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 3cc5bc5

Please sign in to comment.