Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ The SDK proxy is a Cloudflare worker that proxies the JS SDK via REST calls. It'

NOTE: All endpoints capable of performing RPC calls currently support an optional `rpc` query parameter for specifying a custom RPC URL. In the future, this parameter will become mandatory, and the Cloudflare worker will exclusively proxy calls to a specified custom RPC URL.

The SDK proxy is deployed at: https://sns-sdk-proxy.bonfida.workers.dev/
The SDK proxy is deployed at: https://sdk-proxy.sns.id/

<br />
<a name="cli"></a>
Expand Down Expand Up @@ -253,7 +253,7 @@ $ sns resolve bonfida
4. With the Cloudflare worker

```bash
GET https://sns-sdk-proxy.bonfida.workers.dev/resolve/bonfida
GET https://sdk-proxy.sns.id/resolve/bonfida
```

```json
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-app/src/utils/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const useSolanaConnection = () => solanaUtils.connection;

export const initSolanaConnection = () => {
const connection = new Connection(
'https://helius-proxy.bonfida.com',
'https://helius-proxy.sns.id',
commitment,
);

Expand Down
2 changes: 1 addition & 1 deletion js/src/bindings/createSubdomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { createReverseName } from "./createReverseName";
/**
* This function can be used to create a subdomain
* @param connection The Solana RPC connection object
* @param subdomain The subdomain to create with or without .sol e.g something.bonfida.sol or something.bonfida
* @param subdomain The subdomain to create with or without .sol e.g something.sns.sol or something.sns
* @param owner The owner of the parent domain creating the subdomain
* @param space The space to allocate to the subdomain (defaults to 2kb)
* @param feePayer Optional: Specifies a fee payer different from the parent owner
Expand Down
2 changes: 1 addition & 1 deletion js/src/bindings/registerDomainName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { InvalidDomainError, PythFeedNotFoundError } from "../error";
* @deprecated This function is deprecated and will be removed in future releases. Use `registerDomainNameV2` instead.
* This function can be used to register a .sol domain
* @param connection The Solana RPC connection object
* @param name The domain name to register e.g bonfida if you want to register bonfida.sol
* @param name The domain name to register e.g sns if you want to register sns.sol
* @param space The domain name account size (max 10kB)
* @param buyer The public key of the buyer
* @param buyerTokenAccount The buyer token account (USDC)
Expand Down
2 changes: 1 addition & 1 deletion js/src/bindings/registerDomainNameV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { InvalidDomainError, PythFeedNotFoundError } from "../error";
/**
* This function can be used to register a .sol domain
* @param connection The Solana RPC connection object
* @param name The domain name to register e.g bonfida if you want to register bonfida.sol
* @param name The domain name to register e.g sns if you want to register sns.sol
* @param space The domain name account size (max 10kB)
* @param buyer The public key of the buyer
* @param buyerTokenAccount The buyer token account (USDC)
Expand Down
2 changes: 1 addition & 1 deletion js/src/bindings/transferSubdomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { InvalidSubdomainError } from "../error";
* This function is used to transfer the ownership of a subdomain in the Solana Name Service.
*
* @param {Connection} connection - The Solana RPC connection object.
* @param {string} subdomain - The subdomain to transfer. It can be with or without .sol suffix (e.g., 'something.bonfida.sol' or 'something.bonfida').
* @param {string} subdomain - The subdomain to transfer. It can be with or without .sol suffix (e.g., 'something.sns.sol' or 'something.sns').
* @param {PublicKey} newOwner - The public key of the new owner of the subdomain.
* @param {boolean} [isParentOwnerSigner=false] - A flag indicating whether the parent name owner is signing this transfer.
* @param {PublicKey} [owner] - The public key of the current owner of the subdomain. This is an optional parameter. If not provided, the owner will be resolved automatically. This can be helpful to build transactions when the subdomain does not exist yet.
Expand Down
2 changes: 1 addition & 1 deletion js/src/deprecated/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const _derive = async (
/**
* This function can be used to compute the public key of a domain or subdomain
* @deprecated Use {@link getDomainKeySync} instead
* @param domain The domain to compute the public key for (e.g `bonfida.sol`, `dex.bonfida.sol`)
* @param domain The domain to compute the public key for (e.g `sns.sol`, `sub.sns.sol`)
* @param record Optional parameter: If the domain being resolved is a record
* @returns
*/
Expand Down
8 changes: 4 additions & 4 deletions js/src/devnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ async function deleteNameRegistry(
* @deprecated This function is deprecated and will be removed in future releases. Use `registerDomainNameV2` instead.
* This function can be used to register a .sol domain
* @param connection The Solana RPC connection object
* @param name The domain name to register e.g bonfida if you want to register bonfida.sol
* @param name The domain name to register e.g sns if you want to register sns.sol
* @param space The domain name account size (max 10kB)
* @param buyer The public key of the buyer
* @param buyerTokenAccount The buyer token account (USDC)
Expand Down Expand Up @@ -591,7 +591,7 @@ const createReverseName = async (
/**
* This function can be used to create a subdomain
* @param connection The Solana RPC connection object
* @param subdomain The subdomain to create with or without .sol e.g something.bonfida.sol or something.bonfida
* @param subdomain The subdomain to create with or without .sol e.g something.sns.sol or something.sns
* @param owner The owner of the parent domain creating the subdomain
* @param space The space to allocate to the subdomain (defaults to 2kb)
*/
Expand Down Expand Up @@ -673,7 +673,7 @@ const burnDomain = (domain: string, owner: PublicKey, target: PublicKey) => {
* This function is used to transfer the ownership of a subdomain in the Solana Name Service.
*
* @param {Connection} connection - The Solana RPC connection object.
* @param {string} subdomain - The subdomain to transfer. It can be with or without .sol suffix (e.g., 'something.bonfida.sol' or 'something.bonfida').
* @param {string} subdomain - The subdomain to transfer. It can be with or without .sol suffix (e.g., 'something.sns.sol' or 'something.sns').
* @param {PublicKey} newOwner - The public key of the new owner of the subdomain.
* @param {boolean} [isParentOwnerSigner=false] - A flag indicating whether the parent name owner is signing this transfer.
* @param {PublicKey} [owner] - The public key of the current owner of the subdomain. This is an optional parameter. If not provided, the owner will be resolved automatically. This can be helpful to build transactions when the subdomain does not exist yet.
Expand Down Expand Up @@ -723,7 +723,7 @@ const transferSubdomain = async (
/**
* This function can be used to register a .sol domain
* @param connection The Solana RPC connection object
* @param name The domain name to register e.g bonfida if you want to register bonfida.sol
* @param name The domain name to register e.g sns if you want to register sns.sol
* @param space The domain name account size (max 10kB)
* @param buyer The public key of the buyer
* @param buyerTokenAccount The buyer token account (USDC)
Expand Down
2 changes: 1 addition & 1 deletion js/src/utils/getDomainKeySync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const _deriveSync = (

/**
* This function can be used to compute the public key of a domain or subdomain
* @param domain The domain to compute the public key for (e.g `bonfida.sol`, `dex.bonfida.sol`)
* @param domain The domain to compute the public key for (e.g `sns.sol`, `sub.sns.sol`)
* @param record Optional parameter: If the domain being resolved is a record
* @returns
*/
Expand Down
2 changes: 1 addition & 1 deletion react/src/hooks/useSuggestions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { generateRandomDomain } from "../../utils";
import { getDomainsResult, type Result } from "../useSearch";
import type { Connection } from "@solana/web3.js";

const URL = "https://sns-api.bonfida.com/v2/suggestion/search";
const URL = "https://api.sns.id/v2/suggestion/search";

/**
* Asynchronously tries to provide suggestions for provided domain. If nothing
Expand Down
2 changes: 1 addition & 1 deletion react/src/hooks/useTopDomainsSales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useRef } from "react";
import { Options } from "../../types";
import { useQuery } from "@tanstack/react-query";

const URL = "https://sns-api.bonfida.com/sales/top";
const URL = "https://api.sns.id/sales/top";

type Result = {
domain: string;
Expand Down
2 changes: 1 addition & 1 deletion vue/src/composables/useDomainSuggestions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Connection } from "@solana/web3.js";
import { useLoadingFactory, generateRandomDomain } from "@/utils";
import { type Result, getDomainsResult } from "../useSearch";

const URL = "https://sns-api.bonfida.com/v2/suggestion/search";
const URL = "https://api.sns.id/v2/suggestion/search";

/**
* Asynchronously tries to provide suggestions for provided domain. If nothing
Expand Down
2 changes: 1 addition & 1 deletion vue/src/composables/useTopDomainsSales/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MaybeRef, unref } from "vue";
import { useLoadingFactory } from "@/utils";

const URL = "https://sns-api.bonfida.com/sales/top";
const URL = "https://api.sns.id/sales/top";

interface SearchResponseEntity {
domain_name: string;
Expand Down
Loading