@rabby-wallet/rabby-api 0.8.5 → 0.8.7
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 +10 -1
- package/dist/index.js +10 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,11 @@ export declare class OpenApiService {
|
|
|
70
70
|
explainText: (origin: string, address: string, text: string) => Promise<{
|
|
71
71
|
comment: string;
|
|
72
72
|
}>;
|
|
73
|
-
gasMarket: (
|
|
73
|
+
gasMarket: (options: {
|
|
74
|
+
chainId: string;
|
|
75
|
+
tx?: Tx;
|
|
76
|
+
customGas?: number;
|
|
77
|
+
}) => Promise<GasLevel[]>;
|
|
74
78
|
getTx: (chainId: string, hash: string, gasPrice: number) => Promise<GetTxResponse>;
|
|
75
79
|
getEnsAddressByName: (name: string) => Promise<{
|
|
76
80
|
addr: string;
|
|
@@ -988,5 +992,10 @@ export declare class OpenApiService {
|
|
|
988
992
|
aggregator_id: string;
|
|
989
993
|
}[]>;
|
|
990
994
|
getBridgeSupportChainV2: () => Promise<string[]>;
|
|
995
|
+
uninstalledFeedback: ({ text, }: {
|
|
996
|
+
text: string;
|
|
997
|
+
}) => Promise<{
|
|
998
|
+
success: boolean;
|
|
999
|
+
}>;
|
|
991
1000
|
}
|
|
992
1001
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -201,11 +201,12 @@ export class OpenApiService {
|
|
|
201
201
|
});
|
|
202
202
|
return data;
|
|
203
203
|
});
|
|
204
|
-
this.gasMarket = (
|
|
204
|
+
this.gasMarket = (options) => __awaiter(this, void 0, void 0, function* () {
|
|
205
205
|
const { data } = yield this.request.get('/v1/wallet/gas_market', {
|
|
206
206
|
params: {
|
|
207
|
-
chain_id: chainId,
|
|
208
|
-
custom_price: customGas,
|
|
207
|
+
chain_id: options.chainId,
|
|
208
|
+
custom_price: options.customGas,
|
|
209
|
+
tx: options.tx,
|
|
209
210
|
},
|
|
210
211
|
});
|
|
211
212
|
return data;
|
|
@@ -1322,6 +1323,12 @@ export class OpenApiService {
|
|
|
1322
1323
|
const { data } = yield this.request.get('/v2/bridge/supported_chains');
|
|
1323
1324
|
return data;
|
|
1324
1325
|
});
|
|
1326
|
+
this.uninstalledFeedback = ({ text, }) => __awaiter(this, void 0, void 0, function* () {
|
|
1327
|
+
const { data } = yield this.request.post('v1/feedback', {
|
|
1328
|
+
text,
|
|
1329
|
+
});
|
|
1330
|
+
return data;
|
|
1331
|
+
});
|
|
1325
1332
|
if (store instanceof Promise) {
|
|
1326
1333
|
store.then((resolvedStore) => {
|
|
1327
1334
|
this.store = resolvedStore;
|