@lifi/sdk-provider-stellar 0.0.0-preview-c996a5fb → 0.0.0-preview-9b9526be

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/CHANGELOG.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @lifi/sdk-provider-stellar
2
2
 
3
- ## 0.0.0-preview-c996a5fb
3
+ ## 0.0.0-preview-9b9526be
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - [#539](https://github.com/lifinance/sdk/pull/539) [`b80e5f4`](https://github.com/lifinance/sdk/commit/b80e5f49941190812935644c55d5c9c075bac354) Thanks [@chybisov](https://github.com/chybisov)! - Bump runtime dependencies: @lifi/types to 18.16.0, bitcoinjs-lib to 7.0.5, viem to 2.57.17, @solana/kit to 8.6.0, @stellar/stellar-sdk to 17.4.0, @mysten/sui to 2.39.1.
8
- - Updated dependencies [[`b80e5f4`](https://github.com/lifinance/sdk/commit/b80e5f49941190812935644c55d5c9c075bac354), [`de384d3`](https://github.com/lifinance/sdk/commit/de384d3fffbe0f87f73f268529b8f528cf2c4a8b)]:
9
- - @lifi/sdk@0.0.0-preview-c996a5fb
8
+ - Updated dependencies [[`b80e5f4`](https://github.com/lifinance/sdk/commit/b80e5f49941190812935644c55d5c9c075bac354)]:
9
+ - @lifi/sdk@0.0.0-preview-9b9526be
10
10
 
11
11
  ## 4.3.10
12
12
 
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/types.ts"],"mappings":";;;;;;iBAaiB;EACf;EACA;;;;;;iBAOe;EACf;EACA;;;;;;;iBAQe;EACf;EACA;;;;;;iBAOe;;EAEf;;EAEA;EACA,kBACE,aACA,OAAO,uBACJ,QAAQ;;;;;EAKb,iBACE,mBACA,OAAO,uBACJ,QAAQ;;iBAGE;EACf,kBAAkB,QAAQ;;;;;;;;;;EAU1B;;iBAGe,2BAA2B;EAC1C,WAAW,SAAS;;wBAGN,kBACd,UAAU,cACT,YAAY;;;;;iBAQE;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;;;;EAKA,WAAW;;EAEX;;iBAGe,mCACP,qBACN;EACF,QAAQ;EACR;EACA,cAAc,MAAM;;iBAGL,mCAAmC;EAClD,QAAQ;EACR"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/types.ts"],"mappings":";;;;;;iBAaiB;EACf;EACA;;;;;;iBAOe;EACf;EACA;;;;;;;iBAQe;EACf;EACA;;;;;;iBAOe;;EAEf;;EAEA;EACA,kBACE,aACA,OAAO,uBACJ,QAAQ;;;;;EAKb,iBACE,mBACA,OAAO,uBACJ,QAAQ;;iBAGE;EACf,kBAAkB,QAAQ;;;;;;;;;;EAU1B;;iBAGe,2BAA2B;EAC1C,WAAW,SAAS;;wBAGN,kBACd,UAAU,cACT,YAAY;;;;;iBAQE;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;;;;EAKA,WAAW;;EAEX;;iBAGe,mCACP,qBAAqB;EAC7B,QAAQ;EACR;EACA,cAAc,MAAM;;iBAGL,mCAAmC;EAClD,QAAQ;EACR"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../src/types.ts"],"sourcesContent":["import {\n ChainType,\n type LiFiStepExtended,\n type SDKProvider,\n type StepExecutorContext,\n type StepExecutorOptions,\n} from '@lifi/sdk'\n\n/**\n * Options passed to a wallet signing call. Mirrors the Stellar Wallets Kit\n * (`@creit.tech/stellar-wallets-kit`) signing surface so a widget adapter can\n * forward calls directly.\n */\nexport interface StellarSignOptions {\n networkPassphrase?: string\n address?: string\n}\n\n/**\n * Result of signing a transaction envelope — a base64 XDR string plus the\n * signer's public key. Matches the Stellar Wallets Kit `signTransaction` return.\n */\nexport interface StellarSignedTransaction {\n signedTxXdr: string\n signerAddress?: string\n}\n\n/**\n * Result of signing a Soroban authorization entry. Matches the Stellar Wallets\n * Kit `signAuthEntry` return. Not required for the router routes (source-account\n * auth), exposed for future-proofing.\n */\nexport interface StellarSignedAuthEntry {\n signedAuthEntry: string\n signerAddress?: string\n}\n\n/**\n * The minimal signer surface the SDK provider needs from a connected wallet.\n * The widget builds this adapter from the Stellar Wallets Kit instance.\n */\nexport interface StellarWallet {\n /** The connected G-address (source account). */\n address: string\n /** The network passphrase the wallet is expected to sign against. */\n networkPassphrase: string\n signTransaction: (\n xdr: string,\n opts?: StellarSignOptions\n ) => Promise<StellarSignedTransaction>\n /**\n * Optional: the router routes use source-account auth, so the SDK never calls\n * this. Present so an adapter can forward the Stellar Wallets Kit method.\n */\n signAuthEntry?: (\n authEntry: string,\n opts?: StellarSignOptions\n ) => Promise<StellarSignedAuthEntry>\n}\n\nexport interface StellarProviderOptions {\n getWallet?: () => Promise<StellarWallet>\n /**\n * Network passphrase for the Stellar network this provider targets.\n * Defaults to the public (mainnet) network.\n *\n * Balance reads follow this option alone. Signing prefers it and falls back\n * to the connected wallet's passphrase, and `StellarStepExecutor.checkWallet`\n * refuses to sign when the two disagree — so a wallet on a different network\n * fails before the user signs, while balances still read against the option.\n */\n networkPassphrase?: string\n}\n\nexport interface StellarSDKProvider extends SDKProvider {\n setOptions(options: StellarProviderOptions): void\n}\n\nexport function isStellarProvider(\n provider: SDKProvider\n): provider is StellarSDKProvider {\n return provider.type === ChainType.STL\n}\n\n/**\n * A SAC allowance an included leg of a Stellar route needs before the route can\n * be executed. Resolved by {@link resolveApprovalRequirement}.\n */\nexport interface StellarApprovalRequirement {\n /** Soroban `C`-address that calls `transfer_from` and so consumes the allowance. */\n spender: string\n /** SAC contract id of the token the allowance is written against. */\n tokenAddress: string\n /** Amount the allowance has to cover. */\n amount: bigint\n}\n\n/** Execution context passed between {@link StellarStepExecutor} tasks. */\nexport interface StellarTaskContext {\n /** Hash of the submitted route transaction. */\n transactionHash?: string\n /**\n * Resolved SAC allowance requirement, or `undefined` when no included leg\n * needs one. Set by `StellarCheckAllowanceTask`.\n */\n approval?: StellarApprovalRequirement\n /** Whether the sender's SAC allowance already covers {@link approval}. */\n hasSufficientAllowance?: boolean\n}\n\nexport interface StellarStepExecutorContext\n extends StepExecutorContext,\n StellarTaskContext {\n wallet: StellarWallet\n networkPassphrase: string\n checkWallet: (step: LiFiStepExtended) => void\n}\n\nexport interface StellarStepExecutorOptions extends StepExecutorOptions {\n wallet: StellarWallet\n networkPassphrase: string\n}\n"],"mappings":";;AA8EA,SAAgB,kBACd,UACgC;CAChC,OAAO,SAAS,SAAS,UAAU;AACrC"}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../src/types.ts"],"sourcesContent":["import {\n ChainType,\n type LiFiStepExtended,\n type SDKProvider,\n type StepExecutorContext,\n type StepExecutorOptions,\n} from '@lifi/sdk'\n\n/**\n * Options passed to a wallet signing call. Mirrors the Stellar Wallets Kit\n * (`@creit.tech/stellar-wallets-kit`) signing surface so a widget adapter can\n * forward calls directly.\n */\nexport interface StellarSignOptions {\n networkPassphrase?: string\n address?: string\n}\n\n/**\n * Result of signing a transaction envelope — a base64 XDR string plus the\n * signer's public key. Matches the Stellar Wallets Kit `signTransaction` return.\n */\nexport interface StellarSignedTransaction {\n signedTxXdr: string\n signerAddress?: string\n}\n\n/**\n * Result of signing a Soroban authorization entry. Matches the Stellar Wallets\n * Kit `signAuthEntry` return. Not required for the router routes (source-account\n * auth), exposed for future-proofing.\n */\nexport interface StellarSignedAuthEntry {\n signedAuthEntry: string\n signerAddress?: string\n}\n\n/**\n * The minimal signer surface the SDK provider needs from a connected wallet.\n * The widget builds this adapter from the Stellar Wallets Kit instance.\n */\nexport interface StellarWallet {\n /** The connected G-address (source account). */\n address: string\n /** The network passphrase the wallet is expected to sign against. */\n networkPassphrase: string\n signTransaction: (\n xdr: string,\n opts?: StellarSignOptions\n ) => Promise<StellarSignedTransaction>\n /**\n * Optional: the router routes use source-account auth, so the SDK never calls\n * this. Present so an adapter can forward the Stellar Wallets Kit method.\n */\n signAuthEntry?: (\n authEntry: string,\n opts?: StellarSignOptions\n ) => Promise<StellarSignedAuthEntry>\n}\n\nexport interface StellarProviderOptions {\n getWallet?: () => Promise<StellarWallet>\n /**\n * Network passphrase for the Stellar network this provider targets.\n * Defaults to the public (mainnet) network.\n *\n * Balance reads follow this option alone. Signing prefers it and falls back\n * to the connected wallet's passphrase, and `StellarStepExecutor.checkWallet`\n * refuses to sign when the two disagree — so a wallet on a different network\n * fails before the user signs, while balances still read against the option.\n */\n networkPassphrase?: string\n}\n\nexport interface StellarSDKProvider extends SDKProvider {\n setOptions(options: StellarProviderOptions): void\n}\n\nexport function isStellarProvider(\n provider: SDKProvider\n): provider is StellarSDKProvider {\n return provider.type === ChainType.STL\n}\n\n/**\n * A SAC allowance an included leg of a Stellar route needs before the route can\n * be executed. Resolved by {@link resolveApprovalRequirement}.\n */\nexport interface StellarApprovalRequirement {\n /** Soroban `C`-address that calls `transfer_from` and so consumes the allowance. */\n spender: string\n /** SAC contract id of the token the allowance is written against. */\n tokenAddress: string\n /** Amount the allowance has to cover. */\n amount: bigint\n}\n\n/** Execution context passed between {@link StellarStepExecutor} tasks. */\nexport interface StellarTaskContext {\n /** Hash of the submitted route transaction. */\n transactionHash?: string\n /**\n * Resolved SAC allowance requirement, or `undefined` when no included leg\n * needs one. Set by `StellarCheckAllowanceTask`.\n */\n approval?: StellarApprovalRequirement\n /** Whether the sender's SAC allowance already covers {@link approval}. */\n hasSufficientAllowance?: boolean\n}\n\nexport interface StellarStepExecutorContext\n extends StepExecutorContext, StellarTaskContext {\n wallet: StellarWallet\n networkPassphrase: string\n checkWallet: (step: LiFiStepExtended) => void\n}\n\nexport interface StellarStepExecutorOptions extends StepExecutorOptions {\n wallet: StellarWallet\n networkPassphrase: string\n}\n"],"mappings":";;AA8EA,SAAgB,kBACd,UACgC;CAChC,OAAO,SAAS,SAAS,UAAU;AACrC"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@lifi/sdk-provider-stellar";
2
- export declare const version = "0.0.0-preview-c996a5fb";
2
+ export declare const version = "0.0.0-preview-9b9526be";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  const name = "@lifi/sdk-provider-stellar";
3
- const version = "0.0.0-preview-c996a5fb";
3
+ const version = "0.0.0-preview-9b9526be";
4
4
  export { name, version };
5
5
 
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk-provider-stellar'\nexport const version = '0.0.0-preview-c996a5fb'\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
1
+ {"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk-provider-stellar'\nexport const version = '0.0.0-preview-9b9526be'\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/sdk-provider-stellar",
3
- "version": "0.0.0-preview-c996a5fb",
3
+ "version": "0.0.0-preview-9b9526be",
4
4
  "description": "LI.FI Stellar SDK Provider for Any-to-Any Cross-Chain-Swap",
5
5
  "homepage": "https://github.com/lifinance/sdk",
6
6
  "bugs": {
@@ -28,7 +28,7 @@
28
28
  "./package.json": "./package.json"
29
29
  },
30
30
  "dependencies": {
31
- "@lifi/sdk": "0.0.0-preview-c996a5fb",
31
+ "@lifi/sdk": "0.0.0-preview-9b9526be",
32
32
  "@stellar/stellar-sdk": "^17.4.0"
33
33
  },
34
34
  "publishConfig": {
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
- // biome-ignore lint/performance/noBarrelFile: module entrypoint
2
1
  export {
3
2
  DEFAULT_NETWORK_PASSPHRASE,
4
3
  StellarProvider,
package/src/types.ts CHANGED
@@ -109,8 +109,7 @@ export interface StellarTaskContext {
109
109
  }
110
110
 
111
111
  export interface StellarStepExecutorContext
112
- extends StepExecutorContext,
113
- StellarTaskContext {
112
+ extends StepExecutorContext, StellarTaskContext {
114
113
  wallet: StellarWallet
115
114
  networkPassphrase: string
116
115
  checkWallet: (step: LiFiStepExtended) => void
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/sdk-provider-stellar'
2
- export const version = '0.0.0-preview-c996a5fb'
2
+ export const version = '0.0.0-preview-9b9526be'