@lifi/sdk 3.0.0-alpha.1 → 3.0.0-alpha.3
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/execution/multisig.d.ts +1 -1
- package/dist/cjs/execution/stepComparison.d.ts +1 -1
- package/dist/cjs/types/internal.types.d.ts +3 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/execution/multisig.d.ts +1 -1
- package/dist/execution/stepComparison.d.ts +1 -1
- package/dist/types/internal.types.d.ts +3 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +22 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ExtendedChain, LifiStep, ProcessType } from '@lifi/types';
|
|
2
2
|
import type { Hash } from 'viem';
|
|
3
|
-
import type { StatusManager } from '
|
|
3
|
+
import type { StatusManager } from './StatusManager';
|
|
4
4
|
export declare const updateMultisigRouteProcess: (internalTxHash: Hash, step: LifiStep, statusManager: StatusManager, processType: ProcessType, fromChain: ExtendedChain) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StatusManager } from '.';
|
|
2
1
|
import type { InternalExecutionSettings, LifiStep } from '../types';
|
|
2
|
+
import type { StatusManager } from './StatusManager';
|
|
3
3
|
/**
|
|
4
4
|
* This method checks whether the new and updated Step meets the required exchange rate conditions.
|
|
5
5
|
* If yes it returns the updated Step.
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { LifiStep, Route, RouteOptions, Token } from '@lifi/types';
|
|
1
|
+
import type { ChainId, LifiStep, Route, RouteOptions, Token } from '@lifi/types';
|
|
2
2
|
import type { Hash, Hex, WalletClient } from 'viem';
|
|
3
|
-
import type { ChainId } from '.';
|
|
4
3
|
import type { StatusManager } from '../execution/StatusManager';
|
|
5
4
|
import type { StepExecutor } from '../execution/StepExecutor';
|
|
6
|
-
export type
|
|
5
|
+
export type TransactionParameters = {
|
|
7
6
|
chainId?: number;
|
|
8
7
|
to?: string;
|
|
9
8
|
from?: string;
|
|
@@ -22,7 +21,7 @@ export interface ExecutionParams {
|
|
|
22
21
|
settings: InternalExecutionSettings;
|
|
23
22
|
}
|
|
24
23
|
export type UpdateRouteHook = (updatedRoute: Route) => void;
|
|
25
|
-
export type TransactionRequestUpdateHook = (updatedTxRequest:
|
|
24
|
+
export type TransactionRequestUpdateHook = (updatedTxRequest: TransactionParameters) => Promise<TransactionParameters>;
|
|
26
25
|
export type Config = {
|
|
27
26
|
apiUrl: string;
|
|
28
27
|
rpcs: Record<ChainId, string[]>;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/sdk";
|
|
2
|
-
export declare const version = "3.0.0-alpha.
|
|
2
|
+
export declare const version = "3.0.0-alpha.3";
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ExtendedChain, LifiStep, ProcessType } from '@lifi/types';
|
|
2
2
|
import type { Hash } from 'viem';
|
|
3
|
-
import type { StatusManager } from '
|
|
3
|
+
import type { StatusManager } from './StatusManager';
|
|
4
4
|
export declare const updateMultisigRouteProcess: (internalTxHash: Hash, step: LifiStep, statusManager: StatusManager, processType: ProcessType, fromChain: ExtendedChain) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StatusManager } from '.';
|
|
2
1
|
import type { InternalExecutionSettings, LifiStep } from '../types';
|
|
2
|
+
import type { StatusManager } from './StatusManager';
|
|
3
3
|
/**
|
|
4
4
|
* This method checks whether the new and updated Step meets the required exchange rate conditions.
|
|
5
5
|
* If yes it returns the updated Step.
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { LifiStep, Route, RouteOptions, Token } from '@lifi/types';
|
|
1
|
+
import type { ChainId, LifiStep, Route, RouteOptions, Token } from '@lifi/types';
|
|
2
2
|
import type { Hash, Hex, WalletClient } from 'viem';
|
|
3
|
-
import type { ChainId } from '.';
|
|
4
3
|
import type { StatusManager } from '../execution/StatusManager';
|
|
5
4
|
import type { StepExecutor } from '../execution/StepExecutor';
|
|
6
|
-
export type
|
|
5
|
+
export type TransactionParameters = {
|
|
7
6
|
chainId?: number;
|
|
8
7
|
to?: string;
|
|
9
8
|
from?: string;
|
|
@@ -22,7 +21,7 @@ export interface ExecutionParams {
|
|
|
22
21
|
settings: InternalExecutionSettings;
|
|
23
22
|
}
|
|
24
23
|
export type UpdateRouteHook = (updatedRoute: Route) => void;
|
|
25
|
-
export type TransactionRequestUpdateHook = (updatedTxRequest:
|
|
24
|
+
export type TransactionRequestUpdateHook = (updatedTxRequest: TransactionParameters) => Promise<TransactionParameters>;
|
|
26
25
|
export type Config = {
|
|
27
26
|
apiUrl: string;
|
|
28
27
|
rpcs: Record<ChainId, string[]>;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/sdk";
|
|
2
|
-
export declare const version = "3.0.0-alpha.
|
|
2
|
+
export declare const version = "3.0.0-alpha.3";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@lifi/sdk';
|
|
2
|
-
export const version = '3.0.0-alpha.
|
|
2
|
+
export const version = '3.0.0-alpha.3';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/sdk",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.3",
|
|
4
4
|
"description": "LI.FI Any-to-Any Cross-Chain-Swap SDK",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -51,22 +51,24 @@
|
|
|
51
51
|
"author": "Max Klenk <max@li.finance>",
|
|
52
52
|
"license": "Apache-2.0",
|
|
53
53
|
"keywords": [
|
|
54
|
-
"sdk",
|
|
55
|
-
"ethereum",
|
|
56
|
-
"dapp",
|
|
57
54
|
"bridge",
|
|
58
|
-
"
|
|
59
|
-
"web3",
|
|
60
|
-
"lifi",
|
|
61
|
-
"ethers",
|
|
55
|
+
"bridge-aggregation",
|
|
62
56
|
"cross-chain",
|
|
63
|
-
"defi",
|
|
64
|
-
"web3-react",
|
|
65
57
|
"cross-chain-applications",
|
|
66
58
|
"cross-chain-bridge",
|
|
67
|
-
"
|
|
59
|
+
"dapp",
|
|
60
|
+
"defi",
|
|
61
|
+
"ethereum",
|
|
62
|
+
"ethers",
|
|
63
|
+
"lifi",
|
|
64
|
+
"metamask",
|
|
68
65
|
"multi-chain",
|
|
69
|
-
"
|
|
66
|
+
"sdk",
|
|
67
|
+
"swap",
|
|
68
|
+
"viem",
|
|
69
|
+
"wagmi",
|
|
70
|
+
"web3",
|
|
71
|
+
"web3-react"
|
|
70
72
|
],
|
|
71
73
|
"homepage": "https://github.com/lifinance/sdk",
|
|
72
74
|
"repository": {
|
|
@@ -77,22 +79,22 @@
|
|
|
77
79
|
"url": "https://github.com/lifinance/sdk/issues"
|
|
78
80
|
},
|
|
79
81
|
"dependencies": {
|
|
80
|
-
"@lifi/types": "^9.0.0-alpha.
|
|
82
|
+
"@lifi/types": "^9.0.0-alpha.7",
|
|
81
83
|
"eth-rpc-errors": "^4.0.3",
|
|
82
|
-
"viem": "^1.5.
|
|
84
|
+
"viem": "^1.5.4"
|
|
83
85
|
},
|
|
84
86
|
"devDependencies": {
|
|
85
|
-
"@commitlint/cli": "^17.
|
|
86
|
-
"@commitlint/config-conventional": "^17.
|
|
87
|
+
"@commitlint/cli": "^17.7.1",
|
|
88
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
87
89
|
"@mswjs/interceptors": "^0.22.16",
|
|
88
90
|
"@types/ws": "^8.5.5",
|
|
89
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
90
|
-
"@typescript-eslint/parser": "^6.
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^6.3.0",
|
|
92
|
+
"@typescript-eslint/parser": "^6.3.0",
|
|
91
93
|
"@vitest/coverage-v8": "^0.34.1",
|
|
92
94
|
"cross-fetch": "^4.0.0",
|
|
93
95
|
"eslint": "^8.46.0",
|
|
94
|
-
"eslint-config-prettier": "^
|
|
95
|
-
"eslint-plugin-jsdoc": "^46.4.
|
|
96
|
+
"eslint-config-prettier": "^9.0.0",
|
|
97
|
+
"eslint-plugin-jsdoc": "^46.4.6",
|
|
96
98
|
"eslint-plugin-prettier": "^5.0.0",
|
|
97
99
|
"husky": "^8.0.3",
|
|
98
100
|
"lint-staged": "^13.2.3",
|