Releases: Bonfida/sns-sdk
@bonfida/[email protected]
New Features
This release introduces a stale
flag in the return object of getFavoriteDomain
to handle cases where the favourited domain has been transferred by the user
@bonfida/[email protected]
New Features
This release introduces a stale
flag in the return object of useFavoriteDomain
to handle cases where the favourited domain has been transferred by the user
@bonfida/[email protected]
New feature
This release added useRecordsV2
hook to simplify the process of fetching and optionally deserializing multiple records V2 for a specified domain name.
Parameters:
- connection: Solana RPC connection object.
- domain: The domain name.
- records: List of records to fetch.
- deserialize: Optional flag to deserialize record content.
Return: List of records' content.
@bonfida/[email protected]
New Features
This release introduces two utility functions for interacting with records V2: getRecordV2
and getMultipleRecordsV2
getRecordV2
: This function is designed to retrieve a specified record V2 for a given domain name. The record content can optionally be deserialised according to SNS-IP 1getMultipleRecordsV2
: This function is designed to retrieve multiple records V2 for a given domain name. The records' content can optionally be deserialised according to SNS-IP 1
@bonfida/[email protected]
In this release, we fixed several bugs related to records V2 of subdomains. Specifically, we addressed issues with the derivation of public keys for subdomain records, as well as problems with creating, updating, deleting, validating, and writing ROA records for Record V2.
The functions that were fixed are the following:
getDomainKeySync
createRecordV2Instruction
updateRecordV2Instruction
deleteRecordV2
validateRecordV2Content
writRoaRecordV2
ethValidateRecordV2Content
@bonfida/[email protected]
This release introduces a new function, getDomainPriceFromName
, designed to calculate the registration price of a domain in USD, determined by the domain's length
@bonfida/[email protected]
Overview:
This release introduces significant enhancements with the introduction of Records V2, related to SNS IP 2 and SNS IP 3, while maintaining backward compatibility with Records V1.
Key Features:
Records V2 Integration:
New Functions & Constants:
getRecordV2Key
: Computes the public key of a Record V2.RecordVersion
: Enum for record versions (RecordVersion.V2
orRecordVersion.V1
).createRecordV2Instruction
: Creates a new Record V2.updateRecordV2Instruction
: Updates the content of a Record V2.deleteRecordV2
: Deletes a Record V2 and reclaims the rent.validateRecordV2Content
: Validates staleness or right of association of a Record V2.writRoaRecordV2
: Writes a right of association for a Record V2.ethValidateRecordV2Content
: Validates an ETH signature for a Record V2.verifyStaleness
: Verifies the staleness of a Record V2.verifyRightOfAssociation
: Verifies the right of association of a Record V2.UTF8_ENCODED
: Set of UTF8 encoded records.SELF_SIGNED
: Set of self-signed records.deserializeRecordV2Content
: Deserializes the content of a Record V2 following SNS IP 1.serializeRecordV2Content
: Serializes the content of a Record V2 following SNS IP 1.
Breaking Changes:
getDomainKeySync
: The record argument type has changed fromboolean
toRecordVersion
to specify the record type.resolve
: Prioritizes SOL Record V2, with fallback to SOL Record V1 if V2 is unavailable.
Additional Changes:
Transition from Yarn to npm in this version for improved package management.
Compatibility:
Records V1 are still supported and can coexist with the new Record V2.
@bonfida/[email protected]
New Hooks
We have introduced three new hooks to enhance your experience:
useSearch
: This hook enables searching for domains and subdomains. You can use it to look up specific domains and subdomains and see if they have been registered.useDomainSuggestions
: With this hook, you can load suggestions for the provided domain. It assists in finding related domains that are not registered.useTopDomainsSales
: This hook displays the top domain sales for the specified period. It provides insight into the most popular domains and their pricing trends.
Other Improvements
- Dependency upgrade: We updated our dependencies to more recent releases.
- Node version upgrade: We upgraded our Node version to the latest stable release.
- Package manager switch: We changed our package manager from Yarn to npm.
- Prettier configuration update: We moved to
@bonfida/prettier-config
instead of the default Prettier configuration.
@bonfida/[email protected]
New Hooks
We have introduced three new hooks to enhance your experience:
useSearch
: This hook enables searching for domains and subdomains. You can use it to look up specific domains and subdomains and see if they have been registered.useDomainSuggestions
: With this hook, you can load suggestions for the provided domain. It assists in finding related domains that are not registered.useTopDomainsSales
: This hook displays the top domain sales for the specified period. It provides insight into the most popular domains and their pricing trends.
Other Improvements
- Dependency upgrade: We updated our dependencies to more recent releases.
- Node version upgrade: We upgraded our Node version to the latest stable release.
- Package manager switch: We changed our package manager from Yarn to npm.
- Prettier configuration update: We moved to
@bonfida/prettier-config
instead of the default Prettier configuration.