/* Autogenerated file, do not edit! */ /* eslint-disable */ import { EventSelector, loadContractArtifact, loadContractArtifactForPublic } from '@aztec/aztec.js/abi';
import { Contract, ContractBase, DeployMethod } from '@aztec/aztec.js/contracts';
import { Fr } from '@aztec/aztec.js/fields';
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(address, wallet){
        super(address, 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 new Contract instance.
   */ static at(address, wallet) {
        return Contract.at(address, OffchainEffectContract.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, instantiation) {
        return DeployMethod.create(wallet, {
            artifact: OffchainEffectContractArtifact,
            postDeployCtor: (instance, wallet)=>OffchainEffectContract.at(instance.address, wallet),
            args: []
        }, 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: OffchainEffectContractArtifact,
            postDeployCtor: (instance, wallet)=>OffchainEffectContract.at(instance.address, wallet),
            args,
            constructorNameOrArtifact: opts.method ?? 'constructor'
        }, opts.instantiation);
    }
    /**
   * 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"
                ]
            }
        };
    }
}
