@lifi/types 10.0.0 → 11.0.0-beta.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/api.d.ts +21 -1
- package/dist/cjs/api.d.ts +21 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
|
-
import { TransactionRequest } from '@ethersproject/providers';
|
|
2
1
|
import { BridgeDefinition, Chain, ChainId, ChainKey, ChainType, ExchangeDefinition, LifiStep, Token } from '.';
|
|
3
2
|
import { ToolError } from './apiErrors';
|
|
3
|
+
export type BigIntish = string;
|
|
4
|
+
export type TransactionRequest = {
|
|
5
|
+
to?: string;
|
|
6
|
+
from?: string;
|
|
7
|
+
nonce?: BigIntish;
|
|
8
|
+
gasLimit?: BigIntish;
|
|
9
|
+
gasPrice?: BigIntish;
|
|
10
|
+
data?: string;
|
|
11
|
+
value?: BigIntish;
|
|
12
|
+
chainId?: number;
|
|
13
|
+
type?: number;
|
|
14
|
+
accessList?: {
|
|
15
|
+
address: string;
|
|
16
|
+
storageKeys: string[];
|
|
17
|
+
}[];
|
|
18
|
+
maxPriorityFeePerGas?: BigIntish;
|
|
19
|
+
maxFeePerGas?: BigIntish;
|
|
20
|
+
customData?: Record<string, any>;
|
|
21
|
+
ccipReadEnabled?: boolean;
|
|
22
|
+
};
|
|
4
23
|
export declare const Orders: readonly ["RECOMMENDED", "FASTEST", "CHEAPEST", "SAFEST"];
|
|
5
24
|
export type Order = (typeof Orders)[number];
|
|
6
25
|
export interface RoutesRequest {
|
|
@@ -227,6 +246,7 @@ export interface ExtendedTransactionInfo extends BaseTransactionInfo {
|
|
|
227
246
|
gasAmount: string;
|
|
228
247
|
gasAmountUSD: string;
|
|
229
248
|
timestamp?: number;
|
|
249
|
+
value?: string;
|
|
230
250
|
}
|
|
231
251
|
export interface PendingReceivingInfo {
|
|
232
252
|
chainId: ChainId;
|
package/dist/cjs/api.d.ts
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
|
-
import { TransactionRequest } from '@ethersproject/providers';
|
|
2
1
|
import { BridgeDefinition, Chain, ChainId, ChainKey, ChainType, ExchangeDefinition, LifiStep, Token } from '.';
|
|
3
2
|
import { ToolError } from './apiErrors';
|
|
3
|
+
export type BigIntish = string;
|
|
4
|
+
export type TransactionRequest = {
|
|
5
|
+
to?: string;
|
|
6
|
+
from?: string;
|
|
7
|
+
nonce?: BigIntish;
|
|
8
|
+
gasLimit?: BigIntish;
|
|
9
|
+
gasPrice?: BigIntish;
|
|
10
|
+
data?: string;
|
|
11
|
+
value?: BigIntish;
|
|
12
|
+
chainId?: number;
|
|
13
|
+
type?: number;
|
|
14
|
+
accessList?: {
|
|
15
|
+
address: string;
|
|
16
|
+
storageKeys: string[];
|
|
17
|
+
}[];
|
|
18
|
+
maxPriorityFeePerGas?: BigIntish;
|
|
19
|
+
maxFeePerGas?: BigIntish;
|
|
20
|
+
customData?: Record<string, any>;
|
|
21
|
+
ccipReadEnabled?: boolean;
|
|
22
|
+
};
|
|
4
23
|
export declare const Orders: readonly ["RECOMMENDED", "FASTEST", "CHEAPEST", "SAFEST"];
|
|
5
24
|
export type Order = (typeof Orders)[number];
|
|
6
25
|
export interface RoutesRequest {
|
|
@@ -227,6 +246,7 @@ export interface ExtendedTransactionInfo extends BaseTransactionInfo {
|
|
|
227
246
|
gasAmount: string;
|
|
228
247
|
gasAmountUSD: string;
|
|
229
248
|
timestamp?: number;
|
|
249
|
+
value?: string;
|
|
230
250
|
}
|
|
231
251
|
export interface PendingReceivingInfo {
|
|
232
252
|
chainId: ChainId;
|