Skip to content

Commit

Permalink
feature(mobile): Battery pack (#608)
Browse files Browse the repository at this point in the history
* feature(mobile): Battery pack

* Update en.json

* minor fixes

* fix(mobile): add translations

* fix: header

* fix(mobile): add disable_battery_send flag

* bump(mobile): 3.5 (396)

* Update BatteryManager.ts

* feature(mobile): Add promocode support

* fix(mobile): fallback to tonapi sendMessage

* fix(mobile): Add 'will be paid with battery' text

* fix(mobile): Use excessesAddress for battery transfers

* bump(mobile): 3.5 (399)

* feature(mobile): Battery beta

* feature(mobile): 'beta' shield

* feature(mobile): Add changelog input to CI

* Revert "feature(mobile): Add changelog input to CI"

This reverts commit 1019842.

* Bump 3.6 (424)

* Post-merge fix

* fix(mobile): Fix Promocode input && empty battery text

* fix(mobile): Recharge Battery button

* fix(mobile): Fix "will be paid with Battery" label, fix obtaining proof token

* Update build.gradle

* feature(mobile): Send with battery for new NFT transfer

* Update blockchain.ts

* Some design updates

* feature(mobile): Add RU locales for Battery

* feature(mobile): Dynamic jetton transfer amount

* fix(mobile): Fix dynamic transfer and issuficient funds modal

* fix(mobile): fix crash on debug builds

* fix(mobile): Battery fixes

* Battery fixes

* fix(mobile): Battery fixes and improvements

* fix(mobile): Fix bottomSheet Android bug (TK-1644)

* Cleanup

* Fix imports

* fix(mobile): Don't set to uppercase promocode

* Update SignRawModal.tsx

* Rest fixes
  • Loading branch information
voloshinskii authored Jan 23, 2024
1 parent e85d5ff commit ba45f01
Show file tree
Hide file tree
Showing 90 changed files with 2,346 additions and 235 deletions.
14 changes: 14 additions & 0 deletions packages/@core-js/scripts/generate-battery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { generateApi } = require('swagger-typescript-api');
const path = require('path');

generateApi({
url: 'https://raw.githubusercontent.com/tonkeeper/custodial-battery/master/api/battery-api.yml',
output: path.resolve(__dirname, '../src/BatteryAPI'),
name: 'BatteryGenerated',
extractRequestParams: true,
apiClassName: 'BatteryGenerated',
moduleNameIndex: 1,
extractEnums: true,
singleHttpClient: true,
unwrapResponseData: true,
});
8 changes: 8 additions & 0 deletions packages/@core-js/src/BatteryAPI/BatteryAPI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { HttpClient, HttpClientOptions } from '../TonAPI/HttpClient';
import { BatteryGenerated } from './BatteryGenerated';

export class BatteryAPI extends BatteryGenerated<any> {
constructor(opts: HttpClientOptions) {
super(new (HttpClient as any)(opts));
}
}
Loading

0 comments on commit ba45f01

Please sign in to comment.