@1inch/fusion-sdk 2.2.3-rc.1 → 2.2.4-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/connector/ws/websocket-client.connector.js +8 -0
- package/dist/cjs/connector/ws/websocket-client.connector.js.map +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/amount-calculator/amount-calculator.d.ts +21 -0
- package/dist/esm/amount-calculator/amount-calculator.js +1 -1
- package/dist/esm/amount-calculator/auction-calculator/auction-calculator.d.ts +22 -0
- package/dist/esm/amount-calculator/auction-calculator/index.d.ts +1 -0
- package/dist/esm/amount-calculator/auction-calculator/index.js +1 -1
- package/dist/esm/amount-calculator/index.d.ts +3 -0
- package/dist/esm/amount-calculator/index.js +2 -2
- package/dist/esm/api/fusion-api.d.ts +19 -0
- package/dist/esm/api/fusion-api.js +5 -5
- package/dist/esm/api/index.d.ts +8 -0
- package/dist/esm/api/index.js +8 -8
- package/dist/esm/api/orders/index.d.ts +3 -0
- package/dist/esm/api/orders/index.js +3 -3
- package/dist/esm/api/orders/orders.api.d.ts +14 -0
- package/dist/esm/api/orders/orders.api.js +2 -2
- package/dist/esm/api/orders/orders.request.d.ts +24 -0
- package/dist/esm/api/orders/orders.request.js +2 -2
- package/dist/esm/api/orders/types.d.ts +79 -0
- package/dist/esm/api/ordersVersion.d.ts +5 -0
- package/dist/esm/api/pagination.d.ts +10 -0
- package/dist/esm/api/params.d.ts +2 -0
- package/dist/esm/api/params.js +1 -1
- package/dist/esm/api/quoter/index.d.ts +6 -0
- package/dist/esm/api/quoter/index.js +6 -6
- package/dist/esm/api/quoter/preset.d.ts +23 -0
- package/dist/esm/api/quoter/preset.js +1 -1
- package/dist/esm/api/quoter/quote/index.d.ts +3 -0
- package/dist/esm/api/quoter/quote/index.js +3 -3
- package/dist/esm/api/quoter/quote/order-params.d.ts +13 -0
- package/dist/esm/api/quoter/quote/order-params.js +1 -1
- package/dist/esm/api/quoter/quote/quote.d.ts +29 -0
- package/dist/esm/api/quoter/quote/quote.js +5 -5
- package/dist/esm/api/quoter/quote/types.d.ts +25 -0
- package/dist/esm/api/quoter/quoter-custom-preset.request.d.ts +10 -0
- package/dist/esm/api/quoter/quoter-custom-preset.request.js +1 -1
- package/dist/esm/api/quoter/quoter.api.d.ts +14 -0
- package/dist/esm/api/quoter/quoter.api.js +3 -3
- package/dist/esm/api/quoter/quoter.request.d.ts +17 -0
- package/dist/esm/api/quoter/quoter.request.js +1 -1
- package/dist/esm/api/quoter/types.d.ts +91 -0
- package/dist/esm/api/relayer/index.d.ts +3 -0
- package/dist/esm/api/relayer/index.js +3 -3
- package/dist/esm/api/relayer/relayer.api.d.ts +12 -0
- package/dist/esm/api/relayer/relayer.api.js +1 -1
- package/dist/esm/api/relayer/relayer.request.d.ts +11 -0
- package/dist/esm/api/relayer/types.d.ts +13 -0
- package/dist/esm/api/types.d.ts +18 -0
- package/dist/esm/api-ext.d.ts +1 -0
- package/dist/esm/api-ext.js +1 -1
- package/dist/esm/connector/blockchain/blockchain-provider.connector.d.ts +5 -0
- package/dist/esm/connector/blockchain/index.d.ts +3 -0
- package/dist/esm/connector/blockchain/index.js +3 -3
- package/dist/esm/connector/blockchain/private-key-provider.connector.d.ts +11 -0
- package/dist/esm/connector/blockchain/private-key-provider.connector.js +1 -1
- package/dist/esm/connector/blockchain/web3-provider-connector.d.ts +19 -0
- package/dist/esm/connector/http/axios-provider.connector.d.ts +7 -0
- package/dist/esm/connector/http/axios-provider.connector.js +1 -1
- package/dist/esm/connector/http/http-provider.connector.d.ts +4 -0
- package/dist/esm/connector/http/index.d.ts +2 -0
- package/dist/esm/connector/http/index.js +2 -2
- package/dist/esm/connector/index.d.ts +3 -0
- package/dist/esm/connector/index.js +3 -3
- package/dist/esm/connector/ws/index.d.ts +3 -0
- package/dist/esm/connector/ws/index.js +3 -3
- package/dist/esm/connector/ws/types.d.ts +10 -0
- package/dist/esm/connector/ws/websocket-client.connector.d.ts +22 -0
- package/dist/esm/connector/ws/websocket-client.connector.js +8 -0
- package/dist/esm/connector/ws/websocket-client.connector.js.map +1 -1
- package/dist/esm/connector/ws/websocket-provider.connector.d.ts +14 -0
- package/dist/esm/constants.d.ts +22 -0
- package/dist/esm/errors.d.ts +3 -0
- package/dist/esm/fusion-order/auction-details/auction-details.d.ts +25 -0
- package/dist/esm/fusion-order/auction-details/auction-details.js +3 -3
- package/dist/esm/fusion-order/auction-details/index.d.ts +2 -0
- package/dist/esm/fusion-order/auction-details/index.js +2 -2
- package/dist/esm/fusion-order/auction-details/types.d.ts +8 -0
- package/dist/esm/fusion-order/constants.d.ts +14 -0
- package/dist/esm/fusion-order/constants.js +1 -1
- package/dist/esm/fusion-order/fusion-extension.d.ts +26 -0
- package/dist/esm/fusion-order/fusion-extension.js +3 -3
- package/dist/esm/fusion-order/fusion-order.d.ts +70 -0
- package/dist/esm/fusion-order/fusion-order.js +7 -7
- package/dist/esm/fusion-order/index.d.ts +6 -0
- package/dist/esm/fusion-order/index.js +5 -5
- package/dist/esm/fusion-order/source-track.d.ts +1 -0
- package/dist/esm/fusion-order/source-track.js +2 -2
- package/dist/esm/fusion-order/whitelist/index.d.ts +1 -0
- package/dist/esm/fusion-order/whitelist/index.js +1 -1
- package/dist/esm/fusion-order/whitelist/types.d.ts +4 -0
- package/dist/esm/fusion-order/whitelist/whitelist.d.ts +26 -0
- package/dist/esm/fusion-order/whitelist/whitelist.js +3 -3
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +12 -12
- package/dist/esm/sdk/encoders/cancel-order.encoder.d.ts +2 -0
- package/dist/esm/sdk/encoders/cancel-order.encoder.js +1 -1
- package/dist/esm/sdk/encoders/index.d.ts +1 -0
- package/dist/esm/sdk/encoders/index.js +1 -1
- package/dist/esm/sdk/index.d.ts +4 -0
- package/dist/esm/sdk/index.js +4 -4
- package/dist/esm/sdk/sdk.d.ts +20 -0
- package/dist/esm/sdk/sdk.js +3 -3
- package/dist/esm/sdk/types.d.ts +55 -0
- package/dist/esm/sdk/utils.d.ts +2 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/amounts.d.ts +2 -0
- package/dist/esm/utils/time.d.ts +1 -0
- package/dist/esm/utils/types.d.ts +3 -0
- package/dist/esm/utils.d.ts +2 -0
- package/dist/esm/validations.d.ts +4 -0
- package/dist/esm/ws-api/active-websocket-orders-api.d.ts +13 -0
- package/dist/esm/ws-api/active-websocket-orders-api.js +1 -1
- package/dist/esm/ws-api/constants.d.ts +2 -0
- package/dist/esm/ws-api/index.d.ts +5 -0
- package/dist/esm/ws-api/index.js +5 -5
- package/dist/esm/ws-api/rpc-websocket-api.d.ts +13 -0
- package/dist/esm/ws-api/rpc-websocket-api.js +1 -1
- package/dist/esm/ws-api/types.d.ts +62 -0
- package/dist/esm/ws-api/url.d.ts +1 -0
- package/dist/esm/ws-api/ws-api.d.ts +21 -0
- package/dist/esm/ws-api/ws-api.js +4 -4
- package/dist/types/src/connector/ws/types.d.ts +1 -0
- package/dist/types/src/connector/ws/websocket-client.connector.d.ts +3 -1
- package/dist/types/src/connector/ws/websocket-provider.connector.d.ts +3 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { IntegratorFeeParams } from './quote';
|
|
2
|
+
import { NetworkEnum } from '../../constants';
|
|
3
|
+
export type QuoterRequestParams = {
|
|
4
|
+
fromTokenAddress: string;
|
|
5
|
+
toTokenAddress: string;
|
|
6
|
+
amount: string;
|
|
7
|
+
walletAddress: string;
|
|
8
|
+
enableEstimate?: boolean;
|
|
9
|
+
permit?: string;
|
|
10
|
+
integratorFee?: IntegratorFeeParams;
|
|
11
|
+
source?: string;
|
|
12
|
+
isPermit2?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type QuoterRequestParamsRaw = Omit<QuoterRequestParams, 'integratorFee'> & {
|
|
15
|
+
fee?: number;
|
|
16
|
+
};
|
|
17
|
+
export type QuoterCustomPresetRequestParams = {
|
|
18
|
+
customPreset: CustomPreset;
|
|
19
|
+
};
|
|
20
|
+
export type QuoterApiConfig = {
|
|
21
|
+
network: NetworkEnum;
|
|
22
|
+
url: string;
|
|
23
|
+
authKey?: string;
|
|
24
|
+
};
|
|
25
|
+
export type QuoterResponse = {
|
|
26
|
+
fromTokenAmount: string;
|
|
27
|
+
presets: QuoterPresets;
|
|
28
|
+
recommended_preset: PresetEnum;
|
|
29
|
+
toTokenAmount: string;
|
|
30
|
+
prices: Cost;
|
|
31
|
+
volume: Cost;
|
|
32
|
+
settlementAddress: string;
|
|
33
|
+
whitelist: string[];
|
|
34
|
+
quoteId: string | null;
|
|
35
|
+
autoK: number;
|
|
36
|
+
fee: ResolverFeePresetRaw;
|
|
37
|
+
};
|
|
38
|
+
export type QuoterPresets = {
|
|
39
|
+
fast: PresetData;
|
|
40
|
+
medium: PresetData;
|
|
41
|
+
slow: PresetData;
|
|
42
|
+
custom?: PresetData;
|
|
43
|
+
};
|
|
44
|
+
export type PresetData = {
|
|
45
|
+
auctionDuration: number;
|
|
46
|
+
startAuctionIn: number;
|
|
47
|
+
bankFee: string;
|
|
48
|
+
initialRateBump: number;
|
|
49
|
+
auctionStartAmount: string;
|
|
50
|
+
auctionEndAmount: string;
|
|
51
|
+
tokenFee: string;
|
|
52
|
+
points: AuctionPoint[];
|
|
53
|
+
allowPartialFills: boolean;
|
|
54
|
+
allowMultipleFills: boolean;
|
|
55
|
+
gasCost: {
|
|
56
|
+
gasBumpEstimate: number;
|
|
57
|
+
gasPriceEstimate: string;
|
|
58
|
+
};
|
|
59
|
+
exclusiveResolver: string | null;
|
|
60
|
+
};
|
|
61
|
+
export type AuctionPoint = {
|
|
62
|
+
delay: number;
|
|
63
|
+
coefficient: number;
|
|
64
|
+
};
|
|
65
|
+
export type Cost = {
|
|
66
|
+
usd: {
|
|
67
|
+
fromToken: string;
|
|
68
|
+
toToken: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export declare enum PresetEnum {
|
|
72
|
+
fast = "fast",
|
|
73
|
+
medium = "medium",
|
|
74
|
+
slow = "slow",
|
|
75
|
+
custom = "custom"
|
|
76
|
+
}
|
|
77
|
+
export type CustomPreset = {
|
|
78
|
+
auctionDuration: number;
|
|
79
|
+
auctionStartAmount: string;
|
|
80
|
+
auctionEndAmount: string;
|
|
81
|
+
points?: CustomPresetPoint[];
|
|
82
|
+
};
|
|
83
|
+
export type CustomPresetPoint = {
|
|
84
|
+
toTokenAmount: string;
|
|
85
|
+
delay: number;
|
|
86
|
+
};
|
|
87
|
+
export type ResolverFeePresetRaw = {
|
|
88
|
+
receiver: string;
|
|
89
|
+
bps: number;
|
|
90
|
+
whitelistDiscountPercent: number;
|
|
91
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './relayer.request';
|
|
2
|
-
export * from './relayer.api';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './relayer.request.js';
|
|
2
|
+
export * from './relayer.api.js';
|
|
3
|
+
export * from './types.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RelayerRequest } from './relayer.request';
|
|
2
|
+
import { RelayerApiConfig } from './types';
|
|
3
|
+
import { HttpProviderConnector } from '../../connector';
|
|
4
|
+
export declare class RelayerApi {
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly httpClient;
|
|
7
|
+
private static Version;
|
|
8
|
+
constructor(config: RelayerApiConfig, httpClient: HttpProviderConnector);
|
|
9
|
+
static new(config: RelayerApiConfig, httpClient?: HttpProviderConnector): RelayerApi;
|
|
10
|
+
submit(params: RelayerRequest): Promise<void>;
|
|
11
|
+
submitBatch(params: RelayerRequest[]): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LimitOrderV4Struct } from '@1inch/limit-order-sdk';
|
|
2
|
+
import { RelayerRequestParams } from './types';
|
|
3
|
+
export declare class RelayerRequest {
|
|
4
|
+
readonly order: LimitOrderV4Struct;
|
|
5
|
+
readonly signature: string;
|
|
6
|
+
readonly quoteId: string;
|
|
7
|
+
readonly extension: string;
|
|
8
|
+
constructor(params: RelayerRequestParams);
|
|
9
|
+
static new(params: RelayerRequestParams): RelayerRequest;
|
|
10
|
+
build(): RelayerRequestParams;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LimitOrderV4Struct } from '@1inch/limit-order-sdk';
|
|
2
|
+
import { NetworkEnum } from '../../constants';
|
|
3
|
+
export type RelayerRequestParams = {
|
|
4
|
+
order: LimitOrderV4Struct;
|
|
5
|
+
signature: string;
|
|
6
|
+
quoteId: string;
|
|
7
|
+
extension: string;
|
|
8
|
+
};
|
|
9
|
+
export type RelayerApiConfig = {
|
|
10
|
+
network: NetworkEnum;
|
|
11
|
+
url: string;
|
|
12
|
+
authKey?: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NetworkEnum } from '../constants';
|
|
2
|
+
import { HttpProviderConnector } from '../connector';
|
|
3
|
+
export type FusionApiConfig = {
|
|
4
|
+
url: string;
|
|
5
|
+
network: NetworkEnum;
|
|
6
|
+
authKey?: string;
|
|
7
|
+
httpProvider?: HttpProviderConnector;
|
|
8
|
+
};
|
|
9
|
+
export type PaginationMeta = {
|
|
10
|
+
totalItems: number;
|
|
11
|
+
itemsPerPage: number;
|
|
12
|
+
totalPages: number;
|
|
13
|
+
currentPage: number;
|
|
14
|
+
};
|
|
15
|
+
export type PaginationOutput<T extends Record<string, any> = Record<string, any>> = {
|
|
16
|
+
meta: PaginationMeta;
|
|
17
|
+
items: T[];
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api/index';
|
package/dist/esm/api-ext.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './api/index';
|
|
1
|
+
export * from './api/index.js';
|
|
2
2
|
//# sourceMappingURL=api-ext.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './blockchain-provider.connector';
|
|
2
|
-
export * from './private-key-provider.connector';
|
|
3
|
-
export * from './web3-provider-connector';
|
|
1
|
+
export * from './blockchain-provider.connector.js';
|
|
2
|
+
export * from './private-key-provider.connector.js';
|
|
3
|
+
export * from './web3-provider-connector.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EIP712TypedData } from '@1inch/limit-order-sdk';
|
|
2
|
+
import { BlockchainProviderConnector } from './blockchain-provider.connector';
|
|
3
|
+
import { Web3Like } from './web3-provider-connector';
|
|
4
|
+
export declare class PrivateKeyProviderConnector implements BlockchainProviderConnector {
|
|
5
|
+
readonly privateKey: string;
|
|
6
|
+
protected readonly web3Provider: Web3Like;
|
|
7
|
+
private readonly wallet;
|
|
8
|
+
constructor(privateKey: string, web3Provider: Web3Like);
|
|
9
|
+
signTypedData(_walletAddress: string, typedData: EIP712TypedData): Promise<string>;
|
|
10
|
+
ethCall(contractAddress: string, callData: string): Promise<string>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EIP712TypedData } from '@1inch/limit-order-sdk';
|
|
2
|
+
import { BlockchainProviderConnector } from './blockchain-provider.connector';
|
|
3
|
+
interface TransactionConfig {
|
|
4
|
+
data?: string;
|
|
5
|
+
to?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Web3Like {
|
|
8
|
+
eth: {
|
|
9
|
+
call(transactionConfig: TransactionConfig): Promise<string>;
|
|
10
|
+
};
|
|
11
|
+
extend(extension: unknown): any;
|
|
12
|
+
}
|
|
13
|
+
export declare class Web3ProviderConnector implements BlockchainProviderConnector {
|
|
14
|
+
protected readonly web3Provider: Web3Like;
|
|
15
|
+
constructor(web3Provider: Web3Like);
|
|
16
|
+
signTypedData(walletAddress: string, typedData: EIP712TypedData): Promise<string>;
|
|
17
|
+
ethCall(contractAddress: string, callData: string): Promise<string>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpProviderConnector } from './http-provider.connector';
|
|
2
|
+
export declare class AxiosProviderConnector implements HttpProviderConnector {
|
|
3
|
+
private readonly authKey?;
|
|
4
|
+
constructor(authKey?: string | undefined);
|
|
5
|
+
get<T>(url: string): Promise<T>;
|
|
6
|
+
post<T>(url: string, data: unknown): Promise<T>;
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './http-provider.connector';
|
|
2
|
-
export * from './axios-provider.connector';
|
|
1
|
+
export * from './http-provider.connector.js';
|
|
2
|
+
export * from './axios-provider.connector.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './blockchain/index';
|
|
2
|
-
export * from './http/index';
|
|
3
|
-
export * from './ws';
|
|
1
|
+
export * from './blockchain/index.js';
|
|
2
|
+
export * from './http/index.js';
|
|
3
|
+
export * from './ws/index.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './websocket-client.connector';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './websocket-provider.connector';
|
|
1
|
+
export * from './websocket-client.connector.js';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './websocket-provider.connector.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WebSocket } from 'ws';
|
|
2
|
+
export type AnyFunction = (...args: any[]) => any;
|
|
3
|
+
export type AnyFunctionWithThis = (this: WebSocket, ...args: any[]) => void;
|
|
4
|
+
export type WsApiConfig = {
|
|
5
|
+
url: string;
|
|
6
|
+
lazyInit?: boolean;
|
|
7
|
+
authKey?: string;
|
|
8
|
+
};
|
|
9
|
+
export type OnMessageCb = (data: any) => void;
|
|
10
|
+
export type OnMessageInputVoidCb = () => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import WebSocket from 'ws';
|
|
2
|
+
import { AnyFunction, AnyFunctionWithThis, OnMessageCb, OnMessageInputVoidCb, WsApiConfig } from './types';
|
|
3
|
+
import { WsProviderConnector } from './websocket-provider.connector';
|
|
4
|
+
export declare class WebsocketClient implements WsProviderConnector {
|
|
5
|
+
readonly ws: WebSocket;
|
|
6
|
+
private readonly url;
|
|
7
|
+
private readonly initialized;
|
|
8
|
+
private readonly authKey?;
|
|
9
|
+
constructor(config: WsApiConfig);
|
|
10
|
+
init(): void;
|
|
11
|
+
on(event: string, cb: AnyFunctionWithThis): void;
|
|
12
|
+
off(event: string, cb: AnyFunctionWithThis): void;
|
|
13
|
+
onOpen(cb: AnyFunctionWithThis): void;
|
|
14
|
+
send<T>(message: T): void;
|
|
15
|
+
onMessage(cb: OnMessageCb): void;
|
|
16
|
+
ping(): void;
|
|
17
|
+
onPong(cb: OnMessageInputVoidCb): void;
|
|
18
|
+
onClose(cb: AnyFunction): void;
|
|
19
|
+
onError(cb: AnyFunction): void;
|
|
20
|
+
close(): void;
|
|
21
|
+
private checkInitialized;
|
|
22
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket-client.connector.js","sourceRoot":"","sources":["../../../../src/connector/ws/websocket-client.connector.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,IAAI,CAAA;AAS1B,MAAM,OAAO,eAAe;IASxB,YAAY,MAAmB;QAC3B,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAA;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAA;QAE7B,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAA;QAEzC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;YACvB,IAAI,CAAC,EAAE,GAAG,IAAI,SAAS,CACnB,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,OAAO;gBACR,CAAC,CAAC;oBACI,OAAO,EAAE;wBACL,aAAa,EAAE,UAAU,IAAI,CAAC,OAAO,EAAE;qBAC1C;iBACJ;gBACH,CAAC,CAAC,SAAS,CAClB,CAAA;YAED,OAAM;QACV,CAAC;QAED,IAAI,CAAC,WAAW,GAAG,KAAK,CAAA;IAC5B,CAAC;IAED,IAAI;QACA,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAA;QACvD,CAAC;QAGD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;QAEvB,IAAI,CAAC,EAAE,GAAG,IAAI,SAAS,CACnB,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,OAAO;YACR,CAAC,CAAC;gBACI,OAAO,EAAE;oBACL,aAAa,EAAE,UAAU,IAAI,CAAC,OAAO,EAAE;iBAC1C;aACJ;YACH,CAAC,CAAC,SAAS,CAClB,CAAA;IACL,CAAC;IAED,EAAE,CAAC,KAAa,EAAE,EAAuB;QACrC,IAAI,CAAC,gBAAgB,EAAE,CAAA;QACvB,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;IACzB,CAAC;IAED,GAAG,CAAC,KAAa,EAAE,EAAuB;QACtC,IAAI,CAAC,gBAAgB,EAAE,CAAA;QACvB,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;IAC1B,CAAC;IAED,MAAM,CAAC,EAAuB;QAC1B,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IACvB,CAAC;IAED,IAAI,CAAI,OAAU;QACd,IAAI,CAAC,gBAAgB,EAAE,CAAA;QACvB,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;QAC1C,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC5B,CAAC;IAED,SAAS,CAAC,EAAe;QACrB,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,IAAS,EAAE,EAAE;YAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YAEnC,EAAE,CAAC,UAAU,CAAC,CAAA;QAClB,CAAC,CAAC,CAAA;IACN,CAAC;IAED,OAAO,CAAC,EAAe;QACnB,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IACxB,CAAC;IAED,OAAO,CAAC,EAAe;QACnB,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IACxB,CAAC;IAED,KAAK;QACD,IAAI,CAAC,gBAAgB,EAAE,CAAA;QACvB,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAA;IACnB,CAAC;IAEO,gBAAgB;QACpB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACpB,cAAc,EAAE,CAAA;QACpB,CAAC;IACL,CAAC;CACJ;AAED,SAAS,cAAc;IACnB,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;AACvE,CAAC"}
|
|
1
|
+
{"version":3,"file":"websocket-client.connector.js","sourceRoot":"","sources":["../../../../src/connector/ws/websocket-client.connector.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnyFunctionWithThis, AnyFunction, OnMessageCb, OnMessageInputVoidCb } from './types';
|
|
2
|
+
export interface WsProviderConnector {
|
|
3
|
+
init(): void;
|
|
4
|
+
on(event: string, cb: AnyFunctionWithThis): void;
|
|
5
|
+
off(event: string, cb: AnyFunctionWithThis): void;
|
|
6
|
+
onOpen(cb: AnyFunctionWithThis): void;
|
|
7
|
+
send<T>(message: T): void;
|
|
8
|
+
close(): void;
|
|
9
|
+
ping(): void;
|
|
10
|
+
onPong(cb: OnMessageInputVoidCb): void;
|
|
11
|
+
onMessage(cb: OnMessageCb): void;
|
|
12
|
+
onClose(cb: AnyFunction): void;
|
|
13
|
+
onError(cb: AnyFunction): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const ZX = "0x";
|
|
2
|
+
export declare enum NetworkEnum {
|
|
3
|
+
ETHEREUM = 1,
|
|
4
|
+
POLYGON = 137,
|
|
5
|
+
ZKSYNC = 324,
|
|
6
|
+
BINANCE = 56,
|
|
7
|
+
ARBITRUM = 42161,
|
|
8
|
+
AVALANCHE = 43114,
|
|
9
|
+
OPTIMISM = 10,
|
|
10
|
+
FANTOM = 250,
|
|
11
|
+
GNOSIS = 100,
|
|
12
|
+
COINBASE = 8453,
|
|
13
|
+
LINEA = 59144
|
|
14
|
+
}
|
|
15
|
+
export declare const ONE_INCH_LIMIT_ORDER_V4 = "0x111111125421ca6dc452d289314280a0f8842a65";
|
|
16
|
+
export declare const UINT_160_MAX: bigint;
|
|
17
|
+
export declare const UINT_16_MAX: bigint;
|
|
18
|
+
export declare const UINT_80_MAX: bigint;
|
|
19
|
+
export declare const UINT_40_MAX: bigint;
|
|
20
|
+
export declare const UINT_32_MAX: bigint;
|
|
21
|
+
export declare const UINT_24_MAX: bigint;
|
|
22
|
+
export declare const UINT_256_MAX: bigint;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BytesBuilder, BytesIter } from '@1inch/byte-utils';
|
|
2
|
+
import { Extension } from '@1inch/limit-order-sdk';
|
|
3
|
+
import { AuctionGasCostInfo, AuctionPoint } from './types';
|
|
4
|
+
export declare class AuctionDetails {
|
|
5
|
+
readonly startTime: bigint;
|
|
6
|
+
readonly duration: bigint;
|
|
7
|
+
readonly initialRateBump: bigint;
|
|
8
|
+
readonly points: AuctionPoint[];
|
|
9
|
+
readonly gasCost: {
|
|
10
|
+
gasBumpEstimate: bigint;
|
|
11
|
+
gasPriceEstimate: bigint;
|
|
12
|
+
};
|
|
13
|
+
constructor(auction: {
|
|
14
|
+
startTime: bigint;
|
|
15
|
+
initialRateBump: number;
|
|
16
|
+
duration: bigint;
|
|
17
|
+
points: AuctionPoint[];
|
|
18
|
+
gasCost?: AuctionGasCostInfo;
|
|
19
|
+
});
|
|
20
|
+
static decodeFrom<T extends bigint | string>(iter: BytesIter<T>): AuctionDetails;
|
|
21
|
+
static decode(data: string): AuctionDetails;
|
|
22
|
+
static fromExtension(extension: Extension): AuctionDetails;
|
|
23
|
+
encode(): string;
|
|
24
|
+
encodeInto(builder?: BytesBuilder): BytesBuilder;
|
|
25
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ethers } from 'ethers';
|
|
2
2
|
import { BytesBuilder, BytesIter } from '@1inch/byte-utils';
|
|
3
3
|
import assert from 'assert';
|
|
4
|
-
import { isHexBytes } from '../../validations';
|
|
5
|
-
import { add0x, trim0x } from '../../utils';
|
|
6
|
-
import { UINT_24_MAX, UINT_32_MAX } from '../../constants';
|
|
4
|
+
import { isHexBytes } from '../../validations.js';
|
|
5
|
+
import { add0x, trim0x } from '../../utils.js';
|
|
6
|
+
import { UINT_24_MAX, UINT_32_MAX } from '../../constants.js';
|
|
7
7
|
export class AuctionDetails {
|
|
8
8
|
constructor(auction) {
|
|
9
9
|
this.startTime = BigInt(auction.startTime);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './auction-details';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './auction-details.js';
|
|
2
|
+
export * from './types.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Address } from '@1inch/limit-order-sdk';
|
|
2
|
+
export declare const CHAIN_TO_WRAPPER: {
|
|
3
|
+
1: Address;
|
|
4
|
+
56: Address;
|
|
5
|
+
137: Address;
|
|
6
|
+
42161: Address;
|
|
7
|
+
43114: Address;
|
|
8
|
+
100: Address;
|
|
9
|
+
8453: Address;
|
|
10
|
+
10: Address;
|
|
11
|
+
250: Address;
|
|
12
|
+
324: Address;
|
|
13
|
+
59144: Address;
|
|
14
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address } from '@1inch/limit-order-sdk';
|
|
2
|
-
import { NetworkEnum } from '../constants';
|
|
2
|
+
import { NetworkEnum } from '../constants.js';
|
|
3
3
|
export const CHAIN_TO_WRAPPER = {
|
|
4
4
|
[NetworkEnum.ETHEREUM]: new Address('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'),
|
|
5
5
|
[NetworkEnum.BINANCE]: new Address('0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c'),
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Address, Extension, Interaction, FeeTakerExt } from '@1inch/limit-order-sdk';
|
|
2
|
+
import { AuctionDetails } from './auction-details';
|
|
3
|
+
import { Whitelist } from './whitelist/whitelist';
|
|
4
|
+
export declare class FusionExtension {
|
|
5
|
+
readonly address: Address;
|
|
6
|
+
readonly auctionDetails: AuctionDetails;
|
|
7
|
+
readonly whitelist: Whitelist;
|
|
8
|
+
readonly extra?: {
|
|
9
|
+
makerPermit?: Interaction;
|
|
10
|
+
customReceiver?: Address;
|
|
11
|
+
fees?: FeeTakerExt.Fees;
|
|
12
|
+
} | undefined;
|
|
13
|
+
private static CUSTOM_RECEIVER_FLAG_BIT;
|
|
14
|
+
constructor(address: Address, auctionDetails: AuctionDetails, whitelist: Whitelist, extra?: {
|
|
15
|
+
makerPermit?: Interaction;
|
|
16
|
+
customReceiver?: Address;
|
|
17
|
+
fees?: FeeTakerExt.Fees;
|
|
18
|
+
} | undefined);
|
|
19
|
+
static decode(bytes: string): FusionExtension;
|
|
20
|
+
static fromExtension(extension: Extension): FusionExtension;
|
|
21
|
+
build(): Extension;
|
|
22
|
+
private buildInteractionData;
|
|
23
|
+
private buildAmountGetterData;
|
|
24
|
+
private getFeesForTaker;
|
|
25
|
+
private getTakingAmountWithFee;
|
|
26
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Address, Extension, ExtensionBuilder, Interaction, Bps, mulDiv, Rounding, FeeTakerExt } from '@1inch/limit-order-sdk';
|
|
2
2
|
import { BN, BytesBuilder, BytesIter } from '@1inch/byte-utils';
|
|
3
3
|
import assert from 'assert';
|
|
4
|
-
import { AuctionDetails } from './auction-details';
|
|
5
|
-
import { Whitelist } from './whitelist/whitelist';
|
|
6
|
-
import { add0x } from '../utils';
|
|
4
|
+
import { AuctionDetails } from './auction-details/index.js';
|
|
5
|
+
import { Whitelist } from './whitelist/whitelist.js';
|
|
6
|
+
import { add0x } from '../utils.js';
|
|
7
7
|
export class FusionExtension {
|
|
8
8
|
constructor(address, auctionDetails, whitelist, extra) {
|
|
9
9
|
this.address = address;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Address, EIP712TypedData, Extension, LimitOrderV4Struct, OrderInfoData } from '@1inch/limit-order-sdk';
|
|
2
|
+
import { Fees } from '@1inch/limit-order-sdk/extensions/fee-taker';
|
|
3
|
+
import { FusionExtension } from './fusion-extension';
|
|
4
|
+
import { AuctionDetails } from './auction-details';
|
|
5
|
+
import { Whitelist } from './whitelist/whitelist';
|
|
6
|
+
import { AuctionCalculator } from '../amount-calculator/auction-calculator';
|
|
7
|
+
import { AmountCalculator } from '../amount-calculator/amount-calculator';
|
|
8
|
+
export declare class FusionOrder {
|
|
9
|
+
readonly settlementExtensionContract: Address;
|
|
10
|
+
private static defaultExtra;
|
|
11
|
+
readonly fusionExtension: FusionExtension;
|
|
12
|
+
private inner;
|
|
13
|
+
protected constructor(settlementExtensionContract: Address, orderInfo: OrderInfoData, auctionDetails: AuctionDetails, whitelist: Whitelist, extra?: {
|
|
14
|
+
unwrapWETH?: boolean;
|
|
15
|
+
nonce?: bigint;
|
|
16
|
+
permit?: string;
|
|
17
|
+
allowPartialFills?: boolean;
|
|
18
|
+
allowMultipleFills?: boolean;
|
|
19
|
+
orderExpirationDelay?: bigint;
|
|
20
|
+
enablePermit2?: boolean;
|
|
21
|
+
source?: string;
|
|
22
|
+
fees?: Fees;
|
|
23
|
+
}, extension?: FusionExtension);
|
|
24
|
+
get extension(): Extension;
|
|
25
|
+
get maker(): Address;
|
|
26
|
+
get takerAsset(): Address;
|
|
27
|
+
get makerAsset(): Address;
|
|
28
|
+
get takingAmount(): bigint;
|
|
29
|
+
get makingAmount(): bigint;
|
|
30
|
+
get realReceiver(): Address;
|
|
31
|
+
get receiver(): Address;
|
|
32
|
+
get deadline(): bigint;
|
|
33
|
+
get auctionStartTime(): bigint;
|
|
34
|
+
get auctionEndTime(): bigint;
|
|
35
|
+
get isBitInvalidatorMode(): boolean;
|
|
36
|
+
get partialFillAllowed(): boolean;
|
|
37
|
+
get multipleFillsAllowed(): boolean;
|
|
38
|
+
get nonce(): bigint;
|
|
39
|
+
get salt(): bigint;
|
|
40
|
+
static new(settlementExtension: Address, orderInfo: OrderInfoData, details: {
|
|
41
|
+
auction: AuctionDetails;
|
|
42
|
+
whitelist: Whitelist;
|
|
43
|
+
}, extra?: {
|
|
44
|
+
unwrapWETH?: boolean;
|
|
45
|
+
nonce?: bigint;
|
|
46
|
+
permit?: string;
|
|
47
|
+
allowPartialFills?: boolean;
|
|
48
|
+
allowMultipleFills?: boolean;
|
|
49
|
+
orderExpirationDelay?: bigint;
|
|
50
|
+
enablePermit2?: boolean;
|
|
51
|
+
source?: string;
|
|
52
|
+
fees?: Fees;
|
|
53
|
+
}): FusionOrder;
|
|
54
|
+
static fromDataAndExtension(order: LimitOrderV4Struct, extension: Extension): FusionOrder;
|
|
55
|
+
build(): LimitOrderV4Struct;
|
|
56
|
+
getOrderHash(chainId: number): string;
|
|
57
|
+
getTypedData(chainId: number): EIP712TypedData;
|
|
58
|
+
getCalculator(): AuctionCalculator;
|
|
59
|
+
calcTakingAmount(taker: Address, makingAmount: bigint, time: bigint, blockBaseFee?: bigint): bigint;
|
|
60
|
+
getUserReceiveAmount(taker: Address, makingAmount: bigint, time: bigint, blockBaseFee?: bigint): bigint;
|
|
61
|
+
getResolverFee(taker: Address, time: bigint, blockBaseFee?: bigint, makingAmount?: bigint): bigint;
|
|
62
|
+
getIntegratorFee(taker: Address, time: bigint, blockBaseFee?: bigint, makingAmount?: bigint): bigint;
|
|
63
|
+
getProtocolShareOfIntegratorFee(taker: Address, time: bigint, blockBaseFee?: bigint, makingAmount?: bigint): bigint;
|
|
64
|
+
getProtocolFee(taker: Address, time: bigint, blockBaseFee?: bigint, makingAmount?: bigint): bigint;
|
|
65
|
+
canExecuteAt(executor: Address, executionTime: bigint): boolean;
|
|
66
|
+
isExpiredAt(time: bigint): boolean;
|
|
67
|
+
isExclusiveResolver(wallet: Address): boolean;
|
|
68
|
+
isExclusivityPeriod(time?: bigint): boolean;
|
|
69
|
+
getAmountCalculator(): AmountCalculator;
|
|
70
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Address, Interaction, LimitOrder, MakerTraits } from '@1inch/limit-order-sdk';
|
|
2
2
|
import assert from 'assert';
|
|
3
|
-
import { FusionExtension } from './fusion-extension';
|
|
4
|
-
import { injectTrackCode } from './source-track';
|
|
5
|
-
import { AuctionCalculator } from '../amount-calculator/auction-calculator';
|
|
6
|
-
import { ZX } from '../constants';
|
|
7
|
-
import { calcTakingAmount } from '../utils/amounts';
|
|
8
|
-
import { now } from '../utils/time';
|
|
9
|
-
import { AmountCalculator } from '../amount-calculator/amount-calculator';
|
|
3
|
+
import { FusionExtension } from './fusion-extension.js';
|
|
4
|
+
import { injectTrackCode } from './source-track.js';
|
|
5
|
+
import { AuctionCalculator } from '../amount-calculator/auction-calculator/index.js';
|
|
6
|
+
import { ZX } from '../constants.js';
|
|
7
|
+
import { calcTakingAmount } from '../utils/amounts.js';
|
|
8
|
+
import { now } from '../utils/time.js';
|
|
9
|
+
import { AmountCalculator } from '../amount-calculator/amount-calculator.js';
|
|
10
10
|
export class FusionOrder {
|
|
11
11
|
constructor(settlementExtensionContract, orderInfo, auctionDetails, whitelist, extra = FusionOrder.defaultExtra, extension = new FusionExtension(settlementExtensionContract, auctionDetails, whitelist, {
|
|
12
12
|
makerPermit: extra.permit
|