Constructors
constructor
Parameters
signer: Signer
anchorList: Anchor[]
Properties
anchorProxyMap
anchor
Proxy
Map
: Map<string, Anchor>Methods
deposit
- deposit(anchorAddr: string, destChainId: number, encryptedNote?: string): Promise<{ deposit: IAnchorDepositInfo; index: number }>
Parameters
anchorAddr: string
destChainId: number
Optional encryptedNote: string
Returns Promise<{ deposit: IAnchorDepositInfo; index: number }>
insertAnchor
- insertAnchor(anchor: Anchor): void
withdraw
- withdraw(anchorAddr: string, deposit: IAnchorDepositInfo, index: number, recipient: string, relayer: string, fee: bigint, refreshCommitment: string | number): Promise<RefreshEvent | WithdrawalEvent>
Parameters
anchorAddr: string
index: number
recipient: string
relayer: string
fee: bigint
refreshCommitment: string | number
Returns Promise<RefreshEvent | WithdrawalEvent>
Static createAnchorProxy
- createAnchorProxy(_anchorTrees: string, _governance: string, _anchorList: Anchor[], deployer: Signer): Promise<Anchors.AnchorProxy>
Parameters
_anchorTrees: string
_governance: string
_anchorList: Anchor[]
deployer: Signer