@bonfida/spl-name-service
Advanced tools
Comparing version 0.1.57 to 0.1.58
@@ -131,1 +131,15 @@ import { Record } from "./types/record"; | ||
export declare const getPointRecord: (connection: Connection, domain: string) => Promise<NameRegistryState>; | ||
/** | ||
* This function can be used to retrieve the BSC record of a domain name | ||
* @param connection The Solana RPC connection object | ||
* @param domain The .sol domain name | ||
* @returns | ||
*/ | ||
export declare const getBscRecord: (connection: Connection, domain: string) => Promise<NameRegistryState>; | ||
/** | ||
* This function can be used to retrieve the Injective record of a domain name | ||
* @param connection The Solana RPC connection object | ||
* @param domain The .sol domain name | ||
* @returns | ||
*/ | ||
export declare const getInjectiveRecord: (connection: Connection, domain: string) => Promise<NameRegistryState>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getPointRecord = exports.getSolRecord = exports.getShdwRecord = exports.getPicRecord = exports.getTelegramRecord = exports.getTwitterRecord = exports.getRedditRecord = exports.getGithubRecord = exports.getDiscordRecord = exports.getUrlRecord = exports.getEmailRecord = exports.getDogeRecord = exports.getLtcRecord = exports.getBtcRecord = exports.getEthRecord = exports.getArweaveRecord = exports.getIpfsRecord = exports.getRecord = void 0; | ||
exports.getInjectiveRecord = exports.getBscRecord = exports.getPointRecord = exports.getSolRecord = exports.getShdwRecord = exports.getPicRecord = exports.getTelegramRecord = exports.getTwitterRecord = exports.getRedditRecord = exports.getGithubRecord = exports.getDiscordRecord = exports.getUrlRecord = exports.getEmailRecord = exports.getDogeRecord = exports.getLtcRecord = exports.getBtcRecord = exports.getEthRecord = exports.getArweaveRecord = exports.getIpfsRecord = exports.getRecord = void 0; | ||
const record_1 = require("./types/record"); | ||
@@ -195,2 +195,22 @@ const utils_1 = require("./utils"); | ||
exports.getPointRecord = getPointRecord; | ||
/** | ||
* This function can be used to retrieve the BSC record of a domain name | ||
* @param connection The Solana RPC connection object | ||
* @param domain The .sol domain name | ||
* @returns | ||
*/ | ||
const getBscRecord = async (connection, domain) => { | ||
return await (0, exports.getRecord)(connection, domain, record_1.Record.BSC); | ||
}; | ||
exports.getBscRecord = getBscRecord; | ||
/** | ||
* This function can be used to retrieve the Injective record of a domain name | ||
* @param connection The Solana RPC connection object | ||
* @param domain The .sol domain name | ||
* @returns | ||
*/ | ||
const getInjectiveRecord = async (connection, domain) => { | ||
return await (0, exports.getRecord)(connection, domain, record_1.Record.Injective); | ||
}; | ||
exports.getInjectiveRecord = getInjectiveRecord; | ||
//# sourceMappingURL=record.js.map |
@@ -21,3 +21,5 @@ /** | ||
SHDW = "SHDW", | ||
POINT = "POINT" | ||
POINT = "POINT", | ||
BSC = "BSC", | ||
Injective = "Injective" | ||
} |
@@ -26,3 +26,5 @@ "use strict"; | ||
Record["POINT"] = "POINT"; | ||
Record["BSC"] = "BSC"; | ||
Record["Injective"] = "Injective"; | ||
})(Record = exports.Record || (exports.Record = {})); | ||
//# sourceMappingURL=record.js.map |
{ | ||
"name": "@bonfida/spl-name-service", | ||
"version": "0.1.57", | ||
"version": "0.1.58", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -223,1 +223,24 @@ import { Record } from "./types/record"; | ||
}; | ||
/** | ||
* This function can be used to retrieve the BSC record of a domain name | ||
* @param connection The Solana RPC connection object | ||
* @param domain The .sol domain name | ||
* @returns | ||
*/ | ||
export const getBscRecord = async (connection: Connection, domain: string) => { | ||
return await getRecord(connection, domain, Record.BSC); | ||
}; | ||
/** | ||
* This function can be used to retrieve the Injective record of a domain name | ||
* @param connection The Solana RPC connection object | ||
* @param domain The .sol domain name | ||
* @returns | ||
*/ | ||
export const getInjectiveRecord = async ( | ||
connection: Connection, | ||
domain: string | ||
) => { | ||
return await getRecord(connection, domain, Record.Injective); | ||
}; |
@@ -22,2 +22,4 @@ /** | ||
POINT = "POINT", | ||
BSC = "BSC", | ||
Injective = "Injective", | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
194718
4443