@agglayer/sdk 1.0.0-beta.29 → 1.0.0-beta.30

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
@@ -158,6 +158,23 @@ interface ToolDetails {
158
158
  readonly logoURI: string | null;
159
159
  readonly webUrl?: string | null;
160
160
  }
161
+ interface RefuelToken {
162
+ readonly address: string;
163
+ readonly decimals: number;
164
+ readonly logoURI: string;
165
+ readonly name: string;
166
+ readonly originChainId?: number;
167
+ readonly originTokenAddress?: string;
168
+ readonly symbol?: string;
169
+ readonly priceUSD: string;
170
+ readonly chainId: number;
171
+ }
172
+ interface RefuelInfo {
173
+ readonly refuelAddress?: string;
174
+ readonly buyToken?: RefuelToken;
175
+ readonly buyAmount?: string;
176
+ readonly sellAmount?: string;
177
+ }
161
178
  interface StepAction {
162
179
  readonly fromChainId: number;
163
180
  readonly toChainId: number;
@@ -177,6 +194,7 @@ interface StepAction {
177
194
  readonly toContractCallData?: string;
178
195
  readonly toFallbackAddress?: string;
179
196
  readonly callDataGasLimit?: string;
197
+ readonly refuel?: RefuelInfo;
180
198
  }
181
199
  interface StepEstimate {
182
200
  readonly tool: string;
@@ -267,6 +285,7 @@ interface RoutesRequestParams {
267
285
  readonly toAddress?: string;
268
286
  readonly slippage?: number;
269
287
  readonly preferences?: RoutePreferences;
288
+ readonly refuel?: boolean;
270
289
  }
271
290
  type RoutesResponse = readonly Route[];
272
291
 
@@ -339,6 +358,7 @@ interface Transaction {
339
358
  feeCosts: unknown[] | null;
340
359
  leafType: string | null;
341
360
  depositCount: number | null;
361
+ refuel?: boolean;
342
362
  };
343
363
  lastUpdatedAt: number;
344
364
  }
@@ -1062,4 +1082,4 @@ declare class AggLayerSDK {
1062
1082
  getNative(): NativeClient;
1063
1083
  }
1064
1084
 
1065
- 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 };
1085
+ 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 RefuelInfo, type RefuelToken, 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
@@ -158,6 +158,23 @@ interface ToolDetails {
158
158
  readonly logoURI: string | null;
159
159
  readonly webUrl?: string | null;
160
160
  }
161
+ interface RefuelToken {
162
+ readonly address: string;
163
+ readonly decimals: number;
164
+ readonly logoURI: string;
165
+ readonly name: string;
166
+ readonly originChainId?: number;
167
+ readonly originTokenAddress?: string;
168
+ readonly symbol?: string;
169
+ readonly priceUSD: string;
170
+ readonly chainId: number;
171
+ }
172
+ interface RefuelInfo {
173
+ readonly refuelAddress?: string;
174
+ readonly buyToken?: RefuelToken;
175
+ readonly buyAmount?: string;
176
+ readonly sellAmount?: string;
177
+ }
161
178
  interface StepAction {
162
179
  readonly fromChainId: number;
163
180
  readonly toChainId: number;
@@ -177,6 +194,7 @@ interface StepAction {
177
194
  readonly toContractCallData?: string;
178
195
  readonly toFallbackAddress?: string;
179
196
  readonly callDataGasLimit?: string;
197
+ readonly refuel?: RefuelInfo;
180
198
  }
181
199
  interface StepEstimate {
182
200
  readonly tool: string;
@@ -267,6 +285,7 @@ interface RoutesRequestParams {
267
285
  readonly toAddress?: string;
268
286
  readonly slippage?: number;
269
287
  readonly preferences?: RoutePreferences;
288
+ readonly refuel?: boolean;
270
289
  }
271
290
  type RoutesResponse = readonly Route[];
272
291
 
@@ -339,6 +358,7 @@ interface Transaction {
339
358
  feeCosts: unknown[] | null;
340
359
  leafType: string | null;
341
360
  depositCount: number | null;
361
+ refuel?: boolean;
342
362
  };
343
363
  lastUpdatedAt: number;
344
364
  }
@@ -1062,4 +1082,4 @@ declare class AggLayerSDK {
1062
1082
  getNative(): NativeClient;
1063
1083
  }
1064
1084
 
1065
- 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 };
1085
+ 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 RefuelInfo, type RefuelToken, 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 };