@accessprotocol/js
Advanced tools
Comparing version 2.0.0-alpha.31 to 2.0.0-alpha.32
@@ -197,3 +197,3 @@ "use strict"; | ||
*/ | ||
const getActiveRoyaltyPayers = (connection, recipient, programId) => __awaiter(void 0, void 0, void 0, function* () { | ||
const getActiveRoyaltyPayers = (connection, recipient, currentTimestamp, programId) => __awaiter(void 0, void 0, void 0, function* () { | ||
let tokenMint = state_js_1.ACCESS_MINT; | ||
@@ -222,3 +222,4 @@ if (programId !== state_js_1.ACCESS_PROGRAM_ID) { | ||
filters, | ||
})).map(e => state_js_1.RoyaltyAccount.deserialize(e.account.data)); | ||
})).map(e => state_js_1.RoyaltyAccount.deserialize(e.account.data)) | ||
.filter(e => e.expirationDate.toNumber() > currentTimestamp); | ||
}); | ||
@@ -225,0 +226,0 @@ exports.getActiveRoyaltyPayers = getActiveRoyaltyPayers; |
@@ -57,3 +57,3 @@ import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js"; | ||
*/ | ||
export declare const getActiveRoyaltyPayers: (connection: Connection, recipient: PublicKey, programId: PublicKey) => Promise<RoyaltyAccount[]>; | ||
export declare const getActiveRoyaltyPayers: (connection: Connection, recipient: PublicKey, currentTimestamp: number, programId: PublicKey) => Promise<RoyaltyAccount[]>; | ||
/** | ||
@@ -60,0 +60,0 @@ * This function can be used to retrieve all the inactive bonds |
@@ -165,3 +165,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
*/ | ||
export const getActiveRoyaltyPayers = (connection, recipient, programId) => __awaiter(void 0, void 0, void 0, function* () { | ||
export const getActiveRoyaltyPayers = (connection, recipient, currentTimestamp, programId) => __awaiter(void 0, void 0, void 0, function* () { | ||
let tokenMint = ACCESS_MINT; | ||
@@ -190,3 +190,4 @@ if (programId !== ACCESS_PROGRAM_ID) { | ||
filters, | ||
})).map(e => RoyaltyAccount.deserialize(e.account.data)); | ||
})).map(e => RoyaltyAccount.deserialize(e.account.data)) | ||
.filter(e => e.expirationDate.toNumber() > currentTimestamp); | ||
}); | ||
@@ -193,0 +194,0 @@ /** |
@@ -57,3 +57,3 @@ import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js"; | ||
*/ | ||
export declare const getActiveRoyaltyPayers: (connection: Connection, recipient: PublicKey, programId: PublicKey) => Promise<RoyaltyAccount[]>; | ||
export declare const getActiveRoyaltyPayers: (connection: Connection, recipient: PublicKey, currentTimestamp: number, programId: PublicKey) => Promise<RoyaltyAccount[]>; | ||
/** | ||
@@ -60,0 +60,0 @@ * This function can be used to retrieve all the inactive bonds |
{ | ||
"name": "@accessprotocol/js", | ||
"version": "2.0.0-alpha.31", | ||
"version": "2.0.0-alpha.32", | ||
"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
451230
10317