New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tiplink/api

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiplink/api - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

8

dist/index.d.ts
import { Keypair } from '@solana/web3.js';
export declare class Tiplink {
export declare class TipLink {
url: URL;
keypair: Keypair;
private constructor();
static create(): Promise<Tiplink>;
static fromUrl(url: URL): Promise<Tiplink>;
static fromLink(link: string): Promise<Tiplink>;
static create(): Promise<TipLink>;
static fromUrl(url: URL): Promise<TipLink>;
static fromLink(link: string): Promise<TipLink>;
}

@@ -12,3 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Tiplink = void 0;
exports.TipLink = void 0;
const web3_js_1 = require("@solana/web3.js");

@@ -44,3 +44,3 @@ const sodium_plus_1 = require("sodium-plus");

});
class Tiplink {
class TipLink {
constructor(url, keypair) {

@@ -58,3 +58,3 @@ this.url = url;

link.hash = (0, bs58_1.encode)(b);
const tiplink = new Tiplink(link, keypair);
const tiplink = new TipLink(link, keypair);
return tiplink;

@@ -68,3 +68,3 @@ });

const keypair = yield pwToKeypair(pw);
const tiplink = new Tiplink(url, keypair);
const tiplink = new TipLink(url, keypair);
return tiplink;

@@ -80,2 +80,2 @@ });

}
exports.Tiplink = Tiplink;
exports.TipLink = TipLink;
{
"name": "@tiplink/api",
"version": "0.1.0",
"version": "0.1.1",
"description": "Api for creating and sending TipLinks",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -6,3 +6,3 @@ # TipLink API

# What is Tiplink?
# What is TipLink?

@@ -21,7 +21,7 @@ TipLink is a lightweight wallet designed to make transferring digital assets as easy as sending a link. Our non-custodial wallet allows you to have complete control of your assets by connecting your Gmail account or Solana wallet.

```js
import { Tiplink } from '@tiplink/api';
import { TipLink } from '@tiplink/api';
```
Create a tiplink
Create a TipLink
```js
Tiplink.create().then(tiplink => {
TipLink.create().then(tiplink => {
console.log("link: ", tiplink.url.toString());

@@ -34,3 +34,3 @@ console.log("publicKey: ", tiplink.keypair.publicKey.toBase58());

const tp = 'https://tiplink.io/i#TIPLINK_HASH';
Tiplink.fromLink(tp).then(tiplink => {
TipLink.fromLink(tp).then(tiplink => {
console.log("converted publicKey: ", tiplink.keypair.publicKey.toBase58());

@@ -37,0 +37,0 @@ return tiplink;

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