@xoxno/sdk-js 1.0.222 → 1.0.223

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.
@@ -27,8 +27,6 @@ export declare const encodePriceKey: (key: StellarPriceKey | Record<string, stri
27
27
  * upper/lower bps (lower is derived as reciprocal when only bps is given).
28
28
  */
29
29
  export declare const encodeAssetOracle: (cfg: AssetOracleConfigInputDto | StellarAssetOracle | Record<string, unknown>) => xdr.ScVal;
30
- /** @deprecated Use {@link encodeAssetOracle}. */
31
- export declare const encodeMarketOracleConfigInput: (cfg: AssetOracleConfigInputDto | StellarAssetOracle | Record<string, unknown>) => xdr.ScVal;
32
30
  export interface RoleGrantArgs {
33
31
  account: string;
34
32
  role: string;
@@ -39,8 +37,6 @@ export interface TransferOwnershipArgs {
39
37
  }
40
38
  /** Governance / aggregator `ConfigureAssetOracle` args. */
41
39
  export type ConfigureAssetOracleArgs = ConfigureAssetOracleArgsDto;
42
- /** @deprecated Alias — use ConfigureAssetOracleArgs. */
43
- export type ConfigureMarketOracleArgs = ConfigureAssetOracleArgs;
44
40
  /** Edit dual-source tolerance (PriceKey + bps). */
45
41
  export type EditOracleToleranceArgs = EditOracleToleranceArgsDto;
46
42
  export interface CreateLiquidityPoolArgs {
@@ -90,8 +86,6 @@ export declare function buildStellarSetSwapAggregatorTx(opts: StellarLendingBuil
90
86
  export declare function buildStellarSetPriceAggregatorTx(opts: StellarLendingBuilderOptions, args: {
91
87
  aggregator: string;
92
88
  }): BuiltStellarTx;
93
- /** @deprecated Use buildStellarSetSwapAggregatorTx. */
94
- export declare const buildStellarSetAggregatorTx: typeof buildStellarSetSwapAggregatorTx;
95
89
  /** set_accumulator(addr: Address) — #[only_owner] */
96
90
  export declare function buildStellarSetAccumulatorTx(opts: StellarLendingBuilderOptions, args: {
97
91
  accumulator: string;
@@ -106,18 +100,12 @@ export declare function buildStellarApproveBlendPoolTx(opts: StellarLendingBuild
106
100
  export declare function buildStellarRevokeBlendPoolTx(opts: StellarLendingBuilderOptions, args: {
107
101
  pool: string;
108
102
  }): BuiltStellarTx;
109
- /** @deprecated Use buildStellarApproveBlendPoolTx. */
110
- export declare const buildStellarApproveTokenTx: typeof buildStellarApproveBlendPoolTx;
111
- /** @deprecated Use buildStellarRevokeBlendPoolTx. */
112
- export declare const buildStellarRevokeTokenTx: typeof buildStellarRevokeBlendPoolTx;
113
103
  /**
114
104
  * Direct price-aggregator `set_oracle(key, oracle)` — owner only (governance
115
105
  * contract address as tx source after deploy). Prefer governance propose path
116
106
  * in production.
117
107
  */
118
108
  export declare function buildStellarSetOracleTx(opts: StellarLendingBuilderOptions, args: ConfigureAssetOracleArgs): BuiltStellarTx;
119
- /** @deprecated Use buildStellarSetOracleTx. */
120
- export declare const buildStellarSetMarketOracleConfigTx: typeof buildStellarSetOracleTx;
121
109
  /** price-aggregator `set_tolerance(key, OracleTolerance)` — owner only. */
122
110
  export declare function buildStellarSetOracleToleranceTx(opts: StellarLendingBuilderOptions, args: EditOracleToleranceArgs & {
123
111
  upperRatioBps?: number;
@@ -113,8 +113,6 @@ export declare function buildStellarProposeSetSwapAggregatorTx(opts: StellarGove
113
113
  export declare function buildStellarProposeSetPriceAggregatorTx(opts: StellarGovernanceBuilderOptions, args: {
114
114
  aggregator: string;
115
115
  }, salt: StellarGovernanceSalt): BuiltStellarTx;
116
- /** @deprecated Use buildStellarProposeSetSwapAggregatorTx. */
117
- export declare const buildStellarProposeSetAggregatorTx: typeof buildStellarProposeSetSwapAggregatorTx;
118
116
  /** propose(SetAccumulator(addr)) */
119
117
  export declare function buildStellarProposeSetAccumulatorTx(opts: StellarGovernanceBuilderOptions, args: {
120
118
  accumulator: string;
@@ -187,8 +185,6 @@ export declare function buildStellarProposeTransferCtrlOwnershipTx(opts: Stellar
187
185
  * Token keys at propose time.
188
186
  */
189
187
  export declare function buildStellarProposeConfigureAssetOracleTx(opts: StellarGovernanceBuilderOptions, args: ConfigureAssetOracleArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
190
- /** @deprecated Use buildStellarProposeConfigureAssetOracleTx. */
191
- export declare const buildStellarProposeConfigureMarketOracleTx: typeof buildStellarProposeConfigureAssetOracleTx;
192
188
  /** propose(EditOracleTolerance(EditToleranceArgs)) */
193
189
  export declare function buildStellarProposeEditOracleToleranceTx(opts: StellarGovernanceBuilderOptions, args: EditOracleToleranceProposalArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
194
190
  /** propose(UpgradeGov(hash)) */
@@ -31,14 +31,6 @@ export interface StellarQuoteToken {
31
31
  pool?: string | null;
32
32
  /** LP only: constituent token ids in pool order. */
33
33
  assets?: string[] | null;
34
- /** @deprecated Not returned by the service; always `undefined`. */
35
- kind?: never;
36
- /** @deprecated Not returned by the service; always `undefined`. */
37
- sacPeer?: never;
38
- /** @deprecated Not returned by the service; always `undefined`. */
39
- code?: never;
40
- /** @deprecated Not returned by the service; always `undefined`. */
41
- degree?: never;
42
34
  }
43
35
  /** Liquidity snapshot the route was searched against. */
44
36
  export interface StellarQuoteSnapshot {
@@ -161,8 +161,6 @@ export declare const scStruct: (fields: Record<string, xdr.ScVal>) => xdr.ScVal;
161
161
  * callers that construct routes locally.
162
162
  */
163
163
  export declare const encodeStrategyPayload: (payload: StellarStrategyPayloadInput) => xdr.ScVal;
164
- /** @deprecated Use `encodeStrategyPayload`. */
165
- export declare const encodeAggregatorSwap: (payload: StellarStrategyPayloadInput) => xdr.ScVal;
166
164
  export declare const encodeStrategyPayloadToBytes: (payload: StellarStrategyPayloadInput) => xdr.ScVal;
167
165
  /**
168
166
  * Validate the untyped `steps` field and narrow it to `StrategyPayload`.
@@ -185,8 +183,6 @@ export declare const emptyStrategySwapBytes: () => xdr.ScVal;
185
183
  * - decoded `StrategyPayload` object
186
184
  */
187
185
  export declare const asStellarStrategySwapBytes: (steps: unknown) => xdr.ScVal;
188
- /** @deprecated Use `asStellarStrategyPayload` or `asStellarStrategySwapBytes`. */
189
- export declare const asStellarSwapSteps: (steps: unknown) => StellarStrategyPayloadInput;
190
186
  /**
191
187
  * Validate the untyped `data` field on FlashLoanArgs and narrow it to
192
188
  * Buffer / hex string for Soroban `Bytes` encoding.
@@ -53,9 +53,6 @@ export interface StellarExecuteStrategyBuilderOptions extends StellarBuilderOpti
53
53
  */
54
54
  referralId?: number | string;
55
55
  }
56
- /** @deprecated Use `StellarExecuteStrategyBuilderOptions`. */
57
- export interface StellarBatchSwapBuilderOptions extends StellarExecuteStrategyBuilderOptions {
58
- }
59
56
  export declare const encodeStrategyPayloadToRouteXdr: (payload: StellarStrategyPayloadInput) => string;
60
57
  /**
61
58
  * Build an unsigned XDR for a direct user -> aggregator router swap.
@@ -65,11 +62,6 @@ export declare const encodeStrategyPayloadToRouteXdr: (payload: StellarStrategyP
65
62
  * custom route builders.
66
63
  */
67
64
  export declare function buildStellarExecuteStrategyTx(opts: StellarExecuteStrategyBuilderOptions, swap: StellarStrategySwapInput): BuiltStellarTx;
68
- /**
69
- * @deprecated The router no longer exposes `batch_execute`; this wrapper now
70
- * builds `execute_strategy(sender, total_in, swap_xdr)`.
71
- */
72
- export declare function buildStellarBatchSwapTx(opts: StellarBatchSwapBuilderOptions, swap: StellarStrategySwapInput): BuiltStellarTx;
73
65
  /**
74
66
  * Translate a quote-server response into the decoded `StrategyPayload` shape.
75
67
  * Prefer `mapQuoteResponseToStrategySwap` when the quote includes `routeXdr`.
@@ -85,5 +77,3 @@ export declare function mapQuoteResponseToStrategyPayload(quote: StellarAggregat
85
77
  * @throws StellarRouteVerificationError — never sign a quote that throws here.
86
78
  */
87
79
  export declare function mapQuoteResponseToStrategySwap(quote: StellarAggregatorQuoteResponseDto, opts?: StellarQuoteMapOptions): StellarStrategySwapInput;
88
- /** @deprecated Use `mapQuoteResponseToStrategyPayload`. */
89
- export declare const mapQuoteResponseToAggregatorSwap: typeof mapQuoteResponseToStrategyPayload;