Skip to content

Commit

Permalink
Merge pull request #157 from base-org/fix-lint
Browse files Browse the repository at this point in the history
Fix changelog formating
  • Loading branch information
zencephalon authored Oct 30, 2023
2 parents 38dc096 + 6c98631 commit 26deae0
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 26deae0

Please sign in to comment.