@agglayer/sdk 1.0.0-beta.18 → 1.0.0-beta.8

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.d.mts CHANGED
@@ -19,7 +19,6 @@ type ApiResponse<T = unknown> = SuccessResponse<T> | ErrorResponse;
19
19
  interface SuccessResponse<T = unknown> {
20
20
  readonly status: 'success';
21
21
  readonly data: T;
22
- readonly pagination?: OffsetPagination | CursorPagination;
23
22
  }
24
23
  interface ErrorResponse {
25
24
  readonly status: 'error';
@@ -28,16 +27,6 @@ interface ErrorResponse {
28
27
  readonly code: number;
29
28
  readonly details?: Record<string, unknown>;
30
29
  }
31
- interface Pagination {
32
- readonly total?: number;
33
- readonly limit?: number;
34
- }
35
- interface OffsetPagination extends Pagination {
36
- readonly offset?: number;
37
- }
38
- interface CursorPagination extends Pagination {
39
- readonly nextStartAfterCursor?: string;
40
- }
41
30
 
42
31
  /**
43
32
  * Arc API Tokens Types
@@ -78,11 +67,6 @@ interface IChain {
78
67
  name: string;
79
68
  symbol: string;
80
69
  decimals: number;
81
- address: string;
82
- logoURI: string;
83
- priceUSD: string;
84
- originTokenAddress?: string;
85
- originChainId?: number;
86
70
  };
87
71
  networkId?: number;
88
72
  bridgeAddress?: string;
@@ -94,27 +78,13 @@ type ChainsQueryParams = {
94
78
  readonly withSupportedTokens?: boolean;
95
79
  readonly chainIds?: readonly number[];
96
80
  readonly limit?: number;
97
- readonly offset?: number;
81
+ readonly startAfter?: number;
98
82
  };
99
83
  type ChainsResponse = {
100
84
  readonly chains: IChain[];
85
+ readonly nextStartAfter?: number;
101
86
  };
102
87
 
103
- /**
104
- * Arc API Unsigned Transaction Types
105
- *
106
- * Defines the core request and response types for the tokens.
107
- */
108
- interface UnsignedTransaction {
109
- readonly to: string;
110
- readonly data: string;
111
- readonly value: string;
112
- readonly gasLimit: string;
113
- readonly gasPrice?: string;
114
- readonly chainId: number;
115
- readonly from?: string;
116
- }
117
-
118
88
  /**
119
89
  * Arc API Routes Types
120
90
  *
@@ -196,14 +166,22 @@ interface Step {
196
166
  readonly includedSteps: Step[] | null;
197
167
  readonly relatedSteps: string[] | null;
198
168
  }
169
+ interface TransactionRequest {
170
+ readonly to: string;
171
+ readonly data: string;
172
+ readonly value: string;
173
+ readonly gasLimit: string;
174
+ readonly gasPrice?: string;
175
+ readonly chainId: number;
176
+ readonly from?: string;
177
+ }
199
178
  interface ProviderMetadata {
200
179
  readonly lifi?: {
201
180
  readonly integrator: string | null;
202
181
  readonly transactionRequest?: unknown;
203
182
  };
204
183
  readonly agglayer?: {
205
- readonly bridgeAddress: string | undefined;
206
- readonly claimTransactionRequired: boolean | undefined;
184
+ readonly bridgeAddress: string | null;
207
185
  };
208
186
  readonly [key: string]: unknown;
209
187
  }
@@ -236,7 +214,7 @@ interface Route {
236
214
  readonly feeCosts: FeeCost[];
237
215
  readonly gasCosts: GasCost[];
238
216
  readonly steps: Step[];
239
- readonly transactionRequest?: UnsignedTransaction | undefined;
217
+ readonly transactionRequest?: TransactionRequest;
240
218
  readonly providerMetadata: ProviderMetadata;
241
219
  readonly riskFactors: RiskFactors | null;
242
220
  readonly createdAt: number;
@@ -259,7 +237,7 @@ interface RoutesRequestParams {
259
237
  readonly fromTokenAddress: string;
260
238
  readonly toTokenAddress: string;
261
239
  readonly amount: string;
262
- readonly fromAddress?: string;
240
+ readonly fromAddress: string;
263
241
  readonly toAddress?: string;
264
242
  readonly slippage?: number;
265
243
  readonly preferences?: RoutePreferences;
@@ -315,7 +293,7 @@ interface Transaction {
315
293
  };
316
294
  }
317
295
  interface TransactionsRequestQueryParams {
318
- readonly address?: string;
296
+ readonly fromAddress?: string;
319
297
  readonly sorceNetworkIds?: string;
320
298
  readonly destinationNetworkIds?: string;
321
299
  readonly limit?: number;
@@ -323,6 +301,7 @@ interface TransactionsRequestQueryParams {
323
301
  }
324
302
  type TransactionsResponse = {
325
303
  transactions: Transaction[];
304
+ nextStartAfter?: number;
326
305
  };
327
306
 
328
307
  /**
@@ -332,19 +311,7 @@ type TransactionsResponse = {
332
311
  */
333
312
 
334
313
  type BuildTransactionRequestBody = Step;
335
- type BuildTransactionResponse = UnsignedTransaction;
336
-
337
- /**
338
- * Arc API Build Claim Transaction Types
339
- *
340
- * Defines the core request and response types for the build claim transaction endpoint.
341
- */
342
-
343
- type BuildClaimTransactionRequestParam = {
344
- sourceNetworkId: number;
345
- depositCount: number;
346
- };
347
- type BuildClaimTransactionResponse = UnsignedTransaction;
314
+ type BuildTransactionResponse = Route;
348
315
 
349
316
  /**
350
317
  * Chain Types
@@ -496,9 +463,9 @@ declare const SDK_MODES: {
496
463
  type SDKMode = (typeof SDK_MODES)[keyof typeof SDK_MODES];
497
464
 
498
465
  interface SDKConfig {
499
- mode?: SDKMode[];
500
- core?: CoreConfig;
501
- native?: NativeConfig;
466
+ mode: SDKMode[];
467
+ core: CoreConfig;
468
+ native: NativeConfig;
502
469
  }
503
470
 
504
471
  /**
@@ -779,33 +746,20 @@ declare class NativeClient {
779
746
  declare class CoreClient {
780
747
  private config;
781
748
  private arcApiService;
782
- constructor(config?: CoreConfig);
783
- /**
784
- * Generic pagination helper for chains API calls (limit and offset based pagination)
785
- * Handles automatic pagination to fetch all available data
786
- * @param params - Parameters for the chains API call
787
- * @param pageSize - Number of items per page (defaults to DEFAULT_CHAINS_PER_PAGE)
788
- */
789
- private getAllChainsPaginated;
749
+ constructor(config: CoreConfig);
790
750
  /**
791
751
  * Get all chains metadata from AggLayer API
792
- * Handles pagination automatically to fetch all available chains
793
752
  */
794
753
  getAllChains(): Promise<ChainsResponse>;
795
754
  /**
796
755
  * Get chain metadata by id from AggLayer API
797
- * Handles pagination automatically to fetch all available chain metadata
798
756
  * @param ids - the ids of the chains to get metadata for
799
757
  */
800
758
  getChainMetadataByChainIds(ids: number[]): Promise<ChainsResponse>;
801
759
  /**
802
760
  * Get all tokens from AggLayer API
803
- *
804
- * Developer Note: This method is not recommended to use frequently or from frontend.
805
- * As it can be very slow and resource intensive.
806
- * It is recommended to use getChainDataAndTokensByChainIds instead.
807
761
  */
808
- getAllTokens(): Promise<ChainsResponse>;
762
+ getTokens(): Promise<ChainsResponse>;
809
763
  /**
810
764
  * Get chain data and tokens by AggLayer API
811
765
  * @param ids - the ids of the chains to get data and tokens for
@@ -816,57 +770,15 @@ declare class CoreClient {
816
770
  */
817
771
  getRoutes(routesRequestParams: RoutesRequestParams): Promise<RoutesResponse>;
818
772
  /**
819
- * Get calldata from a route
820
- * If route has transactionRequest field, return it directly as calldata
821
- * Otherwise, call buildTransaction on route.steps[0] and return that as calldata
773
+ * Build transaction from a step object
822
774
  */
823
- getUnsignedTransaction(route: Route): Promise<UnsignedTransaction>;
824
- /**
825
- * Get calldata for claim step
826
- * Needs to be called separately as claim step is not part of route.
827
- *
828
- * @developer Note: Do not misinterpret network ID as chain ID.
829
- *
830
- * @param sourceNetworkId - The source network ID where the transfer was initiated.
831
- * @param depositCount - The deposit count associated with the transfer.
832
- */
833
- getClaimUnsignedTransaction(buildClaimTxParams: BuildClaimTransactionRequestParam): Promise<UnsignedTransaction>;
775
+ buildTransaction(builtTransactionRequestBody: BuildTransactionRequestBody): Promise<BuildTransactionResponse>;
834
776
  /**
835
777
  * Get all transactions via web sockets
836
778
  */
837
779
  getTransactions(transactionsRequestQueryParams: TransactionsRequestQueryParams): Promise<TransactionsResponse>;
838
780
  }
