@accessprotocol/js
Advanced tools
Comparing version 2.0.0-alpha.8 to 2.0.0-alpha.9
@@ -39,3 +39,3 @@ "use strict"; | ||
const BN = __importStar(require("bn.js")); | ||
const bindings_1 = require("./bindings"); | ||
const bindings_js_1 = require("./bindings.js"); | ||
const spl_token_1 = require("@solana/spl-token"); | ||
@@ -336,3 +336,3 @@ /** | ||
Date.now() / 1000) { | ||
ixs.push((0, bindings_1.crank)(pool, programId)); | ||
ixs.push((0, bindings_js_1.crank)(pool, programId)); | ||
hasCranked = true; | ||
@@ -354,3 +354,3 @@ } | ||
// Create stake account | ||
ixs.push((0, bindings_1.createStakeAccount)(new web3_js_1.PublicKey(pool), user, feePayer, programId)); | ||
ixs.push((0, bindings_js_1.createStakeAccount)(new web3_js_1.PublicKey(pool), user, feePayer, programId)); | ||
} | ||
@@ -361,7 +361,7 @@ if (stakeAccount && | ||
hasCranked)) { | ||
ixs.push(yield (0, bindings_1.claimRewards)(connection, user, pool, programId)); | ||
ixs.push(yield (0, bindings_js_1.claimRewards)(connection, user, pool, programId)); | ||
} | ||
ixs.push(yield (0, bindings_1.stake)(connection, user, pool, amount * Math.pow(10, 6), programId)); | ||
ixs.push(yield (0, bindings_js_1.stake)(connection, user, pool, amount * Math.pow(10, 6), programId)); | ||
return ixs; | ||
}); | ||
exports.fullLock = fullLock; |
@@ -13,3 +13,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import * as BN from "bn.js"; | ||
import { claimRewards, crank, createStakeAccount, stake } from "./bindings"; | ||
import { claimRewards, crank, createStakeAccount, stake } from "./bindings.js"; | ||
import { createTransferInstruction, getAssociatedTokenAddressSync } from "@solana/spl-token"; | ||
@@ -16,0 +16,0 @@ /** |
{ | ||
"name": "@accessprotocol/js", | ||
"version": "2.0.0-alpha.8", | ||
"version": "2.0.0-alpha.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
395347