@dexterai/vault 0.3.3 → 0.3.5

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.
@@ -4738,7 +4738,7 @@ function buildSetSwigAtomicInstruction(params) {
4738
4738
  { pubkey: params.swigAddress, isSigner: false, isWritable: true },
4739
4739
  { pubkey: params.swigWalletAddress, isSigner: false, isWritable: true },
4740
4740
  { pubkey: SWIG_PROGRAM_ID, isSigner: false, isWritable: false },
4741
- { pubkey: import_web35.SystemProgram.programId, isSigner: false, isWritable: true },
4741
+ { pubkey: import_web35.SystemProgram.programId, isSigner: false, isWritable: false },
4742
4742
  { pubkey: import_web35.SYSVAR_INSTRUCTIONS_PUBKEY, isSigner: false, isWritable: false }
4743
4743
  ],
4744
4744
  data: Buffer.from(data)
@@ -4749,11 +4749,11 @@ function buildSetSwigAtomicFromIdentity(params) {
4749
4749
  deriveSwigId(params.identitySeed, params.hmacKey)
4750
4750
  );
4751
4751
  const [swigAddress, swigAccountBump] = import_web35.PublicKey.findProgramAddressSync(
4752
- [Buffer.from(swigId)],
4752
+ [Buffer.from("swig"), Buffer.from(swigId)],
4753
4753
  SWIG_PROGRAM_ID
4754
4754
  );
4755
4755
  const [swigWalletAddress, swigWalletAddressBump] = import_web35.PublicKey.findProgramAddressSync(
4756
- [swigAddress.toBytes()],
4756
+ [Buffer.from("swig-wallet-address"), swigAddress.toBytes()],
4757
4757
  SWIG_PROGRAM_ID
4758
4758
  );
4759
4759
  return buildSetSwigAtomicInstruction({
@@ -4700,7 +4700,7 @@ function buildSetSwigAtomicInstruction(params) {
4700
4700
  { pubkey: params.swigAddress, isSigner: false, isWritable: true },
4701
4701
  { pubkey: params.swigWalletAddress, isSigner: false, isWritable: true },
4702
4702
  { pubkey: SWIG_PROGRAM_ID, isSigner: false, isWritable: false },
4703
- { pubkey: SystemProgram2.programId, isSigner: false, isWritable: true },
4703
+ { pubkey: SystemProgram2.programId, isSigner: false, isWritable: false },
4704
4704
  { pubkey: SYSVAR_INSTRUCTIONS_PUBKEY2, isSigner: false, isWritable: false }
4705
4705
  ],
4706
4706
  data: Buffer.from(data)
@@ -4711,11 +4711,11 @@ function buildSetSwigAtomicFromIdentity(params) {
4711
4711
  deriveSwigId(params.identitySeed, params.hmacKey)
4712
4712
  );
4713
4713
  const [swigAddress, swigAccountBump] = PublicKey5.findProgramAddressSync(
4714
- [Buffer.from(swigId)],
4714
+ [Buffer.from("swig"), Buffer.from(swigId)],
4715
4715
  SWIG_PROGRAM_ID
4716
4716
  );
4717
4717
  const [swigWalletAddress, swigWalletAddressBump] = PublicKey5.findProgramAddressSync(
4718
- [swigAddress.toBytes()],
4718
+ [Buffer.from("swig-wallet-address"), swigAddress.toBytes()],
4719
4719
  SWIG_PROGRAM_ID
4720
4720
  );
4721
4721
  return buildSetSwigAtomicInstruction({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexterai/vault",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Canonical off-chain mirror of the dexter-vault Solana Anchor program — Solana instruction builders, byte-precise message encoders, account decoders, secp256r1/Ed25519 precompile helpers, counterfactual Swig derivation, and signer interfaces. The single source of truth for any TypeScript code that produces bytes the on-chain program will verify.",
5
5
  "author": "Dexter",
6
6
  "license": "MIT",