/* Autogenerated file, do not edit! */ /* eslint-disable */ import { Contract, ContractBase, DeployMethod, EventSelector, loadContractArtifact, loadContractArtifactForPublic, PublicKeys } from '@aztec/aztec.js';
import EventOnlyContractArtifactJson from '../artifacts/event_only_contract-EventOnly.json' with {
    type: 'json'
};
export const EventOnlyContractArtifact = loadContractArtifact(EventOnlyContractArtifactJson);
/**
 * Type-safe interface for contract EventOnly;
 */ export class EventOnlyContract extends ContractBase {
    constructor(instance, wallet){
        super(instance, EventOnlyContractArtifact, 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 promise that resolves to a new Contract instance.
   */ static async at(address, wallet) {
        return Contract.at(address, EventOnlyContract.artifact, wallet);
    }
    /**
   * Creates a tx to deploy a new instance of this contract.
   */ static deploy(wallet) {
        return new DeployMethod(PublicKeys.default(), wallet, EventOnlyContractArtifact, EventOnlyContract.at, Array.from(arguments).slice(1));
    }
    /**
   * Creates a tx to deploy a new instance of this contract using the specified public keys hash to derive the address.
   */ static deployWithPublicKeys(publicKeys, wallet) {
        return new DeployMethod(publicKeys, wallet, EventOnlyContractArtifact, EventOnlyContract.at, Array.from(arguments).slice(2));
    }
    /**
   * Creates a tx to deploy a new instance of this contract using the specified constructor method.
   */ static deployWithOpts(opts, ...args) {
        return new DeployMethod(opts.publicKeys ?? PublicKeys.default(), opts.wallet, EventOnlyContractArtifact, EventOnlyContract.at, Array.from(arguments).slice(1), opts.method ?? 'constructor');
    }
    /**
   * Returns this contract's artifact.
   */ static get artifact() {
        return EventOnlyContractArtifact;
    }
    /**
   * Returns this contract's artifact with public bytecode.
   */ static get artifactForPublic() {
        return loadContractArtifactForPublic(EventOnlyContractArtifactJson);
    }
    static get events() {
        return {
            TestEvent: {
                abiType: {
                    "kind": "struct",
                    "fields": [
                        {
                            "name": "value",
                            "type": {
                                "kind": "field"
                            }
                        }
                    ],
                    "path": "EventOnly::TestEvent"
                },
                eventSelector: EventSelector.fromString("0xa2903ae5"),
                fieldNames: [
                    "value"
                ]
            }
        };
    }
}
