-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SERVICES1086 rebuild marketplace data/state endpoint, service and functions (part 1) * SERVICES-1085 extract confusing logic in a separete function; renaming; remove comment * SERVICES-1085 code splitting, renamings & improvements * SERVICES-1085 rename param * SERVICES-1085 add marketplace reindex process event logic * SERVICES-1085 fix batch slice function; code improvements for get event category function * SERVICES-1085 remove console log * SERVICES-1085 extract total bought tokens in a separate function * SERVICES-1085 split reindex marketplace data code * SERVICES-1085 use handlers and summary classes for rebuilding marketplace state * SERVICES-1085 fix marketplace elastic query time range filter * SERVICES-1085 create MarketplaceReindexState class with common methods and remove common handlers * SERVICES-1085 add handlers for XOXNO specfic events * set default paymentNonce if not already set * SERVICES-1085 ignore not used marketplace events for better performance\ * undo default paymentNonce * SERVICES-1085 marketplace events summaries * SERVICES-1085 update marketplace event summaries and add DeadRare updatePrice topics * SERVICES-1085 marketplace events summary service * SERVICES-1085 fix marketplace reindex summaries and handle krogan acceptOffer * SERVICES-1085 marketplace reindex state handlers * SERVICES-1085 remove confusing method * SERVICES-1085 remove confusing method * SERVICES-1085 extract create new order from event summary logic into a separate method * SERVICES-1085 improve createOrder from summary function * SERVICES-1085 renamings * SERVICES-1085 renamings * SERVICES-1085 update marketplace reindex state service * SERVICES-1085 process event even if no payment token found * SERVICES-1085 xoxno user deposit * SERVICES-1085 fix elrondnftswap offerId type * SERVICES-1085 reindex marketplace state before & after time range * SERVICES-1085 reindex marketplace state logs & fixes * SERVICES-1085 renaming * SERVICES-1085 fix duplicate bid for internal marketplace * SERVICES-1085 try-catch and better logging * SERVICES-1085 fix xoxno no startTime * SERVICES-1085 fix xoxno no startTime * SERVICES-1085 fix endAuction with no winning order * SERVICES-1085 fix case when undefined beforeTimestamp * SERVICES-1085 save auction tags * SERVICES-1085 admin endpoints fire and forget * SERVICES-1085 fix internal auction timestamp topic * SERVICES-1085 marketplace reindex events locker & logs * SERVICES-1085 handle multiple internal marketplaces with same address case * fix admin resolver catch * SERVICES-1085 exclude collection filtering when unique marketplace address * SERVICES-1085 fix case when timestamp not spported by DB * Add plugins module * Update scam cronjob * Update scam service * Add none scam info * Update workflow * Update cronjob time * Remode delete by pattern where not needed * Fix scam report * Remove unused code * trigger cache invalidation * Change delete to update * Remove delete by pattern for asset history * Remove delete by pattern from cache invalidation * Clear to none nft scam info * Update scam update cache invalidation * Add null check * Add collections with no volum * Fix trending order by * Fix trending return * Fix order trending * Move blacklist filter before order * Update filter collection * Remove clear by pattern in auctions * Add Scam Collection setting * Add cache invalidation * Remove scam info from api * clean up code * Upgrade testing packages * Remove data api calls * Update mapping * Refactor Token model * Add historical price retrieve * Add elrond tools back * Add create nft with multiple files * Extract duplicated code * Fix typo * Decrease caching time * Decrease caching time * Add ici handling * Update key * Update key * Fix Scam Mapping * Fix bug for event processing * Add tickets type on collections * Add page consts and remove extra pagination * Remove extra line * Add isTicket field on asset * Update redis handler for is ticket * Add debuging logging * Fix tickets assets return * Remove logging * Update length check * Update collection length checking * Fix undefined error * Allow nullable for role address --------- Co-authored-by: johnykes <[email protected]> Co-authored-by: johnykes <[email protected]>
- Loading branch information
1 parent
1a1d9a1
commit b9e9309
Showing
127 changed files
with
4,506 additions
and
1,448 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -400,3 +400,4 @@ build.yaml | |
|
||
# PEM file(s) | ||
*.pem | ||
/src/plugins |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
import { Asset } from 'src/modules/assets/models/Asset.dto'; | ||
|
||
@Injectable() | ||
export class PluginService { | ||
async computeScamInfo(_nft: Asset[]): Promise<void> {} | ||
} |
This file contains 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
This file contains 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
19 changes: 19 additions & 0 deletions
19
src/common/services/mx-communication/models/account.info.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ScamInfo } from 'src/modules/assets/models/ScamInfo.dto'; | ||
|
||
export class AccountInfo { | ||
address: string = ''; | ||
nonce: number = 0; | ||
balance: string = ''; | ||
username: string = ''; | ||
code: string = ''; | ||
codeHash: string | undefined; | ||
rootHash: string = ''; | ||
codeMetadata: string = ''; | ||
developerReward: string = ''; | ||
ownerAddress: string = ''; | ||
scamInfo: ScamInfo | undefined = undefined; | ||
|
||
constructor(init?: Partial<AccountInfo>) { | ||
Object.assign(this, init); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/common/services/mx-communication/models/api-token.model.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export class ApiToken { | ||
identifier: string; | ||
ticker: string; | ||
name: string; | ||
price: string; | ||
decimals: number; | ||
|
||
constructor(init?: Partial<ApiToken>) { | ||
Object.assign(this, init); | ||
} | ||
} | ||
|
||
export class DexToken { | ||
id: string; | ||
symbol: string; | ||
name: string; | ||
price: string; | ||
decimals: number; | ||
|
||
constructor(init?: Partial<DexToken>) { | ||
Object.assign(this, init); | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.