@hadron-fi/sdk 0.4.2 → 0.4.3

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/dist/index.d.mts CHANGED
@@ -943,9 +943,9 @@ declare function buildUpdateSpreadConfig(admin: PublicKey, configPda: PublicKey,
943
943
  declare function buildSetPoolState(authority: PublicKey, configPda: PublicKey, params: SetPoolStateParams, programId?: PublicKey): TransactionInstruction;
944
944
  /**
945
945
  * Build an UpdateDeltaStaleness instruction.
946
- * Accounts: authority, config.
946
+ * Accounts: authority (quoting authority), config, curveMeta.
947
947
  */
948
- declare function buildUpdateDeltaStaleness(authority: PublicKey, configPda: PublicKey, params: UpdateDeltaStalenessParams, programId?: PublicKey): TransactionInstruction;
948
+ declare function buildUpdateDeltaStaleness(authority: PublicKey, configPda: PublicKey, curveMetaPda: PublicKey, params: UpdateDeltaStalenessParams, programId?: PublicKey): TransactionInstruction;
949
949
  /**
950
950
  * Build a ClosePool instruction.
951
951
  * Accounts: authority, config, midprice_oracle, curve_meta, curve_prefabs,
package/dist/index.d.ts CHANGED
@@ -943,9 +943,9 @@ declare function buildUpdateSpreadConfig(admin: PublicKey, configPda: PublicKey,
943
943
  declare function buildSetPoolState(authority: PublicKey, configPda: PublicKey, params: SetPoolStateParams, programId?: PublicKey): TransactionInstruction;
944
944
  /**
945
945
  * Build an UpdateDeltaStaleness instruction.
946
- * Accounts: authority, config.
946
+ * Accounts: authority (quoting authority), config, curveMeta.
947
947
  */
948
- declare function buildUpdateDeltaStaleness(authority: PublicKey, configPda: PublicKey, params: UpdateDeltaStalenessParams, programId?: PublicKey): TransactionInstruction;
948
+ declare function buildUpdateDeltaStaleness(authority: PublicKey, configPda: PublicKey, curveMetaPda: PublicKey, params: UpdateDeltaStalenessParams, programId?: PublicKey): TransactionInstruction;
949
949
  /**
950
950
  * Build a ClosePool instruction.
951
951
  * Accounts: authority, config, midprice_oracle, curve_meta, curve_prefabs,
package/dist/index.js CHANGED
@@ -1294,7 +1294,7 @@ function buildSetPoolState(authority, configPda, params, programId = HADRON_PROG
1294
1294
  data
1295
1295
  });
1296
1296
  }
1297
- function buildUpdateDeltaStaleness(authority, configPda, params, programId = HADRON_PROGRAM_ID) {
1297
+ function buildUpdateDeltaStaleness(authority, configPda, curveMetaPda, params, programId = HADRON_PROGRAM_ID) {
1298
1298
  const data = Buffer.alloc(1 + 1);
1299
1299
  data.writeUInt8(Discriminator.UpdateDeltaStaleness, 0);
1300
1300
  data.writeUInt8(params.deltaStaleness, 1);
@@ -1302,7 +1302,8 @@ function buildUpdateDeltaStaleness(authority, configPda, params, programId = HAD
1302
1302
  programId,
1303
1303
  keys: [
1304
1304
  { pubkey: authority, isSigner: true, isWritable: false },
1305
- { pubkey: configPda, isSigner: false, isWritable: true }
1305
+ { pubkey: configPda, isSigner: false, isWritable: true },
1306
+ { pubkey: curveMetaPda, isSigner: false, isWritable: false }
1306
1307
  ],
1307
1308
  data
1308
1309
  });
@@ -1732,6 +1733,7 @@ var Hadron = class _Hadron {
1732
1733
  return buildUpdateDeltaStaleness(
1733
1734
  authority,
1734
1735
  this.poolAddress,
1736
+ this.addresses.curveMeta,
1735
1737
  params,
1736
1738
  this.programId
1737
1739
  );