@glamsystems/glam-sdk 0.2.0-alpha.1 → 0.2.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -27067,7 +27067,7 @@ class VaultClient {
27067
27067
  const tx = await this.base.extSplProgram.methods.tokenTransferChecked(new anchor.BN(amount), mintObj.decimals).accounts({
27068
27068
  glamState: this.base.statePda,
27069
27069
  glamSigner,
27070
- from: this.base.getVaultAta(mint),
27070
+ from: this.base.getVaultAta(mint, tokenProgram),
27071
27071
  to: toAta,
27072
27072
  mint,
27073
27073
  cpiProgram: tokenProgram
@@ -27546,8 +27546,8 @@ let TxBuilder$2 = class TxBuilder {
27546
27546
  glamSigner,
27547
27547
  baseAssetMint
27548
27548
  }).transaction();
27549
- const vTx = await this.base.intoVersionedTransaction(tx, txOptions);
27550
27549
  this.base.statePda = statePda;
27550
+ const vTx = await this.base.intoVersionedTransaction(tx, txOptions);
27551
27551
  return vTx;
27552
27552
  }
27553
27553
  async update(updated, txOptions) {
package/index.esm.js CHANGED
@@ -27047,7 +27047,7 @@ class VaultClient {
27047
27047
  const tx = await this.base.extSplProgram.methods.tokenTransferChecked(new BN(amount), mintObj.decimals).accounts({
27048
27048
  glamState: this.base.statePda,
27049
27049
  glamSigner,
27050
- from: this.base.getVaultAta(mint),
27050
+ from: this.base.getVaultAta(mint, tokenProgram),
27051
27051
  to: toAta,
27052
27052
  mint,
27053
27053
  cpiProgram: tokenProgram
@@ -27526,8 +27526,8 @@ let TxBuilder$2 = class TxBuilder {
27526
27526
  glamSigner,
27527
27527
  baseAssetMint
27528
27528
  }).transaction();
27529
- const vTx = await this.base.intoVersionedTransaction(tx, txOptions);
27530
27529
  this.base.statePda = statePda;
27530
+ const vTx = await this.base.intoVersionedTransaction(tx, txOptions);
27531
27531
  return vTx;
27532
27532
  }
27533
27533
  async update(updated, txOptions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glamsystems/glam-sdk",
3
- "version": "0.2.0-alpha.1",
3
+ "version": "0.2.0-alpha.2",
4
4
  "description": "TypeScript SDK for the GLAM Protocol",
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js",