From a100508398ee2ff58bf1d30f8846bc9b56de13b6 Mon Sep 17 00:00:00 2001 From: Durgesh kumar prajapati <98798977+Durgesh4993@users.noreply.github.com> Date: Wed, 15 Jan 2025 06:33:37 +0530 Subject: [PATCH] Update index.ts --- src/index.ts | 81 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 49 insertions(+), 32 deletions(-) diff --git a/src/index.ts b/src/index.ts index b10bcf8..9546520 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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';