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

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
@@ -186,14 +186,14 @@ interface StepEstimate {
186
186
  readonly fromAmountUSD?: string | null;
187
187
  readonly toAmountUSD?: string | null;
188
188
  }
189
- interface Step {
189
+ interface Step$1 {
190
190
  readonly id: string;
191
191
  readonly type: StepType;
192
192
  readonly tool: string;
193
193
  readonly toolDetails: ToolDetails;
194
194
  readonly action: StepAction;
195
195
  readonly estimate: StepEstimate;
196
- readonly includedSteps: Step[] | null;
196
+ readonly includedSteps: Step$1[] | null;
197
197
  readonly relatedSteps: string[] | null;
198
198
  }
199
199
  interface ProviderMetadata {
@@ -235,7 +235,7 @@ interface Route {
235
235
  readonly tags: string[];
236
236
  readonly feeCosts: FeeCost[];
237
237
  readonly gasCosts: GasCost[];
238
- readonly steps: Step[];
238
+ readonly steps: Step$1[];
239
239
  readonly transactionRequest?: UnsignedTransaction | undefined;
240
240
  readonly providerMetadata: ProviderMetadata;
241
241
  readonly riskFactors: RiskFactors | null;
@@ -272,48 +272,61 @@ type RoutesResponse = readonly Route[];
272
272
  * Defines the core request and response types for the transactions endpoint.
273
273
  */
274
274
 
275
+ interface Token {
276
+ name: string;
277
+ symbol: string;
278
+ decimals: number;
279
+ logoURI: string;
280
+ }
281
+ interface SendingToken extends Token {
282
+ originTokenAddress: string;
283
+ originTokenNetwork: number | null;
284
+ }
285
+ interface ReceivingToken extends Token {
286
+ tokenAddress: string;
287
+ }
288
+ interface IntermediateToken extends Token {
289
+ tokenAddress: string;
290
+ }
291
+ interface Network {
292
+ chainId: number;
293
+ networkId: number | null;
294
+ }
295
+ interface Step {
296
+ txHash: string;
297
+ network: Network;
298
+ timestamp: number;
299
+ amount: string;
300
+ amountUSD: string;
301
+ includedSteps: unknown[];
302
+ }
303
+ interface SendingStep extends Step {
304
+ token: SendingToken;
305
+ }
306
+ interface ReceivingStep extends Step {
307
+ token: ReceivingToken;
308
+ }
309
+ interface IntermediateStep extends Step {
310
+ token: IntermediateToken;
311
+ }
275
312
  interface Transaction {
276
313
  id: string;
277
314
  transactionHash: string;
278
- bridgeHash: string | null;
279
315
  protocols: string[];
280
316
  status: string;
281
- timestamp: number;
282
317
  fromAddress: string;
283
318
  toAddress: string;
284
- sending: {
285
- txHash: string;
286
- network: {
287
- chainId: number;
288
- networkId: number | null;
289
- };
290
- timestamp: number;
291
- token: {
292
- originTokenAddress: string;
293
- originTokenNetwork: number | null;
294
- };
295
- amount: string;
296
- includedSteps: unknown[] | null;
297
- };
298
- receiving: {
299
- txHash: string | null;
300
- network: {
301
- chainId: number;
302
- networkId: number | null;
303
- };
304
- timestamp: number | null;
305
- amount: string;
306
- tokenAddress: string;
307
- } | null;
308
- leafType: string | null;
309
- depositCount: number | null;
310
- transactionIndex: number | null;
311
- blockNumber: number | null;
312
- leafIndex: number | null;
319
+ sending: SendingStep;
320
+ receiving: ReceivingStep | null;
321
+ intermediateSteps: IntermediateStep[];
322
+ transactionHashes: string[];
313
323
  metadata: {
314
324
  integrator: string | null;
315
325
  feeCosts: unknown[] | null;
326
+ leafType: string | null;
327
+ depositCount: number | null;
316
328
  };
329
+ lastUpdatedAt: number;
317
330
  }
318
331
  interface TransactionsRequestQueryParams {
319
332
  readonly address?: string;
@@ -334,7 +347,7 @@ interface PaginatedTransactionsResponse {
334
347
  * Defines the core request and response types for the built transaction endpoint.
335
348
  */
336
349
 
337
- type BuildTransactionRequestBody = Step;
350
+ type BuildTransactionRequestBody = Step$1;
338
351
  type BuildTransactionResponse = UnsignedTransaction;
339
352
 
340
353
  /**
@@ -1030,4 +1043,4 @@ declare class AggLayerSDK {
1030
1043
  getNative(): NativeClient;
1031
1044
  }
1032
1045
 
1033
- 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, 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -186,14 +186,14 @@ interface StepEstimate {
186
186
  readonly fromAmountUSD?: string | null;
187
187
  readonly toAmountUSD?: string | null;
188
188
  }
189
- interface Step {
189
+ interface Step$1 {
190
190
  readonly id: string;
191
191
  readonly type: StepType;
192
192
  readonly tool: string;
193
193
  readonly toolDetails: ToolDetails;
194
194
  readonly action: StepAction;
195
195
  readonly estimate: StepEstimate;
196
- readonly includedSteps: Step[] | null;
196
+ readonly includedSteps: Step$1[] | null;
197
197
  readonly relatedSteps: string[] | null;
198
198
  }
199
199
  interface ProviderMetadata {
@@ -235,7 +235,7 @@ interface Route {
235
235
  readonly tags: string[];
236
236
  readonly feeCosts: FeeCost[];
237
237
  readonly gasCosts: GasCost[];
238
- readonly steps: Step[];
238
+ readonly steps: Step$1[];
239
239
  readonly transactionRequest?: UnsignedTransaction | undefined;
240
240
  readonly providerMetadata: ProviderMetadata;
241
241
  readonly riskFactors: RiskFactors | null;
@@ -272,48 +272,61 @@ type RoutesResponse = readonly Route[];
272
272
  * Defines the core request and response types for the transactions endpoint.
273
273
  */
274
274
 
275
+ interface Token {
276
+ name: string;
277
+ symbol: string;
278
+ decimals: number;
279
+ logoURI: string;
280
+ }
281
+ interface SendingToken extends Token {
282
+ originTokenAddress: string;
283
+ originTokenNetwork: number | null;
284
+ }
285
+ interface ReceivingToken extends Token {
286
+ tokenAddress: string;
287
+ }
288
+ interface IntermediateToken extends Token {
289
+ tokenAddress: string;
290
+ }
291
+ interface Network {
292
+ chainId: number;
293
+ networkId: number | null;
294
+ }
295
+ interface Step {
296
+ txHash: string;
297
+ network: Network;
298
+ timestamp: number;
299
+ amount: string;
300
+ amountUSD: string;
301
+ includedSteps: unknown[];
302
+ }
303
+ interface SendingStep extends Step {
304
+ token: SendingToken;
305
+ }
306
+ interface ReceivingStep extends Step {
307
+ token: ReceivingToken;
308
+ }
309
+ interface IntermediateStep extends Step {
310
+ token: IntermediateToken;
311
+ }
275
312
  interface Transaction {
276
313
  id: string;
277
314
  transactionHash: string;
278
- bridgeHash: string | null;
279
315
  protocols: string[];
280
316
  status: string;
281
- timestamp: number;
282
317
  fromAddress: string;
283
318
  toAddress: string;
284
- sending: {
285
- txHash: string;
286
- network: {
287
- chainId: number;
288
- networkId: number | null;
289
- };
290
- timestamp: number;
291
- token: {
292
- originTokenAddress: string;
293
- originTokenNetwork: number | null;
294
- };
295
- amount: string;
296
- includedSteps: unknown[] | null;
297
- };
298
- receiving: {
299
- txHash: string | null;
300
- network: {
301
- chainId: number;
302
- networkId: number | null;
303
- };
304
- timestamp: number | null;
305
- amount: string;
306
- tokenAddress: string;
307
- } | null;
308
- leafType: string | null;
309
- depositCount: number | null;
310
- transactionIndex: number | null;
311
- blockNumber: number | null;
312
- leafIndex: number | null;
319
+ sending: SendingStep;
320
+ receiving: ReceivingStep | null;
321
+ intermediateSteps: IntermediateStep[];
322
+ transactionHashes: string[];
313
323
  metadata: {
314
324
  integrator: string | null;
315
325
  feeCosts: unknown[] | null;
326
+ leafType: string | null;
327
+ depositCount: number | null;
316
328
  };
329
+ lastUpdatedAt: number;
317
330
  }
318
331
  interface TransactionsRequestQueryParams {
319
332
  readonly address?: string;
@@ -334,7 +347,7 @@ interface PaginatedTransactionsResponse {
334
347
  * Defines the core request and response types for the built transaction endpoint.
335
348
  */
336
349
 
337
- type BuildTransactionRequestBody = Step;
350
+ type BuildTransactionRequestBody = Step$1;
338
351
  type BuildTransactionResponse = UnsignedTransaction;
339
352
 
340
353
  /**
@@ -1030,4 +1043,4 @@ declare class AggLayerSDK {
1030
1043
  getNative(): NativeClient;
1031
1044
  }
1032
1045
 
1033
- 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, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agglayer/sdk",
3
- "version": "1.0.0-beta.25",
3
+ "version": "1.0.0-beta.26",
4
4
  "description": "AggLayer SDK for ARC API and blockchain interactions",
5
5
  "publishConfig": {
6
6
  "access": "public"