839
781
 
840
- /**
841
- * API Error Class
842
- *
843
- * Custom error class to preserve API error details
844
- */
845
-
846
- declare class ApiError extends Error {
847
- readonly code: number;
848
- readonly name: string;
849
- readonly details?: Record<string, unknown> | undefined;
850
- constructor(errorResponse: ErrorResponse);
851
- /**
852
- * Create API error from error response
853
- */
854
- static fromErrorResponse(errorResponse: ErrorResponse): ApiError;
855
- /**
856
- * Create fallback error when API completely fails
857
- */
858
- static createFallbackError(originalError: Error, operation: string): ApiError;
859
- /**
860
- * Convert to plain object for serialization
861
- */
862
- toJSON(): {
863
- name: string;
864
- message: string;
865
- code: number;
866
- details: Record<string, unknown> | undefined;
867
- };
868
- }
869
-
870
782
  /**
871
783
  * AggLayer SDK - Main SDK
872
784
  *
@@ -877,7 +789,7 @@ declare class AggLayerSDK {
877
789
  private config;
878
790
  private core?;
879
791
  private native?;
880
- constructor(config?: SDKConfig);
792
+ constructor(config: SDKConfig);
881
793
  /**
882
794
  * Get core submodule
883
795
  */
@@ -888,4 +800,4 @@ declare class AggLayerSDK {
888
800
  getNative(): NativeClient;
889
801
  }
