UNPKG

@zkp2p/contracts-v2

Version:

ZKP2P V2 smart contract interfaces and utilities

28 lines (23 loc) 852 B
// Auto-generated by extract-all.ts // Unified payment method configurations per network ; ; // Network-specific payment method exports exports.base = require('./base.json'); exports.baseSepolia = require('./baseSepolia.json'); exports.baseStaging = require('./baseStaging.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 = { base: require('./base.json'), baseSepolia: require('./baseSepolia.json'), baseStaging: require('./baseStaging.json') };