Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
rename from v2 to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihirota committed Feb 27, 2024
1 parent 3a44e9d commit a081ec3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<this>;

interface: RegistrationV2Interface;
interface: RegistrationV4Interface;

queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion src/contracts/factories/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
4 changes: 2 additions & 2 deletions src/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit a081ec3

Please sign in to comment.