@xoxno/sdk-js 1.0.222 → 1.0.224

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 (39) hide show
  1. package/dist/cjs/sdk/stellar/__tests__/admin.test.d.ts +0 -12
  2. package/dist/cjs/sdk/stellar/__tests__/builders-hubasset.test.d.ts +0 -11
  3. package/dist/cjs/sdk/stellar/__tests__/governance.test.d.ts +0 -4
  4. package/dist/cjs/sdk/stellar/__tests__/lending.test.d.ts +0 -20
  5. package/dist/cjs/sdk/stellar/__tests__/strategy-program.test.d.ts +0 -8
  6. package/dist/cjs/sdk/stellar/__tests__/swap-history.test.d.ts +1 -0
  7. package/dist/cjs/sdk/stellar/admin.d.ts +0 -12
  8. package/dist/cjs/sdk/stellar/governance.d.ts +0 -4
  9. package/dist/cjs/sdk/stellar/index.d.ts +1 -0
  10. package/dist/cjs/sdk/stellar/quote.d.ts +0 -8
  11. package/dist/cjs/sdk/stellar/scval-encode.d.ts +0 -4
  12. package/dist/cjs/sdk/stellar/swap-history.d.ts +25 -0
  13. package/dist/cjs/sdk/stellar/swap-index.d.ts +2 -0
  14. package/dist/cjs/sdk/stellar/swap.d.ts +0 -10
  15. package/dist/cjs/sdk/stellar/xdr-compat.d.ts +11 -0
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.esm.js +1 -1
  18. package/dist/sdk/stellar/__tests__/admin.test.d.ts +0 -12
  19. package/dist/sdk/stellar/__tests__/builders-hubasset.test.d.ts +0 -11
  20. package/dist/sdk/stellar/__tests__/governance.test.d.ts +0 -4
  21. package/dist/sdk/stellar/__tests__/lending.test.d.ts +0 -20
  22. package/dist/sdk/stellar/__tests__/strategy-program.test.d.ts +0 -8
  23. package/dist/sdk/stellar/__tests__/swap-history.test.d.ts +1 -0
  24. package/dist/sdk/stellar/admin.d.ts +0 -12
  25. package/dist/sdk/stellar/governance.d.ts +0 -4
  26. package/dist/sdk/stellar/index.cjs +1 -1
  27. package/dist/sdk/stellar/index.d.ts +1 -0
  28. package/dist/sdk/stellar/index.esm.js +1 -1
  29. package/dist/sdk/stellar/quote.d.ts +0 -8
  30. package/dist/sdk/stellar/scval-encode.d.ts +0 -4
  31. package/dist/sdk/stellar/swap-history.d.ts +25 -0
  32. package/dist/sdk/stellar/swap-index.cjs +2 -0
  33. package/dist/sdk/stellar/swap-index.cjs.LICENSE.txt +8 -0
  34. package/dist/sdk/stellar/swap-index.d.ts +2 -0
  35. package/dist/sdk/stellar/swap-index.esm.js +2 -0
  36. package/dist/sdk/stellar/swap-index.esm.js.LICENSE.txt +8 -0
  37. package/dist/sdk/stellar/swap.d.ts +0 -10
  38. package/dist/sdk/stellar/xdr-compat.d.ts +11 -0
  39. package/package.json +15 -4
@@ -1,13 +1 @@
1
- /**
2
- * Snapshot + structural tests for the Stellar lending admin / config / keeper /
3
- * access transaction builders.
4
- *
5
- * Beyond the function-name / arg-count / determinism / snapshot guards, this
6
- * suite decodes the complex `#[contracttype]` struct args
7
- * (`MarketOracleConfigInput`, `AssetConfigRaw`) back out of the XDR and asserts
8
- * the ScMap keys are ascending-sorted (the Soroban host requires sorted symbol
9
- * keys) and that the oracle union / custom-option tags are well-formed. For the
10
- * all-lowercase snake_case field sets used here, JS lexicographic order matches
11
- * Soroban's symbol collation.
12
- */
13
1
  export {};
@@ -1,12 +1 @@
1
- /**
2
- * Multi-hub ABI encoding tests for the Stellar lending builders.
3
- *
4
- * Asserts the on-the-wire ScVal shape after the migration from the old
5
- * `(Address, i128)` + `e_mode_category` ABI to the multi-hub
6
- * `(HubAssetKey, i128)` + `spoke_id` ABI:
7
- * - `supply` carries `spoke_id` as a `u32` and a `Vec<(HubAssetKey, i128)>`.
8
- * - each `HubAssetKey` is a struct/map whose symbol keys are sorted
9
- * (`asset`, `hub_id`) — the canonical Soroban `#[contracttype]` layout.
10
- * - `borrow` carries the same `Vec<(HubAssetKey, i128)>` payload.
11
- */
12
1
  export {};
@@ -1,5 +1 @@
1
- /**
2
- * Snapshot + structural tests for governance `propose_*` transaction builders
3
- * used by the admin dashboard (timelock proposals).
4
- */
5
1
  export {};
@@ -1,21 +1 @@
1
- /**
2
- * Snapshot + sanity tests for the Stellar Soroban lending transaction builders.
3
- *
4
- * These tests assert:
5
- * 1. Every builder returns a non-empty base64 XDR.
6
- * 2. XDR parses back into a valid Transaction with exactly one InvokeHostFunction
7
- * operation targeting the configured controller contract.
8
- * 3. The function name encoded in the XDR matches the Stellar controller
9
- * entry point exactly (`supply`, `borrow`, `withdraw`, `repay`,
10
- * `liquidate`, `flash_loan`, `multiply`, `swap_debt`, `swap_collateral`,
11
- * `repay_debt_with_collateral`).
12
- * 4. The XDR is deterministic — identical fixture inputs yield identical XDR.
13
- * 5. Stable snapshots for the full XDR of every builder (regression guard
14
- * for any unintended encoding change).
15
- *
16
- * Builders are RPC-free — they accept a `sourceSequence` so output is
17
- * fully deterministic and snapshot-testable. The UI layer is responsible
18
- * for fetching the sequence and running `rpc.Server.prepareTransaction`
19
- * before signing.
20
- */
21
1
  export {};
@@ -1,9 +1 @@
1
- /**
2
- * Cross-language wire-format check for the aggregator's packed strategy program.
3
- *
4
- * The same fixtures are asserted byte-for-byte in
5
- * `contracts/swap-aggregator/tests/unit/payload_wire_format.rs` and
6
- * `arb-algo/stellar-indexer/src/transaction/abi.rs`. If this file and those
7
- * diverge, routes built by this SDK will be rejected on-chain.
8
- */
9
1
  export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -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)) */