@lifi/types 10.1.0 → 11.0.0-beta.1

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 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?: number;
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 {
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?: number;
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 {
@@ -1,5 +1,4 @@
1
- import { providers } from 'ethers';
2
- import { Substatus } from '.';
1
+ import { Substatus, TransactionRequest } from '.';
3
2
  import { Token } from './base';
4
3
  import { Bridge } from './bridges';
5
4
  import { Exchange, ExchangeAggregator } from './exchanges';
@@ -89,7 +88,7 @@ export interface StepBase {
89
88
  action: Action;
90
89
  estimate?: Estimate;
91
90
  execution?: Execution;
92
- transactionRequest?: providers.TransactionRequest;
91
+ transactionRequest?: TransactionRequest;
93
92
  }
94
93
  export interface DestinationCallInfo {
95
94
  toContractAddress: string;
package/dist/step.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { providers } from 'ethers';
2
- import { Substatus } from '.';
1
+ import { Substatus, TransactionRequest } from '.';
3
2
  import { Token } from './base';
4
3
  import { Bridge } from './bridges';
5
4
  import { Exchange, ExchangeAggregator } from './exchanges';
@@ -89,7 +88,7 @@ export interface StepBase {
89
88
  action: Action;
90
89
  estimate?: Estimate;
91
90
  execution?: Execution;
92
- transactionRequest?: providers.TransactionRequest;
91
+ transactionRequest?: TransactionRequest;
93
92
  }
94
93
  export interface DestinationCallInfo {
95
94
  toContractAddress: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "10.1.0",
3
+ "version": "11.0.0-beta.1",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",