@accessprotocol/js
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -494,3 +494,3 @@ "use strict"; | ||
*/ | ||
const fullUserRewardClaim = (connection, user, feePayer, feePayerCompensation = 0, programId = state_js_1.ACCESS_PROGRAM_ID, poolOffsets = undefined) => __awaiter(void 0, void 0, void 0, function* () { | ||
const fullUserRewardClaim = (connection, user, feePayer, feePayerCompensation = 0, programId = state_js_1.ACCESS_PROGRAM_ID, poolOffsets = undefined, tokenAccountFeepayer = feePayer) => __awaiter(void 0, void 0, void 0, function* () { | ||
const filters = [ | ||
@@ -564,3 +564,3 @@ { | ||
if (!userATAInfo) { | ||
preClaimIxs.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(feePayer, userATA, user, centralState.tokenMint)); | ||
preClaimIxs.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(tokenAccountFeepayer, userATA, user, centralState.tokenMint)); | ||
if (feePayerCompensation > 0) { | ||
@@ -567,0 +567,0 @@ const from = user; |
@@ -130,3 +130,3 @@ import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js"; | ||
*/ | ||
export declare const fullUserRewardClaim: (connection: Connection, user: PublicKey, feePayer: PublicKey, feePayerCompensation?: number, programId?: PublicKey, poolOffsets?: Map<string, number> | undefined) => Promise<[TransactionInstruction[], TransactionInstruction[]]>; | ||
export declare const fullUserRewardClaim: (connection: Connection, user: PublicKey, feePayer: PublicKey, feePayerCompensation?: number, programId?: PublicKey, poolOffsets?: Map<string, number> | undefined, tokenAccountFeepayer?: PublicKey) => Promise<[TransactionInstruction[], TransactionInstruction[]]>; | ||
//# sourceMappingURL=secondary_bindings.d.ts.map |
@@ -455,3 +455,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
*/ | ||
export const fullUserRewardClaim = (connection, user, feePayer, feePayerCompensation = 0, programId = ACCESS_PROGRAM_ID, poolOffsets = undefined) => __awaiter(void 0, void 0, void 0, function* () { | ||
export const fullUserRewardClaim = (connection, user, feePayer, feePayerCompensation = 0, programId = ACCESS_PROGRAM_ID, poolOffsets = undefined, tokenAccountFeepayer = feePayer) => __awaiter(void 0, void 0, void 0, function* () { | ||
const filters = [ | ||
@@ -525,3 +525,3 @@ { | ||
if (!userATAInfo) { | ||
preClaimIxs.push(createAssociatedTokenAccountInstruction(feePayer, userATA, user, centralState.tokenMint)); | ||
preClaimIxs.push(createAssociatedTokenAccountInstruction(tokenAccountFeepayer, userATA, user, centralState.tokenMint)); | ||
if (feePayerCompensation > 0) { | ||
@@ -528,0 +528,0 @@ const from = user; |
@@ -130,3 +130,3 @@ import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js"; | ||
*/ | ||
export declare const fullUserRewardClaim: (connection: Connection, user: PublicKey, feePayer: PublicKey, feePayerCompensation?: number, programId?: PublicKey, poolOffsets?: Map<string, number> | undefined) => Promise<[TransactionInstruction[], TransactionInstruction[]]>; | ||
export declare const fullUserRewardClaim: (connection: Connection, user: PublicKey, feePayer: PublicKey, feePayerCompensation?: number, programId?: PublicKey, poolOffsets?: Map<string, number> | undefined, tokenAccountFeepayer?: PublicKey) => Promise<[TransactionInstruction[], TransactionInstruction[]]>; | ||
//# sourceMappingURL=secondary_bindings.d.ts.map |
{ | ||
"name": "@accessprotocol/js", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
451167
10329