@lidofinance/lsv-cli 1.0.0-alpha.47 → 1.0.0-alpha.48
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/features/dashboard.js +98 -55
- package/dist/features/dashboard.js.map +1 -1
- package/dist/features/operator-grid.js +13 -6
- package/dist/features/operator-grid.js.map +1 -1
- package/dist/features/pdg.js +13 -6
- package/dist/features/pdg.js.map +1 -1
- package/dist/features/vault-factory.js +3 -1
- package/dist/features/vault-factory.js.map +1 -1
- package/dist/features/vault-hub.js +16 -9
- package/dist/features/vault-hub.js.map +1 -1
- package/dist/features/vault.js +9 -7
- package/dist/features/vault.js.map +1 -1
- package/dist/programs/account.js +6 -5
- package/dist/programs/account.js.map +1 -1
- package/dist/programs/dashboard/read.js +15 -6
- package/dist/programs/dashboard/read.js.map +1 -1
- package/dist/programs/dashboard/write.js +52 -3
- package/dist/programs/dashboard/write.js.map +1 -1
- package/dist/programs/hub/read.js +4 -2
- package/dist/programs/hub/read.js.map +1 -1
- package/dist/programs/pdg/write.js +41 -37
- package/dist/programs/pdg/write.js.map +1 -1
- package/dist/programs/pdg-helpers.js +30 -26
- package/dist/programs/pdg-helpers.js.map +1 -1
- package/dist/programs/vault-factory/write.js +12 -2
- package/dist/programs/vault-factory/write.js.map +1 -1
- package/dist/programs/vault-viewer/read.js +31 -16
- package/dist/programs/vault-viewer/read.js.map +1 -1
- package/dist/utils/arguments.js +1 -1
- package/dist/utils/arguments.js.map +1 -1
- package/dist/utils/charts/overview.js +5 -5
- package/dist/utils/charts/overview.js.map +1 -1
- package/dist/utils/commands/confirmations.d.ts +21 -0
- package/dist/utils/commands/confirmations.js +102 -0
- package/dist/utils/commands/confirmations.js.map +1 -0
- package/dist/utils/commands/index.d.ts +1 -0
- package/dist/utils/commands/index.js +1 -0
- package/dist/utils/commands/index.js.map +1 -1
- package/dist/utils/contract.js +30 -20
- package/dist/utils/contract.js.map +1 -1
- package/dist/utils/health/health-utils.js +3 -3
- package/dist/utils/health/health-utils.js.map +1 -1
- package/dist/utils/ipfs.js +11 -4
- package/dist/utils/ipfs.js.map +1 -1
- package/dist/utils/logging/console.d.ts +9 -1
- package/dist/utils/logging/console.js +15 -2
- package/dist/utils/logging/console.js.map +1 -1
- package/dist/utils/logging/constants.d.ts +2 -0
- package/dist/utils/logging/constants.js +11 -5
- package/dist/utils/logging/constants.js.map +1 -1
- package/dist/utils/prompts/confirmations.d.ts +2 -0
- package/dist/utils/prompts/confirmations.js +18 -0
- package/dist/utils/prompts/confirmations.js.map +1 -0
- package/dist/utils/prompts/dashboard.js +18 -36
- package/dist/utils/prompts/dashboard.js.map +1 -1
- package/dist/utils/prompts/default.d.ts +4 -3
- package/dist/utils/prompts/default.js +3 -0
- package/dist/utils/prompts/default.js.map +1 -1
- package/dist/utils/prompts/index.d.ts +1 -0
- package/dist/utils/prompts/index.js +1 -0
- package/dist/utils/prompts/index.js.map +1 -1
- package/dist/utils/proof/first-validator-gindex.js +6 -1
- package/dist/utils/proof/first-validator-gindex.js.map +1 -1
- package/dist/version/index.js +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CONFIRM_METHODS_MAP } from '../index.js';
|
|
2
|
+
import { selectPrompt } from './default.js';
|
|
3
|
+
export const selectProposalEvent = async (logsData) => {
|
|
4
|
+
const events = Object.values(logsData).map((log) => {
|
|
5
|
+
const formattedArgs = CONFIRM_METHODS_MAP[log.decodedData.functionName](log.decodedData.args[0]);
|
|
6
|
+
const argsDescription = `Args: ${log.decodedData.args.join(', ')} (${formattedArgs})`;
|
|
7
|
+
return {
|
|
8
|
+
title: log.decodedData.functionName,
|
|
9
|
+
value: log.data,
|
|
10
|
+
description: `Member: ${log.member}\nRole: ${log.role}\nExpiry: ${log.expiryDate}\n${argsDescription}`,
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
const event = await selectPrompt('Select an event', 'event', events);
|
|
14
|
+
if (!event)
|
|
15
|
+
return;
|
|
16
|
+
return event;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=confirmations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmations.js","sourceRoot":"","sources":["../../../utils/prompts/confirmations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EAAE,QAAkB,EAAE,EAAE;IAC9D,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACjD,MAAM,aAAa,GAAG,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAC,YAAY,CAAC,CACrE,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CACxB,CAAC;QACF,MAAM,eAAe,GAAG,SAAS,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,aAAa,GAAG,CAAC;QAEtF,OAAO;YACL,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,YAAY;YACnC,KAAK,EAAE,GAAG,CAAC,IAAI;YACf,WAAW,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,GAAG,CAAC,IAAI,aAAa,GAAG,CAAC,UAAU,KAAK,eAAe,EAAE;SACvG,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrE,IAAI,CAAC,KAAK;QAAE,OAAO;IAEnB,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { formatEther } from 'viem';
|
|
2
|
+
import Table from 'cli-table3';
|
|
2
3
|
import { confirmOperation, logInfo } from '../index.js';
|
|
4
|
+
const TABLE_PARAMS = {
|
|
5
|
+
head: ['Type', 'Value'],
|
|
6
|
+
colAligns: ['left', 'right', 'right'],
|
|
7
|
+
style: { head: ['gray'], compact: true },
|
|
8
|
+
};
|
|
3
9
|
export const confirmMint = async (props) => {
|
|
4
10
|
const { vaultAddress, recipient, amountOfMint, amountOfMintInStethWei, newLiabilityShares, currentLiabilityShares, newHealthRatio, currentHealthRatio, newIsHealthy, currentIsHealthy, type, } = props;
|
|
5
11
|
const amountOfMintInShares = formatEther(amountOfMint);
|
|
@@ -7,26 +13,14 @@ export const confirmMint = async (props) => {
|
|
|
7
13
|
const isShares = type === 'shares';
|
|
8
14
|
const isWsteth = type === 'wstETH';
|
|
9
15
|
const value = isShares || isWsteth ? amountOfMintInShares : amountOfMintInSteth;
|
|
16
|
+
const tableCurrent = new Table(TABLE_PARAMS);
|
|
10
17
|
logInfo(`Current vault ${vaultAddress} health:`);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'Current Liability Shares (wei)': currentLiabilityShares,
|
|
15
|
-
'Current Liability Shares (Shares)': formatEther(currentLiabilityShares),
|
|
16
|
-
'Current Health Ratio': `${currentHealthRatio}%`,
|
|
17
|
-
'Current Is Healthy': currentIsHealthy,
|
|
18
|
-
},
|
|
19
|
-
]);
|
|
18
|
+
tableCurrent.push(['Vault Address', vaultAddress], ['Current Liability, wei', currentLiabilityShares], ['Current Liability, Shares', formatEther(currentLiabilityShares)], ['Current Health Ratio', `${currentHealthRatio.toFixed(2)}%`], ['Current Is Healthy', currentIsHealthy]);
|
|
19
|
+
console.info(tableCurrent.toString());
|
|
20
|
+
const tableNew = new Table(TABLE_PARAMS);
|
|
20
21
|
logInfo(`Minting ${value} ${type} to ${recipient}:`);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'Vault Address': vaultAddress,
|
|
24
|
-
'New Liability Shares (wei)': newLiabilityShares,
|
|
25
|
-
'New Liability Shares (Shares)': formatEther(newLiabilityShares),
|
|
26
|
-
'New Health Ratio': `${newHealthRatio}%`,
|
|
27
|
-
'New Is Healthy': newIsHealthy,
|
|
28
|
-
},
|
|
29
|
-
]);
|
|
22
|
+
tableNew.push(['Vault Address', vaultAddress], ['New Liability, wei', newLiabilityShares], ['New Liability, Shares', formatEther(newLiabilityShares)], ['New Health Ratio', `${newHealthRatio.toFixed(2)}%`], ['New Is Healthy', newIsHealthy]);
|
|
23
|
+
console.info(tableNew.toString());
|
|
30
24
|
const confirm = await confirmOperation(`Are you sure you want to mint ${value} ${type} to ${recipient}?`);
|
|
31
25
|
return confirm;
|
|
32
26
|
};
|
|
@@ -37,26 +31,14 @@ export const confirmBurn = async (props) => {
|
|
|
37
31
|
const isShares = type === 'shares';
|
|
38
32
|
const isWsteth = type === 'wstETH';
|
|
39
33
|
const value = isShares || isWsteth ? amountOfBurnInShares : amountOfBurnInSteth;
|
|
34
|
+
const tableCurrent = new Table(TABLE_PARAMS);
|
|
40
35
|
logInfo(`Current vault ${vaultAddress} health:`);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'Current Liability Shares (wei)': currentLiabilityShares,
|
|
45
|
-
'Current Liability Shares (Shares)': formatEther(currentLiabilityShares),
|
|
46
|
-
'Current Health Ratio': `${currentHealthRatio}%`,
|
|
47
|
-
'Current Is Healthy': currentIsHealthy,
|
|
48
|
-
},
|
|
49
|
-
]);
|
|
36
|
+
tableCurrent.push(['Vault Address', vaultAddress], ['Current Liability, wei', currentLiabilityShares], ['Current Liability, Shares', formatEther(currentLiabilityShares)], ['Current Health Ratio', `${currentHealthRatio.toFixed(2)}%`], ['Current Is Healthy', currentIsHealthy]);
|
|
37
|
+
console.info(tableCurrent.toString());
|
|
38
|
+
const tableNew = new Table(TABLE_PARAMS);
|
|
50
39
|
logInfo(`Burning ${value} ${type} for ${vaultAddress}:`);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'Vault Address': vaultAddress,
|
|
54
|
-
'New Liability Shares (wei)': newLiabilityShares,
|
|
55
|
-
'New Liability Shares (Shares)': formatEther(newLiabilityShares),
|
|
56
|
-
'New Health Ratio': `${newHealthRatio}%`,
|
|
57
|
-
'New Is Healthy': newIsHealthy,
|
|
58
|
-
},
|
|
59
|
-
]);
|
|
40
|
+
tableNew.push(['Vault Address', vaultAddress], ['New Liability, wei', newLiabilityShares], ['New Liability, Shares', formatEther(newLiabilityShares)], ['New Health Ratio', `${newHealthRatio.toFixed(2)}%`], ['New Is Healthy', newIsHealthy]);
|
|
41
|
+
console.info(tableNew.toString());
|
|
60
42
|
const confirm = await confirmOperation(`Are you sure you want to burn ${value} ${type} for ${vaultAddress}?`);
|
|
61
43
|
return confirm;
|
|
62
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../utils/prompts/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,WAAW,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../utils/prompts/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AA6BlD,MAAM,YAAY,GAAkC;IAClD,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;IACrC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,KAAuB,EAAE,EAAE;IAC3D,MAAM,EACJ,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,c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AAC,CACzC,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;IAEtC,MAAM,QAAQ,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;IACzC,OAAO,CAAC,WAAW,KAAK,IAAI,IAAI,QAAQ,YAAY,GAAG,CAAC,CAAC;IACzD,QAAQ,CAAC,IAAI,CACX,CAAC,eAAe,EAAE,YAAY,CAAC,EAC/B,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,EAC1C,CAAC,uBAAuB,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC,EAC1D,CAAC,kBAAkB,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,EACrD,CAAC,gBAAgB,EAAE,YAAY,CAAC,CACjC,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IAElC,MAAM,OAAO,GAAG,MAAM,gBAAgB,CACpC,iCAAiC,KAAK,IAAI,IAAI,QAAQ,YAAY,GAAG,CACtE,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const textPrompt: <T extends string>(message: string, name: T) => Promise<
|
|
3
|
-
export declare const confirmPrompt: <T extends string>(message: string, name: T) => Promise<
|
|
1
|
+
import { type Choice, type Answers } from 'prompts';
|
|
2
|
+
export declare const textPrompt: <T extends string>(message: string, name: T) => Promise<Answers<T>>;
|
|
3
|
+
export declare const confirmPrompt: <T extends string>(message: string, name: T) => Promise<Answers<T>>;
|
|
4
|
+
export declare const selectPrompt: <T extends string>(message: string, name: T, choices: Choice[]) => Promise<Answers<T>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../utils/prompts/default.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../utils/prompts/default.ts"],"names":[],"mappings":"AAAA,OAAO,OAAsC,MAAM,SAAS,CAAC;AAE7D,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,OAAe,EACf,IAAO,EACc,EAAE;IACvB,OAAO,OAAO,CAAC;QACb,IAAI,EAAE,MAAM;QACZ,IAAI;QACJ,OAAO;KACR,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,OAAe,EACf,IAAO,EACc,EAAE;IACvB,OAAO,OAAO,CAAC;QACb,IAAI,EAAE,SAAS;QACf,IAAI;QACJ,OAAO;QACP,OAAO,EAAE,KAAK;KACf,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,OAAe,EACf,IAAO,EACP,OAAiB,EACI,EAAE;IACvB,OAAO,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AAC7D,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../utils/prompts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../utils/prompts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
|
@@ -15,7 +15,12 @@ export const getFirstValidatorGIndex = (forks) => {
|
|
|
15
15
|
Validators.limit);
|
|
16
16
|
gIndexes[fork] = toBytes32String(gI);
|
|
17
17
|
}
|
|
18
|
-
logResult(
|
|
18
|
+
logResult({
|
|
19
|
+
data: Object.entries(gIndexes).map(([fork, gIndex]) => [fork, gIndex]),
|
|
20
|
+
params: {
|
|
21
|
+
head: ['Fork', 'GIndex'],
|
|
22
|
+
},
|
|
23
|
+
});
|
|
19
24
|
};
|
|
20
25
|
const pack = (gI, limit) => {
|
|
21
26
|
const width = limit ? BigInt(Math.log2(limit)) : 0n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-validator-gindex.js","sourceRoot":"","sources":["../../../utils/proof/first-validator-gindex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAe,EAAE,EAAE;IACzD,MAAM,QAAQ,GAA2B,EAAE,CAAC;IAC5C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,GAAG,CAAC,IAAkC,CAAC,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC;QAErE,MAAM,EAAE,GAAG,IAAI,CACb,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM;QACtD,6DAA6D;QAC7D,aAAa;QACb,UAAU,CAAC,KAAK,CACjB,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC;IACvC,CAAC;IACD,SAAS,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"first-validator-g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AI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACpD,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;IACrC,OAAO,KAAK,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC;AAClD,CAAC,CAAC"}
|
package/dist/version/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = 'v1.0.0-alpha.
|
|
1
|
+
export const version = 'v1.0.0-alpha.48'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lidofinance/lsv-cli",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.48",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"blockstore-core": "^5.0.2",
|
|
40
40
|
"chalk": "^5.4.1",
|
|
41
41
|
"cli-progress": "^3.12.0",
|
|
42
|
+
"cli-table3": "^0.6.5",
|
|
42
43
|
"commander": "^12.1.0",
|
|
43
44
|
"dotenv": "^16.4.5",
|
|
44
45
|
"fs-extra": "^11.3.0",
|