Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade protocol 2.4.0 + royalties management (#674)
* chore: upgrade protocol version * repair subgraph * update typechain on ethers-sdk * adapt to createOffer new ABI * fix lint * fix subgraph unit tests * fix some e2e:test * fix some e2e tests * fix collection e2e test * add e2e:test for createPremintedOfferWithCondition() * chore: add missing tests for changed method * ensure default values for createOffer new arguments * PR review remarks * remove royaltyPercentage parameter from createNewCollection() * feat: add royaltyRecipients management at seller level * fix linter * fix core-sdk test + implement removeRoyaltyRecipients() * upgrade to latest protocol version after fiwing AccountHandlerABI (bosonprotocol/boson-protocol-contracts#916) * upgrade graph-ts dep version * create subgraph tests for group handlers * clear previous offers from condition when a group is updated * clean RoyaltyRecipients for seller when removed on-chain * fix e2e test issue * release constraints on derivedFrom array attributes (seller.royaltyRecipients and conditionEntity.offers) * try fixing subgraph tests * fix subgraph unit test * change CI workflow OS version * chore: upgrade to @graphprotocol latest versions * some fixes * regenerate GraphQL types and adapt to enum changes * fix e2e test * disable e2e concurrency (to check) * ensure waitForGraphNodeIndexing() can't block forever * fix subgraph failure on UnknownItemMetadataEntity * restore previous test config, as it takes too long otherwise * fix random issue on royalties test * add unit tests for eth-connect-sdk * fix lint * add some missing subgraph tests * add unit tests for ethers-sdk package * add some unit tests for subgraph exchange events handler * fix lint * handle GroupUpdated event in the subgraph * try fixing e2e test * last minute changes * manage royalty recipients when creating an offer * fix build issue * fix subgraph test * handle OfferRoyaltyInfoUpdatedEvent in subgraph * implement coreSDK updateOfferRoyaltyRecipients() updateOfferRoyaltyRecipientsBatch() * upgrade to the latest protocol commit * fix subgraph test * force e2e test to rerun without cache (for complete coverage report) * add missing metadataUri in SellerStruct * set default RoyaltyInfo for an Offer as empty list, instead of Treasury/0 * rebuild npm package-lock.json * clean code
- Loading branch information