mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
remove debug comments, add comment for todo
This commit is contained in:
parent
e245795924
commit
e855f787c5
@ -338,10 +338,6 @@ export class ConfigHelper {
|
||||
fs.readFileSync(process.env.ADDRESS_FILE, 'utf8')
|
||||
)
|
||||
: null
|
||||
// test
|
||||
// if (addresses) {
|
||||
// console.log('config adding addresses: ', addresses)
|
||||
// }
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
addresses = null
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { SHA256 } from 'crypto-js'
|
||||
import { ethers, Signer } from 'ethers'
|
||||
import { ConfigHelper, KNOWN_CONFIDENTIAL_EVMS } from '../../src/config'
|
||||
import { ConfigHelper } from '../../src/config'
|
||||
import { hexlify } from 'ethers/lib/utils'
|
||||
import { createHash } from 'crypto'
|
||||
import fs from 'fs'
|
||||
@ -95,6 +95,24 @@ export async function calculateTemplateIndex(
|
||||
}
|
||||
return index
|
||||
}
|
||||
// TODO: this for checking if is actually ACTIVE
|
||||
/**
|
||||
*
|
||||
const currentTokenCount = await factoryERC721.connect(owner).getCurrentTemplateCount(options);
|
||||
for(i=1;i<=currentTokenCount;i++){
|
||||
const tokenTemplate = await factoryERC721.connect(owner).getTokenTemplate(i,options);
|
||||
console.log("\n\n------------\ntemplateIndex:"+i)
|
||||
console.log(tokenTemplate)
|
||||
const erc20Template = await ethers.getContractAt("ERC20Template", tokenTemplate["templateAddress"]);
|
||||
const id=await erc20Template.connect(owner).getId()
|
||||
console.log("templateId: "+id)
|
||||
if(tokenTemplate.isActive && id==SEARCHED_TEMPLATE_ID || tokenTemplate["templateAddress"]==SEARCHED_TEMPLATE_ADDRESS){
|
||||
return i
|
||||
}
|
||||
}
|
||||
return null
|
||||
```
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* @param name asset name
|
||||
@ -140,37 +158,6 @@ export async function createAsset(
|
||||
|
||||
const config = new ConfigHelper().getConfig(parseInt(String(chainID)))
|
||||
|
||||
console.log('Config is:', config)
|
||||
// Config is: {
|
||||
// chainId: 8996,
|
||||
// network: 'development',
|
||||
// metadataCacheUri: 'http://172.15.0.5:5000',
|
||||
// nodeUri: 'http://127.0.0.1:8545',
|
||||
// providerUri: 'http://172.15.0.4:8030',
|
||||
// subgraphUri: 'https://172.15.0.15:8000',
|
||||
// explorerUri: null,
|
||||
// oceanTokenAddress: '0x2473f4F7bf40ed9310838edFCA6262C17A59DF64',
|
||||
// oceanTokenSymbol: 'OCEAN',
|
||||
// fixedRateExchangeAddress: '0xefdcb16b16C7842ec27c6fdCf56adc316B9B29B8',
|
||||
// dispenserAddress: '0xfeA10BBb093d7fcb1EDf575Aa7e28d37b9DcFcE9',
|
||||
// startBlock: 15,
|
||||
// transactionBlockTimeout: 50,
|
||||
// transactionConfirmationBlocks: 1,
|
||||
// transactionPollingTimeout: 750,
|
||||
// gasFeeMultiplier: 1,
|
||||
// confidentialEVM: false,
|
||||
// nftFactoryAddress: '0xEEE56e2a630DD29F9A628d618E58bb173911F393',
|
||||
// opfCommunityFeeCollector: '0xFe0145Caf0EC55D23dc1b08431b071f6e1123a76',
|
||||
// veAllocate: '0x15338ade17C4b6F65E4ff7b3aCE22AAdED00aC4d',
|
||||
// veOCEAN: '0x17d55A3501999FFBF9b0623cDB258611419d01F5',
|
||||
// veDelegation: '0x4999A8428d1D42fc955FbBC2f1E22323a55B6f86',
|
||||
// veFeeDistributor: '0xE6E685823Ddd2e0D0B29917D84D687E5431136F6',
|
||||
// veDelegationProxy: undefined,
|
||||
// DFRewards: '0xc6eF91571a6d512985C885cb5EEB7aC8E6C47f4B',
|
||||
// DFStrategyV1: '0xE4f7c64C52085A6df2c7c2972466EEf3ba3aD081',
|
||||
// veFeeEstimate: '0x3Ef2ebF03002D828943EB1AbbFC470D1A53c6B21'
|
||||
// }
|
||||
|
||||
let templateIndex = await calculateTemplateIndex(chainID, template)
|
||||
if (templateIndex < 1) {
|
||||
// for testing purposes only
|
||||
|
Loading…
x
Reference in New Issue
Block a user