vault upgrades; fees; refactoring
This commit is contained in:
2
abi.js
2
abi.js
@@ -33,7 +33,7 @@ const factoryAbi = [
|
||||
|
||||
export const abi = {
|
||||
'ERC20': erc20Abi,
|
||||
'Factory': factoryAbi,
|
||||
'VaultFactory': factoryAbi,
|
||||
}
|
||||
|
||||
|
||||
|
||||
6
chain.js
6
chain.js
@@ -25,7 +25,7 @@ for (const chain of _chains) {
|
||||
}
|
||||
let maybeFactory = null
|
||||
for (const tx of deployment.transactions) {
|
||||
if (tx.contractName === 'Factory')
|
||||
if (tx.contractName === 'VaultFactory')
|
||||
chain.factory = tx.contractAddress
|
||||
else if (tx.contractName === 'QueryHelper')
|
||||
chain.helper = tx.contractAddress
|
||||
@@ -42,11 +42,11 @@ for (const chain of _chains) {
|
||||
if ( maybeFactory !== null && maybeFactory !== -1)
|
||||
chain.factory = maybeFactory
|
||||
else
|
||||
throw Error(`No Factory deployment found for chainId ${chain.id} ${path}`)
|
||||
throw Error(`No VaultFactory deployment found for chainId ${chain.id} ${path}`)
|
||||
}
|
||||
if (chain.helper === undefined)
|
||||
throw Error(`No QueryHelper deployment found for chainId ${chain.id} ${path}`)
|
||||
console.log('Factory', chain.factory)
|
||||
console.log('VaultFactory', chain.factory)
|
||||
console.log('QueryHelper', chain.helper)
|
||||
chainInfo[chain.id] = chain
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user