diff --git a/CHANGELOG.md b/CHANGELOG.md index b596348..76033a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## v5.0.9 + +### Fix: + + - Naming consistency + ## v5.0.8 ### Fix: diff --git a/package.json b/package.json index e3ab086..a7cf83f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@marinade.finance/marinade-ts-sdk", - "version": "5.0.8", + "version": "5.0.9", "description": "Marinade SDK for Typescript", "main": "dist/src/index.js", "repository": { diff --git a/src/marinade.ts b/src/marinade.ts index 683e0eb..c2944d9 100644 --- a/src/marinade.ts +++ b/src/marinade.ts @@ -542,7 +542,7 @@ export class Marinade { delegateTransaction.instructions.push(depositInstruction) const directedStakeInstruction = await this.createDirectedStakeVoteIx( - options.directToValidatorVoteAddress + options.directedTarget ) if (directedStakeInstruction) { delegateTransaction.add(directedStakeInstruction) @@ -672,7 +672,7 @@ export class Marinade { transaction.add(depositStakeAccountInstruction) const directedStakeInstruction = await this.createDirectedStakeVoteIx( - options.directToValidatorVoteAddress + options.directedTarget ) if (directedStakeInstruction) { transaction.add(directedStakeInstruction) @@ -831,7 +831,7 @@ export class Marinade { const { transaction: depositTx, associatedMSolTokenAccountAddress } = await this.deposit(lamportsToWithdraw, { - directedTarget: options.directToValidatorVoteAddress, + directedTarget: options.directedTarget, }) transaction.instructions.push(...depositTx.instructions) diff --git a/src/marinade.types.ts b/src/marinade.types.ts index fa8ec7d..497c67c 100644 --- a/src/marinade.types.ts +++ b/src/marinade.types.ts @@ -85,9 +85,9 @@ export interface DepositOptions { export interface DepositStakeAccountOptions { /** - * The vote address of the validator to direct your stake to. + * The vote address of the validator or Marinade Algorithmic Delegation strategy to direct your stake to. */ - directToValidatorVoteAddress?: web3.PublicKey + directedTarget?: web3.PublicKey } export interface ValidatorStats {