
/* Autogenerated file, do not edit! */

/* eslint-disable */
import { AztecAddress, CompleteAddress } from '@aztec/aztec.js/addresses';
import { type AbiType, type AztecAddressLike, type ContractArtifact, EventSelector, decodeFromAbi, type EthAddressLike, type FieldLike, type FunctionSelectorLike, loadContractArtifact, loadContractArtifactForPublic, type NoirCompiledContract, type OptionLike, type U128Like, type WrappedFieldLike } from '@aztec/aztec.js/abi';
import { Contract, ContractBase, ContractFunctionInteraction, type ContractMethod, type ContractStorageLayout, type DeployInstantiationOptions, DeployMethod } from '@aztec/aztec.js/contracts';
import { EthAddress } from '@aztec/aztec.js/addresses';
import { Fr, Point } from '@aztec/aztec.js/fields';
import { type PublicKey, PublicKeys } from '@aztec/aztec.js/keys';
import type { Wallet } from '@aztec/aztec.js/wallet';
import NoteGetterContractArtifactJson from '../artifacts/note_getter_contract-NoteGetter.json' with { type: 'json' };
export const NoteGetterContractArtifact = loadContractArtifact(NoteGetterContractArtifactJson as NoirCompiledContract);



/**
 * Type-safe interface for contract NoteGetter;
 */
export class NoteGetterContract extends ContractBase {
  
  private constructor(
    address: AztecAddress,
    wallet: Wallet,
  ) {
    super(address, NoteGetterContractArtifact, 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.
   */
  public static at(
    address: AztecAddress,
    wallet: Wallet,
  ): NoteGetterContract {
    return Contract.at(address, NoteGetterContract.artifact, wallet) as NoteGetterContract;
  }

  
  /**
   * 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`.
   */
  public static deploy(wallet: Wallet, instantiation?: DeployInstantiationOptions) {
    return DeployMethod.create<NoteGetterContract>(
      wallet,
      {
        artifact: NoteGetterContractArtifact,
        postDeployCtor: (instance, wallet) => NoteGetterContract.at(instance.address, wallet),
        args: [],
      },
      instantiation,
    );
  }

  /**
   * Creates a tx to deploy a new instance of this contract using the specified constructor method.
   */
  public static deployWithOpts<M extends keyof NoteGetterContract['methods']>(
    opts: { method?: M; wallet: Wallet; instantiation?: DeployInstantiationOptions },
    ...args: Parameters<NoteGetterContract['methods'][M]>
  ) {
    return DeployMethod.create<NoteGetterContract>(
      opts.wallet,
      {
        artifact: NoteGetterContractArtifact,
        postDeployCtor: (instance, wallet) => NoteGetterContract.at(instance.address, wallet),
        args,
        constructorNameOrArtifact: opts.method ?? 'constructor',
      },
      opts.instantiation,
    );
  }
  

  
  /**
   * Returns this contract's artifact.
   */
  public static get artifact(): ContractArtifact {
    return NoteGetterContractArtifact;
  }

  /**
   * Returns this contract's artifact with public bytecode.
   */
  public static get artifactForPublic(): ContractArtifact {
    return loadContractArtifactForPublic(NoteGetterContractArtifactJson as NoirCompiledContract);
  }
  

  public static get storage(): ContractStorageLayout<'set' | 'packed_set'> {
      return {
        set: {
      slot: new Fr(1n),
    },
packed_set: {
      slot: new Fr(2n),
    }
      } as ContractStorageLayout<'set' | 'packed_set'>;
    }
    

  /** Type-safe wrappers for the public methods exposed by the contract. */
  public declare methods: {
    
    /** insert_note(value: field) */
    insert_note: ((value: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** insert_packed_note(high: integer, low: integer) */
    insert_packed_note: ((high: (bigint | number), low: (bigint | number)) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** offchain_receive(messages: struct) */
    offchain_receive: ((messages: { ciphertext: FieldLike[], recipient: AztecAddressLike, tx_hash: OptionLike<FieldLike>, anchor_block_timestamp: (bigint | number) }[]) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** public_dispatch(selector: field) */
    public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** read_note_values(owner: struct, comparator: integer, value: field) */
    read_note_values: ((owner: AztecAddressLike, comparator: (bigint | number), value: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** select_packed_notes_by_high(owner: struct, comparator: integer, value: field) */
    select_packed_notes_by_high: ((owner: AztecAddressLike, comparator: (bigint | number), value: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** select_packed_notes_by_low(owner: struct, comparator: integer, value: field) */
    select_packed_notes_by_low: ((owner: AztecAddressLike, comparator: (bigint | number), value: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;

    /** sync_state(scope: struct) */
    sync_state: ((scope: AztecAddressLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
  };

  
}
