import { HexString } from 'aptos'; import { swap } from '../generated'; export class NetworkConfiguration { constructor( public name: String, public fullNodeUrl: String, public omniswapAddress: HexString, public omniCoinListAddress: HexString, public isMainNet = false ) {} } export const MAINNET_CONFIG = new NetworkConfiguration( 'mainnet', 'https://fullnode.mainnet.aptoslabs.com/v1', swap.Interface.moduleAddress, new HexString('0x2fe3016dd04ef69d5a440b5879a1cc8f1ea4297f6eeaceffc92d0161288a5045') ); export const TESTNET_CONFIG = new NetworkConfiguration( 'testnet', 'https://fullnode.testnet.aptoslabs.com/v1', swap.Interface.moduleAddress, new HexString('0x2fe3016dd04ef69d5a440b5879a1cc8f1ea4297f6eeaceffc92d0161288a5045') ); export const CONFIGS = { mainnet: MAINNET_CONFIG, testnet: TESTNET_CONFIG };