@pendle/sdk-boros 0.3.18 → 0.3.19

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.
@@ -301,34 +301,6 @@ export interface BulkPlaceOrderQueryDto {
301
301
  desiredMatchRate: number;
302
302
  tif: 0 | 1 | 2 | 3;
303
303
  }
304
- export interface PendleSignTxDto {
305
- account: string;
306
- connectionId: string;
307
- nonce: string;
308
- }
309
- export interface AgentExecuteDto {
310
- agent: string;
311
- message: PendleSignTxDto;
312
- signature: string;
313
- calldata: string;
314
- }
315
- export interface TxResponse {
316
- status: string;
317
- txHash: string;
318
- index: number;
319
- error?: string;
320
- }
321
- export interface BulkAgentExecuteDto {
322
- datas: AgentExecuteDto[];
323
- }
324
- export interface ApproveAgentQueryDto {
325
- setAccountManagerCalldata?: string;
326
- approveAgentCalldata: string;
327
- }
328
- export interface ApproveAgentResponse {
329
- setAccountManagerResult?: TxResponse;
330
- approveAgentResult: TxResponse;
331
- }
332
304
  export interface SettingsByMarketResponse {
333
305
  marketId: number;
334
306
  crossLeverage?: number;
@@ -350,7 +322,7 @@ export interface PnlTransactionResponse {
350
322
  marketId: number;
351
323
  time: number;
352
324
  side: 0 | 1;
353
- txType: "normal" | "liquidate" | "force_deleverage";
325
+ txType: 'normal' | 'liquidate' | 'force_deleverage';
354
326
  tradeDirection: 0 | 1 | 2;
355
327
  notionalSize: string;
356
328
  tradeValue: string;
@@ -397,7 +369,7 @@ export interface LimitOrdersResponse {
397
369
  total: number;
398
370
  }
399
371
  export interface FundLocationResponse {
400
- fundType: "wallet" | "cross_account" | "isolated_account";
372
+ fundType: 'wallet' | 'cross_account' | 'isolated_account';
401
373
  marketId?: number;
402
374
  }
403
375
  export interface TransferLogResponse {
@@ -409,7 +381,7 @@ export interface TransferLogResponse {
409
381
  amount: string;
410
382
  fromFundLocation: FundLocationResponse;
411
383
  toFundLocation: FundLocationResponse;
412
- status: "pending" | "success" | "failed";
384
+ status: 'pending' | 'success' | 'failed';
413
385
  }
414
386
  export interface TransferLogsResponse {
415
387
  total: number;
@@ -595,9 +567,9 @@ export interface MakerIncentiveRewardsResponse {
595
567
  accruedAmount: number;
596
568
  unclaimedAmount: number;
597
569
  }
598
- import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
570
+ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
599
571
  export type QueryParamsType = Record<string | number, any>;
600
- export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
572
+ export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
601
573
  secure?: boolean;
602
574
  path: string;
603
575
  type?: ContentType;
@@ -605,14 +577,15 @@ export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "pa
605
577
  format?: ResponseType;
606
578
  body?: unknown;
607
579
  }
608
- export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
609
- export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
580
+ export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
581
+ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, 'data' | 'cancelToken'> {
610
582
  securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
611
583
  secure?: boolean;
612
584
  format?: ResponseType;
613
585
  }
614
586
  export declare enum ContentType {
615
587
  Json = "application/json",
588
+ JsonApi = "application/vnd.api+json",
616
589
  FormData = "multipart/form-data",
617
590
  UrlEncoded = "application/x-www-form-urlencoded",
618
591
  Text = "text/plain"
@@ -630,7 +603,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
630
603
  protected createFormData(input: Record<string, unknown>): FormData;
631
604
  request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
632
605
  }
633
- export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
606
+ export declare class Sdk<SecurityDataType> extends HttpClient<SecurityDataType> {
634
607
  markets: {
635
608
  marketsControllerGetMarkets: (query?: {
636
609
  skip?: number;
@@ -848,9 +821,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
848
821
  userAddress: string;
849
822
  isCross?: boolean;
850
823
  }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
851
- calldataControllerDirectCall: (data: AgentExecuteDto, params?: RequestParams) => Promise<AxiosResponse<TxResponse, any>>;
852
- calldataControllerBulkAgentDirectCall: (data: BulkAgentExecuteDto, params?: RequestParams) => Promise<AxiosResponse<TxResponse[], any>>;
853
- calldataControllerApproveAgent: (data: ApproveAgentQueryDto, params?: RequestParams) => Promise<AxiosResponse<ApproveAgentResponse, any>>;
854
824
  };
855
825
  accounts: {
856
826
  accountsControllerGetUserSettings: (query: {