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

Live release + libcore 4.2 #763

Open
wants to merge 260 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
bcd8539
add default value
alekece Aug 11, 2020
af7972e
[cosmos] add end sync event
alekece Aug 11, 2020
4c16ec0
added DELETED_OPERATION event
alekece Aug 11, 2020
46a9914
emitted deleted operation uid during reorg
alekece Aug 11, 2020
b46cb9c
Optional numbers in djinni records don't work on iOS
hakim-adamik Aug 24, 2020
0ba82da
Fix bad management of Algorand API key in Algorand tests
hakim-adamik Aug 24, 2020
4a8505b
LLC-700: Fix not initialized bitcoin address pointer
hlafet-ledger Aug 18, 2020
e53599a
[cosmos] Remove gas ratio multiplier in fees
gagbo Jul 7, 2020
87b7c26
[cosmos] Fetch block data on each transaction fetch
gagbo Jun 15, 2020
ce70430
[review] Move memory in captures; better var names
gagbo Jun 17, 2020
7fa4192
[review] remove unnecessary clear/back_inserter combo
gagbo Jun 17, 2020
dbf3012
Force account-level data synchronization on getSequence
gagbo Jun 12, 2020
6c5d333
Revert "Fix bug when sending multiple transactions in a row"
gagbo Aug 28, 2020
cd0f531
Fix operation query when querying block related data
pollastri-pierre Sep 1, 2020
7ba270e
Push artifacts on NRT branch
pollastri-pierre Sep 2, 2020
8748174
Revert "Fix bug when sending multiple transactions in a row"
gagbo Aug 28, 2020
edc43a8
deploy on live-prerelease
pollastri-pierre Sep 3, 2020
07c947c
Fix ETH operation not notfified
pollastri-pierre Sep 8, 2020
b3b626b
Notify new ETH transaction twice (first time in mempool, second time …
pollastri-pierre Sep 14, 2020
25951b0
Possible fix for incorrect not enough fund error
Sep 8, 2020
4095499
Emit last known block height for NRT
pollastri-pierre Sep 21, 2020
42be6fa
[XTZ] Add compressed SECP256K1 keys support
noirbizarre Aug 28, 2020
69ca7ec
Import docker build
noirbizarre Aug 28, 2020
f58eb7a
WIP
noirbizarre Aug 31, 2020
802af73
Use SCRATCH image for definitive storage
noirbizarre Sep 2, 2020
d39846a
[XTZ] Validate Tezos adresses prefix
noirbizarre Sep 7, 2020
ef4ae9d
Docker build fixes for tests
noirbizarre Sep 8, 2020
25e3fe5
WIP
noirbizarre Sep 11, 2020
a4d1a2d
Fix dockerignore
noirbizarre Sep 17, 2020
1765549
WIP Tezos
noirbizarre Sep 17, 2020
3456b4c
Ignore testing dir
noirbizarre Sep 24, 2020
c42ef3f
WIP debug
noirbizarre Sep 24, 2020
889934b
Fix this godamn magic number 0x00 which is in fact the curve prefix
noirbizarre Sep 24, 2020
6767c8f
Apply same fix on base58 pubkey
noirbizarre Sep 25, 2020
916b4d5
WIP tezos debug
noirbizarre Oct 6, 2020
a2f6675
Added missing DER files
noirbizarre Oct 9, 2020
de59a1e
COIN-725: Fix wrong chain issue when broadcasting a transaction
hlafet-ledger Oct 22, 2020
18009f0
COIN-725: Fix wrong chain issue when broadcasting a transaction (tests)
hlafet-ledger Oct 27, 2020
d9c20e9
build artifacts for test
hlafet-ledger Oct 27, 2020
4e19c5e
fix artifacts generation on nrt_tezos
hlafet-ledger Oct 28, 2020
81f5f5d
fix tezos raw parser
hlafet-ledger Oct 30, 2020
5b674a1
fix a potential crash related to tezos gas limit
hlafet-ledger Oct 30, 2020
46b53e7
tezos: remove debug traces
hlafet-ledger Nov 3, 2020
59770d5
fix tezos serialization issue when serialize function is called twice
hlafet-ledger Nov 6, 2020
4d223ad
fix tezos rawtx issues
hlafet-ledger Nov 6, 2020
4b7f732
Fix typo in getFees
twilgenbus-ledger Nov 9, 2020
03c25f8
Add missing generated files
twilgenbus-ledger Nov 9, 2020
0e54a72
Add confirmations to update tx in db
twilgenbus-ledger Nov 12, 2020
e333553
Add non-generic self tx error
twilgenbus-ledger Nov 4, 2020
027a123
Don't force value/wipe when on delegation
twilgenbus-ledger Nov 16, 2020
8f256fe
Merge pull request #670 from LedgerHQ/nrt_tezos-fix-delegation
twilgenbus-ledger Nov 16, 2020
1a9a280
Merge pull request #666 from LedgerHQ/nrt_tezos-self-tx-error
twilgenbus-ledger Nov 17, 2020
5191c4a
COIN-846: Change the switch of fees parsing for tzindex API to be mor…
hlafet-ledger Nov 18, 2020
8b59652
COIN-847: implement optimistic counter for tezos
hlafet-ledger Nov 18, 2020
e589a7e
Fix CI for MacOS
pollastri-pierre Nov 17, 2020
f032542
tezos: add delegation test + optimistic counter small improvements
hlafet-ledger Nov 18, 2020
f07d9e1
tezos: more tests of the optimistic counter
hlafet-ledger Nov 19, 2020
739f682
tezos optimistic counter (wait for the tx hash to increment the counter)
hlafet-ledger Nov 19, 2020
8b03e10
tezos: fix transaction build
hlafet-ledger Nov 19, 2020
274b8da
tezos broadcast fix
hlafet-ledger Nov 20, 2020
7aead6b
[XTZ] Add confirmations parsing to TezosTransactionParser
twilgenbus-ledger Nov 23, 2020
f7e926f
tezos undelegation
hlafet-ledger Nov 23, 2020
be9198b
add more tezos tests
hlafet-ledger Nov 26, 2020
1d03c13
Merge pull request #671 from LedgerHQ/nrt_tezos-fix-confirmations
hlafet-ledger Nov 26, 2020
ca9b0f2
Merge remote-tracking branch 'Gerry/coin-584/xtz-averageFeesLastBlock…
twilgenbus-ledger Nov 26, 2020
bd5dff7
tezos: add get current delegate
twilgenbus-ledger Nov 30, 2020
0e77c74
Fixes
twilgenbus-ledger Nov 30, 2020
a85f86f
Add fixes following review
twilgenbus-ledger Dec 1, 2020
7cdd793
add tezos tests
hlafet-ledger Dec 1, 2020
461f26c
Fix wrongly deleted condition
twilgenbus-ledger Dec 1, 2020
2daa70b
fix get current delegate
hlafet-ledger Dec 1, 2020
fa73379
Merge branch 'nrt_tezos' into nrt_tezos-get_current_delegate
twilgenbus-ledger Dec 1, 2020
4ffb950
Merge pull request #674 from LedgerHQ/nrt_tezos-get_current_delegate
twilgenbus-ledger Dec 1, 2020
6d46805
Merge remote-tracking branch 'origin/nrt_jdk8' into nrt_tezos
twilgenbus-ledger Dec 2, 2020
9bcc407
Merge pull request #676 from LedgerHQ/nrt_tezos-merge_jdk8_support
hlafet-ledger Dec 2, 2020
1f605db
fix gas estimation
hlafet-ledger Dec 3, 2020
424f740
Try to fix CI
twilgenbus-ledger Dec 3, 2020
959ef24
Try to fix CI - 2
twilgenbus-ledger Dec 3, 2020
05c28df
merge from nrt_tezos-dyn_gas_fees
hlafet-ledger Dec 3, 2020
a39c8c7
Merge branch 'nrt_tezos' of https://github.com/LedgerHQ/lib-ledger-co…
hlafet-ledger Dec 3, 2020
4e9fea9
Try fix CI again
twilgenbus-ledger Dec 3, 2020
27c8acd
fix tests lock
hlafet-ledger Dec 3, 2020
5b60c4d
Merge branch 'nrt_tezos' of https://github.com/LedgerHQ/lib-ledger-co…
hlafet-ledger Dec 3, 2020
d7aaf31
COIN-852: Tezos: bad behavior (balance gets to zero) when the server …
hlafet-ledger Dec 4, 2020
9936c11
fix macos ci
hlafet-ledger Dec 4, 2020
b4a4744
remove debug logs
hlafet-ledger Dec 4, 2020
910de4a
Tezos: add an endpoint to check if an address is a delegate
hlafet-ledger Dec 10, 2020
55ec273
COIN-1097 : Tezos: wrong balance of originated accounts
hlafet-ledger Dec 11, 2020
3d380f3
COIN-1097 (fix a typo)
hlafet-ledger Dec 11, 2020
3729420
Tezos: return default value when failed to estimate fees
hlafet-ledger Dec 15, 2020
07173ae
Add a getTokenBalance method to tezos account and explorers (#678)
barjonr Dec 18, 2020
64e3038
COIN-1161: Tezos: fix ED25519 legacy xpub
hlafet-ledger Dec 21, 2020
60b4111
COIN-1165: Tezos: fix counter issue after fees simulation
hlafet-ledger Dec 24, 2020
dca4496
COIN-1170: Tezos: improve fees simulation precision of operations wit…
hlafet-ledger Jan 5, 2021
24d3e16
fix macos ci
hlafet-ledger Jan 5, 2021
f4a5b1b
fix macos jni ci
hlafet-ledger Jan 5, 2021
0ae4576
Tezos: add getters/setters for transaction and reveal fees
hlafet-ledger Jan 6, 2021
7d5fff9
Fix memory leak occuring in pg session when checking if the connectio…
pollastri-pierre Dec 3, 2020
9bf789a
Use xcode 12 to build on CI
pollastri-pierre Jan 7, 2021
f9e579f
use xcode 12 on ci
hlafet-ledger Jan 11, 2021
649021f
Update CHANGELOG.md
pollastri-pierre Aug 6, 2020
6842528
remove ERC20 balance check on libcore side
hzheng-ledger Jan 29, 2021
2cdc654
Issue release 3.5.1
hzheng-ledger Jan 29, 2021
e84be60
LLC-700: Fix not initialized bitcoin address pointer
hlafet-ledger Aug 18, 2020
d39b901
[cosmos] Remove gas ratio multiplier in fees
gagbo Jul 7, 2020
ed4051a
[cosmos] Fetch block data on each transaction fetch
gagbo Jun 15, 2020
f1a268f
[review] Move memory in captures; better var names
gagbo Jun 17, 2020
9b99fbe
[review] remove unnecessary clear/back_inserter combo
gagbo Jun 17, 2020
0650142
Force account-level data synchronization on getSequence
gagbo Jun 12, 2020
556df34
Fix operation query when querying block related data
pollastri-pierre Sep 1, 2020
b9cfae9
[Cosmos] Add support for Stargate update
gagbo Nov 10, 2020
86a0a06
[Review] First batch
gagbo Jan 20, 2021
c668e75
Deprecate pre-stargate code
gagbo Jan 21, 2021
4339ad2
Add Stargate migration to wipe operations
gagbo Jan 25, 2021
dba90b9
Restore pre-Stargate explorer
gagbo Jan 27, 2021
95cac08
Keep migration level below cosmos history wipe
gagbo Jan 27, 2021
817058d
Set ATOM to cosmoshub-3 chain
gagbo Jan 28, 2021
cddfbed
Catch 500 on fetching validators
gagbo Jan 28, 2021
bf264ec
Prevent cosmoshub-4 from taking priority over 3
gagbo Jan 28, 2021
a3d8af1
Update to Xcode 12
pollastri-pierre Feb 1, 2021
6140345
Fix IOS build
hzheng-ledger Jan 26, 2021
d6bb0c7
Fix iOS toolchainChange to IOS toolchain version to 14
hzheng-ledger Jan 26, 2021
f27e153
Update Polly for Xcode 12
pollastri-pierre Jan 20, 2021
4373c6f
add addERC20account API for bdf poc
hzheng-ledger Feb 2, 2021
3bbd8c3
Issue release 3.5.2
hzheng-ledger Feb 3, 2021
4bdc930
Rename stargate testnet chain
gagbo Feb 3, 2021
0b949be
Add `stargate-final` to list of COSMOS networks
gagbo Feb 3, 2021
e8c0d47
Fix windows libcore export filename
gagbo Feb 4, 2021
8c0c4b7
Merge pull request #726 from gagbo/live-prerel/win-build
pollastri-pierre Feb 4, 2021
174c991
Switch cosmos mainnet to Stargate
gagbo Feb 2, 2021
078c8d6
Fix database migration for SQL
gagbo Feb 2, 2021
8823f3b
Merge pull request #723 from gagbo/stargate-mainnet
pollastri-pierre Feb 8, 2021
ed5c55c
Cache model::Account in AlgorandAccount to reduce http calls
Feb 5, 2021
b0650cc
Merge pull request #734 from pollastri-pierre/live-prerelease
pollastri-pierre Feb 9, 2021
f4cd65a
merge from nrt_tezos
hlafet-ledger Feb 11, 2021
c32eca7
fix merge issues from 4.0.0
hlafet-ledger Feb 15, 2021
db4972d
[ATOM] Wait for updateAccountFromNetwork
gagbo Feb 15, 2021
f5a9851
Fetch transactions for an account in chronological order
Feb 11, 2021
29fc3ff
fix BTC tests (#740)
hlafet-ledger Feb 12, 2021
1a53178
Update CHANGELOG.md
pollastri-pierre Feb 12, 2021
34b723c
Update CHANGELOG.md
pollastri-pierre Feb 12, 2021
bbafbce
Update CHANGELOG.md
pollastri-pierre Feb 12, 2021
c412455
COIN-1354: fix wd compilation
hlafet-ledger Feb 15, 2021
1326a33
Update djinni
pollastri-pierre Feb 12, 2021
8597c03
fix more tests
hlafet-ledger Feb 16, 2021
ade0a67
Merge pull request #741 from gagbo/fix/cosmos_wait_for_updateAccount
gagbo Feb 17, 2021
1f2d113
Another fixme
gagbo Feb 18, 2021
f534fe4
Catch 5xx for getAccount endpoint in Cosmos
gagbo Feb 19, 2021
e0d98c0
Remove abstract synchronizer from tezos
Jan 20, 2021
816ac16
Merge pull request #746 from barjonr/feature/independant-xtz-synchron…
barjonr Feb 22, 2021
081175a
COIN-1366: fix tezos synchronization pagination
hlafet-ledger Feb 22, 2021
7088f36
COIN-1380: Ethereum: fix fees = 0
hlafet-ledger Feb 24, 2021
7d97c30
Merge pull request #745 from gagbo/cosmos/graceful_5xx_getAccount
barjonr Feb 25, 2021
1567987
Fix block_not_found bug
Huiqi Feb 17, 2021
223bbb5
Fix openssl version for window build
hzheng-ledger Feb 18, 2021
0984efb
prepare 4.1.0 version
hlafet-ledger Feb 26, 2021
c8eada4
Fix Windows compilation
gagbo Mar 2, 2021
4952681
Merge pull request #749 from gagbo/fix/w_build
gagbo Mar 2, 2021
5ca518d
merge from live-prerelease
hlafet-ledger Mar 4, 2021
4587ff4
Migrate Stargate tests to mainnet
gagbo Mar 4, 2021
b8ca28f
Migrate Cosmos transactions tests to Stargate
gagbo Mar 4, 2021
841b6cc
fix some stargate tests
hlafet-ledger Mar 5, 2021
da0c48f
update binding to fix crash
hzheng-ledger Mar 9, 2021
e5f8146
update binding to fix crash (#751)
hzheng-ledger Mar 9, 2021
203f5c8
Merge branch 'live-prerelease' of github.com:LedgerHQ/lib-ledger-core…
hzheng-ledger Mar 12, 2021
a4fa491
update ReadMe
hzheng-ledger Mar 12, 2021
65ef188
update ReadMe
hzheng-ledger Mar 12, 2021
2e7b896
Fix IOS Crash due to ErrorCode
hzheng-ledger Mar 15, 2021
661687f
Merge pull request #754 from LedgerHQ/fix_ios_error
hzheng-ledger Mar 15, 2021
1532f17
COIN-1420: use of tx id field instead of hash for v3 btc explorers
hlafet-ledger Mar 10, 2021
ebea9b5
COIN-1420: use of tx id field instead of hash for v3 btc explorers
hlafet-ledger Mar 10, 2021
41ed949
COIN-1420: use of tx id field instead of hash for v3 btc explorers
hlafet-ledger Mar 10, 2021
ca2c92e
djinni submodule updated to last commit
hzheng-ledger Mar 17, 2021
c1e39e9
Merge branch 'live-prerelease' of github.com:LedgerHQ/lib-ledger-core…
hzheng-ledger Mar 17, 2021
53a07f9
Merge pull request #755 from hzheng-ledger/live-prerelease
hzheng-ledger Mar 17, 2021
bce8dd9
fix djinni error in build
hzheng-ledger Mar 18, 2021
7b09b4d
Merge pull request #756 from hzheng-ledger/live-prerelease
hzheng-ledger Mar 18, 2021
3ad06fd
fix merge conflict
hzheng-ledger Mar 18, 2021
39c2961
disable failed tests due to explorer error
hzheng-ledger Mar 19, 2021
b47760a
Merge branch 'release/4.0.0' into release/4.1.0
pollastri-pierre Mar 24, 2021
5898555
Merge branch 'release/4.1.0' into release/4.2.0
pollastri-pierre Mar 24, 2021
886b044
update jni binding
hzheng-ledger Apr 8, 2021
76eacf6
fix windows build
Huiqi Apr 8, 2021
ddfbefd
Merge branch 'release/4.2.0' of github.com:hzheng-ledger/lib-ledger-c…
Huiqi Apr 8, 2021
25123f2
fix openssl version
Huiqi Apr 8, 2021
fa7f50e
Merge pull request #759 from hzheng-ledger/release/4.2.0
hzheng-ledger Apr 9, 2021
bfd3351
Try removing the "generate interface" step
hzheng-ledger Apr 9, 2021
95c22dd
Remove unused job publish_jar
hzheng-ledger Apr 9, 2021
e3c34c4
revert commit 886b0444b9b6929ca3ab84eca9b8f4f115c827b0
hzheng-ledger Apr 9, 2021
7673282
Merge pull request #760 from hzheng-ledger/release/4.2.0
hzheng-ledger Apr 9, 2021
ae85114
update to libcore version 4.2.0
hzheng-ledger Apr 19, 2021
707af83
Merge pull request #762 from hzheng-ledger/release/4.2.0
hzheng-ledger Apr 19, 2021
600b039
fix merge conflict
Huiqi Apr 20, 2021
ca8c8b2
fix merge conflict with live-prerelease
Huiqi Apr 20, 2021
6d98e0a
update api interface
hzheng-ledger Apr 20, 2021
49f71d3
fix error code in libcore
Huiqi Apr 28, 2021
09da9ed
release 4.2.0 for live
Huiqi May 18, 2021
7352c3e
Merge pull request #768 from hzheng-ledger/live_4.2_fix
hzheng-ledger May 18, 2021
bf081d4
add some log in broadcast raw transaction to debug live error
Huiqi May 18, 2021
c80c3b3
Merge pull request #769 from hzheng-ledger/live_4.2_fix
hzheng-ledger May 18, 2021
d5cedd1
empty commit
Huiqi May 18, 2021
6bf1387
Merge pull request #770 from hzheng-ledger/live_4.2_fix
hzheng-ledger May 18, 2021
983d18e
publish artifact for live_4.2 branch
Huiqi May 19, 2021
6bb5358
Merge pull request #771 from hzheng-ledger/live_4.2_fix
hzheng-ledger May 19, 2021
e79b6cd
update from xcode 12.0.0 to 12.4.0
Huiqi May 19, 2021
c104959
Merge pull request #772 from hzheng-ledger/live_4.2_fix
hzheng-ledger May 19, 2021
a300bd5
fix macos build
Huiqi May 19, 2021
ee295f9
Merge pull request #773 from hzheng-ledger/live_4.2_fix
hzheng-ledger May 19, 2021
bf1e712
change xcode 12.4.0 back to 12.0.0
Huiqi May 19, 2021
74aa066
Merge pull request #774 from hzheng-ledger/live_4.2_fix
hzheng-ledger May 19, 2021
5114d50
Add some log in libcore to trace error
Huiqi May 20, 2021
bd21b4e
Merge pull request #775 from hzheng-ledger/live_4.2_fix
hzheng-ledger May 20, 2021
9462ab7
Update BitcoinLikeAccount.cpp
hzheng-ledger May 24, 2021
9fab95e
Update BitcoinLikeAccount.cpp
hzheng-ledger May 24, 2021
d62f38b
Merge pull request #776 from LedgerHQ/empty-commit-to-trigger-build
hzheng-ledger May 24, 2021
df26eb0
Update fee calculation
hzheng-ledger May 25, 2021
e7ca729
Remove log
hzheng-ledger May 25, 2021
ea25859
Merge pull request #777 from LedgerHQ/remove_log
hzheng-ledger May 25, 2021
254315d
Update BitcoinLikeAccount.cpp
hzheng-ledger May 25, 2021
d0945ca
Remove unnecessary log
hzheng-ledger May 25, 2021
3e814e1
Merge pull request #778 from LedgerHQ/libcore_remove_log
hzheng-ledger May 25, 2021
dd4ee6c
add some debug log
Huiqi Jun 2, 2021
5b739b0
Merge pull request #781 from hzheng-ledger/live_4.2.0
hzheng-ledger Jun 2, 2021
eaf0bec
add some debug log
hzheng-ledger Jun 3, 2021
378859a
Merge pull request #782 from hzheng-ledger/live_4.2.0
hzheng-ledger Jun 3, 2021
bd04494
add more debug log
hzheng-ledger Jun 4, 2021
e44a66b
Merge pull request #783 from hzheng-ledger/live_4.2.0
hzheng-ledger Jun 4, 2021
fa2a94f
Remove some log
hzheng-ledger Jun 7, 2021
716e7a8
Merge pull request #784 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 7, 2021
0a81696
Add some debug log
hzheng-ledger Jun 7, 2021
58f25f6
Merge pull request #785 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 7, 2021
133fbeb
Add some debug log
hzheng-ledger Jun 9, 2021
e0896bb
Merge pull request #786 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 9, 2021
d8d1a77
Add some debug log
hzheng-ledger Jun 9, 2021
fe908ee
Merge pull request #787 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 9, 2021
d34cb9e
add some debug log
hzheng-ledger Jun 9, 2021
130929e
Merge pull request #788 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 9, 2021
96044ce
Add some debug log
hzheng-ledger Jun 10, 2021
964a6d2
Merge pull request #789 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 10, 2021
d013d7c
add some debug log
hzheng-ledger Jun 11, 2021
725242e
Merge pull request #790 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 11, 2021
53bd12a
Fix block empty bug
hzheng-ledger Jun 13, 2021
04ec766
Merge pull request #791 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 13, 2021
d5fe79a
Remove some log
hzheng-ledger Jun 13, 2021
beea5d1
Merge pull request #792 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 13, 2021
a5e73c4
Remove some log
hzheng-ledger Jun 13, 2021
f396970
Merge pull request #793 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 13, 2021
df97ca8
Revert commit b53bdfb to fix live error
hzheng-ledger Jun 15, 2021
845b1b6
Merge pull request #794 from LedgerHQ/hzheng-ledger-patch-1
hzheng-ledger Jun 15, 2021
415179a
revert some djinni change
hzheng-ledger Jul 2, 2021
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
1 change: 1 addition & 0 deletions .circleci/build_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function command_ios {
export OSX_SYSROOT=iphoneos
else
export TOOLCHAIN_NAME='ios-nocodesign-14-0-dep-9-3'

export OSX_SYSROOT=iphonesimulator
export ARCH=x86_64
#Copy iphone.cmake which is not forcing CMAKE_OSX_SYSROOT to iphoneos in cache
Expand Down
4 changes: 0 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,6 @@ jobs:
name: Submodule_Initialization
command: |
. .circleci/init_submodules.sh
- run:
name: Publish_jar
command: |
. .circleci/publish_jar.sh
- store_artifacts:
path: ~/lib-ledger-core-artifacts
generate_doc:
Expand Down
2 changes: 1 addition & 1 deletion .circleci/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
if [ -n "$CIRCLE_TAG" ] || [ "$CIRCLE_BRANCH" == "master" -o "$CIRCLE_BRANCH" == "develop" ] || [ "$CIRCLE_BRANCH" == "nrt" ] || [ "$CIRCLE_BRANCH" == "nrt_jdk8" ] ; then
if [ -n "$CIRCLE_TAG" ] || [ "$CIRCLE_BRANCH" == "master" -o "$CIRCLE_BRANCH" == "develop" ] || [ "$CIRCLE_BRANCH" == "live_4.2" ]; then
cd ../lib-ledger-core-artifacts
ls -la
aws s3 sync ./ s3://ledger-lib-ledger-core/$LIB_VERSION/ --acl public-read && \
Expand Down
2 changes: 1 addition & 1 deletion .circleci/deploy_fat_lib.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

if [ -n "$CIRCLE_TAG" ] || [ "$CIRCLE_BRANCH" == "master" -o "$CIRCLE_BRANCH" == "develop" ]; then
if [ -n "$CIRCLE_TAG" ] || [ "$CIRCLE_BRANCH" == "master" -o "$CIRCLE_BRANCH" == "develop" ] || [ "$CIRCLE_BRANCH" == "live-prerelease" ] || [ "$CIRCLE_BRANCH" == "live_4.2" ]; then
cd ../lib-ledger-core-artifacts/ios

echo "======> Build Fat Library"
Expand Down
4 changes: 0 additions & 4 deletions .circleci/init_submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@ git submodule update -- core/src/wallet/algorand/thirdparty/msgpack-c || echo "=

#should checkout leveldb bitcoin-fork branch on leveldb submodule
cd $HOME/lib-ledger-core/core/lib/leveldb && git checkout bitcoin-fork

echo "========> Generate ITFs"
cd $HOME/lib-ledger-core
./tools/generate_interfaces.sh || ./tools/generate_interfaces.sh
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.vscode/
.idea/
.DS_Store
.circleci/
build/
**/*.md
**/*.yml
*.a
playground/
.git/
ledger-core-sample/
Dockerfile*
CMakeCache.txt
Testing/
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 4.2.0
> 2021/04/19

- Algorand update
- Stargate protocol update for cosmos

## 4.1.0
> 2021/02/26 Tezos for NRT

## 4.0.0
> 2021/02/12 NRT

Expand All @@ -17,6 +26,18 @@
- Fix XRP incremental synchronization
- Improve runtime performances by splitting db connections between Write pool and Read pool
- use of tx "id" field (if present) instead of "hash" for btc explorers
## 3.5.2

> 2021/02/03

- Add AddERC20Accounts API

## 3.5.1

> 2021/01/29

- Remove ERC20 balance check on libcore side


## 3.5.0

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include(UseBackportedModules)

# The project version number.
set(VERSION_MAJOR 4 CACHE STRING "Project major version number.")
set(VERSION_MINOR 0 CACHE STRING "Project minor version number.")
set(VERSION_MINOR 2 CACHE STRING "Project minor version number.")
set(VERSION_PATCH 0 CACHE STRING "Project patch version number.")
mark_as_advanced(VERSION_MAJOR VERSION_MINOR VERSION_PATCH)

Expand Down
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 1.0.{build}
image:
- Visual Studio 2017
environment:
LIB_VERSION: 4.0.0 # Hardcode the LIB_VERSION : should be retrieved by building libcore node module and run tests/lib_version.js
LIB_VERSION: 4.2.0 # Hardcode the LIB_VERSION : should be retrieved by building libcore node module and run tests/lib_version.js
nodejs_version: "9"
appveyor_rdp_password:
secure: jb1LsDmcxCww7tA38S3xSw==
Expand Down Expand Up @@ -57,8 +57,8 @@ install:
- ssh-keygen -y -f c:\users\appveyor\.ssh\id_rsa > c:\users\appveyor\.ssh\id_rsa.pub

#Install openssl
- ps: Start-FileDownload 'http://slproweb.com/download/Win64OpenSSL-1_1_1j.exe'
- ps: Start-Process "Win64OpenSSL-1_1_1j.exe" -ArgumentList "/silent /verysilent /sp- /suppressmsgboxes" -Wait
- ps: Start-FileDownload 'http://slproweb.com/download/Win64OpenSSL-1_1_1k.exe'
- ps: Start-Process "Win64OpenSSL-1_1_1k.exe" -ArgumentList "/silent /verysilent /sp- /suppressmsgboxes" -Wait

#Install Node
- ps: Install-Product node $env:nodejs_version
Expand Down Expand Up @@ -136,6 +136,8 @@ after_build:
- set should_deploy=false
- if %APPVEYOR_REPO_BRANCH%==develop set should_deploy=true
- if %APPVEYOR_REPO_BRANCH%==master set should_deploy=true
- if "%APPVEYOR_REPO_BRANCH%"=="live-prerelease" set should_deploy=true
- if "%APPVEYOR_REPO_BRANCH%"=="live_4.2" set should_deploy=true
- if %APPVEYOR_REPO_TAG%==true set should_deploy=true #for tests
- if %should_deploy%==true aws s3 sync ".\%LIB_VERSION%\win\%TOOL_CONFIG%" "s3://ledger-lib-ledger-core/%DEPLOY_VERSION%/win/%TOOL_CONFIG%" --acl public-read

Expand Down
6 changes: 3 additions & 3 deletions cmake/cmake-4.0.0-modules/RequireOutOfSourceBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ set(_test)

if(NOT "${_bin_len}" GREATER "${_src_len}")
list(APPEND _test _src)
#message(STATUS "Checking ${_src}")
message(STATUS "Checking ${_src}")
endif()

if(NOT "${_bin_len}" GREATER "${_cur_src_len}")
list(APPEND _test _cur_src)
#message(STATUS "Checking ${_cur_src}")
message(STATUS "Checking ${_cur_src}")
endif()

foreach(_var ${_test})
string(SUBSTRING "${${_var}}" 0 ${_bin_len} _chopped)
#message(STATUS "comparing ${_bin} and ${_chopped}")
message(STATUS "comparing ${_bin} and ${_chopped}")
if("${_bin}" STREQUAL "${_chopped}")
get_filename_component(_parent "${CMAKE_SOURCE_DIR}/.." ABSOLUTE)
message(FATAL_ERROR
Expand Down
6 changes: 5 additions & 1 deletion core/idl/cosmos/addresses.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ CosmosCurve = enum {
CosmosBech32Type = enum {
PUBLIC_KEY;
PUBLIC_KEY_VAL;
PUBLIC_KEY_VAL_CONS;
ADDRESS;
ADDRESS_VAL;
ADDRESS_VAL_CONS;
}

CosmosLikeNetworkParameters = record {
Expand All @@ -19,8 +21,10 @@ CosmosLikeNetworkParameters = record {
MessagePrefix: string;
# Version of the Extended Public Key standard.
XPUBVersion: binary;
# Prefix useful during implicit address construction from pubKey hash
# Prefix useful for bech32 encoding of secp256k1 raw pubKey
PubKeyPrefix: binary;
# Prefix useful for bech32 encoding of ed25519 raw pubKey
Ed25519PubKeyPrefix: binary;
# Prefix useful during originated address construction from pubKey hash
AddressPrefix: binary;
# Chain ID of the network
Expand Down
3 changes: 3 additions & 0 deletions core/idl/errors.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ ErrorCode = enum {
# Stellar errors
invalid_stellar_address_format;
invalid_stellar_memo_type;

# Tezos errors
invalid_self_tx;
}

Error = record {
Expand Down
2 changes: 1 addition & 1 deletion core/idl/preferences/preferences.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ PreferencesChange = record {
}

# Interface describing the behaviour of the backend used by Preferences.
PreferencesBackend = interface +j +o +n {
PreferencesBackend = interface +c {
# Gets the value associated to the given key.
# @param key The data key.
# @return The value associated to the key if it exists, an empty option otherwise.
Expand Down
2 changes: 2 additions & 0 deletions core/idl/wallet/configuration.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ StellarConfiguration = interface +c {

# Available API to use with explorers.
BlockchainExplorerEngines = interface +c {
const STARGATE_NODE: string = "STARGATE_NODE";
const COSMOS_NODE: string = "COSMOS_NODE";
const LEDGER_API: string = "LEDGER_API";
const RIPPLE_API: string = "RIPPLE_API";
Expand All @@ -17,6 +18,7 @@ BlockchainExplorerEngines = interface +c {

# Available API to use with observers.
BlockchainObserverEngines = interface +c {
const STARGATE_NODE: string = "STARGATE_NODE";
const COSMOS_NODE: string = "COSMOS_NODE";
const LEDGER_API: string = "LEDGER_API";
const RIPPLE_NODE: string = "RIPPLE_NODE";
Expand Down
4 changes: 3 additions & 1 deletion core/idl/wallet/cosmos/validators.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ CosmosLikeValidatorDescription = record {
moniker: string;
identity: optional<string>;
website: optional<string>;
securityContact: optional<string>;
details: optional<string>;
}

Expand Down Expand Up @@ -63,5 +64,6 @@ CosmosLikeValidator = record {
# Consensus public key (cosmosvalconspub)
consensusPubkey: string;
# Status (Unbonded - Unbonding - Bonded) Goes from 0 to 2 or 1 to 3 depending on API (see https://github.com/cosmos/cosmos-sdk/commit/53bf2271d5bac054a8f74723732f21055c1b72d4#diff-f54554903608b8b89649f532c8f1a78cL43)
activeStatus: i32;
# For Stargate, the string is an UPPERCASE_CONSTANT
activeStatus: string;
}
2 changes: 1 addition & 1 deletion core/idl/wallet/cosmos/wallet.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ CosmosLikeRedelegationEntry = interface +c {
}

CosmosConfigurationDefaults = interface +c {
const COSMOS_DEFAULT_API_ENDPOINT: string = "https://cosmos.coin.ledger.com";
const COSMOS_DEFAULT_API_ENDPOINT: string = "https://cosmoshub4.coin.ledger.com";
const COSMOS_OBSERVER_WS_ENDPOINT: string = "";
}

Expand Down
6 changes: 0 additions & 6 deletions core/idl/wallet/ethereum/erc20.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ ERC20LikeAccount = interface +c {
getBalanceHistoryFor(start: date, end: date, period: TimePeriod): list<BigInt>;
# Get the list of operations performed on this ERC20 account.
getOperations(): list<ERC20LikeOperation>;
# Get ERC20 operation by uid
getOperation(uid: string, callback: Callback<ERC20LikeOperation>);
# Get all ERC20 operations
getAllOperations(from: i32, to: i32, ascending: bool, callback: ListCallback<ERC20LikeOperation>);
# Get ERC20 operations from a given block height (included), it also returns mempool operations
getOperationsFromBlockHeight(from: i32, to: i32, fromBlockHeight: i64, callback: ListCallback<ERC20LikeOperation>);
# Retrieve raw data concerning a transaction of a given amount to a given address.
getTransferToAddressData(amount: BigInt, address: string, data: Callback<binary>);
queryOperations(): OperationQuery;
Expand Down
4 changes: 4 additions & 0 deletions core/idl/wallet/ethereum/ethereum_like_wallet.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,8 @@ EthereumLikeAccount = interface +c {
# The passed addresses are ERC20 accounts
# Note: same note as above
getERC20Balances(erc20Addresses: list<string>, callback: ListCallback<BigInt>);
# Add ERC20 accounts
# The passed addresses are ERC20 accounts
# Note: same note as above
addERC20Accounts(erc20Addresses: list<string>);
}
77 changes: 54 additions & 23 deletions core/idl/wallet/tezos/tezos_like_wallet.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ TezosLikeTransaction = interface +c {
getType(): TezosOperationTag;
# Get the hash of the transaction.
getHash(): string;
# Get Fees (in drop)
# Get Fees (in drop)
# It returns the sum of transaction fees and reveal fees (if it exists)
getFees(): Amount;
# get transaction fees (without reveal cost)
getTransactionFees(): Amount;
# get reveal fees if the sender envolved is not revealed, else 0
getRevealFees(): Amount;

# Get destination XTZ. address
getReceiver(): optional<TezosLikeAddress>;
# Get XTZ. sender address
Expand Down Expand Up @@ -85,8 +91,19 @@ TezosLikeTransactionBuilder = interface +c {
wipeToAddress(address: string): TezosLikeTransactionBuilder;

# Set fees (in drop) the originator is willing to pay
# Set transaction and (if needed) reveal fees with 'fees'
# equivalent to call both functions setTransactionFees(fees) and setRevealFees(fees)
# @return A reference on the same builder in order to chain calls.
setFees(fees: Amount): TezosLikeTransactionBuilder;

# Set transaction fees (in drop) the originator is willing to pay (reveal is not included)
# @return A reference on the same builder in order to chain calls.
setTransactionFees(transactionFees: Amount): TezosLikeTransactionBuilder;

# Set reveal fees (in drop) the originator is willing to pay
# @return A reference on the same builder in order to chain calls.
setRevealFees(revealFees: Amount): TezosLikeTransactionBuilder;

# Set gas limit the originator is not willing to exceed.
# @return A reference on the same builder in order to chain calls.
setGasLimit(gasLimit: Amount): TezosLikeTransactionBuilder;
Expand All @@ -105,8 +122,8 @@ TezosLikeTransactionBuilder = interface +c {
# Reset the current instance to its initial state
reset();

static parseRawUnsignedTransaction(currency: Currency, rawTransaction: binary): TezosLikeTransaction;
static parseRawSignedTransaction(currency: Currency, rawTransaction: binary): TezosLikeTransaction;
static parseRawUnsignedTransaction(currency: Currency, rawTransaction: binary, protocolUpdate: string): TezosLikeTransaction;
static parseRawSignedTransaction(currency: Currency, rawTransaction: binary, protocolUpdate: string): TezosLikeTransaction;
}

#Class representing a Tezos account
Expand All @@ -126,8 +143,15 @@ TezosLikeAccount = interface +c {
getEstimatedGasLimit(address: string, callback: Callback<BigInt>);
# Get fees from network
getFees(callback: Callback<BigInt>);
# Get gas price from network
getGasPrice(callback: Callback<BigInt>);
# Get originated accounts by current account
getOriginatedAccounts(): list<TezosLikeOriginatedAccount>;
# Get current delegate
getCurrentDelegate(callback: Callback<string>);
# Get the balance of the account for a given token
# @param tokenAddress Address of the contract
getTokenBalance(tokenAddress: string, callback: Callback<BigInt>);
}

# Class representing originated accounts
Expand All @@ -154,27 +178,34 @@ TezosLikeOriginatedAccount = interface +c {
}

TezosConfiguration = interface +c {
const TEZOS_XPUB_CURVE: string = "TEZOS_XPUB_CURVE";
const TEZOS_PROTOCOL_UPDATE: string = "TEZOS_PROTOCOL_UPDATE";
const TEZOS_NODE: string = "TEZOS_NODE";
const BCD_API: string = "BCD_API";
const TEZOS_XPUB_CURVE: string = "TEZOS_XPUB_CURVE";
const TEZOS_PROTOCOL_UPDATE: string = "TEZOS_PROTOCOL_UPDATE";
const TEZOS_NODE: string = "TEZOS_NODE";
const TEZOS_COUNTER_STRATEGY: string = "TEZOS_COUNTER_STRATEGY";
const TEZOS_OPTIMISTIC_COUNTER_TIMEOUT: string = "TEZOS_OPTIMISTIC_COUNTER_TIMEOUT";
}

TezosConfigurationDefaults = interface +c {
const TEZOS_DEFAULT_API_ENDPOINT: string = "https://explorers.api.live.ledger.com";
const TEZOS_DEFAULT_API_VERSION: string = "v3";
const TZSTATS_API_ENDPOINT: string = "https://api.tzstats.com/explorer";
const TEZOS_DEFAULT_NODE: string = "https://mainnet.tezrpc.me";
const TEZOS_OBSERVER_NODE_ENDPOINT_S3: string = "https://s3.tezos.com";
const TEZOS_OBSERVER_WS_ENDPOINT_S2: string = "wss://s2.tezos.com";
const TEZOS_OBSERVER_WS_ENDPOINT_S3: string = "wss://s3.tezos.com";
const TEZOS_XPUB_CURVE_ED25519: string = "ED25519";
const TEZOS_XPUB_CURVE_SECP256K1: string = "SECP256K1";
const TEZOS_XPUB_CURVE_P256: string = "P256";
# Taken from some existing XTZ wallets
# http://tezos.gitlab.io/protocols/005_babylon.html#gas-cost-changes
const TEZOS_DEFAULT_FEES: string = "5000";
const TEZOS_DEFAULT_MAX_FEES: string = "30000";
const TEZOS_DEFAULT_GAS_LIMIT: string = "18000";
const TEZOS_DEFAULT_STORAGE_LIMIT: string = "300";
const TEZOS_PROTOCOL_UPDATE_BABYLON: string = "TEZOS_PROTOCOL_UPDATE_BABYLON";
const BCD_API_ENDPOINT: string = "https://api.better-call.dev/v1";
const TEZOS_DEFAULT_API_ENDPOINT: string = "https://explorers.api.live.ledger.com";
const TEZOS_DEFAULT_API_VERSION: string = "v3";
const TZSTATS_API_ENDPOINT: string = "https://api.tzstats.com/explorer";
const TEZOS_DEFAULT_NODE: string = "https://mainnet.tezrpc.me";
const TEZOS_OBSERVER_NODE_ENDPOINT_S3: string = "https://s3.tezos.com";
const TEZOS_OBSERVER_WS_ENDPOINT_S2: string = "wss://s2.tezos.com";
const TEZOS_OBSERVER_WS_ENDPOINT_S3: string = "wss://s3.tezos.com";
const TEZOS_XPUB_CURVE_ED25519: string = "ED25519";
const TEZOS_XPUB_CURVE_SECP256K1: string = "SECP256K1";
const TEZOS_XPUB_CURVE_P256: string = "P256";
# Taken from some existing XTZ wallets
# http://tezos.gitlab.io/protocols/005_babylon.html#gas-cost-changes
const TEZOS_DEFAULT_FEES: string = "5000";
const TEZOS_DEFAULT_MAX_FEES: string = "30000";
const TEZOS_DEFAULT_GAS_LIMIT: string = "18000";
const TEZOS_DEFAULT_STORAGE_LIMIT: string = "300";
const TEZOS_PROTOCOL_UPDATE_BABYLON: string = "TEZOS_PROTOCOL_UPDATE_BABYLON";
}
TezosLikeWallet = interface +c {
isDelegate(address: string, callback: Callback<bool>);
}
2 changes: 1 addition & 1 deletion core/lib/leveldb
Submodule leveldb updated 0 files
6 changes: 3 additions & 3 deletions core/lib/soci_postgresql/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ void hard_exec(PGconn * conn, char const * query, char const * errMsg)

void postgresql_session_backend::begin()
{
hard_exec(conn_, "BEGIN", "Cannot begin transaction.");
//hard_exec(conn_, "BEGIN", "Cannot begin transaction.");
}

void postgresql_session_backend::commit()
{
hard_exec(conn_, "COMMIT", "Cannot commit transaction.");
//hard_exec(conn_, "COMMIT", "Cannot commit transaction.");
}

void postgresql_session_backend::rollback()
{
hard_exec(conn_, "ROLLBACK", "Cannot rollback transaction.");
//hard_exec(conn_, "ROLLBACK", "Cannot rollback transaction.");
}

void postgresql_session_backend::deallocate_prepared_statement(
Expand Down
Loading