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

Commit

Permalink
Cosmos JS implementation (experimental)
Browse files Browse the repository at this point in the history
* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* Cosmos js (#1701)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* Cosmos js (#1711)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Increase timeout for Cosmos bot spec

* Increase timeout for Cosmos bot spec

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* Cosmos JS (#1713)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* fix regression

* Cosmos JS (#1715)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* update optimistic operation

fix regression
add operation type
more consistent fee

* Cosmos JS (#1716)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

* Cosmos JS (#1721)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* fix mixed styles

* fix array cast type

* fix more determinist operation data

* Cosmos JS (#1725)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

* fix mixed styles

* fix array cast type

* fix more determinist operation data

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* adjust constants of the cosmos spec to make it more balanced

* bot run

* bot run

* simplify speculos search logic

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* fix could not find optimisticOperation in redelegate transaction

* trigger bot

* trigger bot

* Cosmos JS (#1730)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

* fix mixed styles

* fix array cast type

* fix more determinist operation data

* fix could not find optimisticOperation in redelegate transaction

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* restore getStargateRewardsState methode

* Cosmos JS (#1731)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

* fix mixed styles

* fix array cast type

* fix more determinist operation data

* fix could not find optimisticOperation in redelegate transaction

* restore getStargateRewardsState methode

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* try to limit even more the cost of delegation

* lint

* Add files via upload

* amount of the operation more close

* return transaction in prepareTransaction

* prevent cosmos-js bot to do invalid scenarios of amount=0

* keep immutable paradigm for prepareTransaction

* bot: do not limit a maxRun for 'send some'

* Cosmos JS (#1743)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

* fix mixed styles

* fix array cast type

* fix more determinist operation data

* fix could not find optimisticOperation in redelegate transaction

* restore getStargateRewardsState methode

* amount of the operation more close

* return transaction in prepareTransaction

* keep immutable paradigm for prepareTransaction

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* add .github/workflows/bot7-meredenis.yml

* fix amount update in prepareTransaction

* fix amount control to be more specific

* fix BigNumber compare

* Cosmos JS (#1746)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

* fix mixed styles

* fix array cast type

* fix more determinist operation data

* fix could not find optimisticOperation in redelegate transaction

* restore getStargateRewardsState methode

* amount of the operation more close

* return transaction in prepareTransaction

* keep immutable paradigm for prepareTransaction

* fix amount update in prepareTransaction

* fix amount control to be more specific

* fix BigNumber compare

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* fix spendableBalance

* Cosmos JS (#1749)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

* fix mixed styles

* fix array cast type

* fix more determinist operation data

* fix could not find optimisticOperation in redelegate transaction

* restore getStargateRewardsState methode

* amount of the operation more close

* return transaction in prepareTransaction

* keep immutable paradigm for prepareTransaction

* fix amount update in prepareTransaction

* fix amount control to be more specific

* fix BigNumber compare

* fix spendableBalance

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* separate postBuildTransaction logic + fix use useAllAmount

* Cosmos JS (#1751)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

* fix mixed styles

* fix array cast type

* fix more determinist operation data

* fix could not find optimisticOperation in redelegate transaction

* restore getStargateRewardsState methode

* amount of the operation more close

* return transaction in prepareTransaction

* keep immutable paradigm for prepareTransaction

* fix amount update in prepareTransaction

* fix amount control to be more specific

* fix BigNumber compare

* fix spendableBalance

* separate postBuildTransaction logic + fix use useAllAmount

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* bot: lower claim reward at 1000

* bot: lower the # of // delegations for cosmos

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* bot: fixes 0 atom undelegate

* trigger bot

* v21.33.1-cosmos.0

* trigger bot

* trigger bot

* update cosmos specs for claim rewards

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* fix rewards

* trigger bot

* Cosmos JS (#1761)

* increase gas amplifier

* fix payload construction

handle payload atomic construction

* More accurate gas amplifier

* increase gas amplifier

* use same node for calculation and broadcast

* fix amount payload

* fix fees/gas calculation

* fix signature

fix public key when account is derivate

* fix fees regression

* More accurate pubkey selection

* don't use extra.tx_bytes

* fix pubkey selection

* simplify hex serialization

* update transaction: more strict types

* many things

restruct operation builder
simulate now return int
prepareTransaction use patch format

* accuracy

more accuracy int value
small refactor

* remove useless isPreValidation

* fix strange edge effect of ledger live desktop

* Update xpub during sync

* temporary enable log for bot

* LL-9159 cosmos node

* Update js-signOperation.ts

revert back test trace for bot

* fix signature

* fix redelegate payload

* fix payload send transaction when sendmax

* fix optimistic operation type

* fix typo

* bugfix

* fix regression

* update optimistic operation

fix regression
add operation type
more consistent fee

* fix prettier

* more deterministic transaction parsing

* clarify code readable

* adjust sender and recipient

* fix fees when is ibc transaction

* fix redelegations data mapping

* fix mixed styles

* fix array cast type

* fix more determinist operation data

* fix could not find optimisticOperation in redelegate transaction

* restore getStargateRewardsState methode

* amount of the operation more close

* return transaction in prepareTransaction

* keep immutable paradigm for prepareTransaction

* fix amount update in prepareTransaction

* fix amount control to be more specific

* fix BigNumber compare

* fix spendableBalance

* separate postBuildTransaction logic + fix use useAllAmount

* fix rewards

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* fix unbondings

* fix fees calculation and add cache usage

* trigger bot

* v21.33.1-cosmos.1

* v21.33.1-cosmos.2

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* cosmos bot: lower the amount for general tx & lower part alloc in delegate

* ensure for all cosmos mutation that only one op results of a tx

* be more conform between optimistic and final operation (#1786)

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Filecoin fixes (#1740)

* make use of useAllAmount flag

* make use of useAllAmount on signing tx process

* refactor signOperation process to use extra field better

* add deviceTransactionConfig for filecoin

* re org fields for confirm tx

* change fields order

* add extra field parsers

* move extra field parsers to the correct file

* fix lint issue

* Create dependencies.md

* Add env var to enable learn staging URL

* lint

* Bump urijs from 1.19.8 to 1.19.9 (#1774)

Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.8 to 1.19.9.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](medialize/URI.js@v1.19.8...v1.19.9)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump urijs from 1.19.8 to 1.19.9 in /tools (#1776)

Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.8 to 1.19.9.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](medialize/URI.js@v1.19.8...v1.19.9)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump urijs from 1.19.8 to 1.19.9 in /cli (#1775)

Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.8 to 1.19.9.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](medialize/URI.js@v1.19.8...v1.19.9)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump urijs from 1.19.8 to 1.19.9 in /mobile-test-app (#1773)

Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.8 to 1.19.9.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](medialize/URI.js@v1.19.8...v1.19.9)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump plist from 3.0.1 to 3.0.4 in /mobile-test-app (#1767)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.1 to 3.0.4.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* disable a failing test of countervalues (#1778)

temporarily disable a countervalues api test. team informed.

* re-enable countervalues test (#1779)

* fix device actions used by bot and add new test case (#1784)

* Fixes for XTZ JS (still under experimental, no impact)

* Update Ethereum related libraries (#1780)

* Update Ethereum related libraries

* axios update

* bitcoin bot to slack on ll-bitcoin-ci

* v21.34.0-cosmos.0

* Cosmos JS (#1791)

* be more conform between optimistic and final operation

* use old code logic

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Cosmos JS (#1793)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Cosmos JS (#1794)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

* fix duplicate data

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Cosmos JS (#1795)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

* fix duplicate data

* fix duplicate data (again)

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Cosmos JS (#1796)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

* fix duplicate data

* fix duplicate data (again)

* append block height

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* trigger bot

* Cosmos-JS - Fix random balance changes (#1797)

* Cleanup Cosmos.api and remove default values

* forEach doesn't behave well with async/await

* Restore some necessary API default values

* Fix lint error

* trigger bot

* Fix setting of experimental JS currencies

* Cosmos JS (#1799)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

* fix duplicate data

* fix duplicate data (again)

* append block height

* fix specific empty amount case in reward transaction

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Cosmos JS (#1800)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

* fix duplicate data

* fix duplicate data (again)

* append block height

* fix specific empty amount case in reward transaction

* temporary debug operation broadcasted

* use toOperationRaw method

* return  patchedOperation

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Cosmos JS (#1801)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

* fix duplicate data

* fix duplicate data (again)

* append block height

* fix specific empty amount case in reward transaction

* temporary debug operation broadcasted

* use toOperationRaw method

* return  patchedOperation

* restore broadcast operation

* Update js-synchronisation.ts

* remove block height support

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* v21.34.1-cosmos.3

* log allOperationsMatchingId

* lint

* augment the nb of cosmos accounts

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* enable crypto_org to run tests

* Cosmos JS (#1803)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

* fix duplicate data

* fix duplicate data (again)

* append block height

* fix specific empty amount case in reward transaction

* temporary debug operation broadcasted

* use toOperationRaw method

* return  patchedOperation

* restore broadcast operation

* Update js-synchronisation.ts

* remove block height support

* Revert "remove block height support"

This reverts commit eb7198f.

* More strict type

* reverse order of validators

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Cosmos JS (#1804)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

* fix duplicate data

* fix duplicate data (again)

* append block height

* fix specific empty amount case in reward transaction

* temporary debug operation broadcasted

* use toOperationRaw method

* return  patchedOperation

* restore broadcast operation

* Update js-synchronisation.ts

* remove block height support

* Revert "remove block height support"

This reverts commit eb7198f.

* More strict type

* reverse order of validators

* fix validators type in createTransmission

* add sequence to ops

* strict output getAccount type

* fix operations sequence

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* Add a workaround that prevent 2 last operations to be same id (#1807)

* Fixes deduplication logic of mergeOps

* Revert "Add a workaround that prevent 2 last operations to be same id (#1807)"

This reverts commit b0e55cd.

* trigger bot

* Cosmos JS (#1809)

* be more conform between optimistic and final operation

* use old code logic

* fix senders/recipients regression

* fix duplicate data

* fix duplicate data (again)

* append block height

* fix specific empty amount case in reward transaction

* temporary debug operation broadcasted

* use toOperationRaw method

* return  patchedOperation

* restore broadcast operation

* Update js-synchronisation.ts

* remove block height support

* Revert "remove block height support"

This reverts commit eb7198f.

* More strict type

* reverse order of validators

* fix validators type in createTransmission

* add sequence to ops

* strict output getAccount type

* fix operations sequence

* fix multiple tx messages

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>

* snapshot

* v21.34.1-cosmos.4

* cosmos bot: better approximation of delegating amounts

* trigger bot

* Cosmos bot: redelegation effects immediately when already delegate

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* increase maxAccount to have more coverage

* simplify spec test

* trigger bot

* trigger bot

* lint

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

* trigger bot

Co-authored-by: Alexandre Alouit <alexandre.alouit@gmail.com>
Co-authored-by: wa-aal <93649819+wa-aal@users.noreply.github.com>
Co-authored-by: Gaëtan Renaudeau <renaudeau.gaetan@gmail.com>
Co-authored-by: Emmanuel <emmanuelm41@gmail.com>
Co-authored-by: Olivier Freyssinet <olivier.freyssinet@ledger.fr>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
7 people committed Mar 15, 2022
1 parent 5db8deb commit 122fc17
Show file tree
Hide file tree
Showing 29 changed files with 3,129 additions and 274 deletions.
4 changes: 1 addition & 3 deletions .ci.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
DISABLE_MOCKED_WARNING=true
# always test on latest conditions
EXPERIMENTAL_EXPLORERS=1
EXPERIMENTAL_CURRENCIES_JS_BRIDGE=algorand,bitcoin,bitcoin_cash,bsc,litecoin,dash,qtum,zcash,bitcoin_gold,stratis,dogecoin,digibyte,komodo,pivx,zencash,vertcoin,peercoin,viacoin,stakenet,stealthcoin,decred,bitcoin_testnet,tezos
EXPERIMENTAL_CURRENCIES_JS_BRIDGE=algorand,bitcoin,bitcoin_cash,bsc,litecoin,dash,qtum,zcash,bitcoin_gold,stratis,dogecoin,digibyte,komodo,pivx,zencash,vertcoin,peercoin,viacoin,stakenet,stealthcoin,decred,bitcoin_testnet,tezos,cosmos
81 changes: 81 additions & 0 deletions .github/workflows/bot7-meredenis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Bot 'Cosmos JS via Mère Denis'
on:
push:
branches:
- cosmos-js

jobs:
start-runner:
name: "start ec2 instance (Linux)"
if: ${{ always() }}
uses: ledgerhq/actions/.github/workflows/start-linux-runner.yml@main
secrets:
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }}

stop-runner:
name: "stop ec2 instance (Linux)"
needs: [start-runner, run-bot]
uses: ledgerhq/actions/.github/workflows/stop-linux-runner.yml@main
if: ${{ always() }}
with:
label: ${{ needs.start-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}
secrets:
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }}

run-bot:
needs: [start-runner]
runs-on: ${{ needs.start-runner.outputs.label }}
steps:
- name: prepare runner
run: |
sudo growpart /dev/nvme0n1 1
sudo resize2fs /dev/nvme0n1p1
- uses: actions/checkout@v2
- name: Retrieving coin apps
uses: actions/checkout@v2
with:
repository: LedgerHQ/coin-apps
token: ${{ secrets.PAT }}
path: coin-apps
- uses: actions/setup-node@master
with:
node-version: 14.x
- name: install yarn
run: npm i -g yarn
- name: pull docker image
run: docker pull ghcr.io/ledgerhq/speculos
- name: kill apt-get
run: sudo killall -w apt-get apt || echo OK
- name: Install linux deps
run: sudo apt-get install -y libusb-1.0-0-dev jq
- name: Install dependencies
run: |
yarn global add yalc
yarn --frozen-lockfile
yarn ci-setup-cli
- name: BOT
env:
SHOW_LEGACY_NEW_ACCOUNT: "1"
SEED: ${{ secrets.SEED1 }}
VERBOSE_FILE: bot-tests.txt
GITHUB_SHA: ${GITHUB_SHA}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_WORKFLOW: ${{ github.workflow }}
SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }}
SLACK_CHANNEL: live-ft-atom-js
BOT_FILTER_FAMILY: cosmos
EXPERIMENTAL_CURRENCIES_JS_BRIDGE: cosmos
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov
- name: upload logs
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt

82 changes: 82 additions & 0 deletions .github/workflows/bot7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Bot 'Cosmos JS'
on:
push:
branches:
- cosmos-js

jobs:
start-runner:
name: "start ec2 instance (Linux)"
if: ${{ always() }}
uses: ledgerhq/actions/.github/workflows/start-linux-runner.yml@main
secrets:
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }}

stop-runner:
name: "stop ec2 instance (Linux)"
needs: [start-runner, run-bot]
uses: ledgerhq/actions/.github/workflows/stop-linux-runner.yml@main
if: ${{ always() }}
with:
label: ${{ needs.start-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}
secrets:
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }}

run-bot:
needs: [start-runner]
runs-on: ${{ needs.start-runner.outputs.label }}
steps:
- name: prepare runner
run: |
sudo growpart /dev/nvme0n1 1
sudo resize2fs /dev/nvme0n1p1
- uses: actions/checkout@v2
- name: Retrieving coin apps
uses: actions/checkout@v2
with:
repository: LedgerHQ/coin-apps
token: ${{ secrets.PAT }}
path: coin-apps
- uses: actions/setup-node@master
with:
node-version: 14.x
- name: install yarn
run: npm i -g yarn
- name: pull docker image
run: docker pull ghcr.io/ledgerhq/speculos
- name: kill apt-get
run: sudo killall -w apt-get apt || echo OK
- name: Install linux deps
run: sudo apt-get install -y libusb-1.0-0-dev jq
- name: Install dependencies
run: |
yarn global add yalc
yarn --frozen-lockfile
yarn ci-setup-cli
- name: BOT
env:
SHOW_LEGACY_NEW_ACCOUNT: "1"
DEBUG_HTTP_RESPONSE: "1"
SEED: ${{ secrets.SEED4 }}
VERBOSE_FILE: bot-tests.txt
GITHUB_SHA: ${GITHUB_SHA}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_WORKFLOW: ${{ github.workflow }}
SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }}
SLACK_CHANNEL: live-ft-atom-js
BOT_FILTER_FAMILY: cosmos
EXPERIMENTAL_CURRENCIES_JS_BRIDGE: cosmos
run: COINAPPS=$PWD/coin-apps yarn ci-test-bot
timeout-minutes: 120
- name: Run coverage
if: failure() || success()
run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov
- name: upload logs
if: failure() || success()
uses: actions/upload-artifact@v1
with:
name: bot-tests.txt
path: bot-tests.txt

29 changes: 0 additions & 29 deletions cli/scripts/tests.sh
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
#!/bin/bash

set -e
cd $(dirname $0)/../tests

MINIMAL_MODE=$MINIMAL # can be overriden
if [ "master" != "$CIRCLE_BRANCH" ]; then
MINIMAL_MODE=1
fi

MANDATORY_TESTS=
OPTIONAL_TESTS=
for td in *; do
if [ -f ./$td/test.sh ]; then
if [ -f ./$td/mandatory ]; then
MANDATORY_TESTS="$MANDATORY_TESTS $td"
else
OPTIONAL_TESTS="$OPTIONAL_TESTS $td"
fi
fi
done

for td in $MANDATORY_TESTS; do
bash $PWD/../scripts/testOne.sh $td $1
done

if [ ! $MINIMAL_MODE ]; then
for td in $OPTIONAL_TESTS; do
bash $PWD/../scripts/testOne.sh $td $1
done
fi

42 changes: 0 additions & 42 deletions cli/tests/encryption/test.sh

This file was deleted.

10 changes: 0 additions & 10 deletions cli/tests/libcoreReset/test.sh

This file was deleted.

5 changes: 0 additions & 5 deletions cli/tests/version/test.sh

This file was deleted.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/LedgerHQ/ledger-live-common"
},
"version": "21.34.0",
"version": "21.34.1-cosmos.4",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"license": "Apache-2.0",
Expand Down Expand Up @@ -45,6 +45,10 @@
"@celo/contractkit": "^1.5.2",
"@celo/wallet-base": "^1.5.2",
"@celo/wallet-ledger": "^1.5.2",
"@cosmjs/crypto": "^0.26.5",
"@cosmjs/ledger-amino": "^0.26.5",
"@cosmjs/proto-signing": "^0.26.5",
"@cosmjs/stargate": "^0.26.5",
"@crypto-com/chain-jslib": "0.0.19",
"@ethereumjs/common": "^2.6.2",
"@ethereumjs/tx": "^3.5.0",
Expand Down
Loading

0 comments on commit 122fc17

Please sign in to comment.