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

@accessprotocol/js

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accessprotocol/js - npm Package Compare versions

Comparing version 2.0.0-alpha.34 to 2.0.0-alpha.35

5

dist/cjs/secondary_bindings.js

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

* @param amount The amount to unlock in ACS
* @param currentTimestamp The current Solana timestamp
* @param programId The program ID

@@ -453,3 +454,3 @@ * @param centralState The central state, if already known (otherwise retrieved from the blockchain)

*/
const fullUnlock = (connection, user, pool, amount, programId = state_js_1.ACCESS_PROGRAM_ID, centralState, poolData, stakeAccount) => __awaiter(void 0, void 0, void 0, function* () {
const fullUnlock = (connection, user, pool, amount, currentTimestamp, programId = state_js_1.ACCESS_PROGRAM_ID, centralState, poolData, stakeAccount) => __awaiter(void 0, void 0, void 0, function* () {
const [centralStateKey] = state_js_1.CentralStateV2.getKey(programId);

@@ -470,3 +471,3 @@ if (!centralState) {

86400 * (poolData.currentDayIdx + 1) <
Date.now() / 1000) {
currentTimestamp) {
ixs.push((0, bindings_js_1.crank)(pool, programId));

@@ -473,0 +474,0 @@ hasCranked = true;

3

dist/cjs/types/secondary_bindings.d.ts

@@ -114,2 +114,3 @@ import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js";

* @param amount The amount to unlock in ACS
* @param currentTimestamp The current Solana timestamp
* @param programId The program ID

@@ -120,3 +121,3 @@ * @param centralState The central state, if already known (otherwise retrieved from the blockchain)

*/
export declare const fullUnlock: (connection: Connection, user: PublicKey, pool: PublicKey, amount: number, programId?: PublicKey, centralState?: CentralStateV2, poolData?: StakePool, stakeAccount?: StakeAccount) => Promise<TransactionInstruction[]>;
export declare const fullUnlock: (connection: Connection, user: PublicKey, pool: PublicKey, amount: number, currentTimestamp: number, programId?: PublicKey, centralState?: CentralStateV2, poolData?: StakePool, stakeAccount?: StakeAccount) => Promise<TransactionInstruction[]>;
/** This function can be used to get all instructions needed for a successful claim

@@ -123,0 +124,0 @@ * The instructions are returned in two arrays, first one is a set of instructions that need to be called before the second one

@@ -409,2 +409,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

* @param amount The amount to unlock in ACS
* @param currentTimestamp The current Solana timestamp
* @param programId The program ID

@@ -415,3 +416,3 @@ * @param centralState The central state, if already known (otherwise retrieved from the blockchain)

*/
export const fullUnlock = (connection, user, pool, amount, programId = ACCESS_PROGRAM_ID, centralState, poolData, stakeAccount) => __awaiter(void 0, void 0, void 0, function* () {
export const fullUnlock = (connection, user, pool, amount, currentTimestamp, programId = ACCESS_PROGRAM_ID, centralState, poolData, stakeAccount) => __awaiter(void 0, void 0, void 0, function* () {
const [centralStateKey] = CentralStateV2.getKey(programId);

@@ -432,3 +433,3 @@ if (!centralState) {

86400 * (poolData.currentDayIdx + 1) <
Date.now() / 1000) {
currentTimestamp) {
ixs.push(crank(pool, programId));

@@ -435,0 +436,0 @@ hasCranked = true;

@@ -114,2 +114,3 @@ import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js";

* @param amount The amount to unlock in ACS
* @param currentTimestamp The current Solana timestamp
* @param programId The program ID

@@ -120,3 +121,3 @@ * @param centralState The central state, if already known (otherwise retrieved from the blockchain)

*/
export declare const fullUnlock: (connection: Connection, user: PublicKey, pool: PublicKey, amount: number, programId?: PublicKey, centralState?: CentralStateV2, poolData?: StakePool, stakeAccount?: StakeAccount) => Promise<TransactionInstruction[]>;
export declare const fullUnlock: (connection: Connection, user: PublicKey, pool: PublicKey, amount: number, currentTimestamp: number, programId?: PublicKey, centralState?: CentralStateV2, poolData?: StakePool, stakeAccount?: StakeAccount) => Promise<TransactionInstruction[]>;
/** This function can be used to get all instructions needed for a successful claim

@@ -123,0 +124,0 @@ * The instructions are returned in two arrays, first one is a set of instructions that need to be called before the second one

{
"name": "@accessprotocol/js",
"version": "2.0.0-alpha.34",
"version": "2.0.0-alpha.35",
"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

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