{"version":3,"sources":["jsdelivr-header.js","/npm/swap-pet-price-oracle@1.6.0/truffle-config.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACcA,MAAM,iBAAmB,QAAQ,8BAG3B,GAAK,QAAQ,MAGb,KAAO,QAAQ,QACrB,SAAS,YAAY,GACnB,MAAM,EAAW,GAAG,aAAa,KAAK,QAAQ,UAAW,YAAY,WAAW,OAC1E,EAAY,GAAG,aAAa,KAAK,QAAQ,UAAW,eAAe,WAAW,OACpF,OAAO,IAAI,iBAAiB,EAAU,WAAW,kBAAwB,IAC3E,CAEA,OAAO,QAAU,CAWf,SAAU,CAYR,YAAa,CACX,KAAM,YACN,KAAM,KACN,WAAY,IACZ,IAAK,SAsBP,QAAS,CACP,SAAU,IAAM,YAAY,WAC5B,WAAY,EACZ,IAAK,KACL,cAAe,EACf,cAAe,IACf,SAAU,KACV,YAAY,GAEd,QAAS,CACP,SAAU,IAAM,YAAY,WAC5B,WAAY,EACZ,cAAe,EACf,cAAe,IACf,SAAU,KACV,YAAY,GAEd,OAAQ,CACN,SAAU,IAAM,YAAY,UAC5B,WAAY,EACZ,cAAe,EACf,cAAe,IACf,SAAU,KACV,YAAY,GAEd,MAAO,CACL,SAAU,IAAM,YAAY,SAC5B,WAAY,GACZ,cAAe,EACf,cAAe,IACf,SAAU,KACV,YAAY,IAWhB,MAAO,CAEL,SAAU,oBAEZ,QAAS,CAAC,qBAGV,UAAW,CACT,KAAM,CACJ,QAAS,QAET,SAAU,CACT,UAAW,CACT,SAAS,EACT,KAAM","file":"/npm/swap-pet-price-oracle@1.6.0/truffle-config.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/swap-pet-price-oracle@1.6.0/truffle-config.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * Use this file to configure your truffle project. It's seeded with some\n * common settings for different networks and features like migrations,\n * compilation and testing. Uncomment the ones you need or modify\n * them to suit your project as necessary.\n *\n * More information about configuration can be found at:\n *\n * trufflesuite.com/docs/advanced/configuration\n *\n * To deploy via Infura you'll need a wallet provider (like @truffle/hdwallet-provider)\n * to sign your transactions before they're sent to a remote public node. Infura accounts\n * are available for free at: infura.io/register.\n *\n * You'll also need a mnemonic - the twelve word phrase the wallet uses to generate\n * public/private key pairs. If you're publishing your code to GitHub make sure you load this\n * phrase from a file you've .gitignored so it doesn't accidentally become public.\n *\n */\n\nconst HDWalletProvider = require('@truffle/hdwallet-provider');\n// const infuraKey = \"fj4jll3k.....\";\n//\nconst fs = require('fs');\n// const mnemonic = fs.readFileSync(\".secret\").toString().trim();\n\nconst path = require('path'); \nfunction getProvider(network) {\n  const mnemonic = fs.readFileSync(path.resolve(__dirname, '.secret')).toString().trim()\n  const infuraKey = fs.readFileSync(path.resolve(__dirname, '.infuraKey')).toString().trim()\n  return new HDWalletProvider(mnemonic, `https://${network}.infura.io/v3/${infuraKey}`)\n}\n\nmodule.exports = {\n  /**\n   * Networks define how you connect to your ethereum client and let you set the\n   * defaults web3 uses to send transactions. If you don't specify one truffle\n   * will spin up a development blockchain for you on port 9545 when you\n   * run `develop` or `test`. You can ask a truffle command to use a specific\n   * network from the command line, e.g\n   *\n   * $ truffle test --network <network-name>\n   */\n\n  networks: {\n    // Useful for testing. The `development` name is special - truffle uses it by default\n    // if it's defined here and no other network is specified at the command line.\n    // You should run a client (like ganache-cli, geth or parity) in a separate terminal\n    // tab if you use this network and you must also set the `host`, `port` and `network_id`\n    // options below to some value.\n    //\n    // development: {\n    //  host: \"127.0.0.1\",     // Localhost (default: none)\n    //  port: 8545,            // Standard Ethereum port (default: none)\n    //  network_id: \"*\",       // Any network (default: none)\n    // },\n    development: {\n      host: '127.0.0.1',       // Localhost (default: none)\n      port: 8545,              // Standard Ethereum port (default: none)\n      network_id: '*',         // Any network (default: none)\n      gas: 0x6691b7,\n    },\n    // Another network with more advanced options...\n    // advanced: {\n    // port: 8777,             // Custom port\n    // network_id: 1342,       // Custom network\n    // gas: 8500000,           // Gas sent with each transaction (default: ~6700000)\n    // gasPrice: 20000000000,  // 20 gwei (in wei) (default: 100 gwei)\n    // from: <address>,        // Account to send txs from (default: accounts[0])\n    // websockets: true        // Enable EventEmitter interface for web3 (default: false)\n    // },\n    // Useful for deploying to a public network.\n    // NB: It's important to wrap the provider as a function.\n    // ropsten: {\n    // provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/YOUR-PROJECT-ID`),\n    // network_id: 3,       // Ropsten's id\n    // gas: 5500000,        // Ropsten has a lower block limit than mainnet\n    // confirmations: 2,    // # of confs to wait between deployments. (default: 0)\n    // timeoutBlocks: 200,  // # of blocks before a deployment times out  (minimum/default: 50)\n    // skipDryRun: true     // Skip dry run before migrations? (default: false for public nets )\n    // },\n\n    ropsten: {\n      provider: () => getProvider('ropsten'),\n      network_id: 3,       // Ropsten's id\n      gas: 5500000,        // Ropsten has a lower block limit than mainnet\n      confirmations: 2,    // # of confs to wait between deployments. (default: 0)\n      timeoutBlocks: 200,  // # of blocks before a deployment times out  (minimum/default: 50)\n      gasPrice: 10000000000, // 10 gwei\n      skipDryRun: false, // Skip dry run before migrations? (default: false for public nets )\n    },\n    rinkeby: {\n      provider: () => getProvider('rinkeby'),\n      network_id: 4, // Rinkeby's id\n      confirmations: 0, // # of confs to wait between deployments. (default: 0)\n      timeoutBlocks: 200, // # of blocks before a deployment times out  (minimum/default: 50)\n      gasPrice: 10000000000, // 10 gwei\n      skipDryRun: false, // Skip dry run before migrations? (default: false for public nets )\n    },\n    goerli: {\n      provider: () => getProvider('goerli'),\n      network_id: 5, // Goerli's id\n      confirmations: 2, // # of confs to wait between deployments. (default: 0)\n      timeoutBlocks: 200, // # of blocks before a deployment times out  (minimum/default: 50)\n      gasPrice: 10000000000, // 10 gwei\n      skipDryRun: false, // Skip dry run before migrations? (default: false for public nets )\n    },\n    kovan: {\n      provider: () => getProvider('kovan'),\n      network_id: 42, // Kovan's id\n      confirmations: 2, // # of confs to wait between deployments. (default: 0)\n      timeoutBlocks: 200, // # of blocks before a deployment times out  (minimum/default: 50)\n      gasPrice: 10000000000, // 10 gwei\n      skipDryRun: false, // Skip dry run before migrations? (default: false for public nets )\n    },\n    // Useful for private networks\n    // private: {\n    // provider: () => new HDWalletProvider(mnemonic, `https://network.io`),\n    // network_id: 2111,   // This network is yours, in the cloud.\n    // production: true    // Treats this network as if it was a public net. (default: false)\n    // }\n  },\n\n  // Set default mocha options here, use special reporters etc.\n  mocha: {\n    // timeout: 100000\n    reporter: 'eth-gas-reporter',\n  },\n  plugins: [\"solidity-coverage\"],\n\n  // Configure your compilers\n  compilers: {\n    solc: {\n      version: \"0.7.0\",    // Fetch exact version from solc-bin (default: truffle's version)\n      // docker: true,        // Use \"0.5.1\" you've installed locally with docker (default: false)\n      settings: {          // See the solidity docs for advice about optimization and evmVersion\n       optimizer: {\n         enabled: true,\n         runs: 20000\n       },\n      //  evmVersion: \"byzantium\"\n      }\n    },\n  },\n};\n"]}