@ghostspeak/sdk 1.1.1 → 1.1.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/README.md CHANGED
@@ -28,7 +28,7 @@ const wallet = Keypair.generate();
28
28
  const client = new GhostSpeakClient({
29
29
  connection,
30
30
  wallet,
31
- programId: new PublicKey('367WUUpQTxXYUZqFyo9rDpgfJtH7mfGxX9twahdUmaEK')
31
+ programId: new PublicKey('5mMhsW6dP6RCXv73CdBtzfAV9CJkXKYv3SqPDiccf5aK')
32
32
  });
33
33
 
34
34
  // Register an AI agent
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { address, getAddressEncoder, getAddressDecoder, getProgramDerivedAddress
6
6
  import { decodeAccount, assertAccountExists, fetchEncodedAccount, assertAccountsExist, fetchEncodedAccounts } from '@solana/accounts';
7
7
  import { getOptionEncoder, getOptionDecoder } from '@solana/options';
8
8
  import { AccountRole, upgradeRoleToSigner } from '@solana/instructions';
9
- import { createSolanaRpc, getProgramDerivedAddress as getProgramDerivedAddress$1, getBytesEncoder as getBytesEncoder$1, getAddressEncoder as getAddressEncoder$1, addEncoderSizePrefix as addEncoderSizePrefix$1, getUtf8Encoder as getUtf8Encoder$1, getU32Encoder as getU32Encoder$1, getU64Encoder as getU64Encoder$1, sendAndConfirmTransactionFactory, pipe, createTransactionMessage, setTransactionMessageFeePayer, setTransactionMessageLifetimeUsingBlockhash, appendTransactionMessageInstructions, signTransactionMessageWithSigners, compileTransactionMessage } from '@solana/kit';
9
+ import { createSolanaRpc, getProgramDerivedAddress as getProgramDerivedAddress$1, getBytesEncoder as getBytesEncoder$1, getAddressEncoder as getAddressEncoder$1, addEncoderSizePrefix as addEncoderSizePrefix$1, getUtf8Encoder as getUtf8Encoder$1, getU32Encoder as getU32Encoder$1, getU64Encoder as getU64Encoder$1, sendAndConfirmTransactionFactory, pipe, createTransactionMessage, setTransactionMessageFeePayerSigner, setTransactionMessageLifetimeUsingBlockhash, appendTransactionMessageInstructions, signTransactionMessageWithSigners, setTransactionMessageFeePayer, compileTransactionMessage } from '@solana/kit';
10
10
 
11
11
  var __defProp = Object.defineProperty;
12
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -21216,7 +21216,7 @@ var BaseInstructions = class {
21216
21216
  console.log("\u{1F3D7}\uFE0F Building transaction message...");
21217
21217
  const transactionMessage = await pipe(
21218
21218
  createTransactionMessage({ version: 0 }),
21219
- (tx) => setTransactionMessageFeePayer(signers[0].address, tx),
21219
+ (tx) => setTransactionMessageFeePayerSigner(signers[0], tx),
21220
21220
  (tx) => setTransactionMessageLifetimeUsingBlockhash(latestBlockhash, tx),
21221
21221
  (tx) => appendTransactionMessageInstructions(instructions, tx)
21222
21222
  );
@@ -21280,7 +21280,7 @@ var BaseInstructions = class {
21280
21280
  const { value: latestBlockhash } = await this.rpc.getLatestBlockhash().send();
21281
21281
  const transactionMessage = await pipe(
21282
21282
  createTransactionMessage({ version: 0 }),
21283
- (tx) => setTransactionMessageFeePayer(signers[0].address, tx),
21283
+ (tx) => setTransactionMessageFeePayerSigner(signers[0], tx),
21284
21284
  (tx) => setTransactionMessageLifetimeUsingBlockhash(latestBlockhash, tx),
21285
21285
  (tx) => appendTransactionMessageInstructions(instructions, tx)
21286
21286
  );