remove node identity dependecy on provider#104
Merged
AlexandruPislariu merged 1 commit intodevelopmentfrom Aug 30, 2021
Merged
Conversation
tanghel
approved these changes
Aug 30, 2021
tanghel
added a commit
that referenced
this pull request
Oct 5, 2021
* Refactor getting providers (#96) * refactor getting providers * remove logs * search for transaction with same nonce (#99) * Esdt nft logs (#97) * solved wrong validation for node owner * transaction operations implementation * reused base64ToHex function in binary.utils.ts * Redis interactions (#100) * caching interactions logic * add cache controller in private app module * use jwt guards for caching interactions * revert crons usage * delete cache key from api instances within pubsub * use redis async keys function * use remote cache in interactions * NOT_FOUND status instead of BAD_REQUEST * remove node identity dependecy on provider (#104) * Provider and Node integration tests (#102) * import extensions in app module * typos in providers service * test providers filters and sort * test structure improvement * loop only if keybases are received * test node service * check node identity against provider identity first * import jest extensions when initialize tests * remove providers dependecy from nodes * Test mandatory fields for entities (#105) * import extensions in app module * typos in providers service * test providers filters and sort * test structure improvement * loop only if keybases are received * test node service * check node identity against provider identity first * import jest extensions when initialize tests * remove providers dependecy from nodes * expect all nodes to have bls * all nodes should have bls and type * test mandatory fields of accounts * test mandatory fields of providers * test mandatory fields of transactions * block service naming refactor * test blocks service * Identities service testing and refactor (#106) * import extensions in app module * typos in providers service * test providers filters and sort * test structure improvement * loop only if keybases are received * test node service * check node identity against provider identity first * import jest extensions when initialize tests * remove providers dependecy from nodes * expect all nodes to have bls * all nodes should have bls and type * test mandatory fields of accounts * test mandatory fields of providers * test mandatory fields of transactions * block service naming refactor * test blocks service * refactor identities service * test identities service * handle identities interactions with keybase * define entities for identities service * test identities service * Nft thumbnails (#107) * config update * elastic query refactoring, token filter by identifier & name, nft filter by identifiers, uris improvements * fixed token filter integration test * adjusted filter query to also use the getQuery function * when fetching keybase identity profiles, skip cache * export more granularized metrics for elastic (#110) * Token transfers (#113) * token transfers * removed transaction detailed token entity and also added filter by tokens in ES * Added Transaction Scam Check logic (#116) * Added Transaction Scam Check logic * Fixes * Fixes * Code review fixes * Code review fixes * Additional logic fixes * Fixes * Fixes * Fixes * Fixed transaction scam report url composition (#117) * Fixed transaction scam report url composition * fix after review * fix after review2 * Extend integration testing area (#119) * import extensions in app module * typos in providers service * test providers filters and sort * test structure improvement * loop only if keybases are received * test node service * check node identity against provider identity first * import jest extensions when initialize tests * remove providers dependecy from nodes * expect all nodes to have bls * all nodes should have bls and type * test mandatory fields of accounts * test mandatory fields of providers * test mandatory fields of transactions * block service naming refactor * test blocks service * refactor identities service * test identities service * handle identities interactions with keybase * define entities for identities service * test identities service * test rounds service * test shards service * stake service naming improvments * test stake service * compute ttls for vm queries * all shards should have activeValidators property * fixed sender address in operations (#120) * Use keybase mocking methods (#121) * import extensions in app module * typos in providers service * test providers filters and sort * test structure improvement * loop only if keybases are received * test node service * check node identity against provider identity first * import jest extensions when initialize tests * remove providers dependecy from nodes * expect all nodes to have bls * all nodes should have bls and type * test mandatory fields of accounts * test mandatory fields of providers * test mandatory fields of transactions * block service naming refactor * test blocks service * refactor identities service * test identities service * handle identities interactions with keybase * define entities for identities service * test identities service * test rounds service * test shards service * stake service naming improvments * test stake service * compute ttls for vm queries * all shards should have activeValidators property * packages for jest mocking * confirmKeybase public so it can be mocked * use mocks in tests initializer * mock flags in config * define mocked e2e test script * take in consideration to use mock keybases * use mocked tests for development branch * initialize api config service * use github action conditionals * github action syntax * use github steps for conditionals * use bash shell * get nodes raw steps refactoring (#123) * refactoring nodes raw informations * nodes owner blses informations moved in bls service * remove node service dependecy on bls service * Mock nodes heartbeat & queue stats (#124) * refactoring nodes raw informations * nodes owner blses informations moved in bls service * remove node service dependecy on bls service * file util to parse JSON file * add mocks path in config * add JSON mocks for heartbeat and queue * add JSON mocks for heartbeat and queue * use mock nodes in tests initializer * use less heartbeat stats for nodes mocks * Add denomination float (#101) * Add denominationFloat from a string input * Add denominationFloat from a string input * mend * Rename networkConfig to network.config * Nft thumbnail and extended attributes services & Token utils (#127) * define token utils * define nft thumbnail service * move getExpires to round utils * move canBool to token utils * move getStakeForAddress to stake service * replace uri api util * define nft extended attributes service * remove unused logger * compute nft uri token util * Code coverage (#128) * configure jest to collect code coverage * use code coverage in github action * force exit after code coverage is collected * different coverage for unit and integration tests * lint * compute nft uri in single nft endpoint (#129) * get NFT name from the correct souce of info, take into account that an nft could not be found in elastic (#130) * possibility to show owner on nfts/sfts list (#122) * nfts with owner details logic * nft filter initialize * get all nft owners at once * integrate owner in NFT list item Co-authored-by: Traian Anghel <tanghel@live.com> * Detect OS for build, start and e2e (#132) * Enable OS detection for build and start * Add copy-custom-config for OS detection * OS Detection * possibility to filter by multiple token identifiers (#138) * moved @types dependencies out of "dependencies" tag and moved to "devDependencies" (#144) * fetch nft balances if withOwners is set to true (#145) * remove trailing dot for media url when returned for external usage (#146) * temporary fix for identity avatar * fixed build * extract type from gateway for an nft (#148) * show all providers even if they don't have any nodes (#149) * Identities fix (#150) * show website,twitter and location for identity * for instead of forEach * set node identity based on provider * remove node identity check * remove sync with keybase confirmations check * unused variables * reverted transactionProcessor and cacheWarmer settings Co-authored-by: Traian Anghel <tanghel@live.com> * Mex performance improvements (#142) * improve performance of account tokens & nfts endpoint * get esdts cached * extract nft name from gateway nft details * use remote & local cache functions, not just local, when fetching assets * pending requests metric * support for querying account tokens by multiple identifiers, as well as nfts by multiple collections * flag to activate request caching / keep alive agent * use tracing flag * removed dd-trace from packages * agent use keep alive * keepalive for upstream * tabs to spaces for getNfts function * support for filtering transactions by multiple hashes * verify transaction result in elastic (#151) * Checks for providers identities dependecy (#152) * check properties for known providers * check that all providers identities appear in identities list * if provider have identity then should be found in identities list * remove check on mocked tests * Transactions possibility to search by hash (#153) * array extension to find missing elements from first array in second array * extend filter by hash for pending transactions * test transactions hashes filter * refactor transaction hashes filter * define transaction price service (#154) * define transaction get and ESDT token transfer services (#155) * define get transaction from outside service * define ESDT token transfer service * add transaction get and token transfer services * Hide providers with 0 stake (#157) * hide providers with 0 stake * refresh providers every minute * Extend provider testing area (#156) * define get transaction from outside service * define ESDT token transfer service * check that all providers have nodes * test node identity set * filter providers that have nodes * optimize provider testing * prevent mock testing issues Co-authored-by: Traian Anghel <tanghel@live.com> * fixed sft query where there are no accounts available (#158) * Account tokens filters (#160) * define get transaction from outside service * define ESDT token transfer service * add filter for account tokens * update withOwner parameter description * Multi cache delete (#161) * properly notify deletion. delete using wildcard technique * fixed dependency issues * Fix Nodes Filter Issues (#159) * take nft name from gateway only if it is'n set (#162) * take nft name from gateway only if it is'n set * individual test by name & type Co-authored-by: Traian Anghel <tanghel@live.com> * Node issues condition (#163) * inversed node issues condition * corrected issues filter logic * inversed logic again * simplified condition * nft function rename (#166) * Make sure that the node versions correctly sum to 100 (#167) * possibility to show SFT supply (#169) * possibility to show SFT supply * function to get token supply from gateway * better separation of concerns Co-authored-by: Traian Anghel <tanghel@live.com> * unified thumbnails (#170) * Tokens service refactor (#171) * define nft controller * define nft service * add nft service in public app module * define ESDT service * fix imports * tests for nft service * nft filter function * get nfts/sfts distribution function * sfts supply * undo configs * return correct owner for NFT (#172) Co-authored-by: Alexandru Pislariu <57287326+AlexandruPislariu@users.noreply.github.com> Co-authored-by: Vlad Bucur <83655219+vladbucur1@users.noreply.github.com> Co-authored-by: Mihai Daniel Eremia <jobs@dani.ro> Co-authored-by: constantintovisi <constantin.tovisi@elrond.com> Co-authored-by: Cristian Fodor <cristii.fodor@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.