Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add ton jettons #26

Open
wants to merge 1,260 commits into
base: feat/ton
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
1260 commits
Select commit Hold shift + click to select a range
88c8e57
fix: Upgrade pnpm to version 9.4.0
KVNLS Jul 5, 2024
779c0f5
fix: update actions build
KVNLS Jul 2, 2024
1cc909e
Merge pull request #7248 from LedgerHQ/fix/upgrade-pnpm
KVNLS Jul 5, 2024
02d5b95
Revert "ci: change testing firebase env to prod"
abdurrahman-ledger Jul 5, 2024
5f4e68d
:boom:feat(lld): nft breadcrumb (#7249)
LucasWerey Jul 5, 2024
6353cea
fix: LIVE-13279 (#7256)
CremaFR Jul 5, 2024
a67a2d1
chore(trustchain): add twoAddMembersFollowedByDeviceAdd test (#7229)
gre Jul 5, 2024
f0ed580
Support LIVE-13070 coin tester polkadot runtime upgrade (#7181)
hzheng-ledger Jul 6, 2024
1dc438e
fix: Upgrade Turborepo to 2.0.6
KVNLS Jul 5, 2024
a6f1db1
fix: address pr request changes
kallen-ledger Jul 8, 2024
289996a
fix: revert ignoring all swaps error (#7277)
CremaFR Jul 8, 2024
d491591
Merge pull request #7251 from LedgerHQ/support/playwright_test
abdurrahman-ledger Jul 8, 2024
e36582f
ci: change back firebase env to testing for speculos
abdurrahman-ledger Jul 8, 2024
c34461a
Merge pull request #7281 from LedgerHQ/support/qaa-137_speculos_fireb…
abdurrahman-ledger Jul 8, 2024
ef86807
Merge pull request #7276 from LedgerHQ/fix/upgrade-turbo-2
KVNLS Jul 8, 2024
00fe9a8
Revert "Merge pull request #7276 from LedgerHQ/fix/upgrade-turbo-2"
KVNLS Jul 8, 2024
5305d5e
Merge pull request #7285 from LedgerHQ/fix/revert-turborepo-2
KVNLS Jul 8, 2024
383ecdd
fix: getAvailableProviders returns providers from CAL not from backup…
CremaFR Jul 8, 2024
9a09c30
Merge pull request #7260 from LedgerHQ/bugfix/LIVE-13101
kallen-ledger Jul 8, 2024
f979216
feat: checks for tron max values from swap (#7286)
CremaFR Jul 8, 2024
ff23360
πŸ› [BUGFIX] : Reset of market Store when refreshing app + uniformize m…
mcayuelas-ledger Jul 8, 2024
3dbbc57
chore(prerelease) update cryptoassets
live-github-bot[bot] Jul 8, 2024
a8d328e
chore(prerelease): :rocket: entering prerelease mode
live-github-bot[bot] Jul 8, 2024
6b6f36d
chore(prerelease): :rocket: release prerelease [LLD(2.84.0-next.0), L…
live-github-bot[bot] Jul 8, 2024
024540b
Refactored fixtures file
ypolishchuk-ledger Jul 8, 2024
a43bb22
fix: sign tx for injective
KVNLS Jul 8, 2024
c59b06f
fix: sign tx for injective
KVNLS Jul 8, 2024
1fc8d79
Merge pull request #7293 from LedgerHQ/fix/zondax-crypto
KVNLS Jul 9, 2024
20ff796
Merge pull request #7295 from LedgerHQ/fix/release-zondax-sign-tx
KVNLS Jul 9, 2024
9d32a57
chore(prerelease): :rocket: release prerelease [LLD(2.84.0-next.1), L…
live-github-bot[bot] Jul 9, 2024
0e09748
test(trustchain): many getOrCreateTrustchain with different creds fai…
gre Jul 9, 2024
08e85c3
⚑️ [FEAT] : Integrate Trustchain logic in LedgerSync LLD - V1 (#7131)
mcayuelas-ledger Jul 9, 2024
43f391a
Removing appendFileErrorHandler mathod
ypolishchuk-ledger Jul 9, 2024
5b97757
feat: sends devMode to buy-sell app (#7292)
sergiubreban Jul 10, 2024
96c8878
[FEAT] : Integrate Trustchain logic in LedgerSync LLD - V2 (#7294)
mcayuelas-ledger Jul 10, 2024
bbe45f2
Analytics WalletSync
mcayuelas-ledger Jul 9, 2024
1ed61fa
Merge pull request #7289 from LedgerHQ/refactoring/playwright-fixtures
ypolishchuk-ledger Jul 10, 2024
1636566
Add Close event
mcayuelas-ledger Jul 10, 2024
8656410
Add Back event
mcayuelas-ledger Jul 10, 2024
b19a28e
LIVE-13135: fix overflow details on swap device confirmation (#7255)
Jul 10, 2024
e759570
fix(lld): use correct Sentry on browser side
KVNLS Jul 10, 2024
0a0bc13
Merge pull request #7299 from LedgerHQ/feat/ledger-sync-analytics-lld
mcayuelas-ledger Jul 10, 2024
70074f8
Merge pull request #7302 from LedgerHQ/fix/live-13321
KVNLS Jul 10, 2024
fc3924d
🧹 support(lld): Fix generated icons attributes case (#7264)
thesan Jul 10, 2024
581a6f9
feat(web3hub): main and search screen first iteration
Justkant Jul 10, 2024
77bcd53
fix: use auto instead of fit-content that does not exist on RN
Justkant Jul 10, 2024
89bcd8a
chore: add wallet-api as codeowners of web3hub
Justkant Jul 10, 2024
8b79952
fix(lld): device selector alignment and text overflow
KVNLS Jul 10, 2024
82bc958
test(lld): update screenshots (ubuntu-latest) lld, test, screenshot
live-github-bot[bot] Jul 10, 2024
e1bcbda
Merge pull request #7309 from LedgerHQ/fix/live-13332
KVNLS Jul 10, 2024
bb7c1a8
fix: imageProcessor webview should have a source [LIVE-13334]
Justkant Jul 10, 2024
8e47fc7
Merge pull request #7311 from LedgerHQ/bugfix/LIVE-13334
Justkant Jul 10, 2024
a1399f6
Merge pull request #7311 from LedgerHQ/bugfix/LIVE-13334
Justkant Jul 10, 2024
e9de344
chore(prerelease): :rocket: release prerelease [LLD(2.84.0-next.1), L…
live-github-bot[bot] Jul 10, 2024
c0f4803
πŸ§ͺ support(trustchain): Test refusing member removal on device (#7303)
thesan Jul 11, 2024
1151db2
chore(trustchain): introduce TrustchainNotAllowed error (#7313)
gre Jul 11, 2024
bcfe297
test(trustchain): getMembers should be Unauthorized if no longer memb…
gre Jul 11, 2024
ed600dd
fix: upgrade Sentry to V8
KVNLS Jul 10, 2024
ba4c384
[FEAT] : Handle Unsecured error for Ledger Sync
mcayuelas-ledger Jul 11, 2024
9ed34c1
Merge pull request #7314 from LedgerHQ/feat/ws-unsecured-error
mcayuelas-ledger Jul 11, 2024
1161889
Merge pull request #7306 from LedgerHQ/fix/upgrade-sentry-8
KVNLS Jul 11, 2024
2ab9f19
chore(live-wallet): implement Wallet Sync <> Accounts management (#7126)
gre Jul 11, 2024
de65582
chore(walletsync): introduce hooks to be able to restoreTrustchain (#…
gre Jul 11, 2024
5e137a4
LIVE-13094: fix long accounts (#7305)
Jul 11, 2024
ff2e04c
fix(llm): filter not work bug
jiyuzhuang Jul 11, 2024
82310fe
[FIX]: error handling in getMembers (#7316)
mcayuelas-ledger Jul 11, 2024
7c481b7
chore(trustchain): simplify test folders (#7262)
gre Jul 11, 2024
802329e
chore(web-tools): fix AppCloudSync to let unknown fields pass
gre Jul 11, 2024
fe21435
fix(LLD): AccountList not showing the correct name and balance for to…
Justkant Jul 11, 2024
09aaba2
test: add a case for the token name and balance
Justkant Jul 11, 2024
9fc2758
feat: swap webview content size listener (#7304)
Jul 12, 2024
7f2ca21
Feat: network fee drawer for swap live app (#7296)
CremaFR Jul 12, 2024
471ce30
Merge pull request #7321 from LedgerHQ/bugfix/CN-142
Justkant Jul 12, 2024
fc183ad
Merge pull request #7307 from LedgerHQ/feat/LIVE-13176
Justkant Jul 12, 2024
c2e7c37
fix: lld bad import for sentry in renderer
Justkant Jul 12, 2024
1954cf9
Merge pull request #7326 from LedgerHQ/support/fix-lld-bad-import
KVNLS Jul 12, 2024
1bf6186
[XTZ] Fix prepareTransaction missing data (#7325)
sprohaszka-ledger Jul 12, 2024
d540c6e
[XTZ] Fix prepareTransaction missing data (#7325)
sprohaszka-ledger Jul 12, 2024
7287fcc
chore(prerelease): :rocket: release prerelease [LLD(2.84.0-next.2), L…
live-github-bot[bot] Jul 12, 2024
b3682a3
test: change android firebase environment to testing
abdurrahman-ledger Jul 10, 2024
a57cf0c
test: change iOS firebase testing
abdurrahman-ledger Jul 11, 2024
03c514a
feat(web3hub): add search with mocks [LIVE-13187]
Justkant Jul 15, 2024
456b0b0
chore: generalize encryption to encrypt trustchain store (#7280)
gre Jul 15, 2024
c38e502
[XTZ] Add unit test for prepareTransaction (#7332)
sprohaszka-ledger Jul 15, 2024
1241c41
Merge pull request #7318 from LedgerHQ/bugfix/live-13346
jiyuzhuang Jul 15, 2024
9480200
Merge pull request #7315 from LedgerHQ/support/qaa_136_detox_firebase…
ypolishchuk-ledger Jul 15, 2024
c23d07d
test: use roles instead of testIDs
Justkant Jul 15, 2024
8c4aaec
refactor: export queryKey if needed for invalidation
Justkant Jul 15, 2024
7c8670e
chore(release): update LLD release note v2.84.0 and LLM v.3.4.0
LucasWerey Jul 15, 2024
d8eda33
chore(wallet): move to pako compression lib (#7331)
gre Jul 15, 2024
5116df7
chore(trustchain): detect more cases of trustchain refresh needs (#7320)
gre Jul 15, 2024
afa03ae
[COIN] Add lastBlock functions to CoinApi (#7265)
sprohaszka-ledger Jul 15, 2024
be9ea23
Merge pull request #7333 from LedgerHQ/chores/release-note
LucasWerey Jul 15, 2024
28962f7
[QAA_116][Detox] Refactor some elements (#7214)
abdurrahman-ledger Jul 15, 2024
ee7957a
chore(wallet): fixes cloudsync api parser on out-of-sync info nullabl…
gre Jul 15, 2024
b26ae51
chore(walletsync): improve walletsync lib (#7337)
gre Jul 15, 2024
172a771
Merge pull request #7330 from LedgerHQ/feat/LIVE-13177
Justkant Jul 15, 2024
b24a4da
[FEAT] : Activation Flow LedgerSync (#7324)
mcayuelas-ledger Jul 15, 2024
ad9594b
chore(deps): update electron (patch) (#7340)
live-github-bot[bot] Jul 16, 2024
53ff78c
chore(live-network): only retry network for status code that makes se…
gre Jul 16, 2024
578f2c3
fix(cloudsync): to apply deleted-data on outdated case (#7341)
gre Jul 16, 2024
0cd19df
Activate disabled tests in speculos folder
ypolishchuk-ledger Jul 16, 2024
2e99ffc
fix: use .eq comparitor for bignumbers
kallen-ledger Jul 16, 2024
abb86a1
fix: update snapshots
kallen-ledger Jul 16, 2024
7ee4a9a
Merge pull request #7342 from LedgerHQ/fix/activate-disabled-tests-sp…
ypolishchuk-ledger Jul 16, 2024
c42648f
Merge pull request #7343 from LedgerHQ/bugfix/LIVE-13379
kallen-ledger Jul 16, 2024
88ffec5
chore(prerelease): :rocket: release prerelease [LLD(2.84.0-next.3), L…
live-github-bot[bot] Jul 16, 2024
5ce7fe7
fix(lld): onboarding error when device connected
jiyuzhuang Jul 12, 2024
584d20f
[CHORE] : Update TRUSTCHAIN_APP_NAME on both platforms (#7338)
mcayuelas-ledger Jul 16, 2024
e047aa9
fix(live-13345): remove quotes filters on demo0 (#7322)
liviuciulinaru Jul 16, 2024
67adce9
test: adding new json reporter + update e2e workflow + adding aggrega…
VicAlbr Jul 16, 2024
b1dd42c
coin-tester.md
lvndry Jul 8, 2024
2ac06a9
add more doc
lvndry Jul 10, 2024
fd25f58
Update libs/coin-tester/coin-tester.md
Wozacosta Jul 16, 2024
af612e0
Update libs/coin-tester/coin-tester.md
Wozacosta Jul 16, 2024
5c4e362
Update libs/coin-tester/coin-tester.md
Wozacosta Jul 16, 2024
018fe15
Update libs/coin-tester/coin-tester.md
Wozacosta Jul 16, 2024
f40b4ca
Update libs/coin-tester/coin-tester.md
Wozacosta Jul 16, 2024
700a5d6
Update libs/coin-tester/coin-tester.md
Wozacosta Jul 16, 2024
48e9386
feat(live-13282): spacing based on screen resolution (#7329)
liviuciulinaru Jul 16, 2024
8dd0fb1
fix(llm): fix device setup flow error
jiyuzhuang Jul 15, 2024
80ae817
refactor(web3hub): navigators
Justkant Jul 15, 2024
0c8f9da
feat(web3hub): add app screen webview [LIVE-13179]
Justkant Jul 17, 2024
db9c2d7
Feat/integrate icon (#7075)
hedi-edelbloute Jul 17, 2024
94d165a
ci: adding new Job for Xray in test-ui-e2e workflow + renaming custom…
VicAlbr Jul 17, 2024
69bbb78
chore(common): fix unimportedrc.json
valpinkman Jul 17, 2024
446d332
ci: removing if condition on upload-to-xray job
VicAlbr Jul 17, 2024
fa11d97
Merge pull request #7349 from LedgerHQ/chore/common-unimported-config…
valpinkman Jul 17, 2024
c34b88f
Merge pull request #7327 from LedgerHQ/bugfix/live-13353
jiyuzhuang Jul 17, 2024
f717195
fix: correct error messages in swap when input blance greater than av…
kallen-ledger Jul 17, 2024
1eaf761
chore: remove unused import
kallen-ledger Jul 17, 2024
6e7b14f
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
9934c5a
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
5d7838e
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
be979c1
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
a471f3e
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
01e2eeb
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
6ad84cb
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
5a60bf8
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
10bde04
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
dfdb8f1
File apps/ledger-live-desktop/static/i18n/en/app.json was translated …
ldg-smartling-sa Jul 17, 2024
c01b450
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
ebbaf2e
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
c907d30
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
fa7cdce
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
8e15379
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
dc6f2ed
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
1ed03a4
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
f96e049
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
cb2dc57
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
5ea16e0
File apps/ledger-live-mobile/src/locales/en/common.json was translate…
ldg-smartling-sa Jul 17, 2024
6c1e360
fix(live-13358): reset toAmount on target change (#7351)
liviuciulinaru Jul 17, 2024
313f81d
Merge pull request #7354 from LedgerHQ/smartling-translations-2024071…
LucasWerey Jul 17, 2024
badb8eb
Merge pull request #7018 from LedgerHQ/support/speculos-Xray
VicAlbr Jul 17, 2024
cb20061
Merge pull request #7353 from LedgerHQ/bugfix/LIVE-13376
kallen-ledger Jul 17, 2024
cce6c92
chore(prerelease): :rocket: release prerelease [LLD(2.84.0-next.4), L…
live-github-bot[bot] Jul 17, 2024
3dce227
chore(deps): update dependency @changesets/cli to v2.27.7 (#7348)
live-github-bot[bot] Jul 18, 2024
a72a99d
Merge pull request #7323 from LedgerHQ/feat/live-12319-3rd-party-coin…
Wozacosta Jul 18, 2024
95fdef0
test(cloudsync): improve cipher tests (#7344)
gre Jul 18, 2024
31171ce
chore(trustchain): on removeMember, closeStream with the device for b…
gre Jul 18, 2024
85fd9c6
chore(release): resolve conflicts
LucasWerey Jul 18, 2024
53e9dd4
πŸ—οΈ [CHORE] : Rework new Arch folder (#7359)
mcayuelas-ledger Jul 18, 2024
40da39d
fix(trustchain): invalid jwt token if trustchain/memberCredentials ch…
gre Jul 18, 2024
98297e5
Merge pull request #7350 from LedgerHQ/feat/LIVE-13179
Justkant Jul 18, 2024
d026c19
LLD integration of Wallet Sync (#7300)
gre Jul 18, 2024
14e30e0
feat(web3hub): add tabs button to main, search and app screens [LIVE-…
Justkant Jul 18, 2024
3cbf749
chore(release): :rocket: prepare release [skip ci]
live-github-bot[bot] Jul 19, 2024
ab27cc5
chore(release): resolve conflicts
LucasWerey Jul 19, 2024
0937c43
Merge pull request #7371 from LedgerHQ/support/release-merge-conflicts
LucasWerey Jul 19, 2024
de6d6c6
Merge pull request #7365 from LedgerHQ/feat/LIVE-13181
Justkant Jul 19, 2024
f6c4ed3
Revert "Merge pull request #7371 from LedgerHQ/support/release-merge-…
LucasWerey Jul 19, 2024
6207021
Merge pull request #7372 from LedgerHQ/revert/lockfile
LucasWerey Jul 19, 2024
7783590
chore: add common setup errors to readme
mwiercinska Jul 19, 2024
a2f40e1
Merge pull request #7374 from LedgerHQ/support/add-common-setup-error…
mwiercinska Jul 19, 2024
2e349c9
Fix/test rebuild develop (#7383)
KVNLS Jul 19, 2024
8826f68
feat: always show scrollbar in swap live (#7385)
liviuciulinaru Jul 22, 2024
5909f28
πŸ’„ [FEAT] : Polishing Success Screen + Add new attribute in store (#7360)
mcayuelas-ledger Jul 22, 2024
17605d4
test: fixing XLM subAccount test (Token Visible in parent account)
VicAlbr Jul 22, 2024
d2c3b73
test: adding scroll method for currency selection in addAccount + fix…
VicAlbr Jul 22, 2024
8bec338
feat: adds swap feedback form (#7379)
andreicovaciu Jul 22, 2024
a5c3540
Merge pull request #7386 from LedgerHQ/support/subAccount_fix
VicAlbr Jul 22, 2024
1cc7146
:bug:fix(lld): word break issue in nft drawer (#7389)
LucasWerey Jul 22, 2024
aa0c629
[FIX]: Allocation display was overlapping content (#7392)
mcayuelas-ledger Jul 22, 2024
3164745
[FEAT] : Improve Market for Backend (#7363)
mcayuelas-ledger Jul 22, 2024
5d29293
[FEAT] : Activation Flow with Trustchain (#7352)
mcayuelas-ledger Jul 22, 2024
8553b3e
Fix: LIVE-12323 Rename crypto.org to cronos POS chain (#7232)
hzheng-ledger Jul 22, 2024
757de54
feat(ton): add initial definitions
carlosala Nov 28, 2023
bc3cac8
feat(ton): add hw-getAddress and hw-signMessage
carlosala Dec 1, 2023
cb79341
feat(ton): add currencyBridge
carlosala Jan 15, 2024
b19df36
feat(ton): add accountBridge
carlosala Jan 15, 2024
89f4ba6
feat(ton): add LLD integration
carlosala Jan 15, 2024
76b56f2
feat(ton): add LLM integration
carlosala Jan 15, 2024
8eb8b81
test(ton): add bridge integration test
carlosala Jan 17, 2024
da98b76
test(ton): add ton specs
carlosala Jan 23, 2024
3c36b7a
feat(patches): `buffer` add `Buffer.subarray` polyfill
carlosala Jan 15, 2024
0ee1fac
fix(ton): disable testnet
carlosala Jan 24, 2024
ffb9ff9
chore: bump pnpm-lock
carlosala Jan 24, 2024
4bd91de
chore: add changeset
carlosala Jan 24, 2024
6bddfe5
refac(ton): move ton to coin-framework
ayelenmurano Apr 9, 2024
88755d5
chore(ton): Delete unused imports
ayelenmurano Apr 26, 2024
f911d13
fix(ton): Rebase adjustments
ayelenmurano May 7, 2024
02e4c09
feat(ton): add initial definitions
carlosala Nov 28, 2023
899df6a
chore: bump pnpm-lock
carlosala Jan 24, 2024
a179138
refac(ton): move ton to coin-framework
ayelenmurano Apr 9, 2024
a5c7c3a
TO REMOVE enable testnet and currency
ayelenmurano Apr 10, 2024
bb9dbda
feat(ton): add initial jetton deffinition
ayelenmurano Apr 10, 2024
b59ead1
TO REMOVE add test jettons
ayelenmurano Apr 10, 2024
a7a373a
--wip-- [skip ci]
ayelenmurano Apr 10, 2024
52189a5
feat(ton): add sync support jettons
ayelenmurano Apr 11, 2024
733ab1b
fix(ton): display pending operations
ayelenmurano Apr 12, 2024
5b0e72b
feat(ton): add jettons data
ayelenmurano Apr 16, 2024
cb30ee1
feat(ton): add ability to sign jetton transfers (in process)
ayelenmurano Apr 16, 2024
1545694
fix(ton): add a missing import
ayelenmurano Apr 16, 2024
db7b4a0
feat(ton): sync sub accounts pending op and adjust token transfers
ayelenmurano Apr 18, 2024
2252c5a
chore(ton): fix a typo
ayelenmurano Apr 26, 2024
e33412f
feat(lld): Use msg hash to search the tx in the explorer
ayelenmurano Apr 26, 2024
8811a29
feat(lld): don't allow to send a comment in a token transfer
ayelenmurano Apr 26, 2024
69020fc
style(ton): lint
ayelenmurano Apr 26, 2024
1b2f5ec
feat(ton): adjust jettons data
ayelenmurano Apr 26, 2024
9c5c7b2
chore(ton): delete comments
ayelenmurano Apr 29, 2024
f9d3423
refact(ton): use isTokenAccount from coin-framework and clean code
ayelenmurano May 6, 2024
79d32ad
feat(ton): rebase adjustment
ayelenmurano May 7, 2024
6060dba
feat(ton): add tests and run lint and typecheck commands
ayelenmurano May 14, 2024
e6d3f50
feat(ton): adjust jetton transfer fees, refactor get transaction status
ayelenmurano May 17, 2024
08e91ea
feat(ton): add jetton icons
ayelenmurano May 21, 2024
f28d91d
feat(ton): add custom config for ton
ayelenmurano May 24, 2024
7016bc7
add changeset
ayelenmurano May 29, 2024
e83cd27
refactor(ton): rebase adjustments
ayelenmurano May 30, 2024
11c8a25
feat(ton): Adjust test changes
ayelenmurano May 30, 2024
b305751
feat(ton): add usdt as jetton
ayelenmurano May 30, 2024
f15deb6
refactor(ton): rebase adjustments
ayelenmurano May 30, 2024
5da03b1
refactor(ton): solve comments
ayelenmurano Jun 10, 2024
50dbf9e
refactor(ton): code style adjustments
ayelenmurano Jun 11, 2024
443ed1d
refactor(ton): solve comments
ayelenmurano Jun 12, 2024
073822f
feat(ton): Add NOT as jetton and add MEM icon
ayelenmurano Jun 13, 2024
3d06c04
refactor(ton): add fees payed in the last step, move comment entry to…
ayelenmurano Jun 17, 2024
c117a43
fix(ton): add a missing package and fix an import
ayelenmurano Jun 18, 2024
f081688
Add unit tests
ayelenmurano Jun 25, 2024
717788c
refactor(ton): solve comments and adjust mobile version
ayelenmurano Jun 27, 2024
c913abc
refactor(ton): rebase adjustments and adjust jetton decimals
ayelenmurano Jun 27, 2024
372c10f
refactor(ton): Delete a condition
ayelenmurano Jul 3, 2024
02e5dcd
refactor(ton): run lint:fix command
ayelenmurano Jul 3, 2024
08aca46
feat(ton): adjust endpoints to ledger reverse proxy
ayelenmurano Jul 3, 2024
4987814
feat(ton): delete jetton integration
ayelenmurano Jul 4, 2024
5efe391
feat(ton): snapshot update
rllola Jul 4, 2024
7141649
feat(ton): add fees as suboperation on IN txs and update snapshot
ayelenmurano Jul 11, 2024
d3f1df0
feat(ton): downgrade expo-random and add deleted icons
ayelenmurano Jul 15, 2024
5fc15d5
feat(ton): solve mobile issue on android
ayelenmurano Jul 17, 2024
3445486
fix: rebase issues
emmanuelm41 Jul 22, 2024
958bf92
fix: pnpm lock and podfile.lock
emmanuelm41 Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(ton): rebase adjustments
ayelenmurano authored and emmanuelm41 committed Jul 22, 2024
commit e83cd27387c1190e841d85422dfc2b4544425605
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import {
ExtraDeviceTransactionField,
Transaction,
} from "@ledgerhq/live-common/families/kadena/types";
import React from "react";
import Text from "~/renderer/components/Text";
import TransactionConfirmField from "~/renderer/components/TransactionConfirm/TransactionConfirmField";

const KadenaField = ({
field,
}: {
transaction: Transaction;
field: ExtraDeviceTransactionField;
}) => {
return (
<TransactionConfirmField label={field.label}>
<Text
style={{ wordBreak: "break-all", maxWidth: "70%" }}
textAlign="right"
ml={1}
ff="Inter|Medium"
color="palette.text.shade80"
fontSize={3}
>
{(field as ExtraDeviceTransactionField)?.value || ""}
</Text>
</TransactionConfirmField>
);
};
const fieldComponents = {
"kadena.recipient": KadenaField,
"kadena.gasLimit": KadenaField,
"kadena.gasPrice": KadenaField,
};
export default {
fieldComponents,
};
6 changes: 4 additions & 2 deletions libs/coin-framework/src/derivation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/index";
import { TransportStatusError, UserRefusedAddress } from "@ledgerhq/errors";
import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
import { getEnv } from "@ledgerhq/live-env";
import { log } from "@ledgerhq/logs";
import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
import { DerivationMode } from "@ledgerhq/types-live";
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/index";
import invariant from "invariant";
import { Observable, defer, empty, of, range } from "rxjs";
import { catchError, concatMap, map, switchMap, takeWhile } from "rxjs/operators";

export type ModeSpec = {
mandatoryEmptyAccountSkip?: number;
1 change: 0 additions & 1 deletion libs/coin-modules/coin-ton/src/bridge.integration.test.ts
Original file line number Diff line number Diff line change
@@ -46,7 +46,6 @@ const ton: CurrenciesData<Transaction> = {
blockHeight: 0,
operations: [],
pendingOperations: [],
unitMagnitude: 9,
lastSyncDate: "",
balance: "5000000000",
subAccounts: [],
13 changes: 4 additions & 9 deletions libs/coin-modules/coin-ton/src/bridge/js.ts
Original file line number Diff line number Diff line change
@@ -16,12 +16,10 @@ import getTransactionStatus from "../js-getTransactionStatus";
import prepareTransaction from "../js-prepareTransaction";
import { buildSignOperation } from "../js-signOperation";
import { getAccountShape, sync } from "../js-synchronisation";
import { TonAddress, TonSignature, TonSigner } from "../signer";
import { TonSigner } from "../signer";
import type { Transaction } from "../types";

export function buildCurrencyBridge(
signerContext: SignerContext<TonSigner, TonAddress | TonSignature>,
): CurrencyBridge {
export function buildCurrencyBridge(signerContext: SignerContext<TonSigner>): CurrencyBridge {
const getAddress = resolver(signerContext);

const scanAccounts = makeScanAccounts({
@@ -37,7 +35,7 @@ export function buildCurrencyBridge(
}

export function buildAccountBridge(
signerContext: SignerContext<TonSigner, TonAddress | TonSignature>,
signerContext: SignerContext<TonSigner>,
): AccountBridge<Transaction> {
const getAddress = resolver(signerContext);

@@ -57,10 +55,7 @@ export function buildAccountBridge(
};
}

export function createBridges(
signerContext: SignerContext<TonSigner, TonAddress | TonSignature>,
coinConfig: TonCoinConfig,
) {
export function createBridges(signerContext: SignerContext<TonSigner>, coinConfig: TonCoinConfig) {
setCoinConfig(coinConfig);

return {
6 changes: 2 additions & 4 deletions libs/coin-modules/coin-ton/src/hw-getAddress.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { GetAddressFn } from "@ledgerhq/coin-framework/bridge/getAddressWrapper";
import { GetAddressOptions } from "@ledgerhq/coin-framework/derivation";
import { SignerContext } from "@ledgerhq/coin-framework/signer";
import { TonAddress, TonSignature, TonSigner } from "./signer";
import { TonAddress, TonSigner } from "./signer";
import { getLedgerTonPath } from "./utils";

const resolver = (
signerContext: SignerContext<TonSigner, TonAddress | TonSignature>,
): GetAddressFn => {
const resolver = (signerContext: SignerContext<TonSigner>): GetAddressFn => {
return async (deviceId: string, { path, verify }: GetAddressOptions) => {
const ledgerPath = getLedgerTonPath(path);

4 changes: 2 additions & 2 deletions libs/coin-modules/coin-ton/src/hw-signMessage.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { SignerContext } from "@ledgerhq/coin-framework/signer";
import type { Account } from "@ledgerhq/types-live";
import { AnyMessage } from "@ledgerhq/types-live";
import { TonAddress, TonSignature, TonSigner } from "./signer";
import { TonSignature, TonSigner } from "./signer";
import { TonHwParams } from "./types";
import { getLedgerTonPath } from "./utils";

export const signMessage =
(signerContext: SignerContext<TonSigner, TonAddress | TonSignature>) =>
(signerContext: SignerContext<TonSigner>) =>
async (deviceId: string, account: Account, { message }: AnyMessage) => {
if (typeof message !== "string") {
throw new Error("Invalid message type");
6 changes: 2 additions & 4 deletions libs/coin-modules/coin-ton/src/js-signOperation.ts
Original file line number Diff line number Diff line change
@@ -8,17 +8,15 @@ import type {
} from "@ledgerhq/types-live";
import { Observable } from "rxjs";
import { fetchAccountInfo } from "./bridge/bridgeHelpers/api";
import type { TonAddress, TonSignature, TonSigner } from "./signer";
import type { TonSignature, TonSigner } from "./signer";
import type { TonOperation, Transaction } from "./types";
import { getAddress, getLedgerTonPath, packTransaction, transactionToHwParams } from "./utils";

/**
* Sign Transaction with Ledger hardware
*/
export const buildSignOperation =
(
signerContext: SignerContext<TonSigner, TonAddress | TonSignature>,
): SignOperationFnSignature<Transaction> =>
(signerContext: SignerContext<TonSigner>): SignOperationFnSignature<Transaction> =>
({
account,
transaction,
2 changes: 1 addition & 1 deletion libs/coin-modules/coin-ton/src/logic.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { listTokensForCryptoCurrency } from "@ledgerhq/coin-framework/currencies/index";
import { listTokensForCryptoCurrency } from "@ledgerhq/cryptoassets";
import { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
import murmurhash from "imurmurhash";

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { botTest, pickSiblings } from "@ledgerhq/coin-framework/bot/specs";
import type { AppSpec, TransactionDestinationTestInput } from "@ledgerhq/coin-framework/bot/types";
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets";
import { DeviceModelId } from "@ledgerhq/devices";
import BigNumber from "bignumber.js";
import expect from "expect";
import invariant from "invariant";
import { botTest, pickSiblings } from "../../bot/specs";
import type { AppSpec, TransactionDestinationTestInput } from "../../bot/types";
import { getCryptoCurrencyById } from "../../currencies";
import type { Transaction } from "../../families/ton/types";
import { acceptTransaction } from "./speculos-deviceActions";
import { Transaction } from "./types";

const MIN_SAFE = new BigNumber(1.5e7); // approx two txs' fees (0.015 TON)

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SpeculosButton, deviceActionFlow, formatDeviceAmount } from "../../bot/specs";
import type { DeviceAction, State } from "../../bot/types";
import type { DeviceAction, State } from "@ledgerhq/coin-framework/bot/types";
import { SpeculosButton, deviceActionFlow, formatDeviceAmount } from "@ledgerhq/coin-framework/lib-es/bot/specs";
import type { Transaction } from "./types";

export const acceptTransaction: DeviceAction<Transaction, State<Transaction>> = deviceActionFlow({
4 changes: 2 additions & 2 deletions libs/coin-modules/coin-ton/src/transaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getAccountUnit } from "@ledgerhq/coin-framework/account/index";
import { getAccountCurrency } from "@ledgerhq/coin-framework/account/index";
import { formatCurrencyUnit } from "@ledgerhq/coin-framework/currencies/index";
import { formatTransactionStatus } from "@ledgerhq/coin-framework/formatters";
import {
@@ -21,7 +21,7 @@ SEND ${
: amount.isZero()
? ""
: " " +
formatCurrencyUnit(getAccountUnit(account), amount, {
formatCurrencyUnit(getAccountCurrency(account).units[0], amount, {
showCode: true,
disableRounding: true,
})
4 changes: 2 additions & 2 deletions libs/ledger-live-common/src/generated/bridge/js.ts
Original file line number Diff line number Diff line change
@@ -15,13 +15,13 @@ import { bridge as cardano } from "../../families/cardano/setup";
import { bridge as evm } from "../../families/evm/setup";
import { bridge as near } from "../../families/near/setup";
import { bridge as polkadot } from "../../families/polkadot/setup";
import { bridge as ton } from "../../families/ton/setup";
import { bridge as solana } from "../../families/solana/setup";
import { bridge as stellar } from "../../families/stellar/setup";
import { bridge as tezos } from "../../families/tezos/setup";
import { bridge as tron } from "../../families/tron/setup";
import { bridge as xrp } from "../../families/xrp/setup";
import { bridge as icon } from "../../families/icon/setup";
import { bridge as ton } from "../../families/ton/setup";

export default {
casper,
@@ -41,11 +41,11 @@ export default {
evm,
near,
polkadot,
ton,
solana,
stellar,
tezos,
tron,
xrp,
icon,
ton,
};
4 changes: 2 additions & 2 deletions libs/ledger-live-common/src/generated/cli-transaction.ts
Original file line number Diff line number Diff line change
@@ -12,13 +12,13 @@ import { cliTools as cardano } from "../families/cardano/setup";
import { cliTools as evm } from "../families/evm/setup";
import { cliTools as near } from "../families/near/setup";
import { cliTools as polkadot } from "../families/polkadot/setup";
import { cliTools as ton } from "../families/ton/setup";
import { cliTools as solana } from "../families/solana/setup";
import { cliTools as stellar } from "../families/stellar/setup";
import { cliTools as tezos } from "../families/tezos/setup";
import { cliTools as tron } from "../families/tron/setup";
import { cliTools as xrp } from "../families/xrp/setup";
import { cliTools as icon } from "../families/icon/setup";
import { cliTools as ton } from "../families/ton/setup";

export default {
celo,
@@ -35,11 +35,11 @@ export default {
evm,
near,
polkadot,
ton,
solana,
stellar,
tezos,
tron,
xrp,
icon,
ton,
};
Original file line number Diff line number Diff line change
@@ -8,19 +8,20 @@ import hedera from "../families/hedera/deviceTransactionConfig";
import internet_computer from "../families/internet_computer/deviceTransactionConfig";
import stacks from "../families/stacks/deviceTransactionConfig";
import ton from "../families/ton/deviceTransactionConfig";
import tron from "../families/tron/deviceTransactionConfig";
import algorand from "@ledgerhq/coin-algorand/deviceTransactionConfig";
import bitcoin from "@ledgerhq/coin-bitcoin/deviceTransactionConfig";
import cardano from "@ledgerhq/coin-cardano/deviceTransactionConfig";
import evm from "@ledgerhq/coin-evm/deviceTransactionConfig";
import near from "@ledgerhq/coin-near/deviceTransactionConfig";
import polkadot from "@ledgerhq/coin-polkadot/deviceTransactionConfig";
import ton from "@ledgerhq/coin-ton/deviceTransactionConfig";
import solana from "@ledgerhq/coin-solana/deviceTransactionConfig";
import stellar from "@ledgerhq/coin-stellar/deviceTransactionConfig";
import tezos from "@ledgerhq/coin-tezos/deviceTransactionConfig";
import tron from "@ledgerhq/coin-tron/deviceTransactionConfig";
import xrp from "@ledgerhq/coin-xrp/deviceTransactionConfig";
import icon from "@ledgerhq/coin-icon/deviceTransactionConfig";
import ton from "@ledgerhq/coin-ton/deviceTransactionConfig";

export default {
casper,
@@ -45,6 +46,7 @@ export default {
tron,
xrp,
icon,
ton,
};
import { ExtraDeviceTransactionField as ExtraDeviceTransactionField_casper } from "../families/casper/deviceTransactionConfig";
import { ExtraDeviceTransactionField as ExtraDeviceTransactionField_cosmos } from "../families/cosmos/deviceTransactionConfig";
5 changes: 3 additions & 2 deletions libs/ledger-live-common/src/generated/hw-getAddress.ts
Original file line number Diff line number Diff line change
@@ -8,20 +8,21 @@ import hedera from "../families/hedera/hw-getAddress";
import internet_computer from "../families/internet_computer/hw-getAddress";
import stacks from "../families/stacks/hw-getAddress";
import ton from "../families/ton/hw-getAddress";
import tron from "../families/tron/hw-getAddress";
import vechain from "../families/vechain/hw-getAddress";
import { resolver as algorand } from "../families/algorand/setup";
import { resolver as bitcoin } from "../families/bitcoin/setup";
import { resolver as cardano } from "../families/cardano/setup";
import { resolver as evm } from "../families/evm/setup";
import { resolver as near } from "../families/near/setup";
import { resolver as polkadot } from "../families/polkadot/setup";
import { resolver as ton } from "../families/ton/setup";
import { resolver as solana } from "../families/solana/setup";
import { resolver as stellar } from "../families/stellar/setup";
import { resolver as tezos } from "../families/tezos/setup";
import { resolver as tron } from "../families/tron/setup";
import { resolver as xrp } from "../families/xrp/setup";
import { resolver as icon } from "../families/icon/setup";
import { resolver as ton } from "../families/ton/setup";

export default {
casper,
@@ -41,11 +42,11 @@ export default {
evm,
near,
polkadot,
ton,
solana,
stellar,
tezos,
tron,
xrp,
icon,
ton,
};
3 changes: 3 additions & 0 deletions libs/ledger-live-common/src/generated/specs.ts
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ import hedera from "../families/hedera/specs";
import internet_computer from "../families/internet_computer/specs";
import stacks from "../families/stacks/specs";
import ton from "../families/ton/specs";
import tron from "../families/tron/specs";
import vechain from "../families/vechain/specs";
import algorand from "@ledgerhq/coin-algorand/specs";
import bitcoin from "@ledgerhq/coin-bitcoin/specs";
@@ -21,6 +22,7 @@ import tezos from "@ledgerhq/coin-tezos/specs";
import tron from "@ledgerhq/coin-tron/specs";
import xrp from "@ledgerhq/coin-xrp/specs";
import icon from "@ledgerhq/coin-icon/specs";
import ton from "@ledgerhq/coin-ton/specs";

export default {
casper,
@@ -46,4 +48,5 @@ export default {
tron,
xrp,
icon,
ton,
};
5 changes: 3 additions & 2 deletions libs/ledger-live-common/src/generated/transaction.ts
Original file line number Diff line number Diff line change
@@ -8,20 +8,21 @@ import hedera from "../families/hedera/transaction";
import internet_computer from "../families/internet_computer/transaction";
import stacks from "../families/stacks/transaction";
import ton from "../families/ton/transaction";
import tron from "../families/tron/transaction";
import vechain from "../families/vechain/transaction";
import algorand from "@ledgerhq/coin-algorand/transaction";
import bitcoin from "@ledgerhq/coin-bitcoin/transaction";
import cardano from "@ledgerhq/coin-cardano/transaction";
import evm from "@ledgerhq/coin-evm/transaction";
import near from "@ledgerhq/coin-near/transaction";
import polkadot from "@ledgerhq/coin-polkadot/transaction";
import ton from "@ledgerhq/coin-ton/transaction";
import solana from "@ledgerhq/coin-solana/transaction";
import stellar from "@ledgerhq/coin-stellar/transaction";
import tezos from "@ledgerhq/coin-tezos/transaction";
import tron from "@ledgerhq/coin-tron/transaction";
import xrp from "@ledgerhq/coin-xrp/transaction";
import icon from "@ledgerhq/coin-icon/transaction";
import ton from "@ledgerhq/coin-ton/transaction";

export default {
casper,
@@ -41,11 +42,11 @@ export default {
evm,
near,
polkadot,
ton,
solana,
stellar,
tezos,
tron,
xrp,
icon,
ton,
};
6 changes: 6 additions & 0 deletions libs/ledger-live-common/src/generated/types.ts
Original file line number Diff line number Diff line change
@@ -112,6 +112,12 @@ import type {
TransactionStatus as tezosTransactionStatus,
TransactionStatusRaw as tezosTransactionStatusRaw,
} from "@ledgerhq/coin-tezos/types/index";
import type {
Transaction as tonTransaction,
TransactionRaw as tonTransactionRaw,
TransactionStatus as tonTransactionStatus,
TransactionStatusRaw as tonTransactionStatusRaw,
} from "@ledgerhq/coin-ton/types";
import type {
Transaction as tronTransaction,
TransactionRaw as tronTransactionRaw,
Loading