@bonfida/spl-name-service 2.4.2 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,6 +51,7 @@ export declare function transferNameOwnership(connection: Connection, name: stri
51
51
  */
52
52
  export declare function deleteNameRegistry(connection: Connection, name: string, refundTargetKey: PublicKey, nameClass?: PublicKey, nameParent?: PublicKey): Promise<TransactionInstruction>;
53
53
  /**
54
+ * @deprecated This function is deprecated and will be removed in future releases. Use `registerDomainNameV2` instead.
54
55
  * This function can be used to register a .sol domain
55
56
  * @param connection The Solana RPC connection object
56
57
  * @param name The domain name to register e.g bonfida if you want to register bonfida.sol
@@ -62,6 +63,18 @@ export declare function deleteNameRegistry(connection: Connection, name: string,
62
63
  * @returns
63
64
  */
64
65
  export declare const registerDomainName: (connection: Connection, name: string, space: number, buyer: PublicKey, buyerTokenAccount: PublicKey, mint?: PublicKey, referrerKey?: PublicKey) => Promise<TransactionInstruction[][]>;
66
+ /**
67
+ * This function can be used to register a .sol domain
68
+ * @param connection The Solana RPC connection object
69
+ * @param name The domain name to register e.g bonfida if you want to register bonfida.sol
70
+ * @param space The domain name account size (max 10kB)
71
+ * @param buyer The public key of the buyer
72
+ * @param buyerTokenAccount The buyer token account (USDC)
73
+ * @param mint Optional mint used to purchase the domain, defaults to USDC
74
+ * @param referrerKey Optional referrer key
75
+ * @returns
76
+ */
77
+ export declare const registerDomainNameV2: (connection: Connection, name: string, space: number, buyer: PublicKey, buyerTokenAccount: PublicKey, mint?: PublicKey, referrerKey?: PublicKey) => Promise<TransactionInstruction[]>;
65
78
  /**
66
79
  *
67
80
  * @param nameAccount The name account to create the reverse account for
@@ -53,3 +53,5 @@ export declare const VAULT_OWNER: PublicKey;
53
53
  export declare const CUSTOM_BG_TLD: PublicKey;
54
54
  export declare const WOLVES_COLLECTION_METADATA: PublicKey;
55
55
  export declare const METAPLEX_ID: PublicKey;
56
+ export declare const DEFAULT_PYTH_PUSH_PROGRAM: PublicKey;
57
+ export declare const PYTH_PULL_FEEDS: Map<string, number[]>;
package/dist/devnet.d.ts CHANGED
@@ -111,6 +111,7 @@ export declare const devnet: {
111
111
  createSubdomain: (connection: Connection, subdomain: string, owner: PublicKey, space?: number) => Promise<TransactionInstruction[][]>;
112
112
  burnDomain: (domain: string, owner: PublicKey, target: PublicKey) => TransactionInstruction;
113
113
  transferSubdomain: (connection: Connection, subdomain: string, newOwner: PublicKey, isParentOwnerSigner?: boolean, owner?: PublicKey) => Promise<TransactionInstruction>;
114
+ registerDomainNameV2: (connection: Connection, name: string, space: number, buyer: PublicKey, buyerTokenAccount: PublicKey, mint?: PublicKey, referrerKey?: PublicKey) => Promise<TransactionInstruction[]>;
114
115
  };
115
116
  };
116
117
  export {};