import { AztecAddress } from '@aztec/aztec.js/addresses'; import { type AztecAddressLike, type ContractArtifact, type FieldLike, type OptionLike, type WrappedFieldLike } from '@aztec/aztec.js/abi'; import { ContractBase, ContractFunctionInteraction, type ContractMethod, type DeployInstantiationOptions, DeployMethod } from '@aztec/aztec.js/contracts'; import type { Wallet } from '@aztec/aztec.js/wallet'; export declare const VaultDeployerContractArtifact: ContractArtifact; /** * Type-safe interface for contract VaultDeployer; */ export declare class VaultDeployerContract extends ContractBase { private constructor(); /** * Creates a contract instance. * @param address - The deployed contract's address. * @param wallet - The wallet to use when interacting with the contract. * @returns A new Contract instance. */ static at(address: AztecAddress, wallet: Wallet): VaultDeployerContract; /** * Creates a tx to deploy a new instance of this contract. * @param instantiation - Optional address-affecting parameters (salt, deployer / universalDeploy, publicKeys). * Salt defaults to a random value; the deployer is locked lazily from the first send-time `from`. */ static deploy(wallet: Wallet, asset: AztecAddressLike, vault_offset: (bigint | number), vault_class_id: WrappedFieldLike, shares_name: string, shares_symbol: string, shares_decimals: (bigint | number), shares_class_id: WrappedFieldLike, instantiation?: DeployInstantiationOptions): DeployMethod; /** * Creates a tx to deploy a new instance of this contract using the specified constructor method. */ static deployWithOpts(opts: { method?: M; wallet: Wallet; instantiation?: DeployInstantiationOptions; }, ...args: Parameters): DeployMethod; /** * Returns this contract's artifact. */ static get artifact(): ContractArtifact; /** * Returns this contract's artifact with public bytecode. */ static get artifactForPublic(): ContractArtifact; /** Type-safe wrappers for the public methods exposed by the contract. */ methods: { /** deploy_vault(asset: struct, vault_offset: integer, vault_class_id: struct, shares_name: string, shares_symbol: string, shares_decimals: integer, shares_class_id: struct) */ deploy_vault: ((asset: AztecAddressLike, vault_offset: (bigint | number), vault_class_id: WrappedFieldLike, shares_name: string, shares_symbol: string, shares_decimals: (bigint | number), shares_class_id: WrappedFieldLike) => ContractFunctionInteraction) & Pick; /** deploy_vault_with_initial_deposit(asset: struct, vault_offset: integer, vault_class_id: struct, shares_name: string, shares_symbol: string, shares_decimals: integer, shares_class_id: struct, initial_deposit: integer, depositor: struct, nonce: field) */ deploy_vault_with_initial_deposit: ((asset: AztecAddressLike, vault_offset: (bigint | number), vault_class_id: WrappedFieldLike, shares_name: string, shares_symbol: string, shares_decimals: (bigint | number), shares_class_id: WrappedFieldLike, initial_deposit: (bigint | number), depositor: AztecAddressLike, nonce: FieldLike) => ContractFunctionInteraction) & Pick; /** offchain_receive(messages: struct) */ offchain_receive: ((messages: { ciphertext: FieldLike[]; recipient: AztecAddressLike; tx_hash: OptionLike; anchor_block_timestamp: (bigint | number); }[]) => ContractFunctionInteraction) & Pick; /** public_dispatch(selector: field) */ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick; /** sync_state(scope: struct) */ sync_state: ((scope: AztecAddressLike) => ContractFunctionInteraction) & Pick; }; }