@lifi/sdk 2.1.3-beta.0 → 2.2.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/allowance/utils.js +1 -1
- package/dist/cjs/allowance/utils.js +1 -1
- package/dist/cjs/execution/multisig.js +4 -1
- package/dist/cjs/types/internal.types.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/execution/multisig.js +4 -1
- package/dist/types/internal.types.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
package/dist/allowance/utils.js
CHANGED
|
@@ -34,7 +34,7 @@ export const setApproval = async (signer, tokenAddress, contractAddress, amount,
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
catch (error) { }
|
|
37
|
-
return
|
|
37
|
+
return signer.sendTransaction(transactionRequest);
|
|
38
38
|
};
|
|
39
39
|
export const getAllowanceViaMulticall = async (signer, chainId, tokenData) => {
|
|
40
40
|
const chainsService = ChainsService.getInstance();
|
|
@@ -41,7 +41,7 @@ const setApproval = async (signer, tokenAddress, contractAddress, amount, return
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
catch (error) { }
|
|
44
|
-
return
|
|
44
|
+
return signer.sendTransaction(transactionRequest);
|
|
45
45
|
};
|
|
46
46
|
exports.setApproval = setApproval;
|
|
47
47
|
const getAllowanceViaMulticall = async (signer, chainId, tokenData) => {
|
|
@@ -11,7 +11,10 @@ const updateMultisigRouteProcess = async (internalTxHash, step, statusManager, p
|
|
|
11
11
|
if (!config.multisigConfig?.getMultisigTransactionDetails) {
|
|
12
12
|
throw new Error('"getMultisigTransactionDetails()" is missing in Multisig config.');
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const updateIntermediateMultisigStatus = () => {
|
|
15
|
+
process = statusManager.updateProcess(step, process.type, 'PENDING');
|
|
16
|
+
};
|
|
17
|
+
const multisigStatusResponse = await config.multisigConfig?.getMultisigTransactionDetails(internalTxHash, fromChain.id, updateIntermediateMultisigStatus);
|
|
15
18
|
if (multisigStatusResponse.status === 'DONE') {
|
|
16
19
|
process = statusManager.updateProcess(step, process.type, 'PENDING', {
|
|
17
20
|
txHash: multisigStatusResponse.txHash,
|
|
@@ -52,7 +52,7 @@ export interface BaseTransaction {
|
|
|
52
52
|
}
|
|
53
53
|
export interface MultisigConfig {
|
|
54
54
|
isMultisigSigner: boolean;
|
|
55
|
-
getMultisigTransactionDetails: (txHash: string, fromChainId: number) => Promise<MultisigTxDetails>;
|
|
55
|
+
getMultisigTransactionDetails: (txHash: string, fromChainId: number, updateIntermediateStatus?: () => void) => Promise<MultisigTxDetails>;
|
|
56
56
|
sendBatchTransaction?: (batchTransactions: BaseTransaction[]) => Promise<MultisigTransactionResponse>;
|
|
57
57
|
shouldBatchTransactions?: boolean;
|
|
58
58
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/sdk";
|
|
2
|
-
export declare const version = "2.
|
|
2
|
+
export declare const version = "2.2.0-beta.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -5,7 +5,10 @@ export const updateMultisigRouteProcess = async (internalTxHash, step, statusMan
|
|
|
5
5
|
if (!config.multisigConfig?.getMultisigTransactionDetails) {
|
|
6
6
|
throw new Error('"getMultisigTransactionDetails()" is missing in Multisig config.');
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const updateIntermediateMultisigStatus = () => {
|
|
9
|
+
process = statusManager.updateProcess(step, process.type, 'PENDING');
|
|
10
|
+
};
|
|
11
|
+
const multisigStatusResponse = await config.multisigConfig?.getMultisigTransactionDetails(internalTxHash, fromChain.id, updateIntermediateMultisigStatus);
|
|
9
12
|
if (multisigStatusResponse.status === 'DONE') {
|
|
10
13
|
process = statusManager.updateProcess(step, process.type, 'PENDING', {
|
|
11
14
|
txHash: multisigStatusResponse.txHash,
|
|
@@ -52,7 +52,7 @@ export interface BaseTransaction {
|
|
|
52
52
|
}
|
|
53
53
|
export interface MultisigConfig {
|
|
54
54
|
isMultisigSigner: boolean;
|
|
55
|
-
getMultisigTransactionDetails: (txHash: string, fromChainId: number) => Promise<MultisigTxDetails>;
|
|
55
|
+
getMultisigTransactionDetails: (txHash: string, fromChainId: number, updateIntermediateStatus?: () => void) => Promise<MultisigTxDetails>;
|
|
56
56
|
sendBatchTransaction?: (batchTransactions: BaseTransaction[]) => Promise<MultisigTransactionResponse>;
|
|
57
57
|
shouldBatchTransactions?: boolean;
|
|
58
58
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/sdk";
|
|
2
|
-
export declare const version = "2.
|
|
2
|
+
export declare const version = "2.2.0-beta.0";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@lifi/sdk';
|
|
2
|
-
export const version = '2.
|
|
2
|
+
export const version = '2.2.0-beta.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-beta.0",
|
|
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",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"prepublishOnly": "run-s build use:npmReadme && pinst --enable",
|
|
27
27
|
"postpublish": "npm run use:gitReadme && pinst --enable",
|
|
28
28
|
"prepare": "husky install",
|
|
29
|
-
"release": "standard-version -a"
|
|
29
|
+
"release": "standard-version -a",
|
|
30
|
+
"release:beta": "standard-version -a --prerelease beta --skip.changelog"
|
|
30
31
|
},
|
|
31
32
|
"standard-version": {
|
|
32
33
|
"scripts": {
|