/* Autogenerated file, do not edit! */
import { loadContractArtifact, loadContractArtifactForPublic } from '@aztec/aztec.js/abi';
import { Contract, ContractBase, DeployMethod } from '@aztec/aztec.js/contracts';
import { Fr } from '@aztec/aztec.js/fields';
import VaultContractArtifactJson from '../../target/vault_contract-Vault.json' with { type: 'json' };
export const VaultContractArtifact = loadContractArtifact(VaultContractArtifactJson);
/**
 * Type-safe interface for contract Vault;
 */
export class VaultContract extends ContractBase {
    constructor(address, wallet) {
        super(address, VaultContractArtifact, wallet);
    }
    /**
     * 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, wallet) {
        return Contract.at(address, VaultContract.artifact, wallet);
    }
    /**
     * 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, asset, vault_offset, instantiation) {
        return DeployMethod.create(wallet, {
            artifact: VaultContractArtifact,
            postDeployCtor: (instance, wallet) => VaultContract.at(instance.address, wallet),
            args: [asset, vault_offset],
        }, instantiation);
    }
    /**
     * Creates a tx to deploy a new instance of this contract using the specified constructor method.
     */
    static deployWithOpts(opts, ...args) {
        return DeployMethod.create(opts.wallet, {
            artifact: VaultContractArtifact,
            postDeployCtor: (instance, wallet) => VaultContract.at(instance.address, wallet),
            args,
            constructorNameOrArtifact: opts.method ?? 'constructor',
        }, opts.instantiation);
    }
    /**
     * Returns this contract's artifact.
     */
    static get artifact() {
        return VaultContractArtifact;
    }
    /**
     * Returns this contract's artifact with public bytecode.
     */
    static get artifactForPublic() {
        return loadContractArtifactForPublic(VaultContractArtifactJson);
    }
    static get storage() {
        return {
            asset: {
                slot: new Fr(1n),
            },
            shares: {
                slot: new Fr(3n),
            },
            vault_offset: {
                slot: new Fr(5n),
            }
        };
    }
}
