import { AztecAddress } from '@aztec/aztec.js/addresses'; import { type AztecAddressLike, type ContractArtifact, type FieldLike, type FunctionSelectorLike, type OptionLike } from '@aztec/aztec.js/abi'; import { ContractBase, ContractFunctionInteraction, type ContractMethod, DeployMethod } from '@aztec/aztec.js/contracts'; import { PublicKeys } from '@aztec/aztec.js/keys'; import type { Wallet } from '@aztec/aztec.js/wallet'; export declare const GenericProxyContractArtifact: ContractArtifact; /** * Type-safe interface for contract GenericProxy; */ export declare class GenericProxyContract 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): GenericProxyContract; /** * Creates a tx to deploy a new instance of this contract. */ static deploy(wallet: Wallet): DeployMethod; /** * Creates a tx to deploy a new instance of this contract using the specified public keys hash to derive the address. */ static deployWithPublicKeys(publicKeys: PublicKeys, wallet: Wallet): DeployMethod; /** * Creates a tx to deploy a new instance of this contract using the specified constructor method. */ static deployWithOpts(opts: { publicKeys?: PublicKeys; method?: M; wallet: Wallet; }, ...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: { /** forward_private_0(target: struct, selector: struct) */ forward_private_0: ((target: AztecAddressLike, selector: FunctionSelectorLike) => ContractFunctionInteraction) & Pick; /** forward_private_1(target: struct, selector: struct, args: array) */ forward_private_1: ((target: AztecAddressLike, selector: FunctionSelectorLike, args: FieldLike[]) => ContractFunctionInteraction) & Pick; /** forward_private_2(target: struct, selector: struct, args: array) */ forward_private_2: ((target: AztecAddressLike, selector: FunctionSelectorLike, args: FieldLike[]) => ContractFunctionInteraction) & Pick; /** forward_private_3(target: struct, selector: struct, args: array) */ forward_private_3: ((target: AztecAddressLike, selector: FunctionSelectorLike, args: FieldLike[]) => ContractFunctionInteraction) & Pick; /** forward_private_4(target: struct, selector: struct, args: array) */ forward_private_4: ((target: AztecAddressLike, selector: FunctionSelectorLike, args: FieldLike[]) => ContractFunctionInteraction) & Pick; /** forward_private_4_and_return(target: struct, selector: struct, args: array) */ forward_private_4_and_return: ((target: AztecAddressLike, selector: FunctionSelectorLike, args: FieldLike[]) => ContractFunctionInteraction) & Pick; /** forward_private_5(target: struct, selector: struct, args: array) */ forward_private_5: ((target: AztecAddressLike, selector: FunctionSelectorLike, args: FieldLike[]) => ContractFunctionInteraction) & Pick; /** forward_private_6(target: struct, selector: struct, args: array) */ forward_private_6: ((target: AztecAddressLike, selector: FunctionSelectorLike, args: FieldLike[]) => ContractFunctionInteraction) & Pick; /** forward_private_7(target: struct, selector: struct, args: array) */ forward_private_7: ((target: AztecAddressLike, selector: FunctionSelectorLike, args: FieldLike[]) => ContractFunctionInteraction) & Pick; /** forward_private_8(target: struct, selector: struct, args: array) */ forward_private_8: ((target: AztecAddressLike, selector: FunctionSelectorLike, args: 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; }; }