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

@saberhq/merkle-distributor

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saberhq/merkle-distributor - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

6

dist/cjs/idls/merkle_distributor.d.ts
export declare type MerkleDistributorIDL = {
version: "0.2.5";
version: "0.2.6";
name: "merkle_distributor";

@@ -25,3 +25,3 @@ instructions: [

name: "payer";
isMut: false;
isMut: true;
isSigner: true;

@@ -86,3 +86,3 @@ },

name: "payer";
isMut: false;
isMut: true;
isSigner: true;

@@ -89,0 +89,0 @@ },

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

exports.MerkleDistributorJSON = {
version: "0.2.5",
version: "0.2.6",
name: "merkle_distributor",

@@ -30,3 +30,3 @@ instructions: [

name: "payer",
isMut: false,
isMut: true,
isSigner: true,

@@ -91,3 +91,3 @@ },

name: "payer",
isMut: false,
isMut: true,
isSigner: true,

@@ -94,0 +94,0 @@ },

/// <reference types="node" />
import { u64 } from "@solana/spl-token";
import { u64 } from "@saberhq/token-utils";
export interface MerkleDistributorInfo {

@@ -4,0 +4,0 @@ merkleRoot: Buffer;

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

const tslib_1 = require("tslib");
const spl_token_1 = require("@solana/spl-token");
const token_utils_1 = require("@saberhq/token-utils");
const web3_js_1 = require("@solana/web3.js");

@@ -16,4 +16,4 @@ const bn_js_1 = (0, tslib_1.__importDefault)(require("bn.js"));

}
const parsedNum = new spl_token_1.u64(earnings);
if (parsedNum.lte(new spl_token_1.u64(0))) {
const parsedNum = new token_utils_1.u64(earnings);
if (parsedNum.lte(new token_utils_1.u64(0))) {
throw new Error(`Invalid amount for account: ${account.toString()}`);

@@ -20,0 +20,0 @@ }

export declare type MerkleDistributorIDL = {
version: "0.2.5";
version: "0.2.6";
name: "merkle_distributor";

@@ -25,3 +25,3 @@ instructions: [

name: "payer";
isMut: false;
isMut: true;
isSigner: true;

@@ -86,3 +86,3 @@ },

name: "payer";
isMut: false;
isMut: true;
isSigner: true;

@@ -89,0 +89,0 @@ },

import { generateErrorMap } from "@saberhq/anchor-contrib";
export const MerkleDistributorJSON = {
version: "0.2.5",
version: "0.2.6",
name: "merkle_distributor",

@@ -26,3 +26,3 @@ instructions: [

name: "payer",
isMut: false,
isMut: true,
isSigner: true,

@@ -87,3 +87,3 @@ },

name: "payer",
isMut: false,
isMut: true,
isSigner: true,

@@ -90,0 +90,0 @@ },

/// <reference types="node" />
import { u64 } from "@solana/spl-token";
import { u64 } from "@saberhq/token-utils";
export interface MerkleDistributorInfo {

@@ -4,0 +4,0 @@ merkleRoot: Buffer;

@@ -1,2 +0,2 @@

import { u64 } from "@solana/spl-token";
import { u64 } from "@saberhq/token-utils";
import { PublicKey } from "@solana/web3.js";

@@ -3,0 +3,0 @@ import BN from "bn.js";

{
"name": "@saberhq/merkle-distributor",
"version": "0.2.5",
"version": "0.2.6",
"description": "TypeScript SDK for a Solana program for distributing tokens according to a Merkle root.",

@@ -10,3 +10,4 @@ "main": "dist/cjs/index.js",

"blockchain",
"airdrop"
"airdrop",
"saber"
],

@@ -28,29 +29,27 @@ "bugs": {

"devDependencies": {
"@project-serum/anchor": "^0.19.1-beta.1",
"@project-serum/anchor": "^0.20.1",
"@rushstack/eslint-patch": "^1.1.0",
"@saberhq/anchor-contrib": "^1.12.9",
"@saberhq/chai-solana": "^1.12.9",
"@saberhq/eslint-config": "^1.12.9",
"@saberhq/solana-contrib": "^1.12.9",
"@saberhq/token-utils": "^1.12.9",
"@saberhq/tsconfig": "^1.12.9",
"@solana/spl-token": "^0.1.8",
"@solana/web3.js": "^1.31.0",
"@saberhq/anchor-contrib": "^1.12.36",
"@saberhq/chai-solana": "^1.12.36",
"@saberhq/eslint-config": "^1.12.36",
"@saberhq/solana-contrib": "^1.12.36",
"@saberhq/token-utils": "^1.12.36",
"@saberhq/tsconfig": "^1.12.36",
"@solana/web3.js": "^1.32.0",
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.3.0",
"@types/jest": "^27.4.0",
"@types/mocha": "^9.0.0",
"@types/node": "^17.0.5",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.13",
"bn.js": "^5.2.0",
"chai": "^4.3.4",
"eslint": "^8.6.0",
"chai": "^4.3.6",
"eslint": "^8.7.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-import": "^2.25.4",
"husky": "^7.0.4",
"jsbi": "^4.1.0",
"lint-staged": "^12.1.4",
"mocha": "^9.1.3",
"lint-staged": "^12.3.2",
"mocha": "^9.2.0",
"prettier": "^2.5.1",
"ts-node": "^10.4.0",
"typescript": "^4.5.4"
"typescript": "^4.5.5"
},

@@ -77,6 +76,6 @@ "lint-staged": {

"peerDependencies": {
"@project-serum/anchor": "^0.19",
"@saberhq/anchor-contrib": "^1.10",
"@saberhq/solana-contrib": "^1.10",
"@saberhq/token-utils": "^1.10",
"@project-serum/anchor": "^0.19 || ^0.20",
"@saberhq/anchor-contrib": "^1.12",
"@saberhq/solana-contrib": "^1.12",
"@saberhq/token-utils": "^1.12",
"@solana/web3.js": "^1.29.2",

@@ -86,2 +85,5 @@ "bn.js": "^5.2.0",

},
"resolutions": {
"chai": "^4.3.6"
},
"packageManager": "yarn@3.1.1",

@@ -88,0 +90,0 @@ "files": [

import { generateErrorMap } from "@saberhq/anchor-contrib";
export type MerkleDistributorIDL = {
version: "0.2.5";
version: "0.2.6";
name: "merkle_distributor";

@@ -27,3 +27,3 @@ instructions: [

name: "payer";
isMut: false;
isMut: true;
isSigner: true;

@@ -88,3 +88,3 @@ },

name: "payer";
isMut: false;
isMut: true;
isSigner: true;

@@ -251,3 +251,3 @@ },

export const MerkleDistributorJSON: MerkleDistributorIDL = {
version: "0.2.5",
version: "0.2.6",
name: "merkle_distributor",

@@ -275,3 +275,3 @@ instructions: [

name: "payer",
isMut: false,
isMut: true,
isSigner: true,

@@ -336,3 +336,3 @@ },

name: "payer",
isMut: false,
isMut: true,
isSigner: true,

@@ -339,0 +339,0 @@ },

@@ -1,2 +0,2 @@

import { u64 } from "@solana/spl-token";
import { u64 } from "@saberhq/token-utils";
import { PublicKey } from "@solana/web3.js";

@@ -3,0 +3,0 @@ import BN from "bn.js";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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