-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
28 lines (20 loc) · 963 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import {
AuthResponse,
BaseRequest,
BaseResponse,
ENV, GetSupportEntryEntryPointResponse, GetSupportStrategyResponse,
HealthResponse,
Method, Network,
TryPayUserOpRequestV1,
TryPayUserOpResponse
} from "./src/common/type";
declare class EthPaymasterClient {
constructor(baseURL: string, fetcher: typeof fetch, env: ENV);
static production(baseUrl?: string, fetcher: typeof fetch = fetch): EthPaymasterClient;
static development(baseUrl?: string, fetcher: typeof fetch = fetch): EthPaymasterClient;
health(): Promise<HealthResponse>;
auth(apiKey: string): Promise<AuthResponse>;
tryPayUserOperationV1(accessToken: string, request: TryPayUserOpRequestV1): Promise<TryPayUserOpResponse>;
getSupportEntryPointV1(network: Network, accessToken: string): Promise<GetSupportEntryEntryPointResponse>;
getSupportStrategyV1(network: Network, accessToken: string): Promise<GetSupportStrategyResponse>;
}