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

@quarryprotocol/quarry-sdk

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quarryprotocol/quarry-sdk - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

4

dist/cjs/idls/quarry_mint_wrapper.d.ts
export declare type QuarryMintWrapperIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_mint_wrapper";

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

export declare type AnchorQuarryMintWrapper = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_mint_wrapper";

@@ -612,0 +612,0 @@ instructions: [

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

exports.AnchorQuarryMintWrapperIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_mint_wrapper",

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

exports.QuarryMintWrapperJSON = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_mint_wrapper",

@@ -617,0 +617,0 @@ instructions: [

export declare type QuarryOperatorIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_operator";

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

export declare type AnchorQuarryOperator = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_operator";

@@ -503,0 +503,0 @@ instructions: [

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

exports.AnchorQuarryOperatorIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_operator",

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

exports.QuarryOperatorJSON = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_operator",

@@ -508,0 +508,0 @@ instructions: [

export declare type QuarryRedeemerIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_redeemer";

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

export declare type AnchorQuarryRedeemer = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_redeemer";

@@ -220,0 +220,0 @@ instructions: [

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

exports.AnchorQuarryRedeemerIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_redeemer",

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

exports.QuarryRedeemerJSON = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_redeemer",

@@ -225,0 +225,0 @@ instructions: [

export declare type QuarryRegistryIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_registry";

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

export declare type AnchorQuarryRegistry = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_registry";

@@ -101,0 +101,0 @@ instructions: [

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

exports.AnchorQuarryRegistryIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_registry",

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

exports.QuarryRegistryJSON = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_registry",

@@ -106,0 +106,0 @@ instructions: [

@@ -81,3 +81,2 @@ "use strict";

const miner = this.minerKey;
const randomMut = web3_js_1.Keypair.generate().publicKey;
return {

@@ -90,4 +89,4 @@ authority,

// dummies for backwards compatibility
unusedMinerVault: randomMut,
unusedTokenAccount: randomMut,
unusedMinerVault: token_utils_1.TOKEN_PROGRAM_ID,
unusedTokenAccount: token_utils_1.TOKEN_PROGRAM_ID,
};

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

@@ -39,5 +39,15 @@ import type { AugmentedProvider, Provider } from "@saberhq/solana-contrib";

* Creates a new quarry. Only the rewarder can call this.
* @deprecated Use {@link createQuarry}.
* @param param0
* @returns
*/
createQuarryV1({ token, authority, }: {
token: Token;
authority?: PublicKey;
}): Promise<PendingQuarry>;
/**
* Creates a new quarry. Only the rewarder can call this.
* @param param0
* @returns
*/
createQuarry({ token, authority, }: {

@@ -44,0 +54,0 @@ token: Token;

@@ -62,5 +62,34 @@ "use strict";

* Creates a new quarry. Only the rewarder can call this.
* @deprecated Use {@link createQuarry}.
* @param param0
* @returns
*/
createQuarryV1({ token, authority = this.provider.wallet.publicKey, }) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const [quarryKey, bump] = yield (0, pda_1.findQuarryAddress)(this.rewarderKey, token.mintAccount, this.program.programId);
const ix = this.program.instruction.createQuarry(bump, {
accounts: {
quarry: quarryKey,
auth: {
authority,
rewarder: this.rewarderKey,
},
tokenMint: token.mintAccount,
payer: this.provider.wallet.publicKey,
systemProgram: web3_js_1.SystemProgram.programId,
unusedAccount: web3_js_1.SystemProgram.programId,
},
});
return {
rewarder: this.rewarderKey,
quarry: quarryKey,
tx: this.sdk.newTx([ix]),
};
});
}
/**
* Creates a new quarry. Only the rewarder can call this.
* @param param0
* @returns
*/
createQuarry({ token, authority = this.provider.wallet.publicKey, }) {

@@ -67,0 +96,0 @@ return tslib_1.__awaiter(this, void 0, void 0, function* () {

export declare type QuarryMintWrapperIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_mint_wrapper";

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

export declare type AnchorQuarryMintWrapper = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_mint_wrapper";

@@ -612,0 +612,0 @@ instructions: [

import { generateErrorMap } from "@saberhq/anchor-contrib";
export const AnchorQuarryMintWrapperIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_mint_wrapper",

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

export const QuarryMintWrapperJSON = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_mint_wrapper",

@@ -613,0 +613,0 @@ instructions: [

export declare type QuarryOperatorIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_operator";

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

export declare type AnchorQuarryOperator = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_operator";

@@ -503,0 +503,0 @@ instructions: [

import { generateErrorMap } from "@saberhq/anchor-contrib";
export const AnchorQuarryOperatorIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_operator",

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

export const QuarryOperatorJSON = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_operator",

@@ -504,0 +504,0 @@ instructions: [

export declare type QuarryRedeemerIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_redeemer";

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

export declare type AnchorQuarryRedeemer = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_redeemer";

@@ -220,0 +220,0 @@ instructions: [

import { generateErrorMap } from "@saberhq/anchor-contrib";
export const AnchorQuarryRedeemerIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_redeemer",

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

export const QuarryRedeemerJSON = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_redeemer",

@@ -221,0 +221,0 @@ instructions: [

export declare type QuarryRegistryIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_registry";

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

export declare type AnchorQuarryRegistry = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_registry";

@@ -101,0 +101,0 @@ instructions: [

import { generateErrorMap } from "@saberhq/anchor-contrib";
export const AnchorQuarryRegistryIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_registry",

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

export const QuarryRegistryJSON = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_registry",

@@ -102,0 +102,0 @@ instructions: [

import { __awaiter } from "tslib";
import { TransactionEnvelope } from "@saberhq/solana-contrib";
import { getOrCreateATA, TOKEN_PROGRAM_ID } from "@saberhq/token-utils";
import { Keypair, SystemProgram } from "@solana/web3.js";
import { SystemProgram } from "@solana/web3.js";
import { findMinterAddress } from "../mintWrapper/pda";

@@ -78,3 +78,2 @@ export class MinerWrapper {

const miner = this.minerKey;
const randomMut = Keypair.generate().publicKey;
return {

@@ -87,4 +86,4 @@ authority,

// dummies for backwards compatibility
unusedMinerVault: randomMut,
unusedTokenAccount: randomMut,
unusedMinerVault: TOKEN_PROGRAM_ID,
unusedTokenAccount: TOKEN_PROGRAM_ID,
};

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

@@ -39,5 +39,15 @@ import type { AugmentedProvider, Provider } from "@saberhq/solana-contrib";

* Creates a new quarry. Only the rewarder can call this.
* @deprecated Use {@link createQuarry}.
* @param param0
* @returns
*/
createQuarryV1({ token, authority, }: {
token: Token;
authority?: PublicKey;
}): Promise<PendingQuarry>;
/**
* Creates a new quarry. Only the rewarder can call this.
* @param param0
* @returns
*/
createQuarry({ token, authority, }: {

@@ -44,0 +54,0 @@ token: Token;

@@ -59,5 +59,34 @@ import { __awaiter } from "tslib";

* Creates a new quarry. Only the rewarder can call this.
* @deprecated Use {@link createQuarry}.
* @param param0
* @returns
*/
createQuarryV1({ token, authority = this.provider.wallet.publicKey, }) {
return __awaiter(this, void 0, void 0, function* () {
const [quarryKey, bump] = yield findQuarryAddress(this.rewarderKey, token.mintAccount, this.program.programId);
const ix = this.program.instruction.createQuarry(bump, {
accounts: {
quarry: quarryKey,
auth: {
authority,
rewarder: this.rewarderKey,
},
tokenMint: token.mintAccount,
payer: this.provider.wallet.publicKey,
systemProgram: SystemProgram.programId,
unusedAccount: SystemProgram.programId,
},
});
return {
rewarder: this.rewarderKey,
quarry: quarryKey,
tx: this.sdk.newTx([ix]),
};
});
}
/**
* Creates a new quarry. Only the rewarder can call this.
* @param param0
* @returns
*/
createQuarry({ token, authority = this.provider.wallet.publicKey, }) {

@@ -64,0 +93,0 @@ return __awaiter(this, void 0, void 0, function* () {

{
"name": "@quarryprotocol/quarry-sdk",
"version": "5.0.0",
"version": "5.0.1",
"description": "Quarry Protocol SDK",

@@ -5,0 +5,0 @@ "keywords": [

import { generateErrorMap } from "@saberhq/anchor-contrib";
export type QuarryMintWrapperIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_mint_wrapper";

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

export type AnchorQuarryMintWrapper = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_mint_wrapper";

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

export const AnchorQuarryMintWrapperIDL: AnchorQuarryMintWrapper = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_mint_wrapper",

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

export const QuarryMintWrapperJSON: QuarryMintWrapperIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_mint_wrapper",

@@ -1831,0 +1831,0 @@ instructions: [

import { generateErrorMap } from "@saberhq/anchor-contrib";
export type QuarryOperatorIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_operator";

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

export type AnchorQuarryOperator = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_operator";

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

export const AnchorQuarryOperatorIDL: AnchorQuarryOperator = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_operator",

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

export const QuarryOperatorJSON: QuarryOperatorIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_operator",

@@ -1504,0 +1504,0 @@ instructions: [

import { generateErrorMap } from "@saberhq/anchor-contrib";
export type QuarryRedeemerIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_redeemer";

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

export type AnchorQuarryRedeemer = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_redeemer";

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

export const AnchorQuarryRedeemerIDL: AnchorQuarryRedeemer = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_redeemer",

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

export const QuarryRedeemerJSON: QuarryRedeemerIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_redeemer",

@@ -655,0 +655,0 @@ instructions: [

import { generateErrorMap } from "@saberhq/anchor-contrib";
export type QuarryRegistryIDL = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_registry";

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

export type AnchorQuarryRegistry = {
version: "5.0.0";
version: "5.0.1";
name: "quarry_registry";

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

export const AnchorQuarryRegistryIDL: AnchorQuarryRegistry = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_registry",

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

export const QuarryRegistryJSON: QuarryRegistryIDL = {
version: "5.0.0",
version: "5.0.1",
name: "quarry_registry",

@@ -298,0 +298,0 @@ instructions: [

@@ -6,3 +6,3 @@ import type { Provider } from "@saberhq/solana-contrib";

import type { PublicKey, TransactionInstruction } from "@solana/web3.js";
import { Keypair, SystemProgram } from "@solana/web3.js";
import { SystemProgram } from "@solana/web3.js";

@@ -105,3 +105,2 @@ import type { MineProgram, MinerData } from "../../programs/mine";

const miner = this.minerKey;
const randomMut = Keypair.generate().publicKey;
return {

@@ -115,4 +114,4 @@ authority,

// dummies for backwards compatibility
unusedMinerVault: randomMut,
unusedTokenAccount: randomMut,
unusedMinerVault: TOKEN_PROGRAM_ID,
unusedTokenAccount: TOKEN_PROGRAM_ID,
};

@@ -119,0 +118,0 @@ }

@@ -81,5 +81,44 @@ import type { AugmentedProvider, Provider } from "@saberhq/solana-contrib";

* Creates a new quarry. Only the rewarder can call this.
* @deprecated Use {@link createQuarry}.
* @param param0
* @returns
*/
async createQuarryV1({
token,
authority = this.provider.wallet.publicKey,
}: {
token: Token;
authority?: PublicKey;
}): Promise<PendingQuarry> {
const [quarryKey, bump] = await findQuarryAddress(
this.rewarderKey,
token.mintAccount,
this.program.programId
);
const ix = this.program.instruction.createQuarry(bump, {
accounts: {
quarry: quarryKey,
auth: {
authority,
rewarder: this.rewarderKey,
},
tokenMint: token.mintAccount,
payer: this.provider.wallet.publicKey,
systemProgram: SystemProgram.programId,
unusedAccount: SystemProgram.programId,
},
});
return {
rewarder: this.rewarderKey,
quarry: quarryKey,
tx: this.sdk.newTx([ix]),
};
}
/**
* Creates a new quarry. Only the rewarder can call this.
* @param param0
* @returns
*/
async createQuarry({

@@ -86,0 +125,0 @@ token,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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