890
802
 
891
- export { AggLayerSDK, ApiError, type ApiResponse, type BaseContractConfig, type BridgeAssetParams, type BridgeConfig, type BridgeMessageParams, type BridgeOptions, type BuildClaimTransactionRequestParam, type BuildClaimTransactionResponse, type BuildTransactionRequestBody, type BuildTransactionResponse, type ChainConfig, type ChainsQueryParams, type ChainsResponse, type ClaimAssetParams, type ClaimMessageParams, type CoreConfig, type CursorPagination, type CustomChainConfig, type ERC20Config, type ErrorResponse, type FeeCost, type GasCost, type IChain, type IsClaimedParams, type NativeConfig, type OffsetPagination, type OriginTokenInfoParams, type Pagination, type PrecalculatedWrapperParams, type ProviderMetadata, type RiskFactors, type RiskLevel, type Route, type RoutePreferences, type RouteStep, type RoutesRequestParams, type RoutesResponse, type SDKConfig, type SDKMode, SDK_MODES, type Step, type StepAction, type StepEstimate, type StepType, type SuccessResponse, type TokenInfo, type TokenReference, type ToolDetails, type Transaction, type TransactionParams, type TransactionsRequestQueryParams, type TransactionsResponse, type WrappedTokenParams };
803
+ export { AggLayerSDK, type ApiResponse, type BaseContractConfig, type BridgeAssetParams, type BridgeConfig, type BridgeMessageParams, type BridgeOptions, type BuildTransactionRequestBody, type BuildTransactionResponse, type ChainConfig, type ChainsQueryParams, type ChainsResponse, type ClaimAssetParams, type ClaimMessageParams, type CoreConfig, type CustomChainConfig, type ERC20Config, type ErrorResponse, type FeeCost, type GasCost, type IChain, type IsClaimedParams, type NativeConfig, type OriginTokenInfoParams, type PrecalculatedWrapperParams, type ProviderMetadata, type RiskFactors, type RiskLevel, type Route, type RoutePreferences, type RouteStep, type RoutesRequestParams, type RoutesResponse, type SDKConfig, type SDKMode, SDK_MODES, type Step, type StepAction, type StepEstimate, type StepType, type SuccessResponse, type TokenInfo, type TokenReference, type ToolDetails, type Transaction, type TransactionParams, type TransactionRequest, type TransactionsRequestQueryParams, type TransactionsResponse, type WrappedTokenParams };
package/dist/index.d.ts CHANGED
@@ -19,7 +19,6 @@ type ApiResponse<T = unknown> = SuccessResponse<T> | ErrorResponse;
19
19
  interface SuccessResponse<T = unknown> {
20
20
  readonly status: 'success';
21
21
  readonly data: T;
22
- readonly pagination?: OffsetPagination | CursorPagination;
23
22
  }
