mofu-sdk 0.1.0 → 0.1.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 (2) hide show
  1. package/dist/types.d.ts +15 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -122,6 +122,8 @@ export interface WalletReport {
122
122
  }>;
123
123
  holdingsTotal: number;
124
124
  approvals: WalletApproval[];
125
+ /** Lookalike addresses planted in the wallet's recent history (address poisoning). */
126
+ poisoning: PoisonAlert[];
125
127
  status: {
126
128
  holdings: "ok" | "unavailable";
127
129
  approvals: "ok" | "unavailable";
@@ -129,6 +131,19 @@ export interface WalletReport {
129
131
  checkedAt: string;
130
132
  limits: string[];
131
133
  }
134
+ /** A transfer someone else made to plant a lookalike address in a wallet's history. */
135
+ export interface PoisonAlert {
136
+ address: string;
137
+ /** The real address it imitates (one the wallet sent to, or the wallet itself). */
138
+ resembles: string | null;
139
+ resemblesSelf: boolean;
140
+ kind: "dust" | "zero-transfer";
141
+ token: string | null;
142
+ tokenSymbol: string | null;
143
+ txHash: string;
144
+ at: string | null;
145
+ risk: "risk" | "warn";
146
+ }
132
147
  /** A report plus where to see it and how many calls are left today. */
133
148
  export interface Checked<T> {
134
149
  report: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mofu-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Robinhood Chain token and wallet checks for agents, bots and scripts: Mofu's Token Scanner, Wallet Health, webhooks and a buy rule.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://mofu.works/docs/#sdk",