@rabby-wallet/rabby-api 0.7.20 → 0.7.22
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 +17 -0
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -250,6 +250,19 @@ export declare class OpenApiService {
|
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
is_gasless: boolean;
|
|
252
252
|
desc?: string;
|
|
253
|
+
promotion?: {
|
|
254
|
+
id: string;
|
|
255
|
+
contract_id: string;
|
|
256
|
+
chain_id: string;
|
|
257
|
+
config: {
|
|
258
|
+
button_text: string;
|
|
259
|
+
before_click_text: string;
|
|
260
|
+
after_click_text: string;
|
|
261
|
+
logo: string;
|
|
262
|
+
theme_color: string;
|
|
263
|
+
dark_color: string;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
253
266
|
}>;
|
|
254
267
|
parseTx: ({ chainId, tx, origin, addr, }: {
|
|
255
268
|
chainId: string;
|
|
@@ -706,5 +719,9 @@ export declare class OpenApiService {
|
|
|
706
719
|
}) => Promise<{
|
|
707
720
|
is_spoofing: boolean;
|
|
708
721
|
}>;
|
|
722
|
+
getAddressByDeBankId: (name: string) => Promise<{
|
|
723
|
+
addr: string;
|
|
724
|
+
web3_id: string;
|
|
725
|
+
}>;
|
|
709
726
|
}
|
|
710
727
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1071,6 +1071,14 @@ export class OpenApiService {
|
|
|
1071
1071
|
});
|
|
1072
1072
|
return data;
|
|
1073
1073
|
});
|
|
1074
|
+
this.getAddressByDeBankId = (name) => __awaiter(this, void 0, void 0, function* () {
|
|
1075
|
+
const { data } = yield this.request.get('/v1/user/web3_id', {
|
|
1076
|
+
params: {
|
|
1077
|
+
text: name,
|
|
1078
|
+
},
|
|
1079
|
+
});
|
|
1080
|
+
return data;
|
|
1081
|
+
});
|
|
1074
1082
|
if (store instanceof Promise) {
|
|
1075
1083
|
store.then((resolvedStore) => {
|
|
1076
1084
|
this.store = resolvedStore;
|