diff --git a/README.md b/README.md index 9cbfc9ae..5db891a3 100644 --- a/README.md +++ b/README.md @@ -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/
@@ -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 diff --git a/examples/vue-app/src/utils/solana.ts b/examples/vue-app/src/utils/solana.ts index db5be01e..e884862a 100644 --- a/examples/vue-app/src/utils/solana.ts +++ b/examples/vue-app/src/utils/solana.ts @@ -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, ); diff --git a/js/src/bindings/createSubdomain.ts b/js/src/bindings/createSubdomain.ts index 3c1fb544..63a8b713 100644 --- a/js/src/bindings/createSubdomain.ts +++ b/js/src/bindings/createSubdomain.ts @@ -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 diff --git a/js/src/bindings/registerDomainName.ts b/js/src/bindings/registerDomainName.ts index 1aea2fcd..f72aa666 100644 --- a/js/src/bindings/registerDomainName.ts +++ b/js/src/bindings/registerDomainName.ts @@ -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) diff --git a/js/src/bindings/registerDomainNameV2.ts b/js/src/bindings/registerDomainNameV2.ts index 85a6b041..e87576c9 100644 --- a/js/src/bindings/registerDomainNameV2.ts +++ b/js/src/bindings/registerDomainNameV2.ts @@ -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) diff --git a/js/src/bindings/transferSubdomain.ts b/js/src/bindings/transferSubdomain.ts index 16686a9f..5854060f 100644 --- a/js/src/bindings/transferSubdomain.ts +++ b/js/src/bindings/transferSubdomain.ts @@ -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. diff --git a/js/src/deprecated/utils.ts b/js/src/deprecated/utils.ts index 255d3d68..2d13bc2e 100644 --- a/js/src/deprecated/utils.ts +++ b/js/src/deprecated/utils.ts @@ -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 */ diff --git a/js/src/devnet.ts b/js/src/devnet.ts index f1d7c7e1..a414d4d8 100644 --- a/js/src/devnet.ts +++ b/js/src/devnet.ts @@ -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) @@ -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) */ @@ -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. @@ -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) diff --git a/js/src/utils/getDomainKeySync.ts b/js/src/utils/getDomainKeySync.ts index b63524f0..ae19ebba 100644 --- a/js/src/utils/getDomainKeySync.ts +++ b/js/src/utils/getDomainKeySync.ts @@ -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 */ diff --git a/react/src/hooks/useSuggestions/index.ts b/react/src/hooks/useSuggestions/index.ts index 702fc64d..a348f9d3 100644 --- a/react/src/hooks/useSuggestions/index.ts +++ b/react/src/hooks/useSuggestions/index.ts @@ -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 diff --git a/react/src/hooks/useTopDomainsSales/index.ts b/react/src/hooks/useTopDomainsSales/index.ts index b762d4eb..d843e7c5 100644 --- a/react/src/hooks/useTopDomainsSales/index.ts +++ b/react/src/hooks/useTopDomainsSales/index.ts @@ -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; diff --git a/vue/src/composables/useDomainSuggestions/index.ts b/vue/src/composables/useDomainSuggestions/index.ts index 36bb435e..6d834a45 100644 --- a/vue/src/composables/useDomainSuggestions/index.ts +++ b/vue/src/composables/useDomainSuggestions/index.ts @@ -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 diff --git a/vue/src/composables/useTopDomainsSales/index.ts b/vue/src/composables/useTopDomainsSales/index.ts index 560e84de..b5274e62 100644 --- a/vue/src/composables/useTopDomainsSales/index.ts +++ b/vue/src/composables/useTopDomainsSales/index.ts @@ -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;