Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Durgesh4993 authored Jan 15, 2025
1 parent 15578cc commit a100508
Showing 1 changed file with 49 additions and 32 deletions.
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';

0 comments on commit a100508

Please sign in to comment.