@avalabs/bridge-unified
Advanced tools
Comparing version 0.0.0-CP-8544-avalanche-bridge-20240911191345 to 0.0.0-CP-8544-estimate-gas-20240912213046
@@ -134,2 +134,3 @@ import { Address } from 'viem'; | ||
}; | ||
type GasEstimationParams = Omit<TransferParams, 'sign'>; | ||
type TrackingParams = { | ||
@@ -143,3 +144,3 @@ bridgeTransfer: BridgeTransfer; | ||
type: BridgeType; | ||
estimateGas: (params: TransferParams) => Promise<bigint>; | ||
estimateGas: (params: GasEstimationParams) => Promise<bigint>; | ||
getAssets: () => ChainAssetMap; | ||
@@ -192,3 +193,3 @@ getFees: (params: FeeParams) => Promise<AssetFeeMap>; | ||
getFees: (params: FeeParams) => Promise<AssetFeeMap>; | ||
estimateGas: (params: TransferParams) => Promise<bigint>; | ||
estimateGas: (params: GasEstimationParams) => Promise<bigint>; | ||
canTransferAsset: (asset: BridgeAsset, targetChainId: string) => boolean; | ||
@@ -214,2 +215,2 @@ transferAsset: (params: TransferParams) => Promise<BridgeTransfer>; | ||
export { Asset, AssetFeeMap, BridgeAsset, BridgeService, BridgeServiceConfig, BridgeServiceFactory, BridgeServicesMap, BridgeSignatureReason, BridgeStepDetails, BridgeTransfer, BridgeType, Chain, ChainAssetMap, DestinationInfo, Dispatch, Environment, Erc20Asset, ErrorCode, ErrorReason, FeeParams, Hex, NativeAsset, Provider, Signer, TokenType, TrackingParams, TransactionRequest, TransferParams, _default as caip2, createUnifiedBridgeService, getEnabledBridgeServices, isErc20Asset, isNativeAsset }; | ||
export { Asset, AssetFeeMap, BridgeAsset, BridgeService, BridgeServiceConfig, BridgeServiceFactory, BridgeServicesMap, BridgeSignatureReason, BridgeStepDetails, BridgeTransfer, BridgeType, Chain, ChainAssetMap, DestinationInfo, Dispatch, Environment, Erc20Asset, ErrorCode, ErrorReason, FeeParams, GasEstimationParams, Hex, NativeAsset, Provider, Signer, TokenType, TrackingParams, TransactionRequest, TransferParams, _default as caip2, createUnifiedBridgeService, getEnabledBridgeServices, isErc20Asset, isNativeAsset }; |
{ | ||
"name": "@avalabs/bridge-unified", | ||
"license": "Limited Ecosystem License", | ||
"version": "0.0.0-CP-8544-avalanche-bridge-20240911191345", | ||
"version": "0.0.0-CP-8544-estimate-gas-20240912213046", | ||
"main": "dist/index.cjs", | ||
@@ -6,0 +6,0 @@ "module": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
790058
870