Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.ts #196

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 49 additions & 32 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,49 @@
export { type ProvenWithdrawal } from './actions/public/L1/readProvenWithdrawals.js'
export { type ProveWithdrawalTransactionParameters } from './actions/wallet/L1/writeProveWithdrawalTransaction.js'
export { type PublicL1OpStackActions, publicL1OpStackActions } from './decorators/publicL1OpStackActions.js'
export { type PublicL2OpStackActions, publicL2OpStackActions } from './decorators/publicL2OpStackActions.js'
export { type WalletL1OpStackActions, walletL1OpStackActions } from './decorators/walletL1OpStackActions.js'
export { type WalletL2OpStackActions, walletL2OpStackActions } from './decorators/walletL2OpStackActions.js'
export type { Addresses, ContractAddress, RawOrContractAddress } from './types/addresses.js'
export type { DepositERC20Parameters } from './types/depositERC20.js'
export type { DepositETHParameters } from './types/depositETH.js'
export type { DepositTransaction, TransactionDepositedEvent } from './types/depositTransaction.js'
export { DEPOSIT_TX_PREFIX, SourceHashDomain } from './types/depositTransaction.js'
export type {
BlockOptions,
GasPriceOracleEstimator,
GasPriceOracleParameters,
OracleTransactionParameters,
} from './types/gasPriceOracle.js'
export { type OpStackL2ChainContracts, opStackL2ChainContracts, OpStackL2Contract } from './types/opStackContracts.js'
export type { MessagePassedEvent } from './types/withdrawal.js'
export type { WithdrawETHParameters, WithdrawToParameters } from './types/withdrawTo.js'
export type { GetDepositTransactionParams } from './utils/getDepositTransaction.js'
export { getDepositTransaction } from './utils/getDepositTransaction.js'
export { getL2HashFromL1DepositInfo } from './utils/getL2HashFromL1DepositInfo.js'
export { getSourceHash } from './utils/getSourceHash.js'
export type {
GetTransactionDepositedEventsParams,
GetTransactionDepositedEventsReturnType,
TransactionDepositedEventDetails,
} from './utils/getTransactionDepositedEvents.js'
export { getTransactionDepositedEvents } from './utils/getTransactionDepositedEvents.js'
export { getWithdrawalMessageStorageSlot } from './utils/getWithdrawalMessageStorageSlot.js'
export { rlpEncodeDepositTransaction } from './utils/rlpEncodeDepositTransaction.js'
// Exporting types for public L1 actions
export { type ProvenWithdrawal } from './actions/public/L1/readProvenWithdrawals.js';
export { type ProveWithdrawalTransactionParameters } from './actions/wallet/L1/writeProveWithdrawalTransaction.js';

// Exporting public L1 and L2 op stack actions
export { type PublicL1OpStackActions, publicL1OpStackActions } from './decorators/publicL1OpStackActions.js';
export { type PublicL2OpStackActions, publicL2OpStackActions } from './decorators/publicL2OpStackActions.js';

// Exporting wallet L1 and L2 op stack actions
export { type WalletL1OpStackActions, walletL1OpStackActions } from './decorators/walletL1OpStackActions.js';
export { type WalletL2OpStackActions, walletL2OpStackActions } from './decorators/walletL2OpStackActions.js';

// Exporting address-related types
export type { Addresses, ContractAddress, RawOrContractAddress } from './types/addresses.js';

// Exporting deposit-related types and constants
export type { DepositERC20Parameters } from './types/depositERC20.js';
export type { DepositETHParameters } from './types/depositETH.js';
export type { DepositTransaction, TransactionDepositedEvent } from './types/depositTransaction.js';
export { DEPOSIT_TX_PREFIX, SourceHashDomain } from './types/depositTransaction.js';

// Exporting gas price oracle types
export type {
BlockOptions,
GasPriceOracleEstimator,
GasPriceOracleParameters,
OracleTransactionParameters
} from './types/gasPriceOracle.js';

// Exporting op stack L2 chain contract types
export { type OpStackL2ChainContracts, opStackL2ChainContracts, OpStackL2Contract } from './types/opStackContracts.js';

// Exporting withdrawal-related types
export type { MessagePassedEvent } from './types/withdrawal.js';
export type { WithdrawETHParameters, WithdrawToParameters } from './types/withdrawTo.js';

// Exporting utility types and functions
export type { GetDepositTransactionParams } from './utils/getDepositTransaction.js';
export { getDepositTransaction } from './utils/getDepositTransaction.js';
export { getL2HashFromL1DepositInfo } from './utils/getL2HashFromL1DepositInfo.js';
export { getSourceHash } from './utils/getSourceHash.js';
export type {
GetTransactionDepositedEventsParams,
GetTransactionDepositedEventsReturnType,
TransactionDepositedEventDetails
} from './utils/getTransactionDepositedEvents.js';
export { getTransactionDepositedEvents } from './utils/getTransactionDepositedEvents.js';
export { getWithdrawalMessageStorageSlot } from './utils/getWithdrawalMessageStorageSlot.js';
export { rlpEncodeDepositTransaction } from './utils/rlpEncodeDepositTransaction.js';