@agglayer/sdk 1.0.0-beta.26 → 1.0.0-beta.28

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
@@ -59,6 +59,10 @@ interface TokenInfo {
59
59
  interface TokenReference {
60
60
  readonly address: string;
61
61
  readonly chainId: number;
62
+ readonly name: string;
63
+ readonly symbol: string;
64
+ readonly decimals: number;
65
+ readonly logoURI?: string;
62
66
  }
63
67
 
64
68
  /**
@@ -131,11 +135,11 @@ interface RoutePreferences {
131
135
  interface FeeCost {
132
136
  readonly name: string;
133
137
  readonly description?: string;
134
- readonly token: TokenInfo;
135
138
  readonly amount: string;
136
139
  readonly amountUSD?: string;
137
140
  readonly percentage?: string;
138
141
  readonly included: boolean;
142
+ readonly token: TokenReference;
139
143
  }
140
144
  interface GasCost {
141
145
  readonly type: 'SEND' | 'APPROVAL' | 'EXECUTION';
@@ -272,6 +276,15 @@ type RoutesResponse = readonly Route[];
272
276
  * Defines the core request and response types for the transactions endpoint.
273
277
  */
274
278
 
279
+ declare enum TransactionStatus {
280
+ BRIDGED = "BRIDGED",
281
+ LEAF_INCLUDED = "LEAF_INCLUDED",
282
+ READY_TO_CLAIM = "READY_TO_CLAIM",
283
+ CLAIMED = "CLAIMED",
284
+ REFUND_IN_PROGRESS = "REFUND_IN_PROGRESS",
285
+ REFUNDED = "REFUNDED",
286
+ FAILED = "FAILED"
287
+ }
275
288
  interface Token {
276
289
  name: string;
277
290
  symbol: string;
@@ -330,8 +343,9 @@ interface Transaction {
330
343
  }
331
344
  interface TransactionsRequestQueryParams {
332
345
  readonly address?: string;
333
- readonly sourceNetworkIds?: string;
334
- readonly destinationNetworkIds?: string;
346
+ readonly sourceChainIds?: number[];
347
+ readonly destinationChainIds?: number[];
348
+ readonly statuses?: TransactionStatus[];
335
349
  readonly limit?: number;
336
350
  readonly startAfter?: number;
337
351
  }
@@ -1043,4 +1057,4 @@ declare class AggLayerSDK {
1043
1057
  getNative(): NativeClient;
1044
1058
  }
1045
1059
 
1046
- 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 LiFiBridge, type LiFiFeeCost, type LiFiMetadata, type LiFiStatusRequestParams, type LiFiStatusResponse, type LiFiStep, type LiFiToken, type LiFiTransaction, type LiFiTransferStatus, type LiFiTransferSubstatus, type NativeConfig, type OffsetPagination, type OriginTokenInfoParams, type PaginatedTransactionsResponse, 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$1 as Step, type StepAction, type StepEstimate, type StepType, type SuccessResponse, type TokenInfo, type TokenMappingQueryParams, type TokenMappingResponse, type TokenMetadataRequestParam, type TokenMetadataResponse, type TokenReference, type ToolDetails, type Transaction, type TransactionParams, type TransactionsRequestQueryParams, type TransactionsResponse, type UnsignedTransaction, type WrappedTokenParams };
1060
+ 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 LiFiBridge, type LiFiFeeCost, type LiFiMetadata, type LiFiStatusRequestParams, type LiFiStatusResponse, type LiFiStep, type LiFiToken, type LiFiTransaction, type LiFiTransferStatus, type LiFiTransferSubstatus, type NativeConfig, type OffsetPagination, type OriginTokenInfoParams, type PaginatedTransactionsResponse, 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$1 as Step, type StepAction, type StepEstimate, type StepType, type SuccessResponse, type TokenInfo, type TokenMappingQueryParams, type TokenMappingResponse, type TokenMetadataRequestParam, type TokenMetadataResponse, type TokenReference, type ToolDetails, type Transaction, type TransactionParams, TransactionStatus, type TransactionsRequestQueryParams, type TransactionsResponse, type UnsignedTransaction, type WrappedTokenParams };
package/dist/index.d.ts CHANGED
@@ -59,6 +59,10 @@ interface TokenInfo {
59
59
  interface TokenReference {
60
60
  readonly address: string;
61
61
  readonly chainId: number;
62
+ readonly name: string;
63
+ readonly symbol: string;
64
+ readonly decimals: number;
65
+ readonly logoURI?: string;
62
66
  }
63
67
 
64
68
  /**
@@ -131,11 +135,11 @@ interface RoutePreferences {
131
135
  interface FeeCost {
132
136
  readonly name: string;
133
137
  readonly description?: string;
134
- readonly token: TokenInfo;
135
138
  readonly amount: string;
136
139
  readonly amountUSD?: string;
137
140
  readonly percentage?: string;
138
141
  readonly included: boolean;
142
+ readonly token: TokenReference;
139
143
  }
140
144
  interface GasCost {
141
145
  readonly type: 'SEND' | 'APPROVAL' | 'EXECUTION';
@@ -272,6 +276,15 @@ type RoutesResponse = readonly Route[];
272
276
  * Defines the core request and response types for the transactions endpoint.
273
277
  */
274
278
 
279
+ declare enum TransactionStatus {
280
+ BRIDGED = "BRIDGED",
281
+ LEAF_INCLUDED = "LEAF_INCLUDED",
282
+ READY_TO_CLAIM = "READY_TO_CLAIM",
283
+ CLAIMED = "CLAIMED",
284
+ REFUND_IN_PROGRESS = "REFUND_IN_PROGRESS",
285
+ REFUNDED = "REFUNDED",
286
+ FAILED = "FAILED"
287
+ }
275
288
  interface Token {
276
289
  name: string;
277
290
  symbol: string;
@@ -330,8 +343,9 @@ interface Transaction {
330
343
  }
331
344
  interface TransactionsRequestQueryParams {
332
345
  readonly address?: string;
333
- readonly sourceNetworkIds?: string;
334
- readonly destinationNetworkIds?: string;
346
+ readonly sourceChainIds?: number[];
347
+ readonly destinationChainIds?: number[];
348
+ readonly statuses?: TransactionStatus[];
335
349
  readonly limit?: number;
336
350
  readonly startAfter?: number;
337
351
  }
@@ -1043,4 +1057,4 @@ declare class AggLayerSDK {
1043
1057
  getNative(): NativeClient;
1044
1058
  }
1045
1059
 
1046
- 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 LiFiBridge, type LiFiFeeCost, type LiFiMetadata, type LiFiStatusRequestParams, type LiFiStatusResponse, type LiFiStep, type LiFiToken, type LiFiTransaction, type LiFiTransferStatus, type LiFiTransferSubstatus, type NativeConfig, type OffsetPagination, type OriginTokenInfoParams, type PaginatedTransactionsResponse, 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$1 as Step, type StepAction, type StepEstimate, type StepType, type SuccessResponse, type TokenInfo, type TokenMappingQueryParams, type TokenMappingResponse, type TokenMetadataRequestParam, type TokenMetadataResponse, type TokenReference, type ToolDetails, type Transaction, type TransactionParams, type TransactionsRequestQueryParams, type TransactionsResponse, type UnsignedTransaction, type WrappedTokenParams };
1060
+ 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 LiFiBridge, type LiFiFeeCost, type LiFiMetadata, type LiFiStatusRequestParams, type LiFiStatusResponse, type LiFiStep, type LiFiToken, type LiFiTransaction, type LiFiTransferStatus, type LiFiTransferSubstatus, type NativeConfig, type OffsetPagination, type OriginTokenInfoParams, type PaginatedTransactionsResponse, 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$1 as Step, type StepAction, type StepEstimate, type StepType, type SuccessResponse, type TokenInfo, type TokenMappingQueryParams, type TokenMappingResponse, type TokenMetadataRequestParam, type TokenMetadataResponse, type TokenReference, type ToolDetails, type Transaction, type TransactionParams, TransactionStatus, type TransactionsRequestQueryParams, type TransactionsResponse, type UnsignedTransaction, type WrappedTokenParams };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agglayer/sdk",
3
- "version": "1.0.0-beta.26",
3
+ "version": "1.0.0-beta.28",
4
4
  "description": "AggLayer SDK for ARC API and blockchain interactions",
5
5
  "publishConfig": {
6
6
  "access": "public"