This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Elrond ESDT tokens & EGLD staking integration #1585
Open
AlexandruPislariu
wants to merge
174
commits into
LedgerHQ:develop
Choose a base branch
from
multiversx:esdt-integration
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
174 commits
Select commit
Hold shift + click to select a range
76ee01a
Integrate Elrond in Ledger families
75dad61
Serialize specific resources for Elrond family
05aff5d
Reconciliate specific resources for Elrond family
695e6c5
Elrond mainnet api for interactions
58a2939
Set elrond as supported currency
5b719c3
Merge pull request #1 from pislaProgramming/integrate
AlexandruPislariu 341793d
Revert "Integrate"
AlexandruPislariu 5af312f
Merge pull request #2 from ElrondNetwork/revert-1-integrate
AlexandruPislariu 62975f0
Revert "Revert "Integrate""
AlexandruPislariu 63404a5
Incremental synchronisation depending on timestamp
3d15bb6
Sync with last operation only if is confirmed
ecfb86b
Unused import
929969f
Unnecessary variable
71c665e
Lint
e874779
Unnecessary object destructuring
444d12e
Account details and blockchain blockHeight
bf3e1ab
Network configs for fees
2b3ed44
Submit transaction
5100004
Remove call for nonce
3b1c8a5
Merge pull request #4 from ElrondNetwork/elrond-integration
AlexandruPislariu 6f7caa5
self transaction warning
f46af8a
Update changes from base repo
3df8eac
Revert "Update changes from base repo"
21d0b83
fix ledger infinite sync on first account
ecb5f9d
remove elrond specific errors, use ledger errors instead
4e99077
typo in nonce display
d1cf9c1
use METACHAIN_SHARD constant
50e448c
unnecessary ELROND_API_ENDPOINT constant
1d4c476
broadcast instead of submit transaction
a1b3b2b
use cache mechanism for transaction network config
c458dc7
address validation using bech32 decode
413d21c
remove unnecessary getNetworkConfigs from logic
2c5cc91
use erdjs for address validation
1792802
install @elrondnetwork/erdjs
57294b4
add tests for elrond transactions
87b793d
Merge branch 'master' into accept-cryptoorg
AlexandruPislariu 15b9cb0
add elrond to test setup
01f1e2c
small fixes to test-dataset
c28f156
test setup for elrond
fa57513
remove mock implementations
a56c2cc
elrond seeds for tests
a3102e0
compute spendable balance
b6a61a7
fees as BigNumber
7caf5e6
test address with 0 balance
f3d2338
toBe => toStrictEqual jest matcher
9fc0245
add bsc supported currency
cad581e
sync with LedgerHQ:master
cdd5010
Merge branch 'master' into accept-cryptoorg
AlexandruPislariu e3e6429
Merge branch 'LedgerHQ:master' into master
AlexandruPislariu 0334ce1
Merge branch 'master' of https://github.com/ElrondNetwork/ledger-live…
dc57216
Merge branch 'master' of https://github.com/LedgerHQ/ledger-live-common
ca4cca3
migrate elrond integration to ts
b764395
Merge branch 'accept-cryptoorg' of https://github.com/ElrondNetwork/l…
53eef7a
Merge branch 'elrond-develop' into accept-cryptoorg
0a703d2
lint
7c31bae
formatOperationSpecifics empty
3e0aa6a
elrond network info types
87f2474
remove react flags(overwritten issue)
5f2b732
Merge branch 'master' into accept-cryptoorg
AlexandruPislariu 11a6e6c
remove erdjs dependency
4a512d1
lint issues
70d0a7c
recipient address required
042743b
empty recipient address
4d0adfe
Merge branch 'master' into accept-cryptoorg
AlexandruPislariu 38349db
fix lint issues
0a93544
Merge branch 'accept-cryptoorg' of https://github.com/ElrondNetwork/l…
c035c67
transaction status empty string recipient
5a7f8a7
precedence in recipient error
5a6cb56
configure elrond bot
8f8a8af
Merge branch 'master' of https://github.com/LedgerHQ/ledger-live-common
c632d7d
Merge branch 'master' into elrond-bot
bf64087
add speculos device actions
4374d6a
amount lt min safe
ef32951
operation date in ms
32283aa
op extra field
a7fda50
lint issues fix
ca9aa3d
build esdt token accounts for elrond
0d41674
add ESDT token accounts in sync
7d9752f
test build ESDT sub accounts
97f20f4
prevent infinite sync on ESDT accounts
4b1ee4d
elrond ESDT operations via api
3bafc52
compute token identifier string
055778e
remove unused existingTokenAccount
d3df754
build and ESDT transfer
9f361b8
Merge branch 'master' into esdt-integration
ae8e721
elrond device transaction config
37632b0
Merge branch 'master' of github.com:ElrondNetwork/ledger-live-common
6164a61
Height on round (#11)
AlexandruPislariu e658c7e
Merge branch 'LedgerHQ:master' into master
AlexandruPislariu f1a18ae
Merge branch 'LedgerHQ:master' into master
AlexandruPislariu 3a8c47c
Merge branch 'master' into esdt-integration
ee11af3
provideESDTInfo instruction for ledger device
56bc456
account esdt tokens for address
dc8d01e
build sub account operations
968ea33
ESDT transactions specifics
e8e5bdb
constant gas for esdt transfer
5a293f0
add types to communicate properly with elrond protocol
2d932b1
return hash when transaction is submitted
d0859d9
encode and ESDT transfer logic
c242c61
return only hash when broadcasting transaction
434c92d
compute transaction fees by using data field of transaction
df9a8af
compute transaction fees
e1c21c5
verify ESDT token credentials
858e32a
use elrond account as fallback
18dcf84
check if account has ESDT tokens
029380f
check if fees are greater than account balance
d0a1874
compute operation value for send max transactions
c44eead
Merge branch 'LedgerHQ:master' into master
AlexandruPislariu fa150c8
lint
ed8b78f
Merge branch 'master' of github.com:ElrondNetwork/ledger-live-common
54ba905
Merge branch 'master' into esdt-integration
e8b4acc
refactor api calls
88ec4d5
Merge branch 'LedgerHQ:master' into esdt-integration
AlexandruPislariu fdaf4e7
Merge branch 'master' into esdt-integration
4736c0d
operation value for esdt transfers
f7804cd
define max pagination size constant
706b454
define and use tokens count for address call
f5be588
esdt use all amount transactions
6f8cde5
transaction value for esdt transfers
06b0c30
set transaction amount for esdt transfers
1e978f6
define chain id constant
f5d98a7
compute fees for transactions status
178b344
parsing token identifier
9f7c645
get token transactions within api call and show only egld transaction…
f57aaf5
Merge branch 'LedgerHQ:master' into esdt-integration
AlexandruPislariu 8927d58
use mainnet chainID
7be6f9e
Merge branch 'esdt-integration' of github.com:ElrondNetwork/ledger-li…
01ac3ac
Merge branch 'LedgerHQ:master' into esdt-integration
AlexandruPislariu cb1c538
run lint
f8aee73
use dictionary for fast lookup into subaccounts
6f58931
implement reconciliation for elrond sub accounts sync
2acaff5
implement reconciliation for elrond sub accounts sync
e6428f1
Merge branch 'esdt-integration' of github.com:ElrondNetwork/ledger-li…
2627b43
Merge branch 'LedgerHQ:master' into esdt-integration
AlexandruPislariu 9bfc941
estimate max spendable for token accounts
118c27d
transaction status for ESDTs
128d149
adapt transaction value for esdt transactions
3aa0015
compute fees for ESDT transfers
989a4eb
encode ESDT transfer accordingly
454dd26
transaction amount should be 0 for ESDT transfers
4bcf8eb
compute transaction value helper
1736d3f
fix issues related to lint
631a87a
Merge branch 'LedgerHQ:master' into esdt-integration
AlexandruPislariu 3c8c631
Merge branch 'LedgerHQ:master' into esdt-integration
AlexandruPislariu f1077be
Merge branch 'LedgerHQ:master' into esdt-integration
AlexandruPislariu 02af147
Merge branch 'LedgerHQ:master' into esdt-integration
AlexandruPislariu 21ebc8c
Merge branch 'esdt-integration' of https://github.com/ElrondNetwork/l…
c7d7cdd
Merge branch 'LedgerHQ:master' into esdt-integration
AlexandruPislariu e6e39fc
use timestamp scroll for transactions
4b8719f
Merge branch 'LedgerHQ:develop' into esdt-integration
AlexandruPislariu 43a6d83
Merge branch 'esdt-integration' of https://github.com/ElrondNetwork/l…
abf3301
Merge branch 'LedgerHQ:develop' into esdt-integration
AlexandruPislariu 7dd7bb5
Merge branch 'LedgerHQ:develop' into esdt-integration
AlexandruPislariu 59552b2
Egld staking (#13)
AlexandruPislariu b4c04d4
retrieve ESDT amount from transaction action
cad63ba
MEX & RIDE logos
9da9d35
remove unnecessary filter
99777af
decode transaction action for esdt transfers
c0e9695
LL-1589 more robust bitcoin retry (#1835)
hzheng-ledger e527a27
show account delegations & decode delegation transactions
83c563a
Merge branch 'LedgerHQ:develop' into esdt-integration
AlexandruPislariu 3e2905c
integrate erdjs
c042831
transaction gasLimit
25c1053
use erdjs proxy to compute fees
acaffd7
Merge branch 'esdt-integration' of https://github.com/ElrondNetwork/l…
020a44c
keep 0.005 egld for future transaction fees
475cb09
compute fees when estimate max spendable balance
9488c3c
reDelegateRewards as delegate operation type
8efd6bb
Merge branch 'develop' into esdt-integration
AlexandruPislariu e5f122b
Maximum decimals limit
c9c04cc
spendable balance for lower accounts
3d8523c
encode esdt amount using useAllAmount tx field
a55312a
Merge branch 'esdt-integration' of https://github.com/ElrondNetwork/l…
5252276
Merge branch 'LedgerHQ:develop' into esdt-integration
AlexandruPislariu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will probably need a ledger proxy for this one