proposal 44 #29

Merged
Theo merged 9 commits from ButterflyEffect/classic-ui:development into master 2024-01-03 01:13:17 +03:00
Showing only changes of commit 558b6fcd0c - Show all commits

@ -17,13 +17,13 @@ function updateEncrypted(netId) {
async function updateCommon(netId) { async function updateCommon(netId) {
const { nativeCurrency, tokens } = networkConfig[`netId${netId}`] const { nativeCurrency, tokens } = networkConfig[`netId${netId}`]
console.log(Object.keys(tokens[nativeCurrency].instanceAddress)) for (const type of EVENTS) {
for (const [tokenName, tokenInfo] of Object.entries(tokens)) {
for await (const type of EVENTS) { console.log(`${tokenInfo.symbol}: ${Object.keys(tokenInfo.instanceAddress)}`)
for await (const instance of Object.keys(tokens[nativeCurrency].instanceAddress)) { for (const instance of Object.keys(tokenInfo.instanceAddress)) {
console.warn('instance', instance) console.warn('instance', instance)
const filename = `${type.toLowerCase()}s_${netId}_${nativeCurrency}_${instance}.json` const filename = `${type.toLowerCase()}s_${netId}_${tokenName}_${instance}.json`
const isSaved = save(`${EVENTS_PATH}${filename}`) const isSaved = save(`${EVENTS_PATH}${filename}`)
@ -37,6 +37,7 @@ async function updateCommon(netId) {
} }
} }
} }
}
function testCommon(netId, type, filename) { function testCommon(netId, type, filename) {
const { deployedBlock } = networkConfig[`netId${netId}`] const { deployedBlock } = networkConfig[`netId${netId}`]