24
23
  interface ErrorResponse {
25
24
  readonly status: 'error';
@@ -28,16 +27,6 @@ interface ErrorResponse {
28
27
  readonly code: number;
29
28
  readonly details?: Record<string, unknown>;
30
29
  }
31
- interface Pagination {
32
- readonly total?: number;
33
- readonly limit?: number;
34
- }
35
- interface OffsetPagination extends Pagination {
36
- readonly offset?: number;
37
- }
38
- interface CursorPagination extends Pagination {
39
- readonly nextStartAfterCursor?: string;
40
- }
41
30
 
42
31
  /**
43
32
  * Arc API Tokens Types
@@ -78,11 +67,6 @@ interface IChain {
78
67
  name: string;
79
68
  symbol: string;
80
69
  decimals: number;
81
- address: string;
82
- logoURI: string;
83
- priceUSD: string;
84
- originTokenAddress?: string;
85
- originChainId?: number;
86
70
  };
87
71
  networkId?: number;
88
72
  bridgeAddress?: string;
@@ -94,27 +78,13 @@ type ChainsQueryParams = {
94
78
  readonly withSupportedTokens?: boolean;
95
79
  readonly chainIds?: readonly number[];
96
80
  readonly limit?: number;
97
- readonly offset?: number;
81
+ readonly startAfter?: number;
98
82
  };
99
83
  type ChainsResponse = {
100
84
  readonly chains: IChain[];
85
+ readonly nextStartAfter?: number;
101
86
  };
102
87
 
103
- /**
104
- * Arc API Unsigned Transaction Types
105
- *
106
- * Defines the core request and response types for the tokens.
107
- */
108
- interface UnsignedTransaction {
109
- readonly to: string;
110
- readonly data: string;
111
- readonly value: string;
112
- readonly gasLimit: string;
113
- readonly gasPrice?: string;
114
- readonly chainId: number;
115
- readonly from?: string;
116
- }
117
-
118
88
  /**
119
89
  * Arc API Routes Types
120
90
  *
@@ -196,14 +166,22 @@ interface Step {
196
166
  readonly includedSteps: Step[] | null;
197
167
  readonly relatedSteps: string[] | null;
198
168
  }
169
+ interface TransactionRequest {
170
+ readonly to: string;
171
+ readonly data: string;
172
+ readonly value: string;
173
+ readonly gasLimit: string;
174
+ readonly gasPrice?: string;
175
+ readonly chainId: number;
176
+ readonly from?: string;
177
+ }
199
178
  interface ProviderMetadata {
200
179
  readonly lifi?: {
201
180
  readonly integrator: string | null;
202
181
  readonly transactionRequest?: unknown;
203
182
  };
204
183
  readonly agglayer?: {
205
- readonly bridgeAddress: string | undefined;
206
- readonly claimTransactionRequired: boolean | undefined;
184
+ readonly bridgeAddress: string | null;
207
185
  };
208
186
  readonly [key: string]: unknown;
209
187
  }
@@ -236,7 +214,7 @@ interface Route {
236
214
  readonly feeCosts: FeeCost[];
237
215
  readonly gasCosts: GasCost[];
238
216
  readonly steps: Step[];
239
- readonly transactionRequest?: UnsignedTransaction | undefined;
217
+ readonly transactionRequest?: TransactionRequest;
240
218
  readonly providerMetadata: ProviderMetadata;
241
219
  readonly riskFactors: RiskFactors | null;
242
220
  readonly createdAt: number;
@@ -259,7 +237,7 @@ interface RoutesRequestParams {
259
237
  readonly fromTokenAddress: string;
260
238
  readonly toTokenAddress: string;
261
239
  readonly amount: string;
262
- readonly fromAddress?: string;
240
+ readonly fromAddress: string;
263
241
  readonly toAddress?: string;
264
242
  readonly slippage?: number;
265
243
  readonly preferences?: RoutePreferences;
@@ -315,7 +293,7 @@ interface Transaction {
315
293
  };
316
294
  }
317
295
  interface TransactionsRequestQueryParams {
318
- readonly address?: string;
296
+ readonly fromAddress?: string;
319
297
  readonly sorceNetworkIds?: string;
320
298
  readonly destinationNetworkIds?: string;
321
299
  readonly limit?: number;
@@ -323,6 +301,7 @@ interface TransactionsRequestQueryParams {
323
301
  }
324
302
  type TransactionsResponse = {
325
303
  transactions: Transaction[];
304
+ nextStartAfter?: number;
326
305
  };
327
306
 
328
307
  /**
@@ -332,19 +311,7 @@ type TransactionsResponse = {
332
311
  */
333
312
 
334
313
  type BuildTransactionRequestBody = Step;
335
- type BuildTransactionResponse = UnsignedTransaction;
336
-
337
- /**
338
- * Arc API Build Claim Transaction Types
339
- *
340
- * Defines the core request and response types for the build claim transaction endpoint.
341
- */
342
-
343
- type BuildClaimTransactionRequestParam = {
344
- sourceNetworkId: number;
345
- depositCount: number;
346
- };
347
- type BuildClaimTransactionResponse = UnsignedTransaction;
314
+ type BuildTransactionResponse = Route;
348
315
 
349
316
  /**
350
317
  * Chain Types
@@ -496,9 +463,9 @@ declare const SDK_MODES: {
496
463
  type SDKMode = (typeof SDK_MODES)[keyof typeof SDK_MODES];
497
464
 
498
465
  interface SDKConfig {
499
- mode?: SDKMode[];
500
- core?: CoreConfig;
501
- native?: NativeConfig;
466
+ mode: SDKMode[];
467
+ core: CoreConfig;
468
+ native: NativeConfig;
502
469
  }
503
470
 
504
471
  /**
@@ -779,33 +746,20 @@ declare class NativeClient {
779
746
  declare class CoreClient {
780
747
  private config;
781
748
  private arcApiService;
782
- constructor(config?: CoreConfig);
783
- /**
784
- * Generic pagination helper for chains API calls (limit and offset based pagination)
785
- * Handles automatic pagination to fetch all available data
786
- * @param params - Parameters for the chains API call
787
- * @param pageSize - Number of items per page (defaults to DEFAULT_CHAINS_PER_PAGE)
788
- */
789
- private getAllChainsPaginated;
749
+ constructor(config: CoreConfig);
790
750
  /**
791
751
  * Get all chains metadata from AggLayer API
792
- * Handles pagination automatically to fetch all available chains
793
752
  */
794
753
  getAllChains(): Promise<ChainsResponse>;
795
754
  /**
796
755
  * Get chain metadata by id from AggLayer API
797
- * Handles pagination automatically to fetch all available chain metadata
798
756
  * @param ids - the ids of the chains to get metadata for
799
757
  */
800
758
  getChainMetadataByChainIds(ids: number[]): Promise<ChainsResponse>;
801
759
  /**
802
760
  * Get all tokens from AggLayer API
803
- *
804
- * Developer Note: This method is not recommended to use frequently or from frontend.
805
- * As it can be very slow and resource intensive.
806
- * It is recommended to use getChainDataAndTokensByChainIds instead.
807
761
  */
808
- getAllTokens(): Promise<ChainsResponse>;
762
+ getTokens(): Promise<ChainsResponse>;
809
763
  /**
810
764
  * Get chain data and tokens by AggLayer API
811
765
  * @param ids - the ids of the chains to get data and tokens for
@@ -816,57 +770,15 @@ declare class CoreClient {
816
770
  */
817
771
  getRoutes(routesRequestParams: RoutesRequestParams): Promise<RoutesResponse>;
818
772
  /**
819
- * Get calldata from a route
820
- * If route has transactionRequest field, return it directly as calldata
821
- * Otherwise, call buildTransaction on route.steps[0] and return that as calldata
773
+ * Build transaction from a step object
822
774
  */
823
- getUnsignedTransaction(route: Route): Promise<UnsignedTransaction>;
824
- /**
825
- * Get calldata for claim step
826
- * Needs to be called separately as claim step is not part of route.
827
- *
828
- * @developer Note: Do not misinterpret network ID as chain ID.
829
- *
830
- * @param sourceNetworkId - The source network ID where the transfer was initiated.
831
- * @param depositCount - The deposit count associated with the transfer.
832
- */
833
- getClaimUnsignedTransaction(buildClaimTxParams: BuildClaimTransactionRequestParam): Promise<UnsignedTransaction>;
775
+ buildTransaction(builtTransactionRequestBody: BuildTransactionRequestBody): Promise<BuildTransactionResponse>;
834
776
  /**
835
777
  * Get all transactions via web sockets
836
778
  */
837
779
  getTransactions(transactionsRequestQueryParams: TransactionsRequestQueryParams): Promise<TransactionsResponse>;
838
780
  }
