Skip to content

Commit

Permalink
feat: integrate mint nft contract (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Hien Le <[email protected]>
  • Loading branch information
quanghuynguyen1902 and leduyhien152 authored Apr 26, 2024
1 parent 5480d78 commit 45c7ec9
Show file tree
Hide file tree
Showing 39 changed files with 5,756 additions and 206 deletions.
1,181 changes: 1,181 additions & 0 deletions abi/nft.json

Large diffs are not rendered by default.

1,602 changes: 1,602 additions & 0 deletions abi/types/Nft.ts

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions abi/types/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type { Listener } from "@ethersproject/providers";
import type { Event, EventFilter } from "ethers";

export interface TypedEvent<
TArgsArray extends Array<any> = any,
TArgsObject = any
> extends Event {
args: TArgsArray & TArgsObject;
}

export interface TypedEventFilter<_TEvent extends TypedEvent>
extends EventFilter {}

export interface TypedListener<TEvent extends TypedEvent> {
(...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void;
}

type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never;

export interface OnEvent<TRes> {
<TEvent extends TypedEvent>(
eventFilter: TypedEventFilter<TEvent>,
listener: TypedListener<TEvent>
): TRes;
(eventName: string, listener: Listener): TRes;
}

export type MinEthersFactory<C, ARGS> = {
deploy(...a: ARGS[]): Promise<C>;
};

export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<
infer C,
any
>
? C
: never;

export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any>
? Parameters<F["deploy"]>
: never;
Loading

0 comments on commit 45c7ec9

Please sign in to comment.