diff --git a/src/contracts/contracts/RegistrationV2.ts b/src/contracts/contracts/RegistrationV4.ts similarity index 98% rename from src/contracts/contracts/RegistrationV2.ts rename to src/contracts/contracts/RegistrationV4.ts index 271e8195..cebee4db 100644 --- a/src/contracts/contracts/RegistrationV2.ts +++ b/src/contracts/contracts/RegistrationV4.ts @@ -22,7 +22,7 @@ import type { OnEvent, } from "../common"; -export interface RegistrationV2Interface extends utils.Interface { +export interface RegistrationV4Interface extends utils.Interface { functions: { "getVersion()": FunctionFragment; "imx()": FunctionFragment; @@ -96,12 +96,12 @@ export interface RegistrationV2Interface extends utils.Interface { events: {}; } -export interface RegistrationV2 extends BaseContract { +export interface RegistrationV4 extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; - interface: RegistrationV2Interface; + interface: RegistrationV4Interface; queryFilter( event: TypedEventFilter, diff --git a/src/contracts/contracts/index.ts b/src/contracts/contracts/index.ts index acf98b78..b0d9329b 100644 --- a/src/contracts/contracts/index.ts +++ b/src/contracts/contracts/index.ts @@ -4,4 +4,4 @@ export type { StarkV3 } from "./StarkV3"; export type { StarkV4 } from "./StarkV4"; export type { Registration } from "./Registration"; -export type { RegistrationV2 } from "./RegistrationV2"; +export type { RegistrationV4 } from "./RegistrationV4"; diff --git a/src/contracts/factories/contracts/RegistrationV2__factory.ts b/src/contracts/factories/contracts/RegistrationV4__factory.ts similarity index 92% rename from src/contracts/factories/contracts/RegistrationV2__factory.ts rename to src/contracts/factories/contracts/RegistrationV4__factory.ts index 5da411e6..8536dedc 100644 --- a/src/contracts/factories/contracts/RegistrationV2__factory.ts +++ b/src/contracts/factories/contracts/RegistrationV4__factory.ts @@ -5,9 +5,9 @@ import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { - RegistrationV2, - RegistrationV2Interface, -} from "../../contracts/RegistrationV2"; + RegistrationV4, + RegistrationV4Interface, +} from "../../contracts/RegistrationV4"; const _abi = [ { @@ -185,15 +185,15 @@ const _abi = [ }, ] as const; -export class RegistrationV2__factory { +export class RegistrationV4__factory { static readonly abi = _abi; - static createInterface(): RegistrationV2Interface { - return new utils.Interface(_abi) as RegistrationV2Interface; + static createInterface(): RegistrationV4Interface { + return new utils.Interface(_abi) as RegistrationV4Interface; } static connect( address: string, signerOrProvider: Signer | Provider - ): RegistrationV2 { - return new Contract(address, _abi, signerOrProvider) as RegistrationV2; + ): RegistrationV4 { + return new Contract(address, _abi, signerOrProvider) as RegistrationV4; } } \ No newline at end of file diff --git a/src/contracts/factories/contracts/index.ts b/src/contracts/factories/contracts/index.ts index 51c3b93c..fb260da7 100644 --- a/src/contracts/factories/contracts/index.ts +++ b/src/contracts/factories/contracts/index.ts @@ -4,4 +4,4 @@ export { StarkV3__factory } from "./StarkV3__factory"; export { StarkV4__factory } from "./StarkV4__factory"; export { Registration__factory } from "./Registration__factory"; -export { RegistrationV2__factory } from "./RegistrationV2__factory"; +export { RegistrationV4__factory } from "./RegistrationV4__factory"; diff --git a/src/contracts/index.ts b/src/contracts/index.ts index e704cede..1a22f785 100644 --- a/src/contracts/index.ts +++ b/src/contracts/index.ts @@ -19,5 +19,5 @@ export type { StarkV4 } from './contracts/StarkV4'; export { StarkV4__factory } from './factories/contracts/StarkV4__factory'; export type { Registration } from './contracts/Registration'; export { Registration__factory } from './factories/contracts/Registration__factory'; -export type { RegistrationV2 } from './contracts/RegistrationV2'; -export { RegistrationV2__factory } from './factories/contracts/RegistrationV2__factory'; +export type { RegistrationV4 } from './contracts/RegistrationV4'; +export { RegistrationV4__factory } from './factories/contracts/RegistrationV4__factory';