@avalabs/bridge-unified
Advanced tools
Comparing version 0.0.0-CP-8544-avalanche-bridge-20240906211153 to 0.0.0-CP-8544-avalanche-bridge-20240909181422
@@ -101,3 +101,3 @@ import { Address } from 'viem'; | ||
declare enum BridgeType { | ||
AVALANCHE = "avalanche", | ||
AVALANCHE_EVM = "avalanche-evm", | ||
CCTP = "cctp", | ||
@@ -157,4 +157,3 @@ ICTT_ERC20_ERC20 = "ictt-erc20-erc20" | ||
NATIVE = "native", | ||
ERC20 = "erc20", | ||
BTC = "btc" | ||
ERC20 = "erc20" | ||
} | ||
@@ -173,9 +172,5 @@ type BaseAsset = { | ||
}; | ||
type BitcoinAsset = BaseAsset & { | ||
type: TokenType.BTC; | ||
}; | ||
declare const isErc20Asset: (asset: Asset) => asset is Erc20Asset; | ||
declare const isNativeAsset: (asset: Asset) => asset is NativeAsset; | ||
declare const isBitcoinAsset: (asset: Asset) => asset is BitcoinAsset; | ||
type Asset = Erc20Asset | NativeAsset | BitcoinAsset; | ||
type Asset = Erc20Asset | NativeAsset; | ||
type DestinationInfo = Record<string, BridgeType[]>; | ||
@@ -219,2 +214,2 @@ type BridgeAsset = Asset & { | ||
export { Asset, AssetFeeMap, BitcoinAsset, 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, isBitcoinAsset, isErc20Asset, isNativeAsset }; | ||
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 }; |
{ | ||
"name": "@avalabs/bridge-unified", | ||
"license": "Limited Ecosystem License", | ||
"version": "0.0.0-CP-8544-avalanche-bridge-20240906211153", | ||
"version": "0.0.0-CP-8544-avalanche-bridge-20240909181422", | ||
"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
786961
867