839
781
 
840
- /**
841
- * API Error Class
842
- *
843
- * Custom error class to preserve API error details
844
- */
845
-
846
- declare class ApiError extends Error {
847
- readonly code: number;
848
- readonly name: string;
849
- readonly details?: Record<string, unknown> | undefined;
850
- constructor(errorResponse: ErrorResponse);
851
- /**
852
- * Create API error from error response
853
- */
854
- static fromErrorResponse(errorResponse: ErrorResponse): ApiError;
855
- /**
856
- * Create fallback error when API completely fails
857
- */
858
- static createFallbackError(originalError: Error, operation: string): ApiError;
859
- /**
860
- * Convert to plain object for serialization
861
- */
862
- toJSON(): {
863
- name: string;
864
- message: string;
865
- code: number;
866
- details: Record<string, unknown> | undefined;
867
- };
868
- }
869
-
870
782
  /**
871
783
  * AggLayer SDK - Main SDK
872
784
  *
@@ -877,7 +789,7 @@ declare class AggLayerSDK {
877
789
  private config;
878
790
  private core?;
879
791
  private native?;
880
- constructor(config?: SDKConfig);
792
+ constructor(config: SDKConfig);
881
793
  /**
882
794
  * Get core submodule
883
795
  */
@@ -888,4 +800,4 @@ declare class AggLayerSDK {
888
800
  getNative(): NativeClient;
889
801
  }
890
802
 
891
- export { AggLayerSDK, ApiError, type ApiResponse, type BaseContractConfig, type BridgeAssetParams, type BridgeConfig, type BridgeMessageParams, type BridgeOptions, type BuildClaimTransactionRequestParam, type BuildClaimTransactionResponse, type BuildTransactionRequestBody, type BuildTransactionResponse, type ChainConfig, type ChainsQueryParams, type ChainsResponse, type ClaimAssetParams, type ClaimMessageParams, type CoreConfig, type CursorPagination, type CustomChainConfig, type ERC20Config, type ErrorResponse, type FeeCost, type GasCost, type IChain, type IsClaimedParams, type NativeConfig, type OffsetPagination, type OriginTokenInfoParams, type Pagination, type PrecalculatedWrapperParams, type ProviderMetadata, type RiskFactors, type RiskLevel, type Route, type RoutePreferences, type RouteStep, type RoutesRequestParams, type RoutesResponse, type SDKConfig, type SDKMode, SDK_MODES, type Step, type StepAction, type StepEstimate, type StepType, type SuccessResponse, type TokenInfo, type TokenReference, type ToolDetails, type Transaction, type TransactionParams, type TransactionsRequestQueryParams, type TransactionsResponse, type WrappedTokenParams };
803
+ export { AggLayerSDK, type ApiResponse, type BaseContractConfig, type BridgeAssetParams, type BridgeConfig, type BridgeMessageParams, type BridgeOptions, type BuildTransactionRequestBody, type BuildTransactionResponse, type ChainConfig, type ChainsQueryParams, type ChainsResponse, type ClaimAssetParams, type ClaimMessageParams, type CoreConfig, type CustomChainConfig, type ERC20Config, type ErrorResponse, type FeeCost, type GasCost, type IChain, type IsClaimedParams, type NativeConfig, type OriginTokenInfoParams, type PrecalculatedWrapperParams, type ProviderMetadata, type RiskFactors, type RiskLevel, type Route, type RoutePreferences, type RouteStep, type RoutesRequestParams, type RoutesResponse, type SDKConfig, type SDKMode, SDK_MODES, type Step, type StepAction, type StepEstimate, type StepType, type SuccessResponse, type TokenInfo, type TokenReference, type ToolDetails, type Transaction, type TransactionParams, type TransactionRequest, type TransactionsRequestQueryParams, type TransactionsResponse, type WrappedTokenParams };