Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Cosmos js #1832

Merged
289 commits merged into from Mar 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
289 commits
Select commit Hold shift + click to select a range
cda9bc1
Update xpub during sync
alexalouit Feb 14, 2022
d65266d
temporary enable log for bot
alexalouit Feb 14, 2022
1c62e0c
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 14, 2022
92bbbf1
Merge remote-tracking branch 'ledgerhq/master' into HEAD
hakim-adamik Feb 14, 2022
56887dc
Cosmos js (#1701)
Feb 14, 2022
8df4111
LL-9159 cosmos node
alexalouit Feb 16, 2022
804fccd
Update js-signOperation.ts
alexalouit Feb 16, 2022
35ecf59
fix signature
alexalouit Feb 16, 2022
f45276e
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 17, 2022
c5cc07e
Cosmos js (#1711)
Feb 17, 2022
ad62000
Increase timeout for Cosmos bot spec
hakim-adamik Feb 17, 2022
a84f238
Increase timeout for Cosmos bot spec
hakim-adamik Feb 17, 2022
99dc488
fix redelegate payload
alexalouit Feb 17, 2022
1800f02
fix payload send transaction when sendmax
alexalouit Feb 17, 2022
3aca833
fix optimistic operation type
alexalouit Feb 18, 2022
e22a144
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 18, 2022
e7fd38b
fix typo
alexalouit Feb 18, 2022
c7a0e69
bugfix
alexalouit Feb 18, 2022
c9df7c4
Cosmos JS (#1713)
Feb 18, 2022
b64368e
fix regression
alexalouit Feb 18, 2022
523f73f
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 18, 2022
9c6c682
Cosmos JS (#1715)
Feb 18, 2022
992193f
update optimistic operation
alexalouit Feb 18, 2022
e81b5d3
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 18, 2022
db65b0e
Cosmos JS (#1716)
Feb 18, 2022
71ea6f8
fix prettier
alexalouit Feb 18, 2022
e0f4fce
more deterministic transaction parsing
alexalouit Feb 18, 2022
96591a7
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 18, 2022
0d409ca
clarify code readable
alexalouit Feb 18, 2022
2823fcd
adjust sender and recipient
alexalouit Feb 18, 2022
fd3f0aa
fix fees when is ibc transaction
alexalouit Feb 18, 2022
6685baa
fix redelegations data mapping
alexalouit Feb 19, 2022
7369372
Cosmos JS (#1721)
Feb 21, 2022
892148b
fix mixed styles
alexalouit Feb 21, 2022
7446337
fix array cast type
alexalouit Feb 21, 2022
d0819d0
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 21, 2022
890c0d4
fix more determinist operation data
alexalouit Feb 21, 2022
f0d9925
Cosmos JS (#1725)
Feb 21, 2022
1d59bb6
Merge remote-tracking branch 'ledgerhq/develop' into HEAD
hakim-adamik Feb 21, 2022
7545cb6
adjust constants of the cosmos spec to make it more balanced
gre Feb 21, 2022
5884e75
bot run
gre Feb 21, 2022
6d65117
bot run
gre Feb 21, 2022
e06b09b
simplify speculos search logic
gre Feb 21, 2022
cd1a138
Merge branch 'develop' into cosmos-js
gre Feb 21, 2022
432245b
trigger bot
gre Feb 21, 2022
52c66be
trigger bot
gre Feb 21, 2022
f000f6c
trigger bot
gre Feb 21, 2022
766fa70
trigger bot
gre Feb 21, 2022
455de68
trigger bot
gre Feb 21, 2022
0abdd6c
trigger bot
gre Feb 21, 2022
e6c5ee0
trigger bot
gre Feb 21, 2022
5d7d941
trigger bot
gre Feb 21, 2022
6c65894
trigger bot
gre Feb 21, 2022
866c26e
trigger bot
gre Feb 21, 2022
19a1645
trigger bot
gre Feb 21, 2022
b09801f
trigger bot
gre Feb 22, 2022
3bc4628
trigger bot
gre Feb 22, 2022
9f47cf0
trigger bot
gre Feb 22, 2022
97d377f
trigger bot
gre Feb 22, 2022
a2d9a58
trigger bot
gre Feb 22, 2022
98006c2
trigger bot
gre Feb 22, 2022
3b294b5
trigger bot
gre Feb 22, 2022
505da17
trigger bot
gre Feb 22, 2022
496cdbe
trigger bot
gre Feb 22, 2022
352e6a5
trigger bot
gre Feb 22, 2022
c28ed16
trigger bot
gre Feb 22, 2022
f44e63a
trigger bot
gre Feb 22, 2022
61bc734
trigger bot
gre Feb 22, 2022
512f45d
trigger bot
gre Feb 22, 2022
289ef6d
fix could not find optimisticOperation in redelegate transaction
alexalouit Feb 22, 2022
f096a2c
trigger bot
gre Feb 22, 2022
6121e72
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 22, 2022
31c1078
trigger bot
gre Feb 22, 2022
33fe422
Cosmos JS (#1730)
Feb 22, 2022
c113968
restore getStargateRewardsState methode
alexalouit Feb 22, 2022
6c72c62
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 22, 2022
9f1159b
Cosmos JS (#1731)
Feb 22, 2022
7a3a949
trigger bot
gre Feb 22, 2022
0c5a3fb
trigger bot
gre Feb 22, 2022
8278876
trigger bot
gre Feb 22, 2022
681efbb
trigger bot
gre Feb 22, 2022
1a405f2
trigger bot
gre Feb 22, 2022
f875c48
trigger bot
gre Feb 22, 2022
ede4bf4
trigger bot
gre Feb 22, 2022
390ba7b
trigger bot
gre Feb 22, 2022
e8a60e8
trigger bot
gre Feb 22, 2022
17fd5eb
trigger bot
gre Feb 22, 2022
8543228
trigger bot
gre Feb 22, 2022
0442088
trigger bot
gre Feb 22, 2022
0c6b768
trigger bot
gre Feb 22, 2022
2d5cdfb
trigger bot
gre Feb 22, 2022
28830bb
trigger bot
gre Feb 22, 2022
80b2512
trigger bot
gre Feb 22, 2022
263f623
trigger bot
gre Feb 22, 2022
0da65b0
trigger bot
gre Feb 22, 2022
5a7dbb6
trigger bot
gre Feb 22, 2022
872d071
trigger bot
gre Feb 22, 2022
9a22a2e
trigger bot
gre Feb 22, 2022
e4260b9
trigger bot
gre Feb 22, 2022
2aa60f6
trigger bot
gre Feb 22, 2022
dadae1b
trigger bot
gre Feb 22, 2022
652ad68
trigger bot
gre Feb 22, 2022
f24fc10
try to limit even more the cost of delegation
gre Feb 24, 2022
9432e49
lint
gre Feb 24, 2022
f8af6f6
Add files via upload
gre Feb 24, 2022
f5e8a23
Merge branch 'develop' into cosmos-js
gre Feb 24, 2022
c3e6853
amount of the operation more close
alexalouit Feb 25, 2022
6631073
return transaction in prepareTransaction
alexalouit Feb 25, 2022
f3e856c
prevent cosmos-js bot to do invalid scenarios of amount=0
gre Feb 25, 2022
a4b0c61
keep immutable paradigm for prepareTransaction
alexalouit Feb 25, 2022
5e0ac64
bot: do not limit a maxRun for 'send some'
gre Feb 25, 2022
b5e6e7f
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 25, 2022
07480af
Cosmos JS (#1743)
Feb 25, 2022
1808ef4
add .github/workflows/bot7-meredenis.yml
gre Feb 25, 2022
8780fb4
fix amount update in prepareTransaction
alexalouit Feb 25, 2022
e6637dd
fix amount control to be more specific
alexalouit Feb 25, 2022
c0b2f6b
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 25, 2022
774230a
fix BigNumber compare
alexalouit Feb 25, 2022
5d663f0
Cosmos JS (#1746)
Feb 25, 2022
8820ebf
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 25, 2022
8ee49ac
fix spendableBalance
alexalouit Feb 25, 2022
15b90bf
Cosmos JS (#1749)
Feb 25, 2022
33cefe8
separate postBuildTransaction logic + fix use useAllAmount
alexalouit Feb 25, 2022
7e2f220
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 25, 2022
fed024c
Cosmos JS (#1751)
Feb 26, 2022
d6affa8
bot: lower claim reward at 1000
gre Feb 28, 2022
ba3e2ba
Merge branch 'develop' into cosmos-js
gre Feb 28, 2022
904f65d
bot: lower the # of // delegations for cosmos
gre Feb 28, 2022
46a6eb3
trigger bot
gre Feb 28, 2022
8a8dd43
trigger bot
gre Feb 28, 2022
db3c475
trigger bot
gre Feb 28, 2022
ba4efc4
trigger bot
gre Feb 28, 2022
9e11ca3
trigger bot
gre Feb 28, 2022
8f9ad6d
bot: fixes 0 atom undelegate
gre Feb 28, 2022
c33df5a
trigger bot
gre Feb 28, 2022
d816e8c
v21.33.1-cosmos.0
gre Feb 28, 2022
2ba3aa1
trigger bot
gre Feb 28, 2022
83ca8bd
trigger bot
gre Feb 28, 2022
75b3141
update cosmos specs for claim rewards
gre Feb 28, 2022
159333b
trigger bot
gre Feb 28, 2022
b93329a
trigger bot
gre Feb 28, 2022
7e61acb
trigger bot
gre Feb 28, 2022
ab7277f
trigger bot
gre Feb 28, 2022
78e56b1
trigger bot
gre Feb 28, 2022
4ed4004
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Feb 28, 2022
0b0294c
fix rewards
alexalouit Feb 28, 2022
1a193ab
trigger bot
gre Feb 28, 2022
c031ec2
Cosmos JS (#1761)
Feb 28, 2022
6b3d689
trigger bot
gre Feb 28, 2022
3b7778b
trigger bot
gre Feb 28, 2022
c21b670
trigger bot
gre Feb 28, 2022
a5da16d
trigger bot
gre Feb 28, 2022
4ec75c0
trigger bot
gre Feb 28, 2022
447c6db
trigger bot
gre Feb 28, 2022
6a69a58
fix unbondings
alexalouit Feb 28, 2022
df78494
fix fees calculation and add cache usage
alexalouit Feb 28, 2022
5978c5a
Merge pull request #1763 from wa-aal/cosmos-js
gre Mar 1, 2022
0314f33
trigger bot
gre Mar 1, 2022
3a053f4
v21.33.1-cosmos.1
gre Mar 1, 2022
b1454cf
v21.33.1-cosmos.2
gre Mar 1, 2022
756d11a
trigger bot
gre Mar 1, 2022
28dd054
trigger bot
gre Mar 1, 2022
377f352
trigger bot
gre Mar 1, 2022
dad80e3
trigger bot
gre Mar 1, 2022
cddb0e3
cosmos bot: lower the amount for general tx & lower part alloc in del…
gre Mar 1, 2022
1a801b9
ensure for all cosmos mutation that only one op results of a tx
gre Mar 7, 2022
f155a8c
be more conform between optimistic and final operation
alexalouit Mar 8, 2022
5cd89e6
be more conform between optimistic and final operation (#1786)
Mar 9, 2022
c150236
Filecoin fixes (#1740)
emmanuelm41 Mar 1, 2022
a4ed4c3
Create dependencies.md
gre Mar 1, 2022
38999d7
Add env var to enable learn staging URL
ofreyssinet-ledger Feb 24, 2022
b7f1cce
lint
ofreyssinet-ledger Mar 1, 2022
7629615
Bump urijs from 1.19.8 to 1.19.9 (#1774)
dependabot[bot] Mar 4, 2022
736e9f6
Bump urijs from 1.19.8 to 1.19.9 in /tools (#1776)
dependabot[bot] Mar 4, 2022
026fdb9
Bump urijs from 1.19.8 to 1.19.9 in /cli (#1775)
dependabot[bot] Mar 4, 2022
29594de
Bump urijs from 1.19.8 to 1.19.9 in /mobile-test-app (#1773)
dependabot[bot] Mar 4, 2022
c35a42b
Bump plist from 3.0.1 to 3.0.4 in /mobile-test-app (#1767)
dependabot[bot] Mar 4, 2022
7bc65ef
disable a failing test of countervalues (#1778)
gre Mar 4, 2022
abed37b
re-enable countervalues test (#1779)
gre Mar 4, 2022
4da2feb
fix device actions used by bot and add new test case (#1784)
emmanuelm41 Mar 7, 2022
3045eea
Fixes for XTZ JS (still under experimental, no impact)
gre Mar 8, 2022
90ec482
Update Ethereum related libraries (#1780)
gre Mar 8, 2022
ab15f17
bitcoin bot to slack on ll-bitcoin-ci
gre Mar 8, 2022
819c7ae
v21.34.0-cosmos.0
hakim-adamik Mar 9, 2022
24fa16d
use old code logic
alexalouit Mar 9, 2022
9c4dee1
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 9, 2022
f563ebf
Cosmos JS (#1791)
Mar 9, 2022
3b0a03c
fix senders/recipients regression
alexalouit Mar 9, 2022
d68156c
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 9, 2022
a17b5db
Cosmos JS (#1793)
Mar 9, 2022
69d62dd
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 9, 2022
86f5367
fix duplicate data
alexalouit Mar 9, 2022
172632f
Cosmos JS (#1794)
Mar 9, 2022
85dddb6
fix duplicate data (again)
alexalouit Mar 9, 2022
c92c461
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 9, 2022
316a40f
Cosmos JS (#1795)
Mar 9, 2022
2480c1a
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 9, 2022
565e8be
append block height
alexalouit Mar 9, 2022
4ef5904
Cosmos JS (#1796)
Mar 9, 2022
f9bd610
trigger bot
hakim-adamik Mar 9, 2022
d154b69
Cosmos-JS - Fix random balance changes (#1797)
Mar 10, 2022
26b2155
trigger bot
gre Mar 10, 2022
57e3763
Fix setting of experimental JS currencies
hakim-adamik Mar 10, 2022
4211fb5
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 10, 2022
489cdd8
fix specific empty amount case in reward transaction
alexalouit Mar 10, 2022
e3a5963
Cosmos JS (#1799)
Mar 10, 2022
9ebefaf
Merge remote-tracking branch 'ledgerhq/develop' into HEAD
hakim-adamik Mar 10, 2022
a9a3a42
Merge branch 'develop' into cosmos-js
gre Mar 10, 2022
5a6b0c6
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 10, 2022
b93e846
temporary debug operation broadcasted
alexalouit Mar 10, 2022
6379b0a
use toOperationRaw method
alexalouit Mar 11, 2022
f05abf7
return patchedOperation
alexalouit Mar 11, 2022
83e1a98
Cosmos JS (#1800)
Mar 11, 2022
8bda82c
restore broadcast operation
alexalouit Mar 11, 2022
607f359
Update js-synchronisation.ts
alexalouit Mar 11, 2022
eb7198f
remove block height support
alexalouit Mar 11, 2022
ecf61d5
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 11, 2022
beac78d
Cosmos JS (#1801)
Mar 11, 2022
0b7254c
Merge branch 'develop' into cosmos-js
gre Mar 11, 2022
5f1c706
v21.34.1-cosmos.3
gre Mar 11, 2022
44cd92f
Revert "remove block height support"
alexalouit Mar 11, 2022
028fb78
log allOperationsMatchingId
gre Mar 11, 2022
bfdc5f4
lint
gre Mar 11, 2022
195983a
augment the nb of cosmos accounts
gre Mar 11, 2022
e21e6bd
trigger bot
gre Mar 11, 2022
c8eccf6
trigger bot
gre Mar 11, 2022
f7ed28e
trigger bot
gre Mar 11, 2022
2304732
trigger bot
gre Mar 11, 2022
00e3289
enable crypto_org to run tests
gre Mar 11, 2022
7a7f6fa
More strict type
alexalouit Mar 11, 2022
8c2dcab
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 11, 2022
78097b8
reverse order of validators
alexalouit Mar 11, 2022
9bb1042
Cosmos JS (#1803)
Mar 11, 2022
8a34cc7
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 11, 2022
8f2ceb4
fix validators type in createTransmission
alexalouit Mar 11, 2022
e1cf2f0
add sequence to ops
alexalouit Mar 11, 2022
a7a2972
strict output getAccount type
alexalouit Mar 11, 2022
7b7ffe1
fix operations sequence
alexalouit Mar 11, 2022
1f91005
Cosmos JS (#1804)
Mar 14, 2022
b0e55cd
Add a workaround that prevent 2 last operations to be same id (#1807)
gre Mar 14, 2022
25a30c4
Fixes deduplication logic of mergeOps
gre Mar 14, 2022
c0351fc
Merge branch 'fix-jshelpers-mergeops-dedup-logic' into cosmos-js
gre Mar 14, 2022
7f0061f
Revert "Add a workaround that prevent 2 last operations to be same id…
gre Mar 14, 2022
e60e65b
Merge remote-tracking branch 'upstream/cosmos-js' into cosmos-js
alexalouit Mar 14, 2022
3560296
fix multiple tx messages
alexalouit Mar 14, 2022
d102c5f
remove calculateFees libcore logic
alexalouit Mar 24, 2022
111e9da
don't use round ceil
alexalouit Mar 24, 2022
2e5af7f
add comment note
alexalouit Mar 24, 2022
0f5352d
Merge remote-tracking branch 'upstream/sunset-libcore' into cosmos-js
alexalouit Mar 24, 2022
11e872b
sync with upstream
alexalouit Mar 24, 2022
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
2 changes: 1 addition & 1 deletion src/families/cosmos/api/Cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const getDelegations = async (address: string): Promise<any> => {
if (r.validator_address === d.validatorAddress) {
for (const reward of r.reward) {
d.pendingRewards = d.pendingRewards.plus(
new BigNumber(reward.amount).integerValue(BigNumber.ROUND_CEIL)
new BigNumber(reward.amount).integerValue()
);
}
}
Expand Down
8 changes: 8 additions & 0 deletions src/families/cosmos/js-signOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ const signOperation = ({
// Cosmos API expects a different sorting, resulting in a separate signature.
// https://github.com/LedgerHQ/app-cosmos/blob/6c194daa28936e273f9548eabca9e72ba04bb632/app/src/tx_parser.c#L52

// Cosmos App sign data in Amino way only, not Protobuf.
// This is a legacy outdated standard and a long-term blocking point.

// @ledgerhq/hw-app-cosmos don't allow to push message to device message converted
// by the AminoConverter from @cosmjs/stargate. There's two things who don't work:
// 1st, the way who message is sorted.
// 2nd, cast of numeric value (integer/numeric versus string).

const signed = await ledgerSigner.signAmino(account.freshAddress, {
chain_id: chainId,
account_number: accountNumber.toString(),
Expand Down