@dzapio/sdk 2.0.47 → 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 +165 -1
- package/dist/index.d.ts +165 -1
- package/dist/index.js +55 -4
- package/dist/index.mjs +59 -15
- package/package.json +2 -1
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');
|
|
@@ -568,7 +569,6 @@ var artheraNativeToken = "0x000000000000000000000000000000000000aA09";
|
|
|
568
569
|
var suiNativeToken = "0x2::sui::SUI";
|
|
569
570
|
var aptosNativeToken = "0x1::aptos_coin::AptosCoin";
|
|
570
571
|
var stableChainNativeToken = "0x0000000000000000000000000000000000001000";
|
|
571
|
-
var arcNativeToken = "0x3600000000000000000000000000000000000000";
|
|
572
572
|
var nativeTokens = [
|
|
573
573
|
"0x0000000000000000000000000000000000001010",
|
|
574
574
|
eFormatNativeTokenLowerCase,
|
|
@@ -581,8 +581,7 @@ var nativeTokens = [
|
|
|
581
581
|
artheraNativeToken,
|
|
582
582
|
suiNativeToken,
|
|
583
583
|
aptosNativeToken,
|
|
584
|
-
stableChainNativeToken
|
|
585
|
-
arcNativeToken
|
|
584
|
+
stableChainNativeToken
|
|
586
585
|
];
|
|
587
586
|
|
|
588
587
|
// src/service/price/types/IPriceProvider.ts
|
|
@@ -10685,6 +10684,14 @@ var astralisTestnet = /* @__PURE__ */ viem.defineChain({
|
|
|
10685
10684
|
}
|
|
10686
10685
|
}
|
|
10687
10686
|
});
|
|
10687
|
+
var bitlayer = extendViemChain(viemChains.bitlayer, {
|
|
10688
|
+
contracts: {
|
|
10689
|
+
multicall3: {
|
|
10690
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
10691
|
+
blockCreated: 3225645
|
|
10692
|
+
}
|
|
10693
|
+
}
|
|
10694
|
+
});
|
|
10688
10695
|
var citrea = extendViemChain(viemChains.citrea, {
|
|
10689
10696
|
contracts: {
|
|
10690
10697
|
multicall3: {
|
|
@@ -10769,6 +10776,22 @@ var hyperliquid = /* @__PURE__ */ viem.defineChain({
|
|
|
10769
10776
|
}
|
|
10770
10777
|
}
|
|
10771
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
|
+
});
|
|
10772
10795
|
var pushTestnet = /* @__PURE__ */ viem.defineChain({
|
|
10773
10796
|
id: 42101,
|
|
10774
10797
|
name: "Push Testnet",
|
|
@@ -10853,6 +10876,23 @@ var tempo = viemChains.tempo.extend({
|
|
|
10853
10876
|
}
|
|
10854
10877
|
}
|
|
10855
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
|
+
});
|
|
10856
10896
|
|
|
10857
10897
|
// src/chains/index.ts
|
|
10858
10898
|
var customViemChains = [
|
|
@@ -10867,7 +10907,10 @@ var customViemChains = [
|
|
|
10867
10907
|
hemi,
|
|
10868
10908
|
citrea,
|
|
10869
10909
|
robinhood,
|
|
10870
|
-
arcTestnet
|
|
10910
|
+
arcTestnet,
|
|
10911
|
+
bitlayer,
|
|
10912
|
+
merlin,
|
|
10913
|
+
katana
|
|
10871
10914
|
];
|
|
10872
10915
|
var viemChainsById = [...Object.values(viemChains__namespace), ...customViemChains].reduce((acc, chainData) => {
|
|
10873
10916
|
return chainData.id ? {
|
|
@@ -17055,6 +17098,10 @@ var zapPathAction = {
|
|
|
17055
17098
|
harvest: "harvest"
|
|
17056
17099
|
};
|
|
17057
17100
|
|
|
17101
|
+
Object.defineProperty(exports, "bitcoin", {
|
|
17102
|
+
enumerable: true,
|
|
17103
|
+
get: function () { return core.bitcoin; }
|
|
17104
|
+
});
|
|
17058
17105
|
exports.AllowanceTypes = AllowanceTypes;
|
|
17059
17106
|
exports.ApprovalModes = ApprovalModes;
|
|
17060
17107
|
exports.DZapClient = dZapClient_default;
|
|
@@ -17071,6 +17118,8 @@ exports.TxnStatus = TxnStatus;
|
|
|
17071
17118
|
exports.arcTestnet = arcTestnet;
|
|
17072
17119
|
exports.arthera = arthera;
|
|
17073
17120
|
exports.astralisTestnet = astralisTestnet;
|
|
17121
|
+
exports.bitcoinTestnet = bitcoinTestnet;
|
|
17122
|
+
exports.bitlayer = bitlayer;
|
|
17074
17123
|
exports.checkEIP2612PermitSupport = checkEIP2612PermitSupport;
|
|
17075
17124
|
exports.citrea = citrea;
|
|
17076
17125
|
exports.classifyAddress = classifyAddress;
|
|
@@ -17084,6 +17133,8 @@ exports.getTokensPairKey = getTokensPairKey;
|
|
|
17084
17133
|
exports.hemi = hemi;
|
|
17085
17134
|
exports.hyperEvm = hyperEvm;
|
|
17086
17135
|
exports.hyperliquid = hyperliquid;
|
|
17136
|
+
exports.katana = katana;
|
|
17137
|
+
exports.merlin = merlin;
|
|
17087
17138
|
exports.pushTestnet = pushTestnet;
|
|
17088
17139
|
exports.robinhood = robinhood;
|
|
17089
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';
|
|
@@ -542,7 +544,6 @@ var artheraNativeToken = "0x000000000000000000000000000000000000aA09";
|
|
|
542
544
|
var suiNativeToken = "0x2::sui::SUI";
|
|
543
545
|
var aptosNativeToken = "0x1::aptos_coin::AptosCoin";
|
|
544
546
|
var stableChainNativeToken = "0x0000000000000000000000000000000000001000";
|
|
545
|
-
var arcNativeToken = "0x3600000000000000000000000000000000000000";
|
|
546
547
|
var nativeTokens = [
|
|
547
548
|
"0x0000000000000000000000000000000000001010",
|
|
548
549
|
eFormatNativeTokenLowerCase,
|
|
@@ -555,8 +556,7 @@ var nativeTokens = [
|
|
|
555
556
|
artheraNativeToken,
|
|
556
557
|
suiNativeToken,
|
|
557
558
|
aptosNativeToken,
|
|
558
|
-
stableChainNativeToken
|
|
559
|
-
arcNativeToken
|
|
559
|
+
stableChainNativeToken
|
|
560
560
|
];
|
|
561
561
|
|
|
562
562
|
// src/service/price/types/IPriceProvider.ts
|
|
@@ -10611,7 +10611,7 @@ var arcTestnet = extendViemChain(arcTestnet$1, {
|
|
|
10611
10611
|
}
|
|
10612
10612
|
}
|
|
10613
10613
|
});
|
|
10614
|
-
var arthera = /* @__PURE__ */ defineChain({
|
|
10614
|
+
var arthera = /* @__PURE__ */ defineChain$1({
|
|
10615
10615
|
id: 10242,
|
|
10616
10616
|
name: "Arthera",
|
|
10617
10617
|
nativeCurrency: {
|
|
@@ -10635,7 +10635,7 @@ var arthera = /* @__PURE__ */ defineChain({
|
|
|
10635
10635
|
}
|
|
10636
10636
|
}
|
|
10637
10637
|
});
|
|
10638
|
-
var astralisTestnet = /* @__PURE__ */ defineChain({
|
|
10638
|
+
var astralisTestnet = /* @__PURE__ */ defineChain$1({
|
|
10639
10639
|
id: 71261,
|
|
10640
10640
|
name: "Astralis Chain",
|
|
10641
10641
|
nativeCurrency: {
|
|
@@ -10659,6 +10659,14 @@ var astralisTestnet = /* @__PURE__ */ defineChain({
|
|
|
10659
10659
|
}
|
|
10660
10660
|
}
|
|
10661
10661
|
});
|
|
10662
|
+
var bitlayer = extendViemChain(bitlayer$1, {
|
|
10663
|
+
contracts: {
|
|
10664
|
+
multicall3: {
|
|
10665
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
10666
|
+
blockCreated: 3225645
|
|
10667
|
+
}
|
|
10668
|
+
}
|
|
10669
|
+
});
|
|
10662
10670
|
var citrea = extendViemChain(citrea$1, {
|
|
10663
10671
|
contracts: {
|
|
10664
10672
|
multicall3: {
|
|
@@ -10667,7 +10675,7 @@ var citrea = extendViemChain(citrea$1, {
|
|
|
10667
10675
|
}
|
|
10668
10676
|
}
|
|
10669
10677
|
});
|
|
10670
|
-
var fiveIre = /* @__PURE__ */ defineChain({
|
|
10678
|
+
var fiveIre = /* @__PURE__ */ defineChain$1({
|
|
10671
10679
|
id: 995,
|
|
10672
10680
|
name: "5ire",
|
|
10673
10681
|
nativeCurrency: {
|
|
@@ -10699,7 +10707,7 @@ var hemi = extendViemChain(hemi$1, {
|
|
|
10699
10707
|
}
|
|
10700
10708
|
}
|
|
10701
10709
|
});
|
|
10702
|
-
var hyperEvm = /* @__PURE__ */ defineChain({
|
|
10710
|
+
var hyperEvm = /* @__PURE__ */ defineChain$1({
|
|
10703
10711
|
id: 999,
|
|
10704
10712
|
name: "HyperEVM",
|
|
10705
10713
|
nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 },
|
|
@@ -10721,7 +10729,7 @@ var hyperEvm = /* @__PURE__ */ defineChain({
|
|
|
10721
10729
|
}
|
|
10722
10730
|
}
|
|
10723
10731
|
});
|
|
10724
|
-
var hyperliquid = /* @__PURE__ */ defineChain({
|
|
10732
|
+
var hyperliquid = /* @__PURE__ */ defineChain$1({
|
|
10725
10733
|
id: 1337,
|
|
10726
10734
|
name: "Hyperliquid",
|
|
10727
10735
|
nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 },
|
|
@@ -10743,7 +10751,23 @@ var hyperliquid = /* @__PURE__ */ defineChain({
|
|
|
10743
10751
|
}
|
|
10744
10752
|
}
|
|
10745
10753
|
});
|
|
10746
|
-
var
|
|
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({
|
|
10747
10771
|
id: 42101,
|
|
10748
10772
|
name: "Push Testnet",
|
|
10749
10773
|
nativeCurrency: {
|
|
@@ -10767,7 +10791,7 @@ var pushTestnet = /* @__PURE__ */ defineChain({
|
|
|
10767
10791
|
}
|
|
10768
10792
|
}
|
|
10769
10793
|
});
|
|
10770
|
-
var robinhood = /* @__PURE__ */ defineChain({
|
|
10794
|
+
var robinhood = /* @__PURE__ */ defineChain$1({
|
|
10771
10795
|
id: 4663,
|
|
10772
10796
|
name: "Robinhood",
|
|
10773
10797
|
nativeCurrency: {
|
|
@@ -10791,7 +10815,7 @@ var robinhood = /* @__PURE__ */ defineChain({
|
|
|
10791
10815
|
}
|
|
10792
10816
|
}
|
|
10793
10817
|
});
|
|
10794
|
-
var stableChain = /* @__PURE__ */ defineChain({
|
|
10818
|
+
var stableChain = /* @__PURE__ */ defineChain$1({
|
|
10795
10819
|
id: 988,
|
|
10796
10820
|
name: "Stable",
|
|
10797
10821
|
nativeCurrency: {
|
|
@@ -10827,6 +10851,23 @@ var tempo = tempo$1.extend({
|
|
|
10827
10851
|
}
|
|
10828
10852
|
}
|
|
10829
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
|
+
});
|
|
10830
10871
|
|
|
10831
10872
|
// src/chains/index.ts
|
|
10832
10873
|
var customViemChains = [
|
|
@@ -10841,7 +10882,10 @@ var customViemChains = [
|
|
|
10841
10882
|
hemi,
|
|
10842
10883
|
citrea,
|
|
10843
10884
|
robinhood,
|
|
10844
|
-
arcTestnet
|
|
10885
|
+
arcTestnet,
|
|
10886
|
+
bitlayer,
|
|
10887
|
+
merlin,
|
|
10888
|
+
katana
|
|
10845
10889
|
];
|
|
10846
10890
|
var viemChainsById = [...Object.values(viemChains), ...customViemChains].reduce((acc, chainData) => {
|
|
10847
10891
|
return chainData.id ? {
|
|
@@ -17029,4 +17073,4 @@ var zapPathAction = {
|
|
|
17029
17073
|
harvest: "harvest"
|
|
17030
17074
|
};
|
|
17031
17075
|
|
|
17032
|
-
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.
|
|
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",
|