https://github.com/blockchain-sonar/wallet
Free TON Wallet
https://github.com/blockchain-sonar/wallet
dart flutter flutter-web freeton ton ton-client wallet
Last synced: 2 months ago
JSON representation
Free TON Wallet
- Host: GitHub
- URL: https://github.com/blockchain-sonar/wallet
- Owner: blockchain-sonar
- License: apache-2.0
- Created: 2021-05-12T21:08:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-19T17:34:42.000Z (almost 4 years ago)
- Last Synced: 2024-10-23T20:13:22.506Z (7 months ago)
- Topics: dart, flutter, flutter-web, freeton, ton, ton-client, wallet
- Language: Dart
- Homepage:
- Size: 1.46 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Free TON Wallet
Preconditions: [Flutter SDK](https://flutter.dev/docs) (2.2.1), [Dart](https://dart.dev/) (2.13.1), [NodeJS](https://nodejs.org/en/)
```
git submodule update --init && (cd submodule/wallet.platform.web/ && npm install && npm run build)
ln -sf index-webapp-devel.html web/index.html
flutter run --device-id chrome
```
---## Builds
### Chrome Extenstion
```
rm -rf .dart_tool/ build/
git submodule update --init && (cd submodule/wallet.platform.web/ && npm install && npm run build)
rm web/index.html web/index-webapp.html web/index-webapp-devel.html web/freeton_wallet_platform.devel.js web/manifest-webapp.json
mv web/index-extenstion.html web/index.html
mv web/manifest-extension.json web/manifest.json
flutter build web --web-renderer html --release
cd build/web
zip -r ../../freeton-wallet-chrome-extenstion.zip *
```## Getting Started
### Minimal Knowledge Check List
To develop this project you have to had minimal knowledge:
* [ ] - [Dart language](https://dart.dev/guides/language/language-tour)
* [ ] - [Simple app state management](https://flutter.dev/docs/development/data-and-backend/state-mgmt): ChangeNotifier, ChangeNotifierProvider, Consumer and Provider.## TON Client
There are two third-patries `web/tonclient.js` and `web/tonclient.wasm` comming from [ton-client-js](https://github.com/tonlabs/ton-client-js).
To update these files execute following (on Linux):
```bash
curl --verbose http://sdkbinaries-ws.tonlabs.io/tonclient_0_wasm.gz | tee >(sha1sum > web/tonclient.wasm.gz.sha1) | gunzip | tee >(sha1sum > web/tonclient.wasm.sha1) > web/tonclient.wasm
``````bash
```
```
curl --verbose http://sdkbinaries-ws.tonlabs.io/tonclient_0_wasm_js.gz | tee >(sha1sum > web/tonclient.js.gz.sha1) | gunzip | tee >(sha1sum > web/tonclient.js.sha1) > web/tonclient.js
``````bash
```
## References
* [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
* [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)