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

refactor: support getDataBatch of 5.0.0 ERC725 release #294

Merged
merged 11 commits into from
Jul 14, 2023

Conversation

YamenMerhi
Copy link
Contributor

What kind of change does this PR introduce (bug fix, feature, docs update, ...)?

Support getDataBatch of 5.0.0 ERC725 release
- Update ERC725Y interfaceId
- Update function selector for getDataBatch
- Reference the new version of ERC725Y as ERC725Y_BATCH until we remove old version and rename to normal ERC725Y

Other information:

This is not a cleanup PR, it is intended to make erc725.js able to support the new version of ERC725. A lot of cleanup can happen in later PR, for avoiding duplicated code, changing to the new testsnet, remove support for older version, etc ..

@magalimorin18
Copy link
Contributor

lgtm

Copy link
Collaborator

@CJ42 CJ42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Added few questions in comment that can be discussed after

src/constants/constants.ts Show resolved Hide resolved
src/index.test.ts Outdated Show resolved Hide resolved
src/index.test.ts Outdated Show resolved Hide resolved
src/constants/constants.ts Outdated Show resolved Hide resolved
src/constants/constants.ts Show resolved Hide resolved
// https://github.com/ERC725Alliance/ERC725/blob/v5.1.0/docs/ERC-725.md#erc725y
sig: '0xdedff9c6',
gas: numberToHex(2000000),
gasPrice: numberToHex(100000000),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we will need to make it dynamic at some point no? cc @CallumGrindle @magalimorin18

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats this being used for? The lib doesn't send any transactions does it?

src/index.test.ts Outdated Show resolved Hide resolved
src/provider/providerWrapper.ts Outdated Show resolved Hide resolved
src/index.test.ts Outdated Show resolved Hide resolved
src/provider/providerWrapper.ts Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2023

Codecov Report

Merging #294 (2fd0a8c) into develop (122efa9) will increase coverage by 0.71%.
The diff coverage is 91.61%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@             Coverage Diff             @@
##           develop     #294      +/-   ##
===========================================
+ Coverage    83.04%   83.76%   +0.71%     
===========================================
  Files           18       18              
  Lines          979     1084     +105     
  Branches       218      241      +23     
===========================================
+ Hits           813      908      +95     
- Misses          91       96       +5     
- Partials        75       80       +5     
Impacted Files Coverage Δ
src/index.ts 76.76% <ø> (-0.24%) ⬇️
src/lib/provider-wrapper-utils.ts 88.88% <ø> (-0.59%) ⬇️
src/lib/utils.ts 82.91% <72.72%> (-0.99%) ⬇️
src/lib/decodeData.ts 82.24% <86.20%> (+1.34%) ⬆️
src/provider/providerWrapper.ts 81.25% <90.00%> (-1.65%) ⬇️
src/lib/encoder.ts 82.70% <94.36%> (+4.79%) ⬆️
src/constants/constants.ts 100.00% <100.00%> (ø)
src/lib/decodeMappingKey.ts 88.88% <100.00%> (-0.86%) ⬇️
src/lib/detector.ts 96.00% <100.00%> (+8.50%) ⬆️
src/types/Method.ts 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes

@Hugoo Hugoo merged commit 1ee2700 into ERC725Alliance:develop Jul 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants