Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bonfida/spl-name-service

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bonfida/spl-name-service - npm Package Compare versions

Comparing version 0.1.57 to 0.1.58

14

dist/record.d.ts

@@ -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>;

22

dist/record.js
"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

4

dist/types/record.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc