-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
1,502 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.19; | ||
|
||
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; | ||
|
||
import "../common/Contants.sol"; | ||
import "./BaseValidator.sol"; | ||
|
||
// OIDC ZK based validator that can only to add session validator | ||
contract OIDCSessionOnlyValidator is BaseValidator { | ||
string public constant override NAME = "OIDC Validator"; | ||
string public constant override VERSION = "0.0.1"; | ||
|
||
function validateSignature(UserOperation calldata userOp, bytes32 userOpHash, bytes calldata signature) | ||
external | ||
payable | ||
override | ||
returns (uint256 validationData) | ||
{} | ||
|
||
function validCaller(address caller, bytes calldata data) external view override returns (bool) {} | ||
|
||
function enable(bytes calldata data) external payable override {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { BaseAccount } from "./BaseAccount"; | ||
export type { BasePaymaster } from "./BasePaymaster"; | ||
export type { EntryPoint } from "./EntryPoint"; | ||
export type { NonceManager } from "./NonceManager"; | ||
export type { SenderCreator } from "./SenderCreator"; | ||
export type { StakeManager } from "./StakeManager"; | ||
export type { BaseAccount } from './BaseAccount' | ||
export type { BasePaymaster } from './BasePaymaster' | ||
export type { EntryPoint } from './EntryPoint' | ||
export type { NonceManager } from './NonceManager' | ||
export type { SenderCreator } from './SenderCreator' | ||
export type { StakeManager } from './StakeManager' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type * as core from "./core"; | ||
export type { core }; | ||
import type * as interfaces from "./interfaces"; | ||
export type { interfaces }; | ||
import type * as samples from "./samples"; | ||
export type { samples }; | ||
import type * as core from './core' | ||
export type { core } | ||
import type * as interfaces from './interfaces' | ||
export type { interfaces } | ||
import type * as samples from './samples' | ||
export type { samples } |
12 changes: 6 additions & 6 deletions
12
src/types/@account-abstraction/contracts/interfaces/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { IAccount } from "./IAccount"; | ||
export type { IAggregator } from "./IAggregator"; | ||
export type { IEntryPoint } from "./IEntryPoint"; | ||
export type { INonceManager } from "./INonceManager"; | ||
export type { IPaymaster } from "./IPaymaster"; | ||
export type { IStakeManager } from "./IStakeManager"; | ||
export type { IAccount } from './IAccount' | ||
export type { IAggregator } from './IAggregator' | ||
export type { IEntryPoint } from './IEntryPoint' | ||
export type { INonceManager } from './INonceManager' | ||
export type { IPaymaster } from './IPaymaster' | ||
export type { IStakeManager } from './IStakeManager' |
2 changes: 1 addition & 1 deletion
2
src/types/@account-abstraction/contracts/samples/callback/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { TokenCallbackHandler } from "./TokenCallbackHandler"; | ||
export type { TokenCallbackHandler } from './TokenCallbackHandler' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type * as callback from "./callback"; | ||
export type { callback }; | ||
import type * as callback from './callback' | ||
export type { callback } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type * as contracts from "./contracts"; | ||
export type { contracts }; | ||
import type * as contracts from './contracts' | ||
export type { contracts } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { Ownable } from "./Ownable"; | ||
export type { Ownable } from './Ownable' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type * as access from "./access"; | ||
export type { access }; | ||
import type * as interfaces from "./interfaces"; | ||
export type { interfaces }; | ||
import type * as proxy from "./proxy"; | ||
export type { proxy }; | ||
import type * as token from "./token"; | ||
export type { token }; | ||
import type * as utils from "./utils"; | ||
export type { utils }; | ||
import type * as access from './access' | ||
export type { access } | ||
import type * as interfaces from './interfaces' | ||
export type { interfaces } | ||
import type * as proxy from './proxy' | ||
export type { proxy } | ||
import type * as token from './token' | ||
export type { token } | ||
import type * as utils from './utils' | ||
export type { utils } |
2 changes: 1 addition & 1 deletion
2
src/types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { IERC1822Proxiable } from "./IERC1822Proxiable"; | ||
export type { IERC1822Proxiable } from './IERC1822Proxiable' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type * as draftIerc1822Sol from "./draft-IERC1822.sol"; | ||
export type { draftIerc1822Sol }; | ||
export type { IERC1967 } from "./IERC1967"; | ||
import type * as draftIerc1822Sol from './draft-IERC1822.sol' | ||
export type { draftIerc1822Sol } | ||
export type { IERC1967 } from './IERC1967' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { ERC1967Proxy } from "./ERC1967Proxy"; | ||
export type { ERC1967Upgrade } from "./ERC1967Upgrade"; | ||
export type { ERC1967Proxy } from './ERC1967Proxy' | ||
export type { ERC1967Upgrade } from './ERC1967Upgrade' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { IBeacon } from "./IBeacon"; | ||
export type { IBeacon } from './IBeacon' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type * as erc1967 from "./ERC1967"; | ||
export type { erc1967 }; | ||
import type * as beacon from "./beacon"; | ||
export type { beacon }; | ||
import type * as utils from "./utils"; | ||
export type { utils }; | ||
export type { Proxy } from "./Proxy"; | ||
import type * as erc1967 from './ERC1967' | ||
export type { erc1967 } | ||
import type * as beacon from './beacon' | ||
export type { beacon } | ||
import type * as utils from './utils' | ||
export type { utils } | ||
export type { Proxy } from './Proxy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { Initializable } from "./Initializable"; | ||
export type { Initializable } from './Initializable' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { IERC1155Receiver } from "./IERC1155Receiver"; | ||
export type { IERC1155Receiver } from './IERC1155Receiver' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { IERC721Receiver } from "./IERC721Receiver"; | ||
export type { IERC721Receiver } from './IERC721Receiver' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { IERC777Recipient } from "./IERC777Recipient"; | ||
export type { IERC777Recipient } from './IERC777Recipient' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type * as erc1155 from "./ERC1155"; | ||
export type { erc1155 }; | ||
import type * as erc721 from "./ERC721"; | ||
export type { erc721 }; | ||
import type * as erc777 from "./ERC777"; | ||
export type { erc777 }; | ||
import type * as erc1155 from './ERC1155' | ||
export type { erc1155 } | ||
import type * as erc721 from './ERC721' | ||
export type { erc721 } | ||
import type * as erc777 from './ERC777' | ||
export type { erc777 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type * as introspection from "./introspection"; | ||
export type { introspection }; | ||
import type * as introspection from './introspection' | ||
export type { introspection } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { IERC165 } from "./IERC165"; | ||
export type { IERC165 } from './IERC165' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type * as contracts from "./contracts"; | ||
export type { contracts }; | ||
import type * as contracts from './contracts' | ||
export type { contracts } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,30 @@ | ||
/* 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; | ||
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 TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {} | ||
|
||
export interface TypedListener<TEvent extends TypedEvent> { | ||
(...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void; | ||
(...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void | ||
} | ||
|
||
type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never; | ||
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; | ||
<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; | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { Authority } from "./Authority"; | ||
export type { EntryPointAuth } from "./EntryPointAuth"; | ||
export type { Authority } from './Authority' | ||
export type { EntryPointAuth } from './EntryPointAuth' |
Oops, something went wrong.