@xoxno/sdk-js 1.0.126 → 1.0.129

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/README.md CHANGED
@@ -290,9 +290,6 @@ sdk.collection.drops.search(...); // CollectionMintProfilePaginated
290
290
  // GET /collection/:collection/analytics/volume
291
291
  sdk.collection.collection("...").analytics.volume(...); // AnalyticsVolumeDto[]
292
292
 
293
- // GET /collections/analytics/volume
294
- sdk.collections.analytics.volume(...); // Record<string, AnalyticsVolumeDto[]>
295
-
296
293
  // GET /countries
297
294
  sdk.countries(...); // string[]
298
295
 
@@ -418,9 +418,7 @@ declare const endpoints: {
418
418
  readonly output: LendingAccountProfile[];
419
419
  };
420
420
  readonly "/lending/market/indexes": {
421
- readonly input: {
422
- chain?: ActivityChain[];
423
- };
421
+ readonly input: {};
424
422
  readonly output: Record<string, LendingIndexesDto>;
425
423
  };
426
424
  readonly "/user/lending/position/:identifier": {
@@ -1179,16 +1177,6 @@ declare const endpoints: {
1179
1177
  };
1180
1178
  readonly output: AnalyticsVolumeDto[];
1181
1179
  };
1182
- readonly "/collections/analytics/volume": {
1183
- readonly input: {
1184
- collections: string;
1185
- startTime?: string;
1186
- endTime?: string;
1187
- bin?: string;
1188
- chain: ActivityChain[];
1189
- };
1190
- readonly output: Record<string, AnalyticsVolumeDto[]>;
1191
- };
1192
1180
  readonly "/user/:address/analytics/volume": {
1193
1181
  readonly input: {};
1194
1182
  readonly output: UserAnalyticsDto;
@@ -2243,6 +2231,14 @@ export interface StellarBorrowBatchArgs {
2243
2231
  export interface StellarWithdrawBatchArgs {
2244
2232
  accountNonce: number;
2245
2233
  withdrawals: ReadonlyArray<StellarTokenAmount>;
2234
+ /**
2235
+ * Optional recipient override (`C...` or `G...`). The pool pays the
2236
+ * withdrawn tokens to this address instead of the caller. Omit for the
2237
+ * standard flow — the contract arg is still sent, encoded as
2238
+ * `Option::None` (ScVal void), which the controller resolves to the
2239
+ * caller.
2240
+ */
2241
+ to?: string;
2246
2242
  }
2247
2243
  export interface StellarRepayBatchArgs {
2248
2244
  accountNonce: number;
@@ -2264,7 +2260,9 @@ export declare function buildStellarBorrowBatchTx(opts: StellarBuilderOptions, a
2264
2260
  export declare function buildStellarBorrowTx(opts: StellarBuilderOptions, args: BorrowArgs): BuiltStellarTx;
2265
2261
  export declare function buildStellarWithdrawBatchTx(opts: StellarBuilderOptions, args: StellarWithdrawBatchArgs): BuiltStellarTx;
2266
2262
  /**
2267
- * withdraw(caller, account_id: u64, withdrawals: Vec<(Address, i128)>)
2263
+ * withdraw(caller, account_id: u64, withdrawals: Vec<(Address, i128)>,
2264
+ * to: Option<Address>) — `to` is always sent; absent means the caller
2265
+ * receives the funds.
2268
2266
  */
2269
2267
  export declare function buildStellarWithdrawTx(opts: StellarBuilderOptions, args: WithdrawArgs): BuiltStellarTx;
2270
2268
  export declare function buildStellarRepayBatchTx(opts: StellarBuilderOptions, args: StellarRepayBatchArgs): BuiltStellarTx;
@@ -418,9 +418,7 @@ declare const endpoints: {
418
418
  readonly output: LendingAccountProfile[];
419
419
  };
420
420
  readonly "/lending/market/indexes": {
421
- readonly input: {
422
- chain?: ActivityChain[];
423
- };
421
+ readonly input: {};
424
422
  readonly output: Record<string, LendingIndexesDto>;
425
423
  };
426
424
  readonly "/user/lending/position/:identifier": {
@@ -1179,16 +1177,6 @@ declare const endpoints: {
1179
1177
  };
1180
1178
  readonly output: AnalyticsVolumeDto[];
1181
1179
  };
1182
- readonly "/collections/analytics/volume": {
1183
- readonly input: {
1184
- collections: string;
1185
- startTime?: string;
1186
- endTime?: string;
1187
- bin?: string;
1188
- chain: ActivityChain[];
1189
- };
1190
- readonly output: Record<string, AnalyticsVolumeDto[]>;
1191
- };
1192
1180
  readonly "/user/:address/analytics/volume": {
1193
1181
  readonly input: {};
1194
1182
  readonly output: UserAnalyticsDto;
@@ -2243,6 +2231,14 @@ export interface StellarBorrowBatchArgs {
2243
2231
  export interface StellarWithdrawBatchArgs {
2244
2232
  accountNonce: number;
2245
2233
  withdrawals: ReadonlyArray<StellarTokenAmount>;
2234
+ /**
2235
+ * Optional recipient override (`C...` or `G...`). The pool pays the
2236
+ * withdrawn tokens to this address instead of the caller. Omit for the
2237
+ * standard flow — the contract arg is still sent, encoded as
2238
+ * `Option::None` (ScVal void), which the controller resolves to the
2239
+ * caller.
2240
+ */
2241
+ to?: string;
2246
2242
  }
2247
2243
  export interface StellarRepayBatchArgs {
2248
2244
  accountNonce: number;
@@ -2264,7 +2260,9 @@ export declare function buildStellarBorrowBatchTx(opts: StellarBuilderOptions, a
2264
2260
  export declare function buildStellarBorrowTx(opts: StellarBuilderOptions, args: BorrowArgs): BuiltStellarTx;
2265
2261
  export declare function buildStellarWithdrawBatchTx(opts: StellarBuilderOptions, args: StellarWithdrawBatchArgs): BuiltStellarTx;
2266
2262
  /**
2267
- * withdraw(caller, account_id: u64, withdrawals: Vec<(Address, i128)>)
2263
+ * withdraw(caller, account_id: u64, withdrawals: Vec<(Address, i128)>,
2264
+ * to: Option<Address>) — `to` is always sent; absent means the caller
2265
+ * receives the funds.
2268
2266
  */
2269
2267
  export declare function buildStellarWithdrawTx(opts: StellarBuilderOptions, args: WithdrawArgs): BuiltStellarTx;
2270
2268
  export declare function buildStellarRepayBatchTx(opts: StellarBuilderOptions, args: StellarRepayBatchArgs): BuiltStellarTx;