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