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

Merge updates from master to master-v2 #1802

Merged
merged 93 commits into from
Dec 15, 2020

Commits on Aug 10, 2020

  1. /block.validate endpoint (#1668)

    * feat: init block.validate
    
    * completes parameter validation tests
    
    * rename validation method with stronger typing
    
    * feat: verify_transactions and and negative test
    
    * add: positive test for verify_transactions
    
    * chore: remove single pipes
    
    * verify_transactions: add @SPEC and @doc
    
    * pending
    
    * test: Added tests for `verify_merkle_root/1`
    
    * remove reverse operation
    
    * refactor: simplify tests
    
    * refactor: simplify verify_merkle_root/1 tests
    
    * refactor: merkle validation tests + entities as module attributes
    
    * add dialyzer spec and remove argument pattern matching
    
    * move logic to dedicated validator module
    
    * test: added test for `block.validate` endpoint
    
    * refactor: make tests pass
    
    * feat: response for `validate_block` view
    
    * feat: error for mismatched_merkle_root
    
    * simplify tests
    
    * rename error
    
    * remove unused method
    
    * fix: error name
    
    * fix: credo
    
    * merge issue: gitmodules
    
    * merge master issue: gitmodules [2]
    
    * merge master issue: gitmodules [3]
    
    * Merge branch 'ripzery/block.validate' of https://github.com/omisego/elixir-omg into ripzery/block.validate
    
    * (re)delete specs
    
    * return submodule
    
    * refactor: decouple verify_merkle_root from transaction recovery
    
    * add: negative test for invalid transactions
    
    * refactor: improve performance of verify_transactions
    
    * use pin operator instead of comparison
    
    * refactor: remove use of & &1. for clearer syntax
    
    * remove redundant comment
    
    * move block validation logic into Watcher
    
    * move parameter validation logic into BlockConstraints
    
    * reflect file changes in controller
    
    * refactor: make verification functions private and shift tests to stateless_validate/1
    
    * fix potential false positive by computing Merkle root correctly.
    
    * add: swagger specs
    
    * refactor: endpoint to return boolean result
    
    * add: nil error
    
    * update documentation to reflect boolean result
    
    * remove error reason in response
    
    Co-authored-by: euro <[email protected]>
    Co-authored-by: Ayrat Badykov <[email protected]>
    3 people committed Aug 10, 2020
    Configuration menu
    Copy the full SHA
    6ba53bd View commit details
    Browse the repository at this point in the history
  2. feat: configurable DB pool size, queue target and queue interval (#1689)

    * feat: configurable DB pool size, queue target and queue interval
    
    * fix: add release task to release config
    
    * style: mix format
    
    * feat: configure runtime env vars through releases.exs
    
    * fix: remove release tasks
    
    * fix: syntax
    
    * docs: add docs for db pool env vars
    unnawut committed Aug 10, 2020
    Configuration menu
    Copy the full SHA
    cb3659f View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2020

  1. feat: auto trigger chart version bump (#1695)

    * feat: add increase chart version script and job
    
    * feat: filter release tag on CI config
    
    * fix: make increase chart script work
    
    * test: docker image
    
    * feat: add watcher&watcher-info on increase version
    
    * chore: remove commented configs and back to non-playground
    
    * fix: extra space
    boolafish committed Aug 18, 2020
    Configuration menu
    Copy the full SHA
    cbbc2dc View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2020

  1. Block Validation: New Checks (#1693)

    * feat: transaction counting and block-level duplicate input verification in block validation
    
    * fix: dialyzer error
    
    * fix: credo error
    
    * feat: validate fee transactions in block
    
    * test: fee transaction validation
    
    * revert fee logic meant to be stateful
    
    * remove: fee claimer check
    
    * fix: place dummy fee claimer
    
    * test names
    
    * refactors: simplify duplicate input verification, use guards, etc.
    
    * PR review: description changes
    
    * fix: credo
    
    * simplify duplicate input checking
    
    * update documentation
    
    * fix: dialyzer
    
    * spacing
    
    * suggested edits
    Omar Kalouti committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    a7b4188 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2020

  1. feat: block queue metrics and stalled submission alarm (#1649)

    * feat: change block formation log from debug to info
    
    * feat: BlockQueue publishes :block_submitting and :block_submitted events
    
    * feat: BlockQueue.Monitor that raises/clears :block_submission_stalled alarm
    
    * refactor: tracks root chain height directly from the bus
    
    * refactor: revert variable naming
    
    * fix: remove remaining EtherereumHeight.get()
    
    * fix: typespec
    
    * feat: add telemetry and statsd metric for blknum_submitting and blknum_submitted
    
    * feat: add telemetry and statsd metric for blocks_submitting and blocks_stalled
    
    * fix: rename :block_submission to :block_submission_gas
    
    * feat: add statsd metric for :block_submission_success
    
    * fix: remove non services
    
    * docs: clearer explanation of block queue metrics
    
    * docs: more explanation on event publishing
    
    * feat: add :block_submission_attempt statsd metric
    
    * fix: dialyzer
    
    * feat: block submission stall config and supervisor setup
    
    * format: formatting and naming alignment
    
    * test: add BlockQueue.Monitor test
    
    * refactor: shorten config name
    
    * test: fix tests
    
    * fix: broken service startup
    
    * feat: configurable block submit stall from env var
    
    * fix: move config namespace
    
    * refactor: brackets everywhere
    
    * fix: config naming
    
    * fix: wrong namespace
    
    * test: fix app name
    
    * test: fix init
    
    * refactor: use :block_submit_stalled everywhere
    
    * fix: ignore unrelated events
    
    * fix: telemetry deprecation
    
    * fix: remove misleading metric :block_queue_num_blocks_submitting due to the way block submission sampling works
    
    * fix: remove dup geth argument
    
    * fix: remove unused block_submit_stall_check_interval_ms
    
    * refactor: add alarm function naming
    
    * refactor: reduce alarm function pattern matching cases
    
    * refactor: move release task to releases.exs
    
    * fix: remove obsolete tests
    unnawut committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    733aab2 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2020

  1. Configuration menu
    Copy the full SHA
    b3081f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f62dc06 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2020

  1. chore: add feefeed docker to elixir-omg setup (#1700)

    * add feefeed adapter
    
    * change ip
    
    * add feefeed url
    
    * fix test barebone release
    
    * fix port
    
    * remove override variable from barebone config
    
    * chore: use https instead of gits to avoid permission issue
    
    * test: update to cabbage using fee api
    
    * fix: git submodule without --remote flag
    
    So it would not always pull the head branch from remote.
    
    * fix: update cabbage to fix reorg
    
    * fix: circle ci mis-comment
    
    * chore: add healthcheck and depends on for services
    
    and mock off other tests aside from reorg
    
    * chore: sync with cabbage update
    
    * chore: add space before network
    
    * chore: ignore geth folder
    
    * debug: comment out make docker steps
    
    * chore: update priv/perf for debug docker-compose pull
    
    * debug: use feefeed-dev with more logging
    
    * debug: use newer feefeed docker that fixes a bug
    
    * chore: update cabbage commit
    
    * chore: uncomment the commented CI jobs
    
    * chore: update latest cabbage
    
    * style: docker file space
    
    * fix: all docker images command have dockerhub authenticate
    
    * chore: update cabbage for code review
    
    * fix: circle ci login to dockerhub
    
    and update cabbage commit
    
    * fix: fee for perf tests
    
    - set in the test config to use the new fee amount 75
    - for LoadTest.Common, pass in the fee_amount and use the value from config
    
    * chore: back to feefeed:latest image
    
    * style: mix format
    
    * refactor: move docker_login out from make_docker_images
    
    Logic-wise it does not make much sense actually to be together.
    
    * chore: update cabbage to latest
    
    * style: fix lint
    
    * chore: update cabbage commit
    
    * chore: use master from cabbage
    
    * chore: bring back submodule udpate --remote
    
    This is just better. change the branch in submodele file instead for testing.
    
    Co-authored-by: jarindr <[email protected]>
    boolafish and jarindr committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    1992805 View commit details
    Browse the repository at this point in the history
  2. feat: reintroduce automated changelog (#1708)

    * feat: reintroduce github_changelog_generator
    
    * feat: more changelog tags
    
    * feat: wholly configuring the changelog sections
    
    * feat: changelog label auto checker
    
    * refactor: better review messages
    
    * debug: apply workflow on all branches to check it's working
    
    * fix: bad env format
    
    * fix: wrong job name
    
    * fix: missing closing quote
    
    * fix: bad syntax
    
    * fix: enable shell tracing
    
    * fix: premature failure
    
    * fix: remove extra full stop
    
    * debug: reenable label check only for master
    
    * fix: missing line break escape
    
    * refactor: use Github's default env vars for its url building
    
    * feat: fail the github action instead of relying on a bot
    
    * fix: remove continue-on-error
    
    * fix: combine github action steps so it's easier to find the original error
    
    * feat: echo error
    
    * fix: proper error
    
    * fix: syntax
    
    * fix: force exit on error [ciskip]
    
    * fix: operator precedence
    unnawut committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    536059c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fd1beac View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2020

  1. Configuration menu
    Copy the full SHA
    f302553 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2020

  1. revert: reverts ife deletion commits (#1725)

    * Revert "fix: fix in-flight exit deleted bug and add tests (#1714)"
    
    This reverts commit f302553.
    
    * Revert "feat: handle in-flight exits deletions (#1701)"
    
    This reverts commit b3081f8.
    pgebal committed Sep 4, 2020
    Configuration menu
    Copy the full SHA
    ed8b0f7 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2020

  1. Allow to run docker-compose without feefeed docker (#1726)

    * refactor: abstract steps in circle ci to make file for perf
    
    * chore: seperate docker-compose file for feefeed
    
    to allow public contributor to run without feefeed docker
    
    * fix: make start-services command with feefeed
    
    * refactor: move mix format for api generated code back to CI
    
    * debug: add debug CI workflow
    
    * style: simplify docker-compose file
    
    * debug: add log service command to perf
    
    * do not set env var in makefile
    
    * back to run whole workflow
    
    * refactor: COMPOSE_FULL_SERVICES in makefile
    
    * chore: spaces instead of tab in .gitmodules
    boolafish committed Sep 9, 2020
    Configuration menu
    Copy the full SHA
    a69e22c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3d75118 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2020

  1. rm mix based chch (#1716)

    machine
    
    module rename
    
    dont cache
    
    install linux deps
    
    sleep
    
    postgres
    
    child chain url and childchain empty fees
    Ino Murko committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    3206e4c View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2020

  1. Inomurko/remove child chain (#1737)

    * rem childchain code
    
    * erlexec
    
    * fixtures inclusion
    
    * revert cabbage and api client generation from omg v1 childchain
    
    * we dont need wget anymore
    Ino Murko committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    27379ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6227b79 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2020

  1. move dev env deployment job to helm repo (#1738)

    * feat: trigger increase chart version on merge to master
    
    * debug: switch to playground repo
    
    And allow circle ci to run on non-master
    
    * fix: unbound string
    
    * feat: add jitter to the call
    
    * remove jitter, not useful
    
    * chore: cleanup
    
    Uncomment CircleCI jobs, remove deployment jobs/scripts, not using playground repo
    
    * fix: circle ci format
    
    * fix: notifiy service do not wait for non-existing deployment job
    
    * chore: remove childchain master deployment
    
    Responsibility has been moved to omg-childhchain-v1 repo.
    Have another PR for that: omgnetwork/omg-childchain-v1#15
    
    * chore: remove childchain release from elixir-omg
    
    Moved to omg-childchain-v1.
    boolafish committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    a428fa1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7d6415b View commit details
    Browse the repository at this point in the history
  3. Kevsul/standard exit perf test (#1732)

    * tests: add load test for standard exits
    
    * tests: add watcher status scenario
    
    * tests: standard exit test syncs with watcher
    
    * tests: revert test fee_amount
    
    * tests: add max num retries when waiting
    
    * tests: remove FundAccountRootchain scenario
    
    * tests: change if to case
    kevsul committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    ff66dd2 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. Chore: try to fix flaky reorg tests (#1739)

    Two kinds of errors I saw:
    1. Tests are timing out during account creation and unlocking on both geth nodes. After I increased timeout for account creation, I haven't seen this error anymore
    2. Tests are failing with wrong balances (on the childchain and the rootchain). I added additional checks to the reorg function to make sure nodes have the same latest block after reorg. I think it helped but still, tests are failing sometimes.
    ayrat555 committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    37ca58f View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2020

  1. update change log v1.0.4 (#1731)

    * update changelog
    
    * manual fix change log
    
    * more manual fix change log
    
    * Update VERSION
    
    Co-authored-by: Unnawut Leepaisalsuwanna <[email protected]>
    jarindr and unnawut committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    b54eb17 View commit details
    Browse the repository at this point in the history
  2. Chore: parallelize tests by tags (#1744)

    * parallelize tests by tags
    ayrat555 committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    722949a View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2020

  1. Chore: use exexec from upstream (#1743)

    * use exexec from upstream
    ayrat555 committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    85c5fc0 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2020

  1. fix: recheck PR label on synchronize and reopen (#1748)

    * fix: recheck PR label on synchronize and reopen
    
    * test: a pointless commit to check that the enforce-changelog-label job still passes
    
    * debug: try the fixed feefeed
    
    * Revert "debug: try the fixed feefeed"
    
    This reverts commit a35fc90.
    unnawut committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    b8631c5 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2020

  1. Configuration menu
    Copy the full SHA
    1d8ea8e View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2020

  1. feat: transaction.create optimisation (#1683)

    * test: Init
    
    * test: create `generate_utxos_map/3`
    
    * test: put test in describe
    
    * test: added `needed_funds/2` tests
    
    * add tests and light refactor for get_sorted_grouped_utxos
    
    * add tests and light refactor [2]
    
    * test: refactor `create_advice/2`
    
    * add spec and clarify funds_sufficient
    
    * refactor: `needed_funds`
    
    * refactor: use shorthanded type
    
    * Add @doc  and readabilty edits
    
    * add: tests for funds_sufficient/1
    
    * refactor: simplify use of 'alice'
    
    * refactor: move test inside describe
    
    * test: add `select_utxo/2` tests
    
    * refactor: remove extra line
    
    * fix: spec
    
    * feat: implement `add_merge_utxos`
    
    * test: add test for `add_merge_utxos/2`
    
    * feat: add prioritize_merge_utxos/2
    
    * test: add test for `prioritize_merge_utxos/2`
    
    * refactor: pipe one more time
    
    * refactor and spec stealth merge
    
    * refactor: test name
    
    * add: tests and doc for `add_utxos_for_stealth_merge`
    
    * feat: integrate add_merge_utxos to create_advice
    
    * test: add test for create_advice
    
    * add: doc content for add_utxos_for_stealth_merge
    
    * refactor and test prioritisation of UTXOs for stealth merge
    
    * refactor: split transaction operation
    
    * Fix dialyzer type
    
    * refactor: dialyzer
    
    * fix: typo
    
    * test: add utxo_selection test
    
    * debug: transaction create
    
    * feat: handle when original inputs are empty
    
    * tests: remove transaction merge tests
    
    * tests: add tests for utxo selection
    
    * tests: handle when too many inputs to satisfy payments and fee
    
    * refactor: remove todo
    
    * feat: move `create_advice` from `utxo_selection.ex` to  `transaction.ex` and rename it to `create_inputs`
    
    * test: add transaction tests
    
    * test: change port `9657` to `9656`
    
    * cleanup: remove unused var
    
    * lint: remove @doc for defp
    
    * test: revert back port `9656` to `9657`
    
    * lint: fix lint
    
    * refactor: remove result from response
    
    * test: add prepare_test_server
    
    * refactor: fix per reviews
    
    * tests: add test case where 2 input use different currencies
    
    * refactor: remove alice, bob from test context
    
    * test: fix mismatch function signature
    
    * fix: dialyzer type
    
    * refactor: Cleanup
    
    * fix: dialyzer
    
    * fix: credo
    
    * remove unusued alias
    
    * refactor: remove comments
    
    * lint: fix
    
    * tests: add tests for transaction.create apis
    
    * test: delete unnecessary function
    
    * refactor: simplified `select_inputs` flow
    
    * refactor: fix follows pr review
    
    * tests: fix wrong function
    
    * lint: add alias
    
    * refactor: remove trailing comma
    
    * refactor: var name
    
    * switch branch for cabbage test
    
    * refactor: move functions out of controller
    
    * test: add outputs to assertion
    
    * test: add tests for `transaction.create/2`
    
    * test: implement tests for include_typed_data/1
    
    * refactor: remove single pipe
    
    * tests: add tests for `select_inputs/2`
    
    * refactor: cleanup typespec
    
    * lint: formatting
    
    * lint: remove unused alias
    
    * lint: reorder the alias
    
    * refactor: move spec and simplified logic
    
    * refactor: simplify pattern matching
    
    * refactor: uniformize param
    
    * revert: bring back merge transaction
    
    * fixes
    
    * refactor: lift out respond
    
    * fix: is_required_merge doesn't work
    
    * refactor: transaction api
    
    * test: fix tests
    
    * tests: fix
    
    * fix: add result key back
    
    * fix: dialyzer part-1
    
    * fix: remove unnecessary dialyzer types
    
    * fix: revert changes on .gitmodules
    
    * refactor: select_inputs/2
    
    * refactor: simplify select_utxo logic
    
    * refactor: re-order functions
    
    * fix: rename function
    
    * fix: conflict
    
    * Fix conflict
    
    * refactor: rename functions
    
    * refactor: remove single pipe
    
    * fix: lint
    
    * fix: tests
    
    * fix: tests 2
    
    * try: update spec repo
    
    * test: change git modules
    
    * test: revert submodule
    
    * test: fix cabbage conflict
    
    * test: add result key back
    
    * fix: private and public function mixing
    
    * test: fix imports and mixing private functions
    
    * fix: break down pipe
    
    * refactor: break down pipe
    
    * fix: remove blank line
    
    * fix: move alias to top
    
    * refactor: renaming and break out pipe
    
    * refactor: get_utxos_count
    
    * refactor: create_transaction
    
    * fix: typo
    
    * refactor: build_inputs
    
    * refactor: formatting
    
    * refactor: lift out input
    
    * refactor: prioritize merge utxos
    
    * remove and ignore priv/apps/childchain_api
    
    Co-authored-by: euro <[email protected]>
    Co-authored-by: euro <[email protected]>
    Co-authored-by: Mederic <[email protected]>
    4 people committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    ad007ca View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2020

  1. chore: bump version to 1.0.4 (#1751)

    We are already in 1.0.4 but we forget to port the VERSION file back when updating changelog.
    boolafish committed Oct 21, 2020
    Configuration menu
    Copy the full SHA
    c6cb81f View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2020

  1. Configuration menu
    Copy the full SHA
    34b9d54 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2020

  1. chore: changelog/version bump for v1.0.5 (#1747)

    * chore: changelog/version bump v1.0.5
    
    * update CHANGELOG for 1.0.5-pre.0
    
    * bump to include latest changes for infura
    achiurizo committed Oct 27, 2020
    Configuration menu
    Copy the full SHA
    54305bb View commit details
    Browse the repository at this point in the history
  2. Publish the perf project (#1753)

    * publish the perf project
    ayrat555 committed Oct 27, 2020
    Configuration menu
    Copy the full SHA
    a49a33a View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2020

  1. Utxo perf test (#1756)

    * create and check utxo
    
    * spend utxo
    
    * assert balances after spending
    
    * validate exact utxos
    
    * fix token encoding
    
    * add test to run on ci
    
    * Update priv/perf/apps/load_test/lib/watcher_info/utxo.ex
    
    Co-authored-by: Ino Murko <[email protected]>
    
    * Update priv/perf/apps/load_test/lib/watcher_info/utxo.ex
    
    Co-authored-by: Ino Murko <[email protected]>
    
    * mix format
    
    * fix build
    
    Co-authored-by: Ino Murko <[email protected]>
    ayrat555 and Ino Murko committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ed74da2 View commit details
    Browse the repository at this point in the history
  2. Add cli help command for the perf project (#1757)

    * add cli help command for the perf project
    ayrat555 committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    251cfc0 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2020

  1. feat : transaction.merge endpoint (#1715)

    * test: Init
    
    * test: create `generate_utxos_map/3`
    
    * test: put test in describe
    
    * test: added `needed_funds/2` tests
    
    * add tests and light refactor for get_sorted_grouped_utxos
    
    * add tests and light refactor [2]
    
    * test: refactor `create_advice/2`
    
    * add spec and clarify funds_sufficient
    
    * refactor: `needed_funds`
    
    * refactor: use shorthanded type
    
    * Add @doc  and readabilty edits
    
    * add: tests for funds_sufficient/1
    
    * refactor: simplify use of 'alice'
    
    * refactor: move test inside describe
    
    * test: add `select_utxo/2` tests
    
    * refactor: remove extra line
    
    * fix: spec
    
    * feat: implement `add_merge_utxos`
    
    * test: add test for `add_merge_utxos/2`
    
    * feat: add prioritize_merge_utxos/2
    
    * test: add test for `prioritize_merge_utxos/2`
    
    * refactor: pipe one more time
    
    * refactor and spec stealth merge
    
    * refactor: test name
    
    * add min_length to base validators
    
    * add merge route and controller
    
    * fix compile errors
    
    * add: tests and doc for `add_utxos_for_stealth_merge`
    
    * test address/currency and utxo positions constraint
    
    * feat: integrate add_merge_utxos to create_advice
    
    * test: add test for create_advice
    
    * add: doc content for add_utxos_for_stealth_merge
    
    * refactor and test prioritisation of UTXOs for stealth merge
    
    * test utxo constraint
    
    * add other required utxo data
    
    * fetch utxo logic
    
    * start transaction_test
    
    * finaly get basic transaction api test working
    
    * merge p
    
    * refactor: split transaction operation
    
    * Fix dialyzer type
    
    * refactor: dialyzer
    
    * fix: typo
    
    * test: add utxo_selection test
    
    * debug: transaction create
    
    * feat: handle when original inputs are empty
    
    * tests: remove transaction merge tests
    
    * tests: add tests for utxo selection
    
    * tests: handle when too many inputs to satisfy payments and fee
    
    * refactor: remove todo
    
    * refactor: parameter validation for transaction.merge
    
    * optional desc/asc for UTXO fetch
    
    * WIP: merge functionality
    
    * feat: move `create_advice` from `utxo_selection.ex` to  `transaction.ex` and rename it to `create_inputs`
    
    * test: add transaction tests
    
    * WIP: return multiple merge transactions if address/ccy params
    
    * test: change port `9657` to `9656`
    
    * cleanup: remove unused var
    
    * lint: remove @doc for defp
    
    * test: revert back port `9656` to `9657`
    
    * lint: fix lint
    
    * refactor: remove result from response
    
    * test: add prepare_test_server
    
    * WIP: merge when given utxo positions
    
    * refactor: fix per reviews
    
    * tests: add test case where 2 input use different currencies
    
    * refactor: remove alice, bob from test context
    
    * test: fix mismatch function signature
    
    * fix: dialyzer type
    
    * test for merge with address and currency, refactor create merge so no need for currency and address passing
    
    * more happy path tests
    
    * refactor: Cleanup
    
    * fix: dialyzer
    
    * fix: credo
    
    * remove unusued alias
    
    * remove unaccepted merge constraints
    
    * remove max 4 merge constratint
    
    * match tx.create response shape
    
    * refactor: remove comments
    
    * lint: fix
    
    * tests: add tests for transaction.create apis
    
    * test: delete unnecessary function
    
    * address/currency merge controller tests
    
    * utxo position happy path
    
    * add multiple tx for utxo pos test
    
    * refactor: simplified `select_inputs` flow
    
    * start merge view test
    
    * revert merge view since controler test makes this redundant
    
    * remove default argument in get_sorted_grouped_utxos and reflect change
    
    * refactor: remove "respond"
    
    * update swagger for merge endpoint
    
    * generate auto swagger docs
    
    * move private below public funcs
    
    * change list first for match
    
    * refactor: fix follows pr review
    
    * tests: fix wrong function
    
    * lint: add alias
    
    * refactor: remove trailing comma
    
    * refactor: var name
    
    * fixes: tests, dialyzer, credo
    
    * remove single pipes
    
    * docs: two examples for transaction.merge
    
    * switch branch for cabbage test
    
    * refactor: move functions out of controller
    
    * test: add outputs to assertion
    
    * test: add tests for `transaction.create/2`
    
    * test: implement tests for include_typed_data/1
    
    * refactor: remove single pipe
    
    * tests: add tests for `select_inputs/2`
    
    * refactor: cleanup typespec
    
    * lint: formatting
    
    * lint: remove unused alias
    
    * lint: reorder the alias
    
    * refactor: move spec and simplified logic
    
    * refactor: simplify pattern matching
    
    * refactor: uniformize param
    
    * revert: bring back merge transaction
    
    * fixes
    
    * refactor: lift out respond
    
    * fix: is_required_merge doesn't work
    
    * refactor: transaction api
    
    * resolve initial conflicts
    
    * tighten specification and refactor tests
    
    * add: dialyzer specs
    
    * refactor: merge constraints
    
    * refactor: accept max. 4 utxo positions
    
    * refactor/add tests
    
    * refactor: merge_constraints limit max. positions to 4
    
    * refactor: replace Alice and Bob fixtures with setup
    
    * refactor: return keyword lists from parameter validation
    
    * update documentation
    
    * post-merge: fix failing tests
    
    * post-merge: fix failing tests
    
    * fix: dialyzer
    
    * fix (lint): remove unused aliases
    
    * post-merge: remove unintended spacing
    
    * add: fallback descriptions
    
    * remove `result` key from body schema for /merge
    
    * reinstate result key where removed.
    
    * rename tests
    
    * fix: duplicate test typo
    
    * remove empty line
    
    Co-authored-by: euro <[email protected]>
    Co-authored-by: okalouti <[email protected]>
    Co-authored-by: euro <[email protected]>
    4 people committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    33c3300 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2020

  1. add perf cli smoke test (#1762)

    * add perf cli smoke test
    
    This PR adds ci step that runs `transactions` perf test
    ayrat555 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    d60fc03 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2020

  1. feat: send web telemetry events to Datadog

    Using the telemetry_metric and telemetry_metrics_statsd reporter, we can
    send telemetry events to Datadog without defining more event handlers.
    The supervised process is configured with the same parameters as the
    Statix metrics generation.
    
    In omg.status, we collect web events from Phoenix and send them to
    Datadog as metrics.
    
    The fallback controller in WatcherRPC is also instrumented to execute
    telemetry events on errors, with route and error type recorded as tags.
    
    chore: mix format
    
    chore: fix linter warnings, shorten module paths
    Michael Captain committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    a10ef42 View commit details
    Browse the repository at this point in the history
  2. fix: move env var fetch into Configuration module

    Michael Captain committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    6a30d47 View commit details
    Browse the repository at this point in the history
  3. fix: ensure current_route doesn't throw an exception

    It's possible in SupportedWatcherModes for a conn to end up in the
    fallback controller without being routed there. This change makes it so
    that if the route can't be determined from the conn, we return nil
    instead of erroring.
    
    Fixes a failing test.
    Michael Captain committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    3a6b6c4 View commit details
    Browse the repository at this point in the history
  4. fix: allow nil release and current_version env vars

    Michael Captain committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    bbfff29 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2020

  1. Merge pull request #1766 from omgnetwork/add-datadog-error-metrics

    feat: send web telemetry events to Datadog
    Michael Captain committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    3e02d1c View commit details
    Browse the repository at this point in the history
  2. Chore: fix feefeed container healthcheck (#1768)

    * fix feefeed container healtheck
    
    Check if feefeed fetched fees instead of checking if it's up
    
    * log docker-compose logs
    ayrat555 committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    a94baf8 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2020

  1. feat: add new metadata to Datadog traces

    Add service, version and error metadata to traces in Datadog APM traces.
    
    What you see in the traces:
    * The service name (default 'web' for Phoenix applications) is the name
    of the OMG application.
    * Traces are tagged with application version number
    * For API responses which error, the trace is flagged red as an error,
    the error code is marked on the trace and the error message is found
    in the tags.
    Michael Captain committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    2ec3903 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2020

  1. refactor: move configuration helpers to new module

    Moved from Application to Configuration for WatcherRPC.
    Michael Captain committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    46036bc View commit details
    Browse the repository at this point in the history
  2. refactor: remove unused app field in Application

    Michael Captain committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    d348983 View commit details
    Browse the repository at this point in the history
  3. fix: failing tracer and response tests

    Michael Captain committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    3665ec1 View commit details
    Browse the repository at this point in the history
  4. fix: aggressive test fix (#1772)

    Ino Murko committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    d8e4431 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2020

  1. Configuration menu
    Copy the full SHA
    dcc2d3d View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2020

  1. Merge branch 'master' into add-metadata-to-dd-traces-2

    Michael Captain committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    7f57d39 View commit details
    Browse the repository at this point in the history
  2. retry datadog errors (#1774)

    * retry datadog errors
    
    * use header function to fail
    
    * add `retrying` to log messages
    ayrat555 committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    4f5756b View commit details
    Browse the repository at this point in the history
  3. fix: run tests that alter globals consecutively

    Michael Captain committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    35a2f51 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' into add-metadata-to-dd-traces-2

    Michael Captain committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    4df5f4d View commit details
    Browse the repository at this point in the history
  5. refactor: atom to string with interpolation

    Michael Captain committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    1f73eb5 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #1770 from omgnetwork/add-metadata-to-dd-traces-2

    feat: add new metadata to Datadog traces (attempt 2)
    Michael Captain committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    0a7a6e8 View commit details
    Browse the repository at this point in the history
  7. ignore known errors - Sentry spike protection (#1775)

    * ignore known errors - Sentry spike protection
    
    * run reorg tests only on master
    
    * linting specs is not needed
    Ino Murko committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    8acfb91 View commit details
    Browse the repository at this point in the history
  8. Fix readme docker docs (#1773)

    * Fix readme docker docs
    
    * change commands
    
    * enter directory
    
    * add perf docs
    
    * move command info to the top
    
    Co-authored-by: Ino Murko <[email protected]>
    ayrat555 and Ino Murko committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    97bbb49 View commit details
    Browse the repository at this point in the history
  9. config filter sentry (#1778)

    Ino Murko committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    7043d16 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2020

  1. Configuration menu
    Copy the full SHA
    71e51b1 View commit details
    Browse the repository at this point in the history
  2. extract geth command, remove childchain only code paths (#1781)

    * extract geth command
    
    * childchain code rem
    
    * update deps, lint
    
    * the great decoupling
    
    * config fix
    
    * config fix, check if Watcher Info config value
    
    * delete childchain test
    
    * config anon functions comments
    Ino Murko committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    cd6ecc4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dfca58b View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2020

  1. #1588 added a test

    DanielaIvanova committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    fe59481 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2020

  1. ignore RequestTooLarge for Sentry (#1779)

    this error is coming from PlugParser when a request is too large. we
    don't want this reporting this event to on-call
    achiurizo committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    525b80f View commit details
    Browse the repository at this point in the history
  2. set remote_ip from cf-connecting-ip header (#1679)

    * set remote_ip from X-Forwarded-For header
    
    * add custom plug that sets remote_ip
    
    * set the right most ip as remote_ip
    
    * add test
    
    * set the left most ip
    
    * use `CF-Connecting-IP` header
    
    * fix tests
    
    Co-authored-by: Arthur Chiu <[email protected]>
    Co-authored-by: Ino Murko <[email protected]>
    3 people committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    b90fdc9 View commit details
    Browse the repository at this point in the history
  3. #1588 minor adjustmen

    DanielaIvanova committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    0c562c5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8a8ba61 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e4a4aa0 View commit details
    Browse the repository at this point in the history
  6. #1588 minor fix

    DanielaIvanova committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    2ccb80d View commit details
    Browse the repository at this point in the history
  7. Merge branch 'master' into danielaivanova/ignore-invalid-header

    # Conflicts:
    #	apps/omg_status/lib/omg_status/sentry_filter.ex
    DanielaIvanova committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    7da0801 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #1783 from omgnetwork/danielaivanova/ignore-invali…

    …d-header
    
    Ignoring 406 status code invalid header exception
    DanielaIvanova committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    4c9bed9 View commit details
    Browse the repository at this point in the history
  9. fix: set service name as a tag in metrics

    Currently the service name is part of the prefix for metrics, but it
    would be far better if it were a tag, so that services could be compared
    side by side in Datadog.
    Michael Captain committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    f2e71d4 View commit details
    Browse the repository at this point in the history
  10. Merge branch 'master' into dd-metrics-service-tag

    Michael Captain committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    4f26803 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #1786 from omgnetwork/dd-metrics-service-tag

    fix: set service name as a tag in metrics
    Michael Captain committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    9571ac0 View commit details
    Browse the repository at this point in the history
  12. fix: limit matching for ethereumex responses (#1782)

    * fix: rem error response handling
    
    * fix: add sentry filter
    
    Co-authored-by: Ino Murko <[email protected]>
    souradeep-das and Ino Murko committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    822b033 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2020

  1. just the one thing to turn into a warn (#1784)

    Co-authored-by: Ino Murko <[email protected]>
    achiurizo and Ino Murko committed Nov 26, 2020
    Configuration menu
    Copy the full SHA
    d0b86c8 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2020

  1. Renamed all occurrences of omisego to omgnetwork (#1788)

    * #1555 Renamed omisego to omg network
    
    * #1555 Fixed urls
    
    * #1555 downgraded rocksdb to 1.5.1
    DanielaIvanova committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    568ea4b View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2020

  1. Configuration menu
    Copy the full SHA
    8629ad0 View commit details
    Browse the repository at this point in the history
  2. chore: changelog/version bump for v1.0.5 (#1747) (#1785)

    * chore: changelog/version bump v1.0.5
    
    * update CHANGELOG for 1.0.5-pre.0
    
    * bump to include latest changes for infura
    
    Co-authored-by: Arthur Chiu <[email protected]>
    Co-authored-by: boolafish <[email protected]>
    3 people committed Dec 1, 2020
    Configuration menu
    Copy the full SHA
    f205fd3 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2020

  1. Configuration menu
    Copy the full SHA
    73749ca View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1790 from omgnetwork/v1.0.5

    chore: make sure V1.0.5 commit is in the master history
    boolafish committed Dec 4, 2020
    Configuration menu
    Copy the full SHA
    9abc6c7 View commit details
    Browse the repository at this point in the history
  3. chore: add sem release automation (#1791)

    * chore: add sem release
    
    * chore: set release rule for our standard
    
    * chore: test dummy
    
    * fix: sem-release format
    
    * chore: use dry-run on sem release
    
    * fix: back to origin config
    boolafish committed Dec 4, 2020
    Configuration menu
    Copy the full SHA
    e88809a View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2020

  1. bump elixir (#1789)

    * bump elixir
    Ino Murko committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    09efc26 View commit details
    Browse the repository at this point in the history
  2. align rust version to 1.46 (#1793)

    * align rust version to 1.46
    Ino Murko committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    f0a8a05 View commit details
    Browse the repository at this point in the history
  3. trace reorg tests (#1796)

    Ino Murko committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    fef32f8 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2020

  1. Configuration menu
    Copy the full SHA
    f116c63 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2020

  1. chore: use git tag version instead (#1798)

    * chore: use git tag version instead
    
    * fix: for lint
    
    * style: pipe :)
    
    * refactor: put to private function for version()
    boolafish committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    eff6352 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    15ab884 View commit details
    Browse the repository at this point in the history
  3. update submodule

    ayrat555 committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    9d47dfa View commit details
    Browse the repository at this point in the history
  4. update mix file

    ayrat555 committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    199b3e2 View commit details
    Browse the repository at this point in the history
  5. fix mix files

    ayrat555 committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    f1489b5 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2020

  1. update deps

    ayrat555 committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    2615e8d View commit details
    Browse the repository at this point in the history
  2. fix eip55

    ayrat555 committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    e03c131 View commit details
    Browse the repository at this point in the history
  3. use new ex_plasma

    ayrat555 committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    222599b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    86b71b1 View commit details
    Browse the repository at this point in the history
  5. fix dialyzer

    ayrat555 committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    cf15e77 View commit details
    Browse the repository at this point in the history