@@ -2,6 +2,7 @@ import { BigNumber, BigNumberish, ContractTransaction, ethers } from 'ethers';
22import {
33 VAnchor as VAnchorContract ,
44 VAnchor__factory ,
5+ ChainalysisVAnchor as ChainalysisVAnchorContract ,
56 VAnchorEncodeInputs__factory ,
67 TokenWrapper__factory ,
78} from '@webb-tools/contracts' ;
@@ -18,8 +19,6 @@ import {
1819 randomBN ,
1920 CircomProvingManager ,
2021 ProvingManagerSetupInput ,
21- Note ,
22- NoteGenInput ,
2322 MerkleProof ,
2423 UtxoGenInput ,
2524 CircomUtxo ,
@@ -32,7 +31,6 @@ import {
3231 IVariableAnchorPublicInputs ,
3332} from '@webb-tools/interfaces' ;
3433import { hexToU8a , u8aToHex , getChainIdType , ZkComponents } from '@webb-tools/utils' ;
35- import { solidityPack } from 'ethers/lib/utils' ;
3634
3735const zeroAddress = '0x0000000000000000000000000000000000000000' ;
3836function checkNativeAddress ( tokenAddress : string ) : boolean {
@@ -50,7 +48,7 @@ export var proofTimeBenchmark = [];
5048// Functionality relevant to a particular anchor deployment (deposit, withdraw) is implemented in instance methods
5149export class VAnchor implements IAnchor {
5250 signer : ethers . Signer ;
53- contract : VAnchorContract ;
51+ contract : VAnchorContract | ChainalysisVAnchorContract ;
5452 tree : MerkleTree ;
5553 // hex string of the connected root
5654 maxEdges : number ;
@@ -65,7 +63,7 @@ export class VAnchor implements IAnchor {
6563 provingManager : CircomProvingManager ;
6664
6765 constructor (
68- contract : VAnchorContract ,
66+ contract : VAnchorContract | ChainalysisVAnchorContract ,
6967 signer : ethers . Signer ,
7068 treeHeight : number ,
7169 maxEdges : number ,
0 commit comments