@avalabs/bridge-unified 3.1.0 → 4.0.0

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.cts CHANGED
@@ -148,6 +148,7 @@ type EvmTransactionRequest = {
148
148
  gasLimit?: bigint | null;
149
149
  maxPriorityFeePerGas?: bigint | null;
150
150
  maxFeePerGas?: bigint | null;
151
+ chainId?: string;
151
152
  };
152
153
  type EvmDispatch = (signedTxHash: Hex) => Promise<Hex>;
153
154
  type EvmSign = (data: EvmTransactionRequest, dispatch: EvmDispatch, step: BridgeStepDetails) => Promise<Hex>;
@@ -362,7 +363,7 @@ type BridgeAsset = Asset & {
362
363
  destinations: DestinationInfo;
363
364
  };
364
365
  type ChainAssetMap = Record<string, BridgeAsset[]>;
365
- type AssetFeeMap = Partial<Record<Address | 'NATIVE', bigint>>;
366
+ type AssetFeeMap = Record<string, Partial<Record<Address | 'NATIVE', bigint>>>;
366
367
 
367
368
  type BridgeServicesMap = Map<BridgeType, BridgeService>;
368
369
  type BridgeServiceConfig = {
@@ -383,6 +384,7 @@ type Caip2ChainId = {
383
384
  declare const _default: {
384
385
  toJSON: (identifier: string) => Caip2ChainId;
385
386
  toString: ({ namespace, reference }: Caip2ChainId) => string;
387
+ toEip155HexChainId: ({ namespace, reference }: Caip2ChainId) => string;
386
388
  };
387
389
 
388
390
  declare const getEnabledBridgeServices: (environment: Environment, enabledBridgeInitializers: BridgeInitializer[]) => Promise<BridgeServicesMap>;
package/dist/index.d.ts CHANGED
@@ -148,6 +148,7 @@ type EvmTransactionRequest = {
148
148
  gasLimit?: bigint | null;
149
149
  maxPriorityFeePerGas?: bigint | null;
150
150
  maxFeePerGas?: bigint | null;
151
+ chainId?: string;
151
152
  };
152
153
  type EvmDispatch = (signedTxHash: Hex) => Promise<Hex>;
153
154
  type EvmSign = (data: EvmTransactionRequest, dispatch: EvmDispatch, step: BridgeStepDetails) => Promise<Hex>;
@@ -362,7 +363,7 @@ type BridgeAsset = Asset & {
362
363
  destinations: DestinationInfo;
363
364
  };
364
365
  type ChainAssetMap = Record<string, BridgeAsset[]>;
365
- type AssetFeeMap = Partial<Record<Address | 'NATIVE', bigint>>;
366
+ type AssetFeeMap = Record<string, Partial<Record<Address | 'NATIVE', bigint>>>;
366
367
 
367
368
  type BridgeServicesMap = Map<BridgeType, BridgeService>;
368
369
  type BridgeServiceConfig = {
@@ -383,6 +384,7 @@ type Caip2ChainId = {
383
384
  declare const _default: {
384
385
  toJSON: (identifier: string) => Caip2ChainId;
385
386
  toString: ({ namespace, reference }: Caip2ChainId) => string;
387
+ toEip155HexChainId: ({ namespace, reference }: Caip2ChainId) => string;
386
388
  };
387
389
 
388
390
  declare const getEnabledBridgeServices: (environment: Environment, enabledBridgeInitializers: BridgeInitializer[]) => Promise<BridgeServicesMap>;