@stellar/typescript-wallet-sdk 5.1.0-beta.1792196327472 → 5.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar/typescript-wallet-sdk",
3
- "version": "5.1.0-beta.1792196327472",
3
+ "version": "5.1.0",
4
4
  "engines": {
5
5
  "node": ">=22.12.0"
6
6
  },
@@ -77,4 +77,4 @@
77
77
  "example:sep24": "ts-node examples/sep24/sep24.ts",
78
78
  "example:sep12": "ts-node examples/sep12/sep12.ts"
79
79
  }
80
- }
80
+ }
@@ -14,7 +14,7 @@ describe("Customer", () => {
14
14
  await axios.get(
15
15
  "https://friendbot.stellar.org/?addr=" + accountKp.publicKey,
16
16
  );
17
- }, 10000);
17
+ }, 30000);
18
18
 
19
19
  // skipped: the testanchor changed its SEP-12 API behavior
20
20
  test.skip("Sep-12 methods work", async () => {
@@ -89,5 +89,5 @@ describe("Customer", () => {
89
89
 
90
90
  // Delete
91
91
  await sep12.delete();
92
- }, 20000);
92
+ }, 30000);
93
93
  });
@@ -11,7 +11,7 @@ describe("SEP-38", () => {
11
11
  anchor = wallet.anchor({ homeDomain: "testanchor.stellar.org" });
12
12
  sep38 = anchor.sep38();
13
13
  accountKp = accountKp = wallet.stellar().account().createKeypair();
14
- }, 10000);
14
+ }, 30000);
15
15
 
16
16
  it("should get Sep-38 anchor info", async () => {
17
17
  const resp = await sep38.info();
package/test/sep6.test.ts CHANGED
@@ -16,7 +16,7 @@ describe("SEP-6", () => {
16
16
  await axios.get(
17
17
  "https://friendbot.stellar.org/?addr=" + accountKp.publicKey,
18
18
  );
19
- }, 10000);
19
+ }, 30000);
20
20
 
21
21
  it("should get anchor info", async () => {
22
22
  const resp = await sep6.info();
@@ -172,7 +172,7 @@ describe("SEP-6", () => {
172
172
  resp = await anchor.sep6().getTransactionBy({ authToken, id });
173
173
 
174
174
  expect(resp.id).toEqual(id);
175
- }, 10000);
175
+ }, 30000);
176
176
 
177
177
  let txId;
178
178
 
@@ -45,7 +45,7 @@ describe("Stellar", () => {
45
45
  } catch (e) {
46
46
  await stellar.fundTestnetAccount(kp.publicKey);
47
47
  }
48
- }, 10000);
48
+ }, 30000);
49
49
 
50
50
  it("should create and submit a transaction", async () => {
51
51
  const now = Math.floor(Date.now() / 1000) - 5;
@@ -130,7 +130,7 @@ describe("Stellar", () => {
130
130
  const feeBumpTx = stellar.makeFeeBump({ feeAddress: kp, transaction });
131
131
  kp.sign(feeBumpTx);
132
132
  await stellar.submitTransaction(feeBumpTx);
133
- }, 10000);
133
+ }, 30000);
134
134
 
135
135
  it("should be able to give a signing keypair", async () => {
136
136
  // mock 1 failed response and then 1 successful to test retry
@@ -242,7 +242,7 @@ describe("Stellar", () => {
242
242
  (b) => (b as Horizon.HorizonApi.BalanceLineAsset).asset_code === "USDC",
243
243
  );
244
244
  expect(balance).toBeFalsy();
245
- }, 20000);
245
+ }, 30000);
246
246
 
247
247
  it("should import and sign a transaction from xdr", () => {
248
248
  const txnXdr =
@@ -373,7 +373,7 @@ describe("Stellar", () => {
373
373
  .build();
374
374
  expect(txn).toBeTruthy();
375
375
  }
376
- }, 20000);
376
+ }, 30000);
377
377
 
378
378
  it("should throw if tx not in pending_user_transfer_start status", async () => {
379
379
  const walletTransaction = {
@@ -402,7 +402,7 @@ describe("Stellar", () => {
402
402
  .transferWithdrawalTransaction(walletTransaction, asset)
403
403
  .build();
404
404
  }).toThrowError(WithdrawalTxNotPendingUserTransferStartError);
405
- }, 5000);
405
+ }, 30000);
406
406
 
407
407
  it("should throw if tx is missing withdraw_anchor_account", async () => {
408
408
  const walletTransaction = {
@@ -430,7 +430,7 @@ describe("Stellar", () => {
430
430
  .transferWithdrawalTransaction(walletTransaction, asset)
431
431
  .build();
432
432
  }).toThrowError(WithdrawalTxMissingDestinationError);
433
- }, 5000);
433
+ }, 30000);
434
434
 
435
435
  it("should throw if tx is missing withdraw_memo_type", async () => {
436
436
  const walletTransaction = {
@@ -459,7 +459,7 @@ describe("Stellar", () => {
459
459
  .transferWithdrawalTransaction(walletTransaction, asset)
460
460
  .build();
461
461
  }).toThrowError(WithdrawalTxMissingMemoError);
462
- }, 5000);
462
+ }, 30000);
463
463
 
464
464
  it("should throw if tx is missing withdraw_memo", async () => {
465
465
  const walletTransaction = {
@@ -488,7 +488,7 @@ describe("Stellar", () => {
488
488
  .transferWithdrawalTransaction(walletTransaction, asset)
489
489
  .build();
490
490
  }).toThrowError(WithdrawalTxMissingMemoError);
491
- }, 5000);
491
+ }, 30000);
492
492
  });
493
493
  });
494
494
 
@@ -509,7 +509,7 @@ describe("SponsoringBuilder", () => {
509
509
  await axios.get(
510
510
  "https://friendbot.stellar.org/?addr=" + txnSourceKp.publicKey,
511
511
  );
512
- }, 15000);
512
+ }, 30000);
513
513
 
514
514
  it("should sponsor creating an account", async () => {
515
515
  const wal = Wallet.TestNet();
@@ -535,7 +535,7 @@ describe("SponsoringBuilder", () => {
535
535
  newKp.publicKey,
536
536
  )) as any;
537
537
  expect(sponsoredLoaded.num_sponsored).toBe(2);
538
- }, 15000);
538
+ }, 30000);
539
539
 
540
540
  it("should sponsor adding trustlines", async () => {
541
541
  const txBuilder = await stellar.transaction({
@@ -560,7 +560,7 @@ describe("SponsoringBuilder", () => {
560
560
  sponsorKp.publicKey,
561
561
  )) as any;
562
562
  expect(sponsorLoaded.num_sponsoring).toBe(3);
563
- }, 15000);
563
+ }, 30000);
564
564
 
565
565
  it("should allow sponsoring and regular operations in same transaction", async () => {
566
566
  const txBuilder = await stellar.transaction({
@@ -588,7 +588,7 @@ describe("SponsoringBuilder", () => {
588
588
  sponsorKp.publicKey,
589
589
  )) as any;
590
590
  expect(sponsorLoaded.num_sponsoring).toBe(3);
591
- }, 15000);
591
+ }, 30000);
592
592
  it("should sponsor account modification", async () => {
593
593
  const txBuilder = await stellar.transaction({
594
594
  sourceAddress: txnSourceKp,
@@ -610,7 +610,7 @@ describe("SponsoringBuilder", () => {
610
610
  sourceLoaded.signers.find((signer) => signer.key === otherKp.publicKey)
611
611
  .weight,
612
612
  ).toBe(2);
613
- }, 15000);
613
+ }, 30000);
614
614
  });
615
615
 
616
616
  describe("Asset", () => {
@@ -293,7 +293,7 @@ describe("Path Payment", () => {
293
293
  sourceKp.sign(txn);
294
294
  await stellar.submitTransaction(txn);
295
295
  }
296
- }, 20000);
296
+ }, 30000);
297
297
 
298
298
  it("should use path payment send", async () => {
299
299
  const txBuilder = await stellar.transaction({
@@ -309,7 +309,7 @@ describe("Path Payment", () => {
309
309
  })
310
310
  .build();
311
311
  expect(txn.operations[0].type).toBe("pathPaymentStrictSend");
312
- }, 15000);
312
+ }, 30000);
313
313
 
314
314
  it("should use path payment receive", async () => {
315
315
  const txBuilder = await stellar.transaction({
@@ -325,7 +325,7 @@ describe("Path Payment", () => {
325
325
  })
326
326
  .build();
327
327
  expect(txn.operations[0].type).toBe("pathPaymentStrictReceive");
328
- }, 15000);
328
+ }, 30000);
329
329
 
330
330
  it("should swap", async () => {
331
331
  const txBuilder = await stellar.transaction({
@@ -337,7 +337,7 @@ describe("Path Payment", () => {
337
337
  sourceKp.sign(txn);
338
338
  const success = await stellar.submitTransaction(txn);
339
339
  expect(success).toBe(true);
340
- }, 15000);
340
+ }, 30000);
341
341
  });
342
342
 
343
343
  describe("Path Payment bounds", () => {
@@ -2054,7 +2054,7 @@ describe("AuthHeaderSigner", () => {
2054
2054
  });
2055
2055
 
2056
2056
  expect(authToken).toBeTruthy();
2057
- }, 15000);
2057
+ }, 30000);
2058
2058
 
2059
2059
  it("should match example implementation generated JWT", async () => {
2060
2060
  const generatedAuthToken =