UNPKG

@zkp2p/contracts-v2

Version:

ZKP2P V2 smart contract interfaces and utilities

24 lines (19 loc) 821 B
// Auto-generated by extract-all.ts // Unified payment method configurations per network import type { PaymentMethodConfig, NetworkPaymentMethods } from './types'; export type { PaymentMethodConfig, NetworkPaymentMethods }; // Network-specific payment method exports export { default as baseSepolia } from './baseSepolia.json'; // Helper function to get payment method config for a specific network and method export function getPaymentMethodConfig(network: string, paymentMethod: string): PaymentMethodConfig | undefined { try { const networkModule = require(`./${network}.json`); return networkModule.methods?.[paymentMethod]; } catch { return undefined; } } // Export all networks as a single object for convenience export const paymentMethods = { baseSepolia: require('./baseSepolia.json') };