Skip to content

Releases: Bonfida/sns-sdk

@bonfida/spl-name-service@2.0.3

06 Dec 09:06
d02dbb8
Compare
Choose a tag to compare

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/spl-name-service@2.0.1

05 Dec 14:32
Compare
Choose a tag to compare

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/spl-name-service@2.0.0

05 Dec 01:49
df4ed28
Compare
Choose a tag to compare

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 or RecordVersion.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 from boolean to RecordVersion 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/sns-vue@1.1.0

01 Dec 11:30
Compare
Choose a tag to compare

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/sns-react@2.0.2

30 Nov 02:15
Compare
Choose a tag to compare

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.