/* Autogenerated file, do not edit! */ /* eslint-disable */ import { Contract, ContractBase, DeployMethod, EventSelector, Fr, loadContractArtifact, loadContractArtifactForPublic, PublicKeys } from '@aztec/aztec.js';
import OffchainEffectContractArtifactJson from '../artifacts/offchain_effect_contract-OffchainEffect.json' with {
    type: 'json'
};
export const OffchainEffectContractArtifact = loadContractArtifact(OffchainEffectContractArtifactJson);
/**
 * Type-safe interface for contract OffchainEffect;
 */ export class OffchainEffectContract extends ContractBase {
    constructor(instance, wallet){
        super(instance, OffchainEffectContractArtifact, 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, OffchainEffectContract.artifact, wallet);
    }
    /**
   * Creates a tx to deploy a new instance of this contract.
   */ static deploy(wallet) {
        return new DeployMethod(PublicKeys.default(), wallet, OffchainEffectContractArtifact, OffchainEffectContract.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, OffchainEffectContractArtifact, OffchainEffectContract.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, OffchainEffectContractArtifact, OffchainEffectContract.at, Array.from(arguments).slice(1), opts.method ?? 'constructor');
    }
    /**
   * Returns this contract's artifact.
   */ static get artifact() {
        return OffchainEffectContractArtifact;
    }
    /**
   * Returns this contract's artifact with public bytecode.
   */ static get artifactForPublic() {
        return loadContractArtifactForPublic(OffchainEffectContractArtifactJson);
    }
    static get storage() {
        return {
            balances: {
                slot: new Fr(1n)
            }
        };
    }
    static get events() {
        return {
            TestEvent: {
                abiType: {
                    "kind": "struct",
                    "fields": [
                        {
                            "name": "a",
                            "type": {
                                "kind": "integer",
                                "sign": "unsigned",
                                "width": 64
                            }
                        },
                        {
                            "name": "b",
                            "type": {
                                "kind": "integer",
                                "sign": "unsigned",
                                "width": 64
                            }
                        },
                        {
                            "name": "c",
                            "type": {
                                "kind": "integer",
                                "sign": "unsigned",
                                "width": 64
                            }
                        }
                    ],
                    "path": "OffchainEffect::TestEvent"
                },
                eventSelector: EventSelector.fromString("0x391e1d6c"),
                fieldNames: [
                    "a",
                    "b",
                    "c"
                ]
            }
        };
    }
}
