@rabby-wallet/rabby-api 0.9.14 → 0.9.15-beta.0
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 +3 -0
- package/dist/index.js +10 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -349,6 +349,9 @@ export declare class OpenApiService {
|
|
|
349
349
|
hasTransfer: (chainId: string, from: string, to: string) => Promise<{
|
|
350
350
|
has_transfer: boolean;
|
|
351
351
|
}>;
|
|
352
|
+
hasTransferAllChain: (from: string, to: string) => Promise<{
|
|
353
|
+
has_transfer: boolean;
|
|
354
|
+
}>;
|
|
352
355
|
isTokenContract: (chainId: string, id: string) => Promise<{
|
|
353
356
|
is_token: boolean;
|
|
354
357
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -752,6 +752,16 @@ export class OpenApiService {
|
|
|
752
752
|
});
|
|
753
753
|
return data;
|
|
754
754
|
});
|
|
755
|
+
// 全链两个地址是否发生过转账
|
|
756
|
+
this.hasTransferAllChain = (from, to) => __awaiter(this, void 0, void 0, function* () {
|
|
757
|
+
const { data } = yield this.request.get('/v2/engine/addr/has_transfer', {
|
|
758
|
+
params: {
|
|
759
|
+
from_addr: from,
|
|
760
|
+
to_addr: to,
|
|
761
|
+
},
|
|
762
|
+
});
|
|
763
|
+
return data;
|
|
764
|
+
});
|
|
755
765
|
this.isTokenContract = (chainId, id) => __awaiter(this, void 0, void 0, function* () {
|
|
756
766
|
const { data } = yield this.request.get('/v1/engine/contract/is_token', {
|
|
757
767
|
params: {
|
package/dist/types.d.ts
CHANGED