@sonarwatch/portfolio-core 0.16.116 → 0.16.118
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/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/src/TokenList.d.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.16.118](https://github.com/sonarwatch/portfolio/compare/core-0.16.117...core-0.16.118) (2026-03-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **tokens:** add warnings to UniTokenInfo ([8e02052](https://github.com/sonarwatch/portfolio/commit/8e0205276c101242cc3a813a871c5884a166e924))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.16.117](https://github.com/sonarwatch/portfolio/compare/core-0.16.116...core-0.16.117) (2026-02-23)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
5
18
|
## [0.16.116](https://github.com/sonarwatch/portfolio/compare/core-0.16.115...core-0.16.116) (2026-02-20)
|
|
6
19
|
|
|
7
20
|
|
package/package.json
CHANGED
package/src/TokenList.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { NetworkIdType } from './Network';
|
|
2
2
|
export type UniTokenInfoExtensionValue = string | Array<string> | number | boolean | null | undefined;
|
|
3
|
+
export type ShieldWarningType = 'NOT_VERIFIED' | 'LOW_LIQUIDITY' | 'NOT_SELLABLE' | 'LOW_ORGANIC_ACTIVITY' | 'HAS_MINT_AUTHORITY' | 'HAS_FREEZE_AUTHORITY' | 'HAS_PERMANENT_DELEGATE' | 'NEW_LISTING' | 'VERY_LOW_TRADING_ACTIVITY' | 'HIGH_SUPPLY_CONCENTRATION' | 'NON_TRANSFERABLE' | 'MUTABLE_TRANSFER_FEES' | 'SUSPICIOUS_DEV_ACTIVITY' | 'SUSPICIOUS_TOP_HOLDER_ACTIVITY' | 'HIGH_SINGLE_OWNERSHIP' | string;
|
|
4
|
+
export type ShieldWarningSeverity = 'info' | 'warning' | 'critical';
|
|
5
|
+
export type ShieldWarningSource = string;
|
|
6
|
+
export interface ShieldWarning {
|
|
7
|
+
readonly type: ShieldWarningType;
|
|
8
|
+
readonly message: string;
|
|
9
|
+
readonly severity: ShieldWarningSeverity;
|
|
10
|
+
readonly source?: ShieldWarningSource;
|
|
11
|
+
}
|
|
3
12
|
export interface UniTokenInfo {
|
|
4
13
|
readonly chainId: number;
|
|
5
14
|
readonly address: string;
|
|
@@ -8,6 +17,7 @@ export interface UniTokenInfo {
|
|
|
8
17
|
readonly symbol: string;
|
|
9
18
|
readonly logoURI?: string;
|
|
10
19
|
readonly tags?: string[];
|
|
20
|
+
readonly warnings?: ShieldWarning[];
|
|
11
21
|
readonly extensions?: {
|
|
12
22
|
readonly [key: string]: {
|
|
13
23
|
[key: string]: {
|