@accessprotocol/js
Advanced tools
Comparing version 2.0.0-alpha.15 to 2.0.0-alpha.16
@@ -477,3 +477,3 @@ "use strict"; | ||
// stake account | ||
case 4: | ||
case state_js_1.Tag.StakeAccount: | ||
const stakeAccount = state_js_1.StakeAccount.deserialize(account.account.data); | ||
@@ -491,3 +491,3 @@ if (stakeAccount.lastClaimedOffset < currentOffset) { | ||
// bond account | ||
case 6: | ||
case state_js_1.Tag.BondAccount: | ||
const bondAccount = state_js_1.BondAccount.deserialize(account.account.data); | ||
@@ -503,3 +503,3 @@ if (bondAccount.lastClaimedOffset < currentOffset) { | ||
// bondV2 account | ||
case 12: | ||
case state_js_1.Tag.BondV2Account: | ||
const bondV2Account = state_js_1.BondV2Account.deserialize(account.account.data); | ||
@@ -506,0 +506,0 @@ if (bondV2Account.lastClaimedOffset < currentOffset) { |
@@ -11,3 +11,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { PublicKey } from "@solana/web3.js"; | ||
import { ACCESS_MINT, ACCESS_PROGRAM_ID, BondAccount, BondV2Account, CentralStateV2, StakeAccount, StakePool } from "./state.js"; | ||
import { ACCESS_MINT, ACCESS_PROGRAM_ID, BondAccount, BondV2Account, CentralStateV2, StakeAccount, StakePool, Tag } from "./state.js"; | ||
import * as BN from "bn.js"; | ||
@@ -440,3 +440,3 @@ import { addToBondV2, claimBondV2Rewards, claimRewards, crank, createBondV2, createStakeAccount, stake, unstake } from "./bindings.js"; | ||
// stake account | ||
case 4: | ||
case Tag.StakeAccount: | ||
const stakeAccount = StakeAccount.deserialize(account.account.data); | ||
@@ -454,3 +454,3 @@ if (stakeAccount.lastClaimedOffset < currentOffset) { | ||
// bond account | ||
case 6: | ||
case Tag.BondAccount: | ||
const bondAccount = BondAccount.deserialize(account.account.data); | ||
@@ -466,3 +466,3 @@ if (bondAccount.lastClaimedOffset < currentOffset) { | ||
// bondV2 account | ||
case 12: | ||
case Tag.BondV2Account: | ||
const bondV2Account = BondV2Account.deserialize(account.account.data); | ||
@@ -469,0 +469,0 @@ if (bondV2Account.lastClaimedOffset < currentOffset) { |
{ | ||
"name": "@accessprotocol/js", | ||
"version": "2.0.0-alpha.15", | ||
"version": "2.0.0-alpha.16", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "type": "module", |
418902