@xoxno/sdk-js 1.0.117 → 1.0.119
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/dist/index.bundled.d.cts +9 -39
- package/dist/index.bundled.d.ts +9 -39
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/sdk/stellar/__tests__/admin.test.d.ts +9 -10
- package/dist/sdk/stellar/__tests__/decode.test.d.ts +4 -7
- package/dist/sdk/stellar/__tests__/id.test.d.ts +1 -7
- package/dist/sdk/stellar/admin.d.ts +2 -10
- package/dist/sdk/stellar/events/decode.d.ts +10 -19
- package/dist/sdk/stellar/events/id.d.ts +5 -11
- package/dist/sdk/stellar/lending.d.ts +15 -60
- package/dist/sdk/stellar/scval-encode.d.ts +7 -19
- package/package.json +2 -2
package/dist/index.bundled.d.cts
CHANGED
|
@@ -2160,36 +2160,12 @@ export interface BuiltStellarTx {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
/**
|
|
2162
2162
|
* Input shape for the Stellar-specific `swap` payload carried on
|
|
2163
|
-
* `MultiplyArgs.steps`, `SwapDebtArgs.steps`, `SwapCollateralArgs.steps`,
|
|
2163
|
+
* `MultiplyArgs.steps`, `SwapDebtArgs.steps`, `SwapCollateralArgs.steps`, and
|
|
2164
2164
|
* `RepayDebtWithCollateralArgs.steps`.
|
|
2165
2165
|
*
|
|
2166
|
-
*
|
|
2167
|
-
*
|
|
2168
|
-
*
|
|
2169
|
-
* `AggregatorSwap` struct from `rs-lending-xlm common/src/types.rs`:
|
|
2170
|
-
*
|
|
2171
|
-
* pub struct SwapHop {
|
|
2172
|
-
* pub fee_bps: u32,
|
|
2173
|
-
* pub pool: Address,
|
|
2174
|
-
* pub token_in: Address,
|
|
2175
|
-
* pub token_out: Address,
|
|
2176
|
-
* pub venue: SwapVenue, // tag-only enum
|
|
2177
|
-
* }
|
|
2178
|
-
* pub struct SwapPath {
|
|
2179
|
-
* pub amount_in: i128,
|
|
2180
|
-
* pub hops: Vec<SwapHop>,
|
|
2181
|
-
* pub min_amount_out: i128,
|
|
2182
|
-
* }
|
|
2183
|
-
* pub struct AggregatorSwap { // controller payload
|
|
2184
|
-
* pub paths: Vec<SwapPath>,
|
|
2185
|
-
* pub total_min_out: i128,
|
|
2186
|
-
* }
|
|
2187
|
-
*
|
|
2188
|
-
* The controller wraps `AggregatorSwap` in `BatchSwap` (filling
|
|
2189
|
-
* `sender = current_contract_address`) before forwarding to the router.
|
|
2190
|
-
*
|
|
2191
|
-
* Re-exported from this module so consumers can `import { StellarSwapStepsInput }`
|
|
2192
|
-
* and get the canonical typed shape without reaching into `@xoxno/types`.
|
|
2166
|
+
* `@xoxno/types` declares `steps: unknown` on these DTOs so every chain owns its
|
|
2167
|
+
* own encoding. On Stellar, callers must pass an `AggregatorSwapDto`, which is
|
|
2168
|
+
* serialised into the Soroban `AggregatorSwap` struct.
|
|
2193
2169
|
*/
|
|
2194
2170
|
export type StellarSwapStepsInput = AggregatorSwapDto;
|
|
2195
2171
|
export type StellarSwapHopInput = SwapHopDto;
|
|
@@ -2442,18 +2418,12 @@ export declare const STELLAR_LENDING_TOPICS: readonly string[];
|
|
|
2442
2418
|
*/
|
|
2443
2419
|
export declare function decodeStellarLendingEvent(topicsB64: readonly string[], dataB64: string): StellarLendingDecodedEvent | null;
|
|
2444
2420
|
/**
|
|
2445
|
-
* Stellar lending activity-id derivation
|
|
2446
|
-
*
|
|
2447
|
-
*
|
|
2448
|
-
* Both indexing consumers (xoxno-api-v2, xoxno-az-functions) MUST derive these
|
|
2449
|
-
* inputs here so the activity ids they write to `NFT_ACTIVITY_DATA` are
|
|
2450
|
-
* byte-identical — the hard gate for consolidating activity indexing into a
|
|
2451
|
-
* single producer. Ported verbatim from api-v2's `stellar-lending-activity.mapper`.
|
|
2421
|
+
* Stellar lending activity-id derivation: the inputs that compose
|
|
2422
|
+
* `NftActivityDoc.id` (`${txHash}-${eventIdentifier}-${eventOrder}`).
|
|
2452
2423
|
*
|
|
2453
|
-
* The activity-type string values mirror `@xoxno/types` `XoxnoLendingActivity
|
|
2454
|
-
*
|
|
2455
|
-
*
|
|
2456
|
-
* module out of its runtime bundle.
|
|
2424
|
+
* The activity-type string values mirror `@xoxno/types` `XoxnoLendingActivity`,
|
|
2425
|
+
* inlined rather than imported since `@xoxno/types` does not re-export its enums
|
|
2426
|
+
* on its top-level type surface.
|
|
2457
2427
|
*/
|
|
2458
2428
|
/** Synthetic NFT collection ticker for Stellar lending accounts. */
|
|
2459
2429
|
export declare const XOXNO_LENDING_STELLAR_TICKER = "XLENDXLM-a7c9f3";
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -2160,36 +2160,12 @@ export interface BuiltStellarTx {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
/**
|
|
2162
2162
|
* Input shape for the Stellar-specific `swap` payload carried on
|
|
2163
|
-
* `MultiplyArgs.steps`, `SwapDebtArgs.steps`, `SwapCollateralArgs.steps`,
|
|
2163
|
+
* `MultiplyArgs.steps`, `SwapDebtArgs.steps`, `SwapCollateralArgs.steps`, and
|
|
2164
2164
|
* `RepayDebtWithCollateralArgs.steps`.
|
|
2165
2165
|
*
|
|
2166
|
-
*
|
|
2167
|
-
*
|
|
2168
|
-
*
|
|
2169
|
-
* `AggregatorSwap` struct from `rs-lending-xlm common/src/types.rs`:
|
|
2170
|
-
*
|
|
2171
|
-
* pub struct SwapHop {
|
|
2172
|
-
* pub fee_bps: u32,
|
|
2173
|
-
* pub pool: Address,
|
|
2174
|
-
* pub token_in: Address,
|
|
2175
|
-
* pub token_out: Address,
|
|
2176
|
-
* pub venue: SwapVenue, // tag-only enum
|
|
2177
|
-
* }
|
|
2178
|
-
* pub struct SwapPath {
|
|
2179
|
-
* pub amount_in: i128,
|
|
2180
|
-
* pub hops: Vec<SwapHop>,
|
|
2181
|
-
* pub min_amount_out: i128,
|
|
2182
|
-
* }
|
|
2183
|
-
* pub struct AggregatorSwap { // controller payload
|
|
2184
|
-
* pub paths: Vec<SwapPath>,
|
|
2185
|
-
* pub total_min_out: i128,
|
|
2186
|
-
* }
|
|
2187
|
-
*
|
|
2188
|
-
* The controller wraps `AggregatorSwap` in `BatchSwap` (filling
|
|
2189
|
-
* `sender = current_contract_address`) before forwarding to the router.
|
|
2190
|
-
*
|
|
2191
|
-
* Re-exported from this module so consumers can `import { StellarSwapStepsInput }`
|
|
2192
|
-
* and get the canonical typed shape without reaching into `@xoxno/types`.
|
|
2166
|
+
* `@xoxno/types` declares `steps: unknown` on these DTOs so every chain owns its
|
|
2167
|
+
* own encoding. On Stellar, callers must pass an `AggregatorSwapDto`, which is
|
|
2168
|
+
* serialised into the Soroban `AggregatorSwap` struct.
|
|
2193
2169
|
*/
|
|
2194
2170
|
export type StellarSwapStepsInput = AggregatorSwapDto;
|
|
2195
2171
|
export type StellarSwapHopInput = SwapHopDto;
|
|
@@ -2442,18 +2418,12 @@ export declare const STELLAR_LENDING_TOPICS: readonly string[];
|
|
|
2442
2418
|
*/
|
|
2443
2419
|
export declare function decodeStellarLendingEvent(topicsB64: readonly string[], dataB64: string): StellarLendingDecodedEvent | null;
|
|
2444
2420
|
/**
|
|
2445
|
-
* Stellar lending activity-id derivation
|
|
2446
|
-
*
|
|
2447
|
-
*
|
|
2448
|
-
* Both indexing consumers (xoxno-api-v2, xoxno-az-functions) MUST derive these
|
|
2449
|
-
* inputs here so the activity ids they write to `NFT_ACTIVITY_DATA` are
|
|
2450
|
-
* byte-identical — the hard gate for consolidating activity indexing into a
|
|
2451
|
-
* single producer. Ported verbatim from api-v2's `stellar-lending-activity.mapper`.
|
|
2421
|
+
* Stellar lending activity-id derivation: the inputs that compose
|
|
2422
|
+
* `NftActivityDoc.id` (`${txHash}-${eventIdentifier}-${eventOrder}`).
|
|
2452
2423
|
*
|
|
2453
|
-
* The activity-type string values mirror `@xoxno/types` `XoxnoLendingActivity
|
|
2454
|
-
*
|
|
2455
|
-
*
|
|
2456
|
-
* module out of its runtime bundle.
|
|
2424
|
+
* The activity-type string values mirror `@xoxno/types` `XoxnoLendingActivity`,
|
|
2425
|
+
* inlined rather than imported since `@xoxno/types` does not re-export its enums
|
|
2426
|
+
* on its top-level type surface.
|
|
2457
2427
|
*/
|
|
2458
2428
|
/** Synthetic NFT collection ticker for Stellar lending accounts. */
|
|
2459
2429
|
export declare const XOXNO_LENDING_STELLAR_TICKER = "XLENDXLM-a7c9f3";
|