@dzapio/sdk 2.0.48 → 2.0.49

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
@@ -3,6 +3,8 @@ import { WalletCallReceipt as WalletCallReceipt$1, TypedDataDomain, Prettify, Wa
3
3
  import { Signer } from 'ethers';
4
4
  import * as viemChains from 'viem/chains';
5
5
  import { Chain as Chain$2 } from 'viem/chains';
6
+ import { ChainId } from '@bigmi/core';
7
+ export { bitcoin } from '@bigmi/core';
6
8
 
7
9
  declare const STATUS: {
8
10
  pending: string;
@@ -2210,6 +2212,76 @@ declare const astralisTestnet: {
2210
2212
  verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2211
2213
  };
2212
2214
 
2215
+ declare const bitlayer: {
2216
+ blockExplorers: {
2217
+ readonly default: {
2218
+ readonly name: "bitlayer mainnet scan";
2219
+ readonly url: "https://www.btrscan.com";
2220
+ };
2221
+ };
2222
+ blockTime?: number | undefined | undefined;
2223
+ contracts: {
2224
+ readonly multicall3: {
2225
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
2226
+ readonly blockCreated: 3225645;
2227
+ };
2228
+ };
2229
+ ensTlds?: readonly string[] | undefined;
2230
+ id: 200901;
2231
+ name: "Bitlayer Mainnet";
2232
+ nativeCurrency: {
2233
+ readonly name: "BTC";
2234
+ readonly symbol: "BTC";
2235
+ readonly decimals: 18;
2236
+ };
2237
+ experimental_preconfirmationTime?: number | undefined | undefined;
2238
+ rpcUrls: {
2239
+ readonly default: {
2240
+ readonly http: readonly ["https://rpc.bitlayer.org"];
2241
+ readonly webSocket: readonly ["wss://ws.bitlayer.org"];
2242
+ };
2243
+ };
2244
+ sourceId?: number | undefined | undefined;
2245
+ testnet?: boolean | undefined | undefined;
2246
+ custom?: Record<string, unknown> | undefined;
2247
+ extendSchema?: Record<string, unknown> | undefined;
2248
+ fees?: viem.ChainFees<undefined> | undefined;
2249
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
2250
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2251
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
2252
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2253
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
2254
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
2255
+ }] | undefined;
2256
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
2257
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2258
+ formatters?: undefined | undefined;
2259
+ };
2260
+
2261
+ declare const bitcoinTestnet: {
2262
+ blockExplorers: {
2263
+ readonly default: {
2264
+ readonly name: "Mempool";
2265
+ readonly url: "https://mempool.space/testnet4";
2266
+ };
2267
+ };
2268
+ id: ChainId.BITCOIN_TESTNET4;
2269
+ name: "Bitcoin Testnet";
2270
+ rpcUrls: {
2271
+ readonly default: {
2272
+ readonly http: readonly ["https://bitcoin-testnet4.gateway.tatum.io"];
2273
+ };
2274
+ };
2275
+ testnet: true;
2276
+ custom?: Record<string, unknown> | undefined;
2277
+ formatters?: undefined;
2278
+ readonly nativeCurrency: {
2279
+ readonly name: "Bitcoin";
2280
+ readonly symbol: "BTC";
2281
+ readonly decimals: 8;
2282
+ };
2283
+ };
2284
+
2213
2285
  declare const citrea: {
2214
2286
  blockExplorers: {
2215
2287
  readonly default: {
@@ -2437,6 +2509,98 @@ declare const hyperliquid: {
2437
2509
  verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2438
2510
  };
2439
2511
 
2512
+ declare const katana: {
2513
+ blockExplorers: {
2514
+ readonly default: {
2515
+ readonly name: "katana explorer";
2516
+ readonly url: "https://katanascan.com";
2517
+ };
2518
+ };
2519
+ blockTime?: number | undefined | undefined;
2520
+ contracts: {
2521
+ readonly multicall3: {
2522
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
2523
+ readonly blockCreated: 1898013;
2524
+ };
2525
+ };
2526
+ ensTlds?: readonly string[] | undefined;
2527
+ id: 747474;
2528
+ name: "Katana";
2529
+ nativeCurrency: {
2530
+ readonly name: "Ether";
2531
+ readonly symbol: "ETH";
2532
+ readonly decimals: 18;
2533
+ };
2534
+ experimental_preconfirmationTime?: number | undefined | undefined;
2535
+ rpcUrls: {
2536
+ readonly default: {
2537
+ readonly http: readonly ["https://rpc.katana.network"];
2538
+ };
2539
+ };
2540
+ sourceId?: number | undefined | undefined;
2541
+ testnet: false;
2542
+ custom?: Record<string, unknown> | undefined;
2543
+ extendSchema?: Record<string, unknown> | undefined;
2544
+ fees?: viem.ChainFees<undefined> | undefined;
2545
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
2546
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2547
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
2548
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2549
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
2550
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
2551
+ }] | undefined;
2552
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
2553
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2554
+ formatters?: undefined | undefined;
2555
+ readonly network: "katana";
2556
+ };
2557
+
2558
+ declare const merlin: {
2559
+ blockExplorers: {
2560
+ readonly default: {
2561
+ readonly name: "blockscout";
2562
+ readonly url: "https://scan.merlinchain.io";
2563
+ readonly apiUrl: "https://scan.merlinchain.io/api";
2564
+ };
2565
+ };
2566
+ blockTime?: number | undefined | undefined;
2567
+ contracts: {
2568
+ readonly multicall3: {
2569
+ readonly address: "0xa8DceBAd1ea2fCf86De386462C14D7629237CC88";
2570
+ readonly blockCreated: 11997883;
2571
+ };
2572
+ };
2573
+ ensTlds?: readonly string[] | undefined;
2574
+ id: 4200;
2575
+ name: "Merlin";
2576
+ nativeCurrency: {
2577
+ readonly name: "BTC";
2578
+ readonly symbol: "BTC";
2579
+ readonly decimals: 18;
2580
+ };
2581
+ experimental_preconfirmationTime?: number | undefined | undefined;
2582
+ rpcUrls: {
2583
+ readonly default: {
2584
+ readonly http: readonly ["https://rpc.merlinchain.io"];
2585
+ };
2586
+ };
2587
+ sourceId?: number | undefined | undefined;
2588
+ testnet?: boolean | undefined | undefined;
2589
+ custom?: Record<string, unknown> | undefined;
2590
+ extendSchema?: Record<string, unknown> | undefined;
2591
+ fees?: viem.ChainFees<undefined> | undefined;
2592
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
2593
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2594
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
2595
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2596
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
2597
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
2598
+ }] | undefined;
2599
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
2600
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2601
+ formatters?: undefined | undefined;
2602
+ };
2603
+
2440
2604
  declare const pushTestnet: {
2441
2605
  blockExplorers: {
2442
2606
  readonly default: {
@@ -2578,4 +2742,4 @@ declare const robinhood: {
2578
2742
  declare const customViemChains: viemChains.Chain[];
2579
2743
  declare const viemChainsById: Record<number, viemChains.Chain>;
2580
2744
 
2581
- export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapIntegratorConfig, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusAsset, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
2745
+ export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapIntegratorConfig, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusAsset, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,8 @@ import { WalletCallReceipt as WalletCallReceipt$1, TypedDataDomain, Prettify, Wa
3
3
  import { Signer } from 'ethers';
4
4
  import * as viemChains from 'viem/chains';
5
5
  import { Chain as Chain$2 } from 'viem/chains';
6
+ import { ChainId } from '@bigmi/core';
7
+ export { bitcoin } from '@bigmi/core';
6
8
 
7
9
  declare const STATUS: {
8
10
  pending: string;
@@ -2210,6 +2212,76 @@ declare const astralisTestnet: {
2210
2212
  verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2211
2213
  };
2212
2214
 
2215
+ declare const bitlayer: {
2216
+ blockExplorers: {
2217
+ readonly default: {
2218
+ readonly name: "bitlayer mainnet scan";
2219
+ readonly url: "https://www.btrscan.com";
2220
+ };
2221
+ };
2222
+ blockTime?: number | undefined | undefined;
2223
+ contracts: {
2224
+ readonly multicall3: {
2225
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
2226
+ readonly blockCreated: 3225645;
2227
+ };
2228
+ };
2229
+ ensTlds?: readonly string[] | undefined;
2230
+ id: 200901;
2231
+ name: "Bitlayer Mainnet";
2232
+ nativeCurrency: {
2233
+ readonly name: "BTC";
2234
+ readonly symbol: "BTC";
2235
+ readonly decimals: 18;
2236
+ };
2237
+ experimental_preconfirmationTime?: number | undefined | undefined;
2238
+ rpcUrls: {
2239
+ readonly default: {
2240
+ readonly http: readonly ["https://rpc.bitlayer.org"];
2241
+ readonly webSocket: readonly ["wss://ws.bitlayer.org"];
2242
+ };
2243
+ };
2244
+ sourceId?: number | undefined | undefined;
2245
+ testnet?: boolean | undefined | undefined;
2246
+ custom?: Record<string, unknown> | undefined;
2247
+ extendSchema?: Record<string, unknown> | undefined;
2248
+ fees?: viem.ChainFees<undefined> | undefined;
2249
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
2250
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2251
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
2252
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2253
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
2254
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
2255
+ }] | undefined;
2256
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
2257
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2258
+ formatters?: undefined | undefined;
2259
+ };
2260
+
2261
+ declare const bitcoinTestnet: {
2262
+ blockExplorers: {
2263
+ readonly default: {
2264
+ readonly name: "Mempool";
2265
+ readonly url: "https://mempool.space/testnet4";
2266
+ };
2267
+ };
2268
+ id: ChainId.BITCOIN_TESTNET4;
2269
+ name: "Bitcoin Testnet";
2270
+ rpcUrls: {
2271
+ readonly default: {
2272
+ readonly http: readonly ["https://bitcoin-testnet4.gateway.tatum.io"];
2273
+ };
2274
+ };
2275
+ testnet: true;
2276
+ custom?: Record<string, unknown> | undefined;
2277
+ formatters?: undefined;
2278
+ readonly nativeCurrency: {
2279
+ readonly name: "Bitcoin";
2280
+ readonly symbol: "BTC";
2281
+ readonly decimals: 8;
2282
+ };
2283
+ };
2284
+
2213
2285
  declare const citrea: {
2214
2286
  blockExplorers: {
2215
2287
  readonly default: {
@@ -2437,6 +2509,98 @@ declare const hyperliquid: {
2437
2509
  verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2438
2510
  };
2439
2511
 
2512
+ declare const katana: {
2513
+ blockExplorers: {
2514
+ readonly default: {
2515
+ readonly name: "katana explorer";
2516
+ readonly url: "https://katanascan.com";
2517
+ };
2518
+ };
2519
+ blockTime?: number | undefined | undefined;
2520
+ contracts: {
2521
+ readonly multicall3: {
2522
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
2523
+ readonly blockCreated: 1898013;
2524
+ };
2525
+ };
2526
+ ensTlds?: readonly string[] | undefined;
2527
+ id: 747474;
2528
+ name: "Katana";
2529
+ nativeCurrency: {
2530
+ readonly name: "Ether";
2531
+ readonly symbol: "ETH";
2532
+ readonly decimals: 18;
2533
+ };
2534
+ experimental_preconfirmationTime?: number | undefined | undefined;
2535
+ rpcUrls: {
2536
+ readonly default: {
2537
+ readonly http: readonly ["https://rpc.katana.network"];
2538
+ };
2539
+ };
2540
+ sourceId?: number | undefined | undefined;
2541
+ testnet: false;
2542
+ custom?: Record<string, unknown> | undefined;
2543
+ extendSchema?: Record<string, unknown> | undefined;
2544
+ fees?: viem.ChainFees<undefined> | undefined;
2545
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
2546
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2547
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
2548
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2549
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
2550
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
2551
+ }] | undefined;
2552
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
2553
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2554
+ formatters?: undefined | undefined;
2555
+ readonly network: "katana";
2556
+ };
2557
+
2558
+ declare const merlin: {
2559
+ blockExplorers: {
2560
+ readonly default: {
2561
+ readonly name: "blockscout";
2562
+ readonly url: "https://scan.merlinchain.io";
2563
+ readonly apiUrl: "https://scan.merlinchain.io/api";
2564
+ };
2565
+ };
2566
+ blockTime?: number | undefined | undefined;
2567
+ contracts: {
2568
+ readonly multicall3: {
2569
+ readonly address: "0xa8DceBAd1ea2fCf86De386462C14D7629237CC88";
2570
+ readonly blockCreated: 11997883;
2571
+ };
2572
+ };
2573
+ ensTlds?: readonly string[] | undefined;
2574
+ id: 4200;
2575
+ name: "Merlin";
2576
+ nativeCurrency: {
2577
+ readonly name: "BTC";
2578
+ readonly symbol: "BTC";
2579
+ readonly decimals: 18;
2580
+ };
2581
+ experimental_preconfirmationTime?: number | undefined | undefined;
2582
+ rpcUrls: {
2583
+ readonly default: {
2584
+ readonly http: readonly ["https://rpc.merlinchain.io"];
2585
+ };
2586
+ };
2587
+ sourceId?: number | undefined | undefined;
2588
+ testnet?: boolean | undefined | undefined;
2589
+ custom?: Record<string, unknown> | undefined;
2590
+ extendSchema?: Record<string, unknown> | undefined;
2591
+ fees?: viem.ChainFees<undefined> | undefined;
2592
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
2593
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2594
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
2595
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
2596
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
2597
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
2598
+ }] | undefined;
2599
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
2600
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
2601
+ formatters?: undefined | undefined;
2602
+ };
2603
+
2440
2604
  declare const pushTestnet: {
2441
2605
  blockExplorers: {
2442
2606
  readonly default: {
@@ -2578,4 +2742,4 @@ declare const robinhood: {
2578
2742
  declare const customViemChains: viemChains.Chain[];
2579
2743
  declare const viemChainsById: Record<number, viemChains.Chain>;
2580
2744
 
2581
- export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapIntegratorConfig, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusAsset, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
2745
+ export { type AllowanceType, AllowanceTypes, type ApiRpcResponse, type ApprovalMode, ApprovalModes, type BatchPermitCallbackParams, type BtcTxData, type BtclnTxData, type Chain, type ChainData, type ContractErrorResponse, DZapClient, DZapPermitMode, type DZapTransactionResponse, type EvmTxData, type Fee, type FeeDetails, type GaslessTradeBuildTxnResponse, type HexString, type HyperLiquidTxData, OtherAbis, type ParamQuotes, type PermitMode, PermitTypes, type ProtocolAmountErrorDetails, type ProtocolAmountReason, type ProtocolErrorInfo, type ProtocolErrorType, type ProtocolRouteErrorDetails, type ProtocolRouteReason, type ProtocolSlippageErrorDetails, type ProtocolUnknownErrorDetails, type ProviderDetails, type PsbtInput, type PsbtOutput, type QuoteFilter, QuoteFilters, STATUS, type SVMTxnDetails, Services, type SignPermitResponse, type SignatureCallbackParams, SignatureExpiryInSecs, type SinglePermitCallbackParams, StatusCodes, type StepAction, type SvmTxData, type SwapInfo, SwapInputDataDecoder, type Token, type TokenInfo, type TokenPermitData, type TokenResponse, type TradeBuildTxnRequest, type TradeBuildTxnRequestData, type TradeBuildTxnResponse, type TradeGasBuildTxnResponse, type TradePath, type TradeQuotesRequest, type TradeQuotesRequestData, type TradeQuotesResponse, type TradeStatusResponse, type TradeStep, TxnStatus, type UnavailableRoutes, type ZapBuildTxnRequest, type ZapBuildTxnResponse, type ZapBundleAction, type ZapBundleRequest, type ZapBundleSrcToken, type ZapBvmTxnDetails, type ZapChains, type ZapEvmTxnDetails, type ZapFee, type ZapIntegratorConfig, type ZapPath, type ZapPathAction, type ZapPathAsset, type ZapPool, type ZapPoolDetails, type ZapPoolDetailsRequest, type ZapPoolsRequest, type ZapPoolsResponse, type ZapPosition, type ZapPositionsRequest, type ZapPositionsResponse, type ZapProviders, type ZapQuoteRequest, type ZapQuoteResponse, type ZapRouteRequestPoolDetails, type ZapRouteRequestPositionDetails, type ZapStatus, type ZapStatusAsset, type ZapStatusRequest, type ZapStatusResponse, type ZapStatusStep, type ZapStep, type ZapTransactionStep, type ZapTxnDetails, type ZapUnderlyingToken, type ZapUnderlyingTokenWithAmount, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ var viem = require('viem');
4
4
  var Axios = require('axios');
5
5
  var ethers = require('ethers');
6
6
  var viemChains = require('viem/chains');
7
+ var core = require('@bigmi/core');
7
8
  var utils = require('viem/utils');
8
9
  var actions = require('viem/actions');
9
10
  var Decimal = require('decimal.js');
@@ -10683,6 +10684,14 @@ var astralisTestnet = /* @__PURE__ */ viem.defineChain({
10683
10684
  }
10684
10685
  }
10685
10686
  });
10687
+ var bitlayer = extendViemChain(viemChains.bitlayer, {
10688
+ contracts: {
10689
+ multicall3: {
10690
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
10691
+ blockCreated: 3225645
10692
+ }
10693
+ }
10694
+ });
10686
10695
  var citrea = extendViemChain(viemChains.citrea, {
10687
10696
  contracts: {
10688
10697
  multicall3: {
@@ -10767,6 +10776,22 @@ var hyperliquid = /* @__PURE__ */ viem.defineChain({
10767
10776
  }
10768
10777
  }
10769
10778
  });
10779
+ var katana = extendViemChain(viemChains.katana, {
10780
+ contracts: {
10781
+ multicall3: {
10782
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
10783
+ blockCreated: 1898013
10784
+ }
10785
+ }
10786
+ });
10787
+ var merlin = extendViemChain(viemChains.merlin, {
10788
+ contracts: {
10789
+ multicall3: {
10790
+ address: "0xa8DceBAd1ea2fCf86De386462C14D7629237CC88",
10791
+ blockCreated: 11997883
10792
+ }
10793
+ }
10794
+ });
10770
10795
  var pushTestnet = /* @__PURE__ */ viem.defineChain({
10771
10796
  id: 42101,
10772
10797
  name: "Push Testnet",
@@ -10851,6 +10876,23 @@ var tempo = viemChains.tempo.extend({
10851
10876
  }
10852
10877
  }
10853
10878
  });
10879
+ var bitcoinTestnet = /* @__PURE__ */ core.defineChain({
10880
+ id: core.ChainId.BITCOIN_TESTNET4,
10881
+ name: "Bitcoin Testnet",
10882
+ nativeCurrency: { name: "Bitcoin", symbol: "BTC", decimals: 8 },
10883
+ rpcUrls: {
10884
+ default: {
10885
+ http: ["https://bitcoin-testnet4.gateway.tatum.io"]
10886
+ }
10887
+ },
10888
+ blockExplorers: {
10889
+ default: {
10890
+ name: "Mempool",
10891
+ url: "https://mempool.space/testnet4"
10892
+ }
10893
+ },
10894
+ testnet: true
10895
+ });
10854
10896
 
10855
10897
  // src/chains/index.ts
10856
10898
  var customViemChains = [
@@ -10865,7 +10907,10 @@ var customViemChains = [
10865
10907
  hemi,
10866
10908
  citrea,
10867
10909
  robinhood,
10868
- arcTestnet
10910
+ arcTestnet,
10911
+ bitlayer,
10912
+ merlin,
10913
+ katana
10869
10914
  ];
10870
10915
  var viemChainsById = [...Object.values(viemChains__namespace), ...customViemChains].reduce((acc, chainData) => {
10871
10916
  return chainData.id ? {
@@ -17053,6 +17098,10 @@ var zapPathAction = {
17053
17098
  harvest: "harvest"
17054
17099
  };
17055
17100
 
17101
+ Object.defineProperty(exports, "bitcoin", {
17102
+ enumerable: true,
17103
+ get: function () { return core.bitcoin; }
17104
+ });
17056
17105
  exports.AllowanceTypes = AllowanceTypes;
17057
17106
  exports.ApprovalModes = ApprovalModes;
17058
17107
  exports.DZapClient = dZapClient_default;
@@ -17069,6 +17118,8 @@ exports.TxnStatus = TxnStatus;
17069
17118
  exports.arcTestnet = arcTestnet;
17070
17119
  exports.arthera = arthera;
17071
17120
  exports.astralisTestnet = astralisTestnet;
17121
+ exports.bitcoinTestnet = bitcoinTestnet;
17122
+ exports.bitlayer = bitlayer;
17072
17123
  exports.checkEIP2612PermitSupport = checkEIP2612PermitSupport;
17073
17124
  exports.citrea = citrea;
17074
17125
  exports.classifyAddress = classifyAddress;
@@ -17082,6 +17133,8 @@ exports.getTokensPairKey = getTokensPairKey;
17082
17133
  exports.hemi = hemi;
17083
17134
  exports.hyperEvm = hyperEvm;
17084
17135
  exports.hyperliquid = hyperliquid;
17136
+ exports.katana = katana;
17137
+ exports.merlin = merlin;
17085
17138
  exports.pushTestnet = pushTestnet;
17086
17139
  exports.robinhood = robinhood;
17087
17140
  exports.stableChain = stableChain;
package/dist/index.mjs CHANGED
@@ -1,8 +1,10 @@
1
- import { encodeAbiParameters, parseAbiParameters, keccak256, encodePacked, stringToHex, defineChain, zeroAddress as zeroAddress$1, isAddress, getAddress, formatUnits, http, createPublicClient, fallback, parseEventLogs, maxUint256, encodeFunctionData, maxUint48, getContract, decodeAbiParameters } from 'viem';
1
+ import { encodeAbiParameters, parseAbiParameters, keccak256, encodePacked, stringToHex, defineChain as defineChain$1, zeroAddress as zeroAddress$1, isAddress, getAddress, formatUnits, http, createPublicClient, fallback, parseEventLogs, maxUint256, encodeFunctionData, maxUint48, getContract, decodeAbiParameters } from 'viem';
2
2
  import Axios from 'axios';
3
3
  import { Signer, ethers } from 'ethers';
4
4
  import * as viemChains from 'viem/chains';
5
- import { arcTestnet as arcTestnet$1, tempo as tempo$1, hemi as hemi$1, citrea as citrea$1 } from 'viem/chains';
5
+ import { arcTestnet as arcTestnet$1, tempo as tempo$1, hemi as hemi$1, citrea as citrea$1, bitlayer as bitlayer$1, merlin as merlin$1, katana as katana$1 } from 'viem/chains';
6
+ import { defineChain, ChainId } from '@bigmi/core';
7
+ export { bitcoin } from '@bigmi/core';
6
8
  import { decodeFunctionData, getAction } from 'viem/utils';
7
9
  import { waitForCallsStatus, sendCalls } from 'viem/actions';
8
10
  import Decimal from 'decimal.js';
@@ -10609,7 +10611,7 @@ var arcTestnet = extendViemChain(arcTestnet$1, {
10609
10611
  }
10610
10612
  }
10611
10613
  });
10612
- var arthera = /* @__PURE__ */ defineChain({
10614
+ var arthera = /* @__PURE__ */ defineChain$1({
10613
10615
  id: 10242,
10614
10616
  name: "Arthera",
10615
10617
  nativeCurrency: {
@@ -10633,7 +10635,7 @@ var arthera = /* @__PURE__ */ defineChain({
10633
10635
  }
10634
10636
  }
10635
10637
  });
10636
- var astralisTestnet = /* @__PURE__ */ defineChain({
10638
+ var astralisTestnet = /* @__PURE__ */ defineChain$1({
10637
10639
  id: 71261,
10638
10640
  name: "Astralis Chain",
10639
10641
  nativeCurrency: {
@@ -10657,6 +10659,14 @@ var astralisTestnet = /* @__PURE__ */ defineChain({
10657
10659
  }
10658
10660
  }
10659
10661
  });
10662
+ var bitlayer = extendViemChain(bitlayer$1, {
10663
+ contracts: {
10664
+ multicall3: {
10665
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
10666
+ blockCreated: 3225645
10667
+ }
10668
+ }
10669
+ });
10660
10670
  var citrea = extendViemChain(citrea$1, {
10661
10671
  contracts: {
10662
10672
  multicall3: {
@@ -10665,7 +10675,7 @@ var citrea = extendViemChain(citrea$1, {
10665
10675
  }
10666
10676
  }
10667
10677
  });
10668
- var fiveIre = /* @__PURE__ */ defineChain({
10678
+ var fiveIre = /* @__PURE__ */ defineChain$1({
10669
10679
  id: 995,
10670
10680
  name: "5ire",
10671
10681
  nativeCurrency: {
@@ -10697,7 +10707,7 @@ var hemi = extendViemChain(hemi$1, {
10697
10707
  }
10698
10708
  }
10699
10709
  });
10700
- var hyperEvm = /* @__PURE__ */ defineChain({
10710
+ var hyperEvm = /* @__PURE__ */ defineChain$1({
10701
10711
  id: 999,
10702
10712
  name: "HyperEVM",
10703
10713
  nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 },
@@ -10719,7 +10729,7 @@ var hyperEvm = /* @__PURE__ */ defineChain({
10719
10729
  }
10720
10730
  }
10721
10731
  });
10722
- var hyperliquid = /* @__PURE__ */ defineChain({
10732
+ var hyperliquid = /* @__PURE__ */ defineChain$1({
10723
10733
  id: 1337,
10724
10734
  name: "Hyperliquid",
10725
10735
  nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 },
@@ -10741,7 +10751,23 @@ var hyperliquid = /* @__PURE__ */ defineChain({
10741
10751
  }
10742
10752
  }
10743
10753
  });
10744
- var pushTestnet = /* @__PURE__ */ defineChain({
10754
+ var katana = extendViemChain(katana$1, {
10755
+ contracts: {
10756
+ multicall3: {
10757
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
10758
+ blockCreated: 1898013
10759
+ }
10760
+ }
10761
+ });
10762
+ var merlin = extendViemChain(merlin$1, {
10763
+ contracts: {
10764
+ multicall3: {
10765
+ address: "0xa8DceBAd1ea2fCf86De386462C14D7629237CC88",
10766
+ blockCreated: 11997883
10767
+ }
10768
+ }
10769
+ });
10770
+ var pushTestnet = /* @__PURE__ */ defineChain$1({
10745
10771
  id: 42101,
10746
10772
  name: "Push Testnet",
10747
10773
  nativeCurrency: {
@@ -10765,7 +10791,7 @@ var pushTestnet = /* @__PURE__ */ defineChain({
10765
10791
  }
10766
10792
  }
10767
10793
  });
10768
- var robinhood = /* @__PURE__ */ defineChain({
10794
+ var robinhood = /* @__PURE__ */ defineChain$1({
10769
10795
  id: 4663,
10770
10796
  name: "Robinhood",
10771
10797
  nativeCurrency: {
@@ -10789,7 +10815,7 @@ var robinhood = /* @__PURE__ */ defineChain({
10789
10815
  }
10790
10816
  }
10791
10817
  });
10792
- var stableChain = /* @__PURE__ */ defineChain({
10818
+ var stableChain = /* @__PURE__ */ defineChain$1({
10793
10819
  id: 988,
10794
10820
  name: "Stable",
10795
10821
  nativeCurrency: {
@@ -10825,6 +10851,23 @@ var tempo = tempo$1.extend({
10825
10851
  }
10826
10852
  }
10827
10853
  });
10854
+ var bitcoinTestnet = /* @__PURE__ */ defineChain({
10855
+ id: ChainId.BITCOIN_TESTNET4,
10856
+ name: "Bitcoin Testnet",
10857
+ nativeCurrency: { name: "Bitcoin", symbol: "BTC", decimals: 8 },
10858
+ rpcUrls: {
10859
+ default: {
10860
+ http: ["https://bitcoin-testnet4.gateway.tatum.io"]
10861
+ }
10862
+ },
10863
+ blockExplorers: {
10864
+ default: {
10865
+ name: "Mempool",
10866
+ url: "https://mempool.space/testnet4"
10867
+ }
10868
+ },
10869
+ testnet: true
10870
+ });
10828
10871
 
10829
10872
  // src/chains/index.ts
10830
10873
  var customViemChains = [
@@ -10839,7 +10882,10 @@ var customViemChains = [
10839
10882
  hemi,
10840
10883
  citrea,
10841
10884
  robinhood,
10842
- arcTestnet
10885
+ arcTestnet,
10886
+ bitlayer,
10887
+ merlin,
10888
+ katana
10843
10889
  ];
10844
10890
  var viemChainsById = [...Object.values(viemChains), ...customViemChains].reduce((acc, chainData) => {
10845
10891
  return chainData.id ? {
@@ -17027,4 +17073,4 @@ var zapPathAction = {
17027
17073
  harvest: "harvest"
17028
17074
  };
17029
17075
 
17030
- export { AllowanceTypes, ApprovalModes, dZapClient_default as DZapClient, DZapPermitMode, OtherAbis, PermitTypes, QuoteFilters, STATUS, Services, SignatureExpiryInSecs, StatusCodes, SwapInputDataDecoder, TxnStatus, arcTestnet, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
17076
+ export { AllowanceTypes, ApprovalModes, dZapClient_default as DZapClient, DZapPermitMode, OtherAbis, PermitTypes, QuoteFilters, STATUS, Services, SignatureExpiryInSecs, StatusCodes, SwapInputDataDecoder, TxnStatus, arcTestnet, arthera, astralisTestnet, bitcoinTestnet, bitlayer, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, katana, merlin, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzapio/sdk",
3
- "version": "2.0.48",
3
+ "version": "2.0.49",
4
4
  "description": "A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",
@@ -106,6 +106,7 @@
106
106
  "dependencies": {
107
107
  "@solana/web3.js": "1.95.8",
108
108
  "axios": "^1.2.1",
109
+ "@bigmi/core": "^0.6.0",
109
110
  "bitcoin-address-validation": "^2.2.3",
110
111
  "decimal.js": "^10.4.3",
111
112
  "ethers": "5.7.2",