@rabby-wallet/rabby-api 0.7.16 → 0.7.17

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/index.d.ts CHANGED
@@ -568,5 +568,11 @@ export declare class OpenApiService {
568
568
  level: string | null;
569
569
  }[];
570
570
  }) => Promise<any>;
571
+ checkSpoofing: ({ from, to, }: {
572
+ from: string;
573
+ to: string;
574
+ }) => Promise<{
575
+ is_spoofing: boolean;
576
+ }>;
571
577
  }
572
578
  export {};
package/dist/index.js CHANGED
@@ -974,6 +974,12 @@ export class OpenApiService {
974
974
  const { data } = yield this.request.post('/v1/engine/action/log', body);
975
975
  return data;
976
976
  });
977
+ this.checkSpoofing = ({ from, to, }) => __awaiter(this, void 0, void 0, function* () {
978
+ const { data } = yield this.request.get('/v1/engine/addr/is_spoofing', {
979
+ params: { user_addr: from, dest_addr: to },
980
+ });
981
+ return data;
982
+ });
977
983
  if (store instanceof Promise) {
978
984
  store.then((resolvedStore) => {
979
985
  this.store = resolvedStore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.7.16",
3
+ "version": "0.7.17",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [