@rabby-wallet/rabby-api 0.9.28-beta.1 → 0.9.30-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 CHANGED
@@ -930,6 +930,11 @@ export declare class OpenApiService {
930
930
  }) => Promise<{
931
931
  account: GasAccountInfo;
932
932
  }>;
933
+ checkGasAccountGiftEligibility: (params: {
934
+ id: string;
935
+ }) => Promise<{
936
+ has_eligibility: boolean;
937
+ }>;
933
938
  confirmIapOrder: (postData: {
934
939
  transaction_id: string;
935
940
  device_type: 'android' | 'ios';
@@ -937,6 +942,12 @@ export declare class OpenApiService {
937
942
  }) => Promise<{
938
943
  req: TxRequest;
939
944
  }>;
945
+ claimGasAccountGift: (params: {
946
+ sig: string;
947
+ id: string;
948
+ }) => Promise<{
949
+ success: boolean;
950
+ }>;
940
951
  loginGasAccount: (params: {
941
952
  sig: string;
942
953
  account_id: string;
package/dist/index.js CHANGED
@@ -1297,10 +1297,25 @@ export class OpenApiService {
1297
1297
  const { data } = yield this.request.post('/v2/gas_account/pay_info', postData);
1298
1298
  return data;
1299
1299
  });
1300
+ this.checkGasAccountGiftEligibility = (params) => __awaiter(this, void 0, void 0, function* () {
1301
+ const { data } = yield this.request.get('/v1/gas_account/check_eligibility', {
1302
+ params,
1303
+ });
1304
+ return data;
1305
+ });
1300
1306
  this.confirmIapOrder = (postData) => __awaiter(this, void 0, void 0, function* () {
1301
1307
  const { data } = yield this.request.post('/v1/gas_account/confirm_iap_order', postData);
1302
1308
  return data;
1303
1309
  });
1310
+ this.claimGasAccountGift = (params) => __awaiter(this, void 0, void 0, function* () {
1311
+ const { sig } = params, others = __rest(params, ["sig"]);
1312
+ const { data } = yield this.request.post('/v1/gas_account/claim', Object.assign({}, others), {
1313
+ headers: {
1314
+ sig,
1315
+ },
1316
+ });
1317
+ return data;
1318
+ });
1304
1319
  this.loginGasAccount = (params) => __awaiter(this, void 0, void 0, function* () {
1305
1320
  const { sig } = params, others = __rest(params, ["sig"]);
1306
1321
  const { data } = yield this.request.post('/v1/gas_account/login', Object.assign({}, others), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.28-beta.1",
3
+ "version": "0.9.30-beta.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [