@rabby-wallet/rabby-api 0.8.2 → 0.8.3

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
@@ -924,6 +924,9 @@ export declare class OpenApiService {
924
924
  account_id: string;
925
925
  tx_list: Tx[];
926
926
  }) => Promise<GasAccountCheckResult>;
927
+ getGasAccountAml: (id: string) => Promise<{
928
+ is_risk: boolean;
929
+ }>;
927
930
  parseCommon: (params: {
928
931
  typed_data: Record<string, any>;
929
932
  origin: string;
package/dist/index.js CHANGED
@@ -1269,6 +1269,14 @@ export class OpenApiService {
1269
1269
  });
1270
1270
  return data;
1271
1271
  });
1272
+ this.getGasAccountAml = (id) => __awaiter(this, void 0, void 0, function* () {
1273
+ const { data } = yield this.request.get('/v1/gas_account/aml', {
1274
+ params: {
1275
+ id,
1276
+ },
1277
+ });
1278
+ return data;
1279
+ });
1272
1280
  this.parseCommon = (params) => __awaiter(this, void 0, void 0, function* () {
1273
1281
  const { data } = yield this.request.post('/v1/engine/action/parse_common', params);
1274
1282
  return data;
package/dist/types.d.ts CHANGED
@@ -118,6 +118,7 @@ export interface TokenItem {
118
118
  raw_amount?: string;
119
119
  raw_amount_hex_str?: string;
120
120
  price_24h_change?: number | null;
121
+ low_credit_score?: boolean;
121
122
  }
122
123
  export interface TransferingNFTItem {
123
124
  chain: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [