base-token-safety-client 1.0.0 → 1.0.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.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/index.d.ts +16 -0
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # @antigravity/token-safety-client
1
+ # base-token-safety-client
2
2
 
3
3
  Node.js/browser API client for the [Antigravity Token Safety Scanner](https://antigravity-connect-ia.vercel.app/token-safety). Scan any Base chain token address for rug pulls, honeypots, and dangerous functions.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install @antigravity/token-safety-client
8
+ npm install base-token-safety-client
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
13
  ```js
14
- const { scanToken, getLatestScans } = require("@antigravity/token-safety-client");
14
+ const { scanToken, getLatestScans } = require("base-token-safety-client");
15
15
 
16
16
  const result = await scanToken("0x4200000000000000000000000000000000000006");
17
17
  console.log(result.symbol, result.safetyScore, result.riskLevel);
package/index.d.ts CHANGED
@@ -1,3 +1,17 @@
1
+ export interface GoPlusData {
2
+ isHoneypot: boolean;
3
+ isOpenSource: boolean;
4
+ isProxy: boolean;
5
+ buyTax: string;
6
+ sellTax: string;
7
+ transferTax: string;
8
+ holderCount: number;
9
+ top10HolderPct: string;
10
+ trustList: boolean;
11
+ inCex: boolean;
12
+ cexList: string[];
13
+ }
14
+
1
15
  export interface ScanResult {
2
16
  address: string;
3
17
  symbol: string;
@@ -7,6 +21,8 @@ export interface ScanResult {
7
21
  risks: string[];
8
22
  dangerousFunctions: Array<{ sig: string; desc: string }>;
9
23
  note: string | null;
24
+ sources: string[];
25
+ goPlus: GoPlusData | null;
10
26
  }
11
27
 
12
28
  export class TokenSafetyError extends Error {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "base-token-safety-client",
3
- "version": "1.0.0",
4
- "description": "Node.js/browser API client for the Antigravity Token Safety Scanner. Scan any Base chain token address for rug pulls, honeypots, and dangerous functions.",
3
+ "version": "1.0.1",
4
+ "description": "Node.js/browser API client for the Antigravity Token Safety Scanner. Dual-source scanning: bytecode analysis + GoPlus Security API. Detect rug pulls, honeypots, scams.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "files": ["index.js", "index.d.ts", "README.md"],