@stellar/typescript-wallet-sdk 1.3.0 → 1.3.1

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.
Files changed (54) hide show
  1. package/examples/sep24/sep24.ts +6 -1
  2. package/lib/bundle.js +35287 -34605
  3. package/lib/bundle.js.map +1 -1
  4. package/lib/bundle_browser.js +24 -51551
  5. package/lib/bundle_browser.js.map +1 -1
  6. package/lib/index.d.ts +1 -1
  7. package/lib/walletSdk/Asset/index.d.ts +1 -1
  8. package/lib/walletSdk/Auth/WalletSigner.d.ts +1 -1
  9. package/lib/walletSdk/Exceptions/index.d.ts +1 -1
  10. package/lib/walletSdk/Horizon/Account.d.ts +1 -1
  11. package/lib/walletSdk/Horizon/AccountService.d.ts +1 -1
  12. package/lib/walletSdk/Horizon/Stellar.d.ts +1 -1
  13. package/lib/walletSdk/Horizon/Transaction/CommonTransactionBuilder.d.ts +1 -1
  14. package/lib/walletSdk/Horizon/Transaction/SponsoringBuilder.d.ts +1 -1
  15. package/lib/walletSdk/Horizon/Transaction/TransactionBuilder.d.ts +1 -1
  16. package/lib/walletSdk/Recovery/AccountRecover.d.ts +1 -1
  17. package/lib/walletSdk/Recovery/index.d.ts +1 -1
  18. package/lib/walletSdk/Types/anchor.d.ts +1 -1
  19. package/lib/walletSdk/Types/auth.d.ts +1 -1
  20. package/lib/walletSdk/Types/horizon.d.ts +1 -1
  21. package/lib/walletSdk/Types/index.d.ts +1 -1
  22. package/lib/walletSdk/Types/recovery.d.ts +1 -1
  23. package/lib/walletSdk/Types/sep24.d.ts +1 -1
  24. package/lib/walletSdk/Utils/toml.d.ts +1 -1
  25. package/lib/walletSdk/index.d.ts +1 -1
  26. package/package.json +2 -2
  27. package/src/index.ts +1 -1
  28. package/src/walletSdk/Anchor/index.ts +1 -1
  29. package/src/walletSdk/Asset/index.ts +1 -1
  30. package/src/walletSdk/Auth/WalletSigner.ts +1 -1
  31. package/src/walletSdk/Auth/index.ts +1 -1
  32. package/src/walletSdk/Exceptions/index.ts +1 -1
  33. package/src/walletSdk/Horizon/Account.ts +1 -1
  34. package/src/walletSdk/Horizon/AccountService.ts +1 -1
  35. package/src/walletSdk/Horizon/Stellar.ts +1 -1
  36. package/src/walletSdk/Horizon/Transaction/CommonTransactionBuilder.ts +1 -1
  37. package/src/walletSdk/Horizon/Transaction/SponsoringBuilder.ts +1 -1
  38. package/src/walletSdk/Horizon/Transaction/TransactionBuilder.ts +1 -1
  39. package/src/walletSdk/Recovery/AccountRecover.ts +1 -1
  40. package/src/walletSdk/Recovery/index.ts +1 -1
  41. package/src/walletSdk/Types/anchor.ts +1 -1
  42. package/src/walletSdk/Types/auth.ts +1 -1
  43. package/src/walletSdk/Types/horizon.ts +1 -1
  44. package/src/walletSdk/Types/index.ts +1 -1
  45. package/src/walletSdk/Types/recovery.ts +1 -1
  46. package/src/walletSdk/Types/sep24.ts +1 -1
  47. package/src/walletSdk/Utils/toml.ts +1 -1
  48. package/src/walletSdk/index.ts +1 -1
  49. package/test/account.test.ts +1 -1
  50. package/test/accountService.test.ts +1 -1
  51. package/test/recovery.test.ts +1 -1
  52. package/test/stellar.test.ts +1 -1
  53. package/test/transaction.test.ts +1 -1
  54. package/test/wallet.test.ts +1 -1
package/lib/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export { Utils };
25
25
  import * as Exceptions from "./walletSdk/Exceptions";
26
26
  export { Exceptions };
27
27
  import * as walletSdk from "./walletSdk";
28
- import { Keypair } from "stellar-sdk";
28
+ import { Keypair } from "@stellar/stellar-sdk";
29
29
  export { walletSdk, Keypair };
30
30
  declare const _default: {
31
31
  walletSdk: typeof walletSdk;
@@ -1,4 +1,4 @@
1
- import { Asset as StellarAsset } from "stellar-sdk";
1
+ import { Asset as StellarAsset } from "@stellar/stellar-sdk";
2
2
  declare class AssetId {
3
3
  id: string;
4
4
  scheme: string;
@@ -1,4 +1,4 @@
1
- import { Transaction } from "stellar-sdk";
1
+ import { Transaction } from "@stellar/stellar-sdk";
2
2
  import { SignWithClientAccountParams, SignWithDomainAccountParams, HttpHeaders } from "../Types";
3
3
  /**
4
4
  * A Wallet Signer for signing Stellar transactions.
@@ -1,4 +1,4 @@
1
- import { Networks, Horizon } from "stellar-sdk";
1
+ import { Networks, Horizon } from "@stellar/stellar-sdk";
2
2
  import { AnchorTransaction, FLOW_TYPE, AxiosErrorData, GetCustomerParams } from "../Types";
3
3
  export declare class ServerRequestFailedError extends Error {
4
4
  data: AxiosErrorData;
@@ -1,4 +1,4 @@
1
- import { Keypair, Transaction, FeeBumpTransaction } from "stellar-sdk";
1
+ import { Keypair, Transaction, FeeBumpTransaction } from "@stellar/stellar-sdk";
2
2
  export declare class AccountKeypair {
3
3
  keypair: Keypair;
4
4
  constructor(keypair: Keypair);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { Horizon } from "stellar-sdk";
2
+ import { Horizon } from "@stellar/stellar-sdk";
3
3
  import { Config } from "walletSdk";
4
4
  import { SigningKeypair } from "./Account";
5
5
  import { HORIZON_ORDER } from "../Types";
@@ -1,4 +1,4 @@
1
- import { Horizon, Transaction, FeeBumpTransaction } from "stellar-sdk";
1
+ import { Horizon, Transaction, FeeBumpTransaction } from "@stellar/stellar-sdk";
2
2
  import { Config } from "walletSdk";
3
3
  import { AccountService } from "./AccountService";
4
4
  import { TransactionBuilder } from "./Transaction/TransactionBuilder";
@@ -1,4 +1,4 @@
1
- import { xdr } from "stellar-sdk";
1
+ import { xdr } from "@stellar/stellar-sdk";
2
2
  import { IssuedAssetId } from "../../Asset";
3
3
  import { AccountKeypair } from "../Account";
4
4
  export declare abstract class CommonTransactionBuilder<T> {
@@ -1,4 +1,4 @@
1
- import { xdr } from "stellar-sdk";
1
+ import { xdr } from "@stellar/stellar-sdk";
2
2
  import { CommonTransactionBuilder } from "./CommonTransactionBuilder";
3
3
  import { AccountKeypair } from "../Account";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Account as StellarAccount, Transaction, Horizon, Memo, xdr } from "stellar-sdk";
1
+ import { Account as StellarAccount, Transaction, Horizon, Memo, xdr } from "@stellar/stellar-sdk";
2
2
  import { Config } from "walletSdk";
3
3
  import { AccountKeypair } from "../Account";
4
4
  import { StellarAssetId } from "../../Asset";
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import { Transaction } from "stellar-sdk";
2
+ import { Transaction } from "@stellar/stellar-sdk";
3
3
  import { RecoveryServer, RecoveryServerKey, RecoveryServerMap, RecoveryServerSigningMap } from "walletSdk/Types";
4
4
  import { AccountKeypair, Stellar } from "../Horizon";
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import { Transaction } from "stellar-sdk";
2
+ import { Transaction } from "@stellar/stellar-sdk";
3
3
  import { Config } from "walletSdk";
4
4
  import { AccountSigner, AccountThreshold, CommonBuilder, RecoverableWallet, RecoverableWalletConfig, RecoveryAccountInfoMap, RecoveryAuthMap, RecoveryServerKey, RecoveryServerMap } from "walletSdk/Types";
5
5
  import { AccountRecover } from "./AccountRecover";
@@ -1,4 +1,4 @@
1
- import { MemoType } from "stellar-sdk";
1
+ import { MemoType } from "@stellar/stellar-sdk";
2
2
  import { Optional } from "utility-types";
3
3
  import { AuthToken } from "./auth";
4
4
  export interface AnchorServiceInfo {
@@ -1,4 +1,4 @@
1
- import { Transaction } from "stellar-sdk";
1
+ import { Transaction } from "@stellar/stellar-sdk";
2
2
  import { WalletSigner } from "../Auth/WalletSigner";
3
3
  import { AccountKeypair } from "../Horizon/Account";
4
4
  export type AuthenticateParams = {
@@ -1,4 +1,4 @@
1
- import { Memo, Horizon, Transaction } from "stellar-sdk";
1
+ import { Memo, Horizon, Transaction } from "@stellar/stellar-sdk";
2
2
  import { AccountKeypair } from "../Horizon/Account";
3
3
  import { SponsoringBuilder, TransactionBuilder } from "walletSdk/Horizon";
4
4
  import { StellarAssetId } from "../Asset";
@@ -1,5 +1,5 @@
1
1
  import { RawAxiosRequestHeaders } from "axios";
2
- import { Networks } from "stellar-sdk";
2
+ import { Networks } from "@stellar/stellar-sdk";
3
3
  import { ApplicationConfiguration, StellarConfiguration } from "walletSdk";
4
4
  import { RecoveryServerMap } from "./recovery";
5
5
  export type WalletParams = {
@@ -1,4 +1,4 @@
1
- import { Transaction } from "stellar-sdk";
1
+ import { Transaction } from "@stellar/stellar-sdk";
2
2
  import { WalletSigner } from "walletSdk/Auth";
3
3
  import { AccountKeypair, PublicKeypair } from "walletSdk/Horizon";
4
4
  import { AuthToken } from "./auth";
@@ -1,4 +1,4 @@
1
- import { Memo } from "stellar-sdk";
1
+ import { Memo } from "@stellar/stellar-sdk";
2
2
  import { AuthToken } from "./auth";
3
3
  export declare enum FLOW_TYPE {
4
4
  DEPOSIT = "deposit",
@@ -1,3 +1,3 @@
1
- import { StellarToml } from "stellar-sdk";
1
+ import { StellarToml } from "@stellar/stellar-sdk";
2
2
  import { TomlInfo } from "../Types";
3
3
  export declare const parseToml: (toml: StellarToml.Api.StellarToml) => TomlInfo;
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import { Networks, Horizon } from "stellar-sdk";
2
+ import { Networks, Horizon } from "@stellar/stellar-sdk";
3
3
  import { Anchor } from "./Anchor";
4
4
  import { WalletSigner } from "./Auth";
5
5
  import { Stellar } from "./Horizon";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar/typescript-wallet-sdk",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "engines": {
5
5
  "node": ">=18"
6
6
  },
@@ -41,12 +41,12 @@
41
41
  "webpack-cli": "^5.1.1"
42
42
  },
43
43
  "dependencies": {
44
+ "@stellar/stellar-sdk": "^11.1.0",
44
45
  "axios": "^1.4.0",
45
46
  "https-browserify": "^1.0.0",
46
47
  "jws": "^4.0.0",
47
48
  "lodash": "^4.17.21",
48
49
  "query-string": "^7.1.3",
49
- "stellar-sdk": "^11.0.0-beta.6",
50
50
  "stream-http": "^3.2.0",
51
51
  "url": "^0.11.0",
52
52
  "util": "^0.12.5",
package/src/index.ts CHANGED
@@ -43,7 +43,7 @@ import * as Exceptions from "./walletSdk/Exceptions";
43
43
  export { Exceptions };
44
44
 
45
45
  import * as walletSdk from "./walletSdk";
46
- import { Keypair } from "stellar-sdk";
46
+ import { Keypair } from "@stellar/stellar-sdk";
47
47
  // TODO - figure out why Keypair used in parent codebase throws error
48
48
  export { walletSdk, Keypair };
49
49
  export default { walletSdk };
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import { StellarToml } from "stellar-sdk";
2
+ import { StellarToml } from "@stellar/stellar-sdk";
3
3
 
4
4
  import { Config } from "walletSdk";
5
5
  import { Sep10 } from "../Auth";
@@ -1,4 +1,4 @@
1
- import { Asset as StellarAsset } from "stellar-sdk";
1
+ import { Asset as StellarAsset } from "@stellar/stellar-sdk";
2
2
 
3
3
  const STELLAR_SCHEME = "stellar";
4
4
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Transaction,
3
3
  TransactionBuilder as StellarTransactionBuilder,
4
- } from "stellar-sdk";
4
+ } from "@stellar/stellar-sdk";
5
5
  import { AxiosInstance } from "axios";
6
6
 
7
7
  import {
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import StellarSdk, { Transaction } from "stellar-sdk";
2
+ import StellarSdk, { Transaction } from "@stellar/stellar-sdk";
3
3
  import { decode } from "jws";
4
4
 
5
5
  import { Config } from "walletSdk";
@@ -1,4 +1,4 @@
1
- import { Networks, Horizon } from "stellar-sdk";
1
+ import { Networks, Horizon } from "@stellar/stellar-sdk";
2
2
  import axios from "axios";
3
3
  import {
4
4
  AnchorTransaction,
@@ -1,4 +1,4 @@
1
- import { Keypair, Transaction, FeeBumpTransaction } from "stellar-sdk";
1
+ import { Keypair, Transaction, FeeBumpTransaction } from "@stellar/stellar-sdk";
2
2
 
3
3
  export class AccountKeypair {
4
4
  keypair: Keypair;
@@ -1,4 +1,4 @@
1
- import { Keypair, Networks, Horizon } from "stellar-sdk";
1
+ import { Keypair, Networks, Horizon } from "@stellar/stellar-sdk";
2
2
 
3
3
  import { Config } from "walletSdk";
4
4
  import { SigningKeypair } from "./Account";
@@ -4,7 +4,7 @@ import {
4
4
  Transaction,
5
5
  TransactionBuilder as StellarTransactionBuilder,
6
6
  FeeBumpTransaction,
7
- } from "stellar-sdk";
7
+ } from "@stellar/stellar-sdk";
8
8
  import axios from "axios";
9
9
 
10
10
  import { Config } from "walletSdk";
@@ -1,4 +1,4 @@
1
- import StellarSdk, { xdr } from "stellar-sdk";
1
+ import StellarSdk, { xdr } from "@stellar/stellar-sdk";
2
2
  import { IssuedAssetId } from "../../Asset";
3
3
  import { AccountKeypair } from "../Account";
4
4
 
@@ -1,4 +1,4 @@
1
- import StellarSdk, { xdr } from "stellar-sdk";
1
+ import StellarSdk, { xdr } from "@stellar/stellar-sdk";
2
2
 
3
3
  import { CommonTransactionBuilder } from "./CommonTransactionBuilder";
4
4
  import { AccountKeypair } from "../Account";
@@ -5,7 +5,7 @@ import StellarSdk, {
5
5
  Horizon,
6
6
  Memo,
7
7
  xdr,
8
- } from "stellar-sdk";
8
+ } from "@stellar/stellar-sdk";
9
9
 
10
10
  import { Config } from "walletSdk";
11
11
  import { AccountKeypair } from "../Account";
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import { Horizon, Transaction } from "stellar-sdk";
2
+ import { Horizon, Transaction } from "@stellar/stellar-sdk";
3
3
 
4
4
  import {
5
5
  RecoveryServer,
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import { Transaction } from "stellar-sdk";
2
+ import { Transaction } from "@stellar/stellar-sdk";
3
3
 
4
4
  import { Config } from "walletSdk";
5
5
  import {
@@ -1,4 +1,4 @@
1
- import { MemoType } from "stellar-sdk";
1
+ import { MemoType } from "@stellar/stellar-sdk";
2
2
  import { Optional } from "utility-types";
3
3
 
4
4
  import { AuthToken } from "./auth";
@@ -1,4 +1,4 @@
1
- import { Transaction } from "stellar-sdk";
1
+ import { Transaction } from "@stellar/stellar-sdk";
2
2
  import { decode } from "jws";
3
3
 
4
4
  import { WalletSigner } from "../Auth/WalletSigner";
@@ -1,4 +1,4 @@
1
- import { Memo, Horizon, Transaction } from "stellar-sdk";
1
+ import { Memo, Horizon, Transaction } from "@stellar/stellar-sdk";
2
2
  import { AccountKeypair } from "../Horizon/Account";
3
3
  import { SponsoringBuilder, TransactionBuilder } from "walletSdk/Horizon";
4
4
  import { StellarAssetId } from "../Asset";
@@ -1,5 +1,5 @@
1
1
  import { RawAxiosRequestHeaders } from "axios";
2
- import { Networks } from "stellar-sdk";
2
+ import { Networks } from "@stellar/stellar-sdk";
3
3
  import { ApplicationConfiguration, StellarConfiguration } from "walletSdk";
4
4
  import { RecoveryServerMap } from "./recovery";
5
5
 
@@ -1,4 +1,4 @@
1
- import { Transaction } from "stellar-sdk";
1
+ import { Transaction } from "@stellar/stellar-sdk";
2
2
 
3
3
  import { WalletSigner } from "walletSdk/Auth";
4
4
  import { AccountKeypair, PublicKeypair } from "walletSdk/Horizon";
@@ -1,4 +1,4 @@
1
- import { Memo } from "stellar-sdk";
1
+ import { Memo } from "@stellar/stellar-sdk";
2
2
 
3
3
  import { AuthToken } from "./auth";
4
4
 
@@ -1,4 +1,4 @@
1
- import { StellarToml } from "stellar-sdk";
1
+ import { StellarToml } from "@stellar/stellar-sdk";
2
2
 
3
3
  import { TomlInfo } from "../Types";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import axios, { AxiosInstance } from "axios";
2
- import { Networks, Horizon } from "stellar-sdk";
2
+ import { Networks, Horizon } from "@stellar/stellar-sdk";
3
3
 
4
4
  import { Anchor } from "./Anchor";
5
5
  import { DefaultSigner, WalletSigner } from "./Auth";
@@ -1,5 +1,5 @@
1
1
  import crypto from "crypto";
2
- import { TransactionBuilder, Networks } from "stellar-sdk";
2
+ import { TransactionBuilder, Networks } from "@stellar/stellar-sdk";
3
3
 
4
4
  import { Wallet } from "../src";
5
5
  import { PublicKeypair } from "../src/walletSdk/Horizon/Account";
@@ -1,5 +1,5 @@
1
1
  import axios from "axios";
2
- import { Horizon } from "stellar-sdk";
2
+ import { Horizon } from "@stellar/stellar-sdk";
3
3
 
4
4
  import { AccountService, SigningKeypair, Wallet } from "../src";
5
5
  import { HORIZON_ORDER } from "../src/walletSdk/Types";
@@ -1,5 +1,5 @@
1
1
  import axios from "axios";
2
- import { xdr } from "stellar-sdk";
2
+ import { xdr } from "@stellar/stellar-sdk";
3
3
 
4
4
  import { SigningKeypair, Wallet } from "../src";
5
5
 
@@ -1,4 +1,4 @@
1
- import { Keypair, Memo, MemoText, Horizon } from "stellar-sdk";
1
+ import { Keypair, Memo, MemoText, Horizon } from "@stellar/stellar-sdk";
2
2
  import axios from "axios";
3
3
 
4
4
  import { Stellar, Wallet } from "../src";
@@ -1,5 +1,5 @@
1
1
  import axios from "axios";
2
- import { Horizon, MuxedAccount } from "stellar-sdk";
2
+ import { Horizon, MuxedAccount } from "@stellar/stellar-sdk";
3
3
 
4
4
  import { AccountService, SigningKeypair, Stellar, Wallet } from "../src";
5
5
  import { IssuedAssetId, NativeAssetId } from "../src/walletSdk/Asset";
@@ -1,6 +1,6 @@
1
1
  import axios, { AxiosInstance } from "axios";
2
2
  import sinon from "sinon";
3
- import StellarSdk, { Keypair, Memo, MemoText } from "stellar-sdk";
3
+ import StellarSdk, { Keypair, Memo, MemoText } from "@stellar/stellar-sdk";
4
4
 
5
5
  import {
6
6
  Anchor,