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

Replace AENS methods with Name class #1917

Merged
merged 1 commit into from
May 31, 2024
Merged

Conversation

davidyuk
Copy link
Member

@davidyuk davidyuk commented Dec 1, 2023

This PR is supported by the Æternity Crypto Foundation

@davidyuk davidyuk added this to the v14.0.0 milestone Dec 1, 2023
@davidyuk davidyuk force-pushed the feature/refactor-name branch from 2014b3d to 34747d1 Compare December 7, 2023 05:21
@davidyuk davidyuk force-pushed the feature/refactor-name branch 2 times, most recently from b688848 to 0b3d961 Compare December 7, 2023 13:58
@davidyuk davidyuk changed the title Refactor AENS methods Replace AENS methods with Name class Dec 7, 2023
@davidyuk davidyuk force-pushed the feature/refactor-name branch from 0b3d961 to ad876f2 Compare December 7, 2023 14:02
@davidyuk davidyuk marked this pull request as ready for review December 7, 2023 14:19
@davidyuk davidyuk force-pushed the feature/refactor-name branch 11 times, most recently from e2495bc to 837261d Compare May 31, 2024 09:32
Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 86.27451% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 80.47%. Comparing base (2ecf0f4) to head (956daac).

Files Patch % Lines
src/aens.ts 85.71% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1917      +/-   ##
===========================================
- Coverage    80.54%   80.47%   -0.07%     
===========================================
  Files          109      109              
  Lines         3655     3668      +13     
  Branches       782      786       +4     
===========================================
+ Hits          2944     2952       +8     
- Misses         384      388       +4     
- Partials       327      328       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidyuk davidyuk force-pushed the feature/refactor-name branch from 837261d to 07c4a8b Compare May 31, 2024 09:49
BREAKING CHANGE: aens* methods removed
Use Name class instead.
```diff
-await aeSdk.aensPreclaim('example.chain')
+const name = new Name('example.chain', aeSdk.getContext())
+await name.preclaim()
```
Accordingly for other methods:
```
aensRevoke => Name:revoke
aensUpdate => Name:update
aensTransfer => Name:transfer
aensQuery => Name:getState
aensClaim => Name:claim
aensBid => Name:bid
```
@davidyuk davidyuk force-pushed the feature/refactor-name branch from 07c4a8b to 956daac Compare May 31, 2024 11:05
@davidyuk davidyuk merged commit addc696 into develop May 31, 2024
5 checks passed
@davidyuk davidyuk deleted the feature/refactor-name branch May 31, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant