From 930ba86ef375841ae6d2f1317bad386397db6063 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 17 Jun 2024 02:39:12 -0400 Subject: [PATCH] vault upgrades; fees; refactoring --- abi.js | 2 +- chain.js | 6 +++--- vault.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/abi.js b/abi.js index 102f915..ed4e008 100644 --- a/abi.js +++ b/abi.js @@ -33,7 +33,7 @@ const factoryAbi = [ export const abi = { 'ERC20': erc20Abi, - 'Factory': factoryAbi, + 'VaultFactory': factoryAbi, } diff --git a/chain.js b/chain.js index d4cd0d5..f9777c9 100644 --- a/chain.js +++ b/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 } diff --git a/vault.js b/vault.js index 1b6659c..1a815ac 100644 --- a/vault.js +++ b/vault.js @@ -7,7 +7,7 @@ import {sendVaultOrders} from "./order.js"; const vaultAbi = await getAbi('Vault') -const factoryAbi = await getAbi('Factory') +const factoryAbi = await getAbi('VaultFactory') export function vaultAddress(chainId, owner, num=0) {