Skip to content

Latest commit

 

History

History
182 lines (124 loc) · 4.34 KB

CHANGELOG.md

File metadata and controls

182 lines (124 loc) · 4.34 KB

op-viem

1.1.1

Patch Changes

  • f7ad5ce: update OP goerli addresses

1.1.0

Minor Changes

  • cbb4427: Export more types and ensure that we export every action defined.

1.0.0

Major Changes

  • 5099d6a: Leave alpha.

    • writeDepositETH and simulateDepositETH now take an args.amount instead of using a value arg.
    • getSecondsToNextL2Output throws an error if the passed latestL2BlockNumber is less than the latestBlockNumber reported by the l2OutputOracle.
    • writeFinalizeWithdrawalTransaction takes an args parameter like most other actions.

Minor Changes

  • 41196a9: Add simulateDepositTransaction action

Patch Changes

  • e7ebdda: no-op bump, fixing build

  • f853852: Export writeFinalizeWithdrawTransaction and fix getProveWithdrawalTransactionArgs

  • 86f8263: writeUnsafeDepositTransaction -> writeDepositTransaction

  • 836856f: Alpha release

  • fa49872: Update minGasLimit to be type number for consistency with ABI

  • 745a65a: Fix getTransactionHash to use un-decorated function for better tree shaking

  • 7a21a29: readFinalizedWithdrawals, txReceipt to getDeposits and getWithdrawals

  • 7d16f9b: Actions now receive contract addresses instead of L2 config objects for simplicty and Viem upstream compatibility. op-viem/chains now eexports addresses objects that be spread into actions to pass the required address.

    Previously

    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);
    
    await getOutputForL2Block(publicClient, {
      blockNumber: 2725977n,
      l2Chain: base,
    });

    Now

    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);
    
    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

  • e7ebdda: Fix chains resolution

  • 1cedfab: Add writeContractDeposit

0.0.1-alpha.8

Patch Changes

  • 7d16f9b: Actions now receive contract addresses instead of L2 config objects for simplicty and Viem upstream compatibility. op-viem/chains now eexports addresses objects that be spread into actions to pass the required address.

    Previously

    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);
    
    await getOutputForL2Block(publicClient, {
      blockNumber: 2725977n,
      l2Chain: base,
    });

    Now

    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);
    
    await getOutputForL2Block(publicClient, {
      blockNumber: 2725977n,
      l2OutputOracle: baseAddresses.l2OutputOracle,
    });
    
    // more simply
    await getOutputForL2Block(publicClient, {
      blockNumber: 2725977n,
      ...baseAddresses,
    });
  • 1cedfab: Add writeContractDeposit

0.0.1-alpha.7

Patch Changes

  • 86f8263: writeUnsafeDepositTransaction -> writeDepositTransaction
  • 745a65a: Fix getTransactionHash to use un-decorated function for better tree shaking
  • 6938582: Add readFinalizedWithdrawals to decorator and export in actions

0.0.1-alpha.6

Patch Changes

  • Export writeFinalizeWithdrawTransaction and fix getProveWithdrawalTransactionArgs

0.0.1-alpha.5

Patch Changes

  • readFinalizedWithdrawals, txReceipt to getDeposits and getWithdrawals

0.0.1-alpha.4

Patch Changes

  • Update minGasLimit to be type number for consistency with ABI

0.0.1-alpha.3

Patch Changes

  • Fix chains resolution

0.0.1-alpha.1

Patch Changes

  • no-op bump, fixing build

0.0.1-alpha.0

Patch Changes

  • Alpha release