@dzapio/sdk 2.0.41 → 2.0.43
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 +70 -16
- package/dist/index.d.ts +70 -16
- package/dist/index.js +49 -23
- package/dist/index.mjs +49 -24
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -644,7 +644,15 @@ type TradeQuote = {
|
|
|
644
644
|
additionalInfo?: AdditionalInfo;
|
|
645
645
|
};
|
|
646
646
|
type TradeQuotesByProviderId = {
|
|
647
|
-
[
|
|
647
|
+
[provider: string]: TradeQuote;
|
|
648
|
+
};
|
|
649
|
+
type UnavailableRoute = {
|
|
650
|
+
errorType: string;
|
|
651
|
+
message: string;
|
|
652
|
+
details?: Record<string, unknown>;
|
|
653
|
+
};
|
|
654
|
+
type UnavailableRoutes = {
|
|
655
|
+
[provider: string]: UnavailableRoute;
|
|
648
656
|
};
|
|
649
657
|
type TradeQuotesResponse = {
|
|
650
658
|
[pair: string]: {
|
|
@@ -655,6 +663,7 @@ type TradeQuotesResponse = {
|
|
|
655
663
|
bestReturnSource: string;
|
|
656
664
|
questSource?: string;
|
|
657
665
|
quoteRates?: TradeQuotesByProviderId;
|
|
666
|
+
unavailableRoutes?: UnavailableRoutes;
|
|
658
667
|
tokensWithoutPrice: Record<number, string[]>;
|
|
659
668
|
};
|
|
660
669
|
};
|
|
@@ -2119,6 +2128,52 @@ declare const astralisTestnet: {
|
|
|
2119
2128
|
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
2120
2129
|
};
|
|
2121
2130
|
|
|
2131
|
+
declare const citrea: {
|
|
2132
|
+
blockExplorers: {
|
|
2133
|
+
readonly default: {
|
|
2134
|
+
readonly name: "Citrea Explorer";
|
|
2135
|
+
readonly url: "https://explorer.mainnet.citrea.xyz";
|
|
2136
|
+
readonly apiUrl: "https://explorer.mainnet.citrea.xyz/api";
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2139
|
+
blockTime?: number | undefined | undefined;
|
|
2140
|
+
contracts: {
|
|
2141
|
+
readonly multicall3: {
|
|
2142
|
+
readonly address: "0xA738e84fdE890Bc60b99AF7ccE43990E534304de";
|
|
2143
|
+
readonly blockCreated: 2450100;
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
ensTlds?: readonly string[] | undefined;
|
|
2147
|
+
id: 4114;
|
|
2148
|
+
name: "Citrea Mainnet";
|
|
2149
|
+
nativeCurrency: {
|
|
2150
|
+
readonly name: "Citrea Bitcoin";
|
|
2151
|
+
readonly symbol: "cBTC";
|
|
2152
|
+
readonly decimals: 18;
|
|
2153
|
+
};
|
|
2154
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
2155
|
+
rpcUrls: {
|
|
2156
|
+
readonly default: {
|
|
2157
|
+
readonly http: readonly ["https://rpc.mainnet.citrea.xyz"];
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
sourceId?: number | undefined | undefined;
|
|
2161
|
+
testnet: false;
|
|
2162
|
+
custom?: Record<string, unknown> | undefined;
|
|
2163
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
2164
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
2165
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2166
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2167
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2168
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2169
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2170
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
2171
|
+
}] | undefined;
|
|
2172
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
|
|
2173
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
2174
|
+
formatters?: undefined | undefined;
|
|
2175
|
+
};
|
|
2176
|
+
|
|
2122
2177
|
declare const fiveIre: {
|
|
2123
2178
|
blockExplorers: {
|
|
2124
2179
|
readonly default: {
|
|
@@ -2393,40 +2448,40 @@ declare const stableChain: {
|
|
|
2393
2448
|
|
|
2394
2449
|
declare const tempo: Chain$2;
|
|
2395
2450
|
|
|
2396
|
-
declare const
|
|
2451
|
+
declare const robinhood: {
|
|
2397
2452
|
blockExplorers: {
|
|
2398
2453
|
readonly default: {
|
|
2399
|
-
readonly name: "
|
|
2400
|
-
readonly url: "https://
|
|
2401
|
-
readonly apiUrl: "https://explorer.mainnet.citrea.xyz/api";
|
|
2454
|
+
readonly name: "Robinhood Scan";
|
|
2455
|
+
readonly url: "https://robinhoodchain.blockscout.com";
|
|
2402
2456
|
};
|
|
2403
2457
|
};
|
|
2404
2458
|
blockTime?: number | undefined | undefined;
|
|
2405
2459
|
contracts: {
|
|
2406
2460
|
readonly multicall3: {
|
|
2407
|
-
readonly address: "
|
|
2408
|
-
readonly blockCreated:
|
|
2461
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
2462
|
+
readonly blockCreated: 406;
|
|
2409
2463
|
};
|
|
2410
2464
|
};
|
|
2411
2465
|
ensTlds?: readonly string[] | undefined;
|
|
2412
|
-
id:
|
|
2413
|
-
name: "
|
|
2466
|
+
id: 4663;
|
|
2467
|
+
name: "Robinhood";
|
|
2414
2468
|
nativeCurrency: {
|
|
2415
|
-
readonly name: "Citrea Bitcoin";
|
|
2416
|
-
readonly symbol: "cBTC";
|
|
2417
2469
|
readonly decimals: 18;
|
|
2470
|
+
readonly name: "ETH";
|
|
2471
|
+
readonly symbol: "ETH";
|
|
2418
2472
|
};
|
|
2419
2473
|
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
2420
2474
|
rpcUrls: {
|
|
2421
2475
|
readonly default: {
|
|
2422
|
-
readonly http: readonly ["https://rpc.mainnet.
|
|
2476
|
+
readonly http: readonly ["https://rpc.mainnet.chain.robinhood.com"];
|
|
2423
2477
|
};
|
|
2424
2478
|
};
|
|
2425
2479
|
sourceId?: number | undefined | undefined;
|
|
2426
|
-
testnet
|
|
2480
|
+
testnet?: boolean | undefined | undefined;
|
|
2427
2481
|
custom?: Record<string, unknown> | undefined;
|
|
2428
2482
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2429
2483
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2484
|
+
formatters?: undefined;
|
|
2430
2485
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2431
2486
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2432
2487
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
@@ -2434,12 +2489,11 @@ declare const citrea: {
|
|
|
2434
2489
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2435
2490
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
2436
2491
|
}] | undefined;
|
|
2437
|
-
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable
|
|
2492
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
2438
2493
|
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
2439
|
-
formatters?: undefined | undefined;
|
|
2440
2494
|
};
|
|
2441
2495
|
|
|
2442
2496
|
declare const customViemChains: viemChains.Chain[];
|
|
2443
2497
|
declare const viemChainsById: Record<number, viemChains.Chain>;
|
|
2444
2498
|
|
|
2445
|
-
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 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 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, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
|
|
2499
|
+
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 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 UnavailableRoute, 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, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
|
package/dist/index.d.ts
CHANGED
|
@@ -644,7 +644,15 @@ type TradeQuote = {
|
|
|
644
644
|
additionalInfo?: AdditionalInfo;
|
|
645
645
|
};
|
|
646
646
|
type TradeQuotesByProviderId = {
|
|
647
|
-
[
|
|
647
|
+
[provider: string]: TradeQuote;
|
|
648
|
+
};
|
|
649
|
+
type UnavailableRoute = {
|
|
650
|
+
errorType: string;
|
|
651
|
+
message: string;
|
|
652
|
+
details?: Record<string, unknown>;
|
|
653
|
+
};
|
|
654
|
+
type UnavailableRoutes = {
|
|
655
|
+
[provider: string]: UnavailableRoute;
|
|
648
656
|
};
|
|
649
657
|
type TradeQuotesResponse = {
|
|
650
658
|
[pair: string]: {
|
|
@@ -655,6 +663,7 @@ type TradeQuotesResponse = {
|
|
|
655
663
|
bestReturnSource: string;
|
|
656
664
|
questSource?: string;
|
|
657
665
|
quoteRates?: TradeQuotesByProviderId;
|
|
666
|
+
unavailableRoutes?: UnavailableRoutes;
|
|
658
667
|
tokensWithoutPrice: Record<number, string[]>;
|
|
659
668
|
};
|
|
660
669
|
};
|
|
@@ -2119,6 +2128,52 @@ declare const astralisTestnet: {
|
|
|
2119
2128
|
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
2120
2129
|
};
|
|
2121
2130
|
|
|
2131
|
+
declare const citrea: {
|
|
2132
|
+
blockExplorers: {
|
|
2133
|
+
readonly default: {
|
|
2134
|
+
readonly name: "Citrea Explorer";
|
|
2135
|
+
readonly url: "https://explorer.mainnet.citrea.xyz";
|
|
2136
|
+
readonly apiUrl: "https://explorer.mainnet.citrea.xyz/api";
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2139
|
+
blockTime?: number | undefined | undefined;
|
|
2140
|
+
contracts: {
|
|
2141
|
+
readonly multicall3: {
|
|
2142
|
+
readonly address: "0xA738e84fdE890Bc60b99AF7ccE43990E534304de";
|
|
2143
|
+
readonly blockCreated: 2450100;
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
ensTlds?: readonly string[] | undefined;
|
|
2147
|
+
id: 4114;
|
|
2148
|
+
name: "Citrea Mainnet";
|
|
2149
|
+
nativeCurrency: {
|
|
2150
|
+
readonly name: "Citrea Bitcoin";
|
|
2151
|
+
readonly symbol: "cBTC";
|
|
2152
|
+
readonly decimals: 18;
|
|
2153
|
+
};
|
|
2154
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
2155
|
+
rpcUrls: {
|
|
2156
|
+
readonly default: {
|
|
2157
|
+
readonly http: readonly ["https://rpc.mainnet.citrea.xyz"];
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
sourceId?: number | undefined | undefined;
|
|
2161
|
+
testnet: false;
|
|
2162
|
+
custom?: Record<string, unknown> | undefined;
|
|
2163
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
2164
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
2165
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2166
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2167
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2168
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2169
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2170
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
2171
|
+
}] | undefined;
|
|
2172
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
|
|
2173
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
2174
|
+
formatters?: undefined | undefined;
|
|
2175
|
+
};
|
|
2176
|
+
|
|
2122
2177
|
declare const fiveIre: {
|
|
2123
2178
|
blockExplorers: {
|
|
2124
2179
|
readonly default: {
|
|
@@ -2393,40 +2448,40 @@ declare const stableChain: {
|
|
|
2393
2448
|
|
|
2394
2449
|
declare const tempo: Chain$2;
|
|
2395
2450
|
|
|
2396
|
-
declare const
|
|
2451
|
+
declare const robinhood: {
|
|
2397
2452
|
blockExplorers: {
|
|
2398
2453
|
readonly default: {
|
|
2399
|
-
readonly name: "
|
|
2400
|
-
readonly url: "https://
|
|
2401
|
-
readonly apiUrl: "https://explorer.mainnet.citrea.xyz/api";
|
|
2454
|
+
readonly name: "Robinhood Scan";
|
|
2455
|
+
readonly url: "https://robinhoodchain.blockscout.com";
|
|
2402
2456
|
};
|
|
2403
2457
|
};
|
|
2404
2458
|
blockTime?: number | undefined | undefined;
|
|
2405
2459
|
contracts: {
|
|
2406
2460
|
readonly multicall3: {
|
|
2407
|
-
readonly address: "
|
|
2408
|
-
readonly blockCreated:
|
|
2461
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
2462
|
+
readonly blockCreated: 406;
|
|
2409
2463
|
};
|
|
2410
2464
|
};
|
|
2411
2465
|
ensTlds?: readonly string[] | undefined;
|
|
2412
|
-
id:
|
|
2413
|
-
name: "
|
|
2466
|
+
id: 4663;
|
|
2467
|
+
name: "Robinhood";
|
|
2414
2468
|
nativeCurrency: {
|
|
2415
|
-
readonly name: "Citrea Bitcoin";
|
|
2416
|
-
readonly symbol: "cBTC";
|
|
2417
2469
|
readonly decimals: 18;
|
|
2470
|
+
readonly name: "ETH";
|
|
2471
|
+
readonly symbol: "ETH";
|
|
2418
2472
|
};
|
|
2419
2473
|
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
2420
2474
|
rpcUrls: {
|
|
2421
2475
|
readonly default: {
|
|
2422
|
-
readonly http: readonly ["https://rpc.mainnet.
|
|
2476
|
+
readonly http: readonly ["https://rpc.mainnet.chain.robinhood.com"];
|
|
2423
2477
|
};
|
|
2424
2478
|
};
|
|
2425
2479
|
sourceId?: number | undefined | undefined;
|
|
2426
|
-
testnet
|
|
2480
|
+
testnet?: boolean | undefined | undefined;
|
|
2427
2481
|
custom?: Record<string, unknown> | undefined;
|
|
2428
2482
|
extendSchema?: Record<string, unknown> | undefined;
|
|
2429
2483
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
2484
|
+
formatters?: undefined;
|
|
2430
2485
|
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2431
2486
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2432
2487
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
@@ -2434,12 +2489,11 @@ declare const citrea: {
|
|
|
2434
2489
|
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2435
2490
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
2436
2491
|
}] | undefined;
|
|
2437
|
-
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable
|
|
2492
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
2438
2493
|
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
2439
|
-
formatters?: undefined | undefined;
|
|
2440
2494
|
};
|
|
2441
2495
|
|
|
2442
2496
|
declare const customViemChains: viemChains.Chain[];
|
|
2443
2497
|
declare const viemChainsById: Record<number, viemChains.Chain>;
|
|
2444
2498
|
|
|
2445
|
-
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 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 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, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
|
|
2499
|
+
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 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 UnavailableRoute, 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, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
|
package/dist/index.js
CHANGED
|
@@ -10656,6 +10656,28 @@ var astralisTestnet = /* @__PURE__ */ viem.defineChain({
|
|
|
10656
10656
|
}
|
|
10657
10657
|
}
|
|
10658
10658
|
});
|
|
10659
|
+
|
|
10660
|
+
// src/utils/extendViemChain.ts
|
|
10661
|
+
function extendViemChain(base, extension) {
|
|
10662
|
+
const chain = {
|
|
10663
|
+
formatters: void 0,
|
|
10664
|
+
fees: void 0,
|
|
10665
|
+
serializers: void 0,
|
|
10666
|
+
...base,
|
|
10667
|
+
...extension
|
|
10668
|
+
};
|
|
10669
|
+
return chain;
|
|
10670
|
+
}
|
|
10671
|
+
|
|
10672
|
+
// src/chains/definitions/citrea.ts
|
|
10673
|
+
var citrea = extendViemChain(viemChains.citrea, {
|
|
10674
|
+
contracts: {
|
|
10675
|
+
multicall3: {
|
|
10676
|
+
address: "0xA738e84fdE890Bc60b99AF7ccE43990E534304de",
|
|
10677
|
+
blockCreated: 2450100
|
|
10678
|
+
}
|
|
10679
|
+
}
|
|
10680
|
+
});
|
|
10659
10681
|
var fiveIre = /* @__PURE__ */ viem.defineChain({
|
|
10660
10682
|
id: 995,
|
|
10661
10683
|
name: "5ire",
|
|
@@ -10680,20 +10702,6 @@ var fiveIre = /* @__PURE__ */ viem.defineChain({
|
|
|
10680
10702
|
}
|
|
10681
10703
|
}
|
|
10682
10704
|
});
|
|
10683
|
-
|
|
10684
|
-
// src/utils/extendViemChain.ts
|
|
10685
|
-
function extendViemChain(base, extension) {
|
|
10686
|
-
const chain = {
|
|
10687
|
-
formatters: void 0,
|
|
10688
|
-
fees: void 0,
|
|
10689
|
-
serializers: void 0,
|
|
10690
|
-
...base,
|
|
10691
|
-
...extension
|
|
10692
|
-
};
|
|
10693
|
-
return chain;
|
|
10694
|
-
}
|
|
10695
|
-
|
|
10696
|
-
// src/chains/definitions/hemi.ts
|
|
10697
10705
|
var hemi = extendViemChain(viemChains.hemi, {
|
|
10698
10706
|
contracts: {
|
|
10699
10707
|
multicall3: {
|
|
@@ -10770,6 +10778,30 @@ var pushTestnet = /* @__PURE__ */ viem.defineChain({
|
|
|
10770
10778
|
}
|
|
10771
10779
|
}
|
|
10772
10780
|
});
|
|
10781
|
+
var robinhood = /* @__PURE__ */ viem.defineChain({
|
|
10782
|
+
id: 4663,
|
|
10783
|
+
name: "Robinhood",
|
|
10784
|
+
nativeCurrency: {
|
|
10785
|
+
decimals: 18,
|
|
10786
|
+
name: "ETH",
|
|
10787
|
+
symbol: "ETH"
|
|
10788
|
+
},
|
|
10789
|
+
rpcUrls: {
|
|
10790
|
+
default: { http: ["https://rpc.mainnet.chain.robinhood.com"] }
|
|
10791
|
+
},
|
|
10792
|
+
blockExplorers: {
|
|
10793
|
+
default: {
|
|
10794
|
+
name: "Robinhood Scan",
|
|
10795
|
+
url: "https://robinhoodchain.blockscout.com"
|
|
10796
|
+
}
|
|
10797
|
+
},
|
|
10798
|
+
contracts: {
|
|
10799
|
+
multicall3: {
|
|
10800
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
10801
|
+
blockCreated: 406
|
|
10802
|
+
}
|
|
10803
|
+
}
|
|
10804
|
+
});
|
|
10773
10805
|
var stableChain = /* @__PURE__ */ viem.defineChain({
|
|
10774
10806
|
id: 988,
|
|
10775
10807
|
name: "Stable",
|
|
@@ -10806,14 +10838,6 @@ var tempo = viemChains.tempo.extend({
|
|
|
10806
10838
|
}
|
|
10807
10839
|
}
|
|
10808
10840
|
});
|
|
10809
|
-
var citrea = extendViemChain(viemChains.citrea, {
|
|
10810
|
-
contracts: {
|
|
10811
|
-
multicall3: {
|
|
10812
|
-
address: "0xA738e84fdE890Bc60b99AF7ccE43990E534304de",
|
|
10813
|
-
blockCreated: 2450100
|
|
10814
|
-
}
|
|
10815
|
-
}
|
|
10816
|
-
});
|
|
10817
10841
|
|
|
10818
10842
|
// src/chains/index.ts
|
|
10819
10843
|
var customViemChains = [
|
|
@@ -10826,7 +10850,8 @@ var customViemChains = [
|
|
|
10826
10850
|
astralisTestnet,
|
|
10827
10851
|
tempo,
|
|
10828
10852
|
hemi,
|
|
10829
|
-
citrea
|
|
10853
|
+
citrea,
|
|
10854
|
+
robinhood
|
|
10830
10855
|
];
|
|
10831
10856
|
var viemChainsById = [...Object.values(viemChains__namespace), ...customViemChains].reduce((acc, chainData) => {
|
|
10832
10857
|
return chainData.id ? {
|
|
@@ -17043,6 +17068,7 @@ exports.hemi = hemi;
|
|
|
17043
17068
|
exports.hyperEvm = hyperEvm;
|
|
17044
17069
|
exports.hyperliquid = hyperliquid;
|
|
17045
17070
|
exports.pushTestnet = pushTestnet;
|
|
17071
|
+
exports.robinhood = robinhood;
|
|
17046
17072
|
exports.stableChain = stableChain;
|
|
17047
17073
|
exports.tempo = tempo;
|
|
17048
17074
|
exports.viemChainsById = viemChainsById;
|
package/dist/index.mjs
CHANGED
|
@@ -10630,6 +10630,28 @@ var astralisTestnet = /* @__PURE__ */ defineChain({
|
|
|
10630
10630
|
}
|
|
10631
10631
|
}
|
|
10632
10632
|
});
|
|
10633
|
+
|
|
10634
|
+
// src/utils/extendViemChain.ts
|
|
10635
|
+
function extendViemChain(base, extension) {
|
|
10636
|
+
const chain = {
|
|
10637
|
+
formatters: void 0,
|
|
10638
|
+
fees: void 0,
|
|
10639
|
+
serializers: void 0,
|
|
10640
|
+
...base,
|
|
10641
|
+
...extension
|
|
10642
|
+
};
|
|
10643
|
+
return chain;
|
|
10644
|
+
}
|
|
10645
|
+
|
|
10646
|
+
// src/chains/definitions/citrea.ts
|
|
10647
|
+
var citrea = extendViemChain(citrea$1, {
|
|
10648
|
+
contracts: {
|
|
10649
|
+
multicall3: {
|
|
10650
|
+
address: "0xA738e84fdE890Bc60b99AF7ccE43990E534304de",
|
|
10651
|
+
blockCreated: 2450100
|
|
10652
|
+
}
|
|
10653
|
+
}
|
|
10654
|
+
});
|
|
10633
10655
|
var fiveIre = /* @__PURE__ */ defineChain({
|
|
10634
10656
|
id: 995,
|
|
10635
10657
|
name: "5ire",
|
|
@@ -10654,20 +10676,6 @@ var fiveIre = /* @__PURE__ */ defineChain({
|
|
|
10654
10676
|
}
|
|
10655
10677
|
}
|
|
10656
10678
|
});
|
|
10657
|
-
|
|
10658
|
-
// src/utils/extendViemChain.ts
|
|
10659
|
-
function extendViemChain(base, extension) {
|
|
10660
|
-
const chain = {
|
|
10661
|
-
formatters: void 0,
|
|
10662
|
-
fees: void 0,
|
|
10663
|
-
serializers: void 0,
|
|
10664
|
-
...base,
|
|
10665
|
-
...extension
|
|
10666
|
-
};
|
|
10667
|
-
return chain;
|
|
10668
|
-
}
|
|
10669
|
-
|
|
10670
|
-
// src/chains/definitions/hemi.ts
|
|
10671
10679
|
var hemi = extendViemChain(hemi$1, {
|
|
10672
10680
|
contracts: {
|
|
10673
10681
|
multicall3: {
|
|
@@ -10744,6 +10752,30 @@ var pushTestnet = /* @__PURE__ */ defineChain({
|
|
|
10744
10752
|
}
|
|
10745
10753
|
}
|
|
10746
10754
|
});
|
|
10755
|
+
var robinhood = /* @__PURE__ */ defineChain({
|
|
10756
|
+
id: 4663,
|
|
10757
|
+
name: "Robinhood",
|
|
10758
|
+
nativeCurrency: {
|
|
10759
|
+
decimals: 18,
|
|
10760
|
+
name: "ETH",
|
|
10761
|
+
symbol: "ETH"
|
|
10762
|
+
},
|
|
10763
|
+
rpcUrls: {
|
|
10764
|
+
default: { http: ["https://rpc.mainnet.chain.robinhood.com"] }
|
|
10765
|
+
},
|
|
10766
|
+
blockExplorers: {
|
|
10767
|
+
default: {
|
|
10768
|
+
name: "Robinhood Scan",
|
|
10769
|
+
url: "https://robinhoodchain.blockscout.com"
|
|
10770
|
+
}
|
|
10771
|
+
},
|
|
10772
|
+
contracts: {
|
|
10773
|
+
multicall3: {
|
|
10774
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
10775
|
+
blockCreated: 406
|
|
10776
|
+
}
|
|
10777
|
+
}
|
|
10778
|
+
});
|
|
10747
10779
|
var stableChain = /* @__PURE__ */ defineChain({
|
|
10748
10780
|
id: 988,
|
|
10749
10781
|
name: "Stable",
|
|
@@ -10780,14 +10812,6 @@ var tempo = tempo$1.extend({
|
|
|
10780
10812
|
}
|
|
10781
10813
|
}
|
|
10782
10814
|
});
|
|
10783
|
-
var citrea = extendViemChain(citrea$1, {
|
|
10784
|
-
contracts: {
|
|
10785
|
-
multicall3: {
|
|
10786
|
-
address: "0xA738e84fdE890Bc60b99AF7ccE43990E534304de",
|
|
10787
|
-
blockCreated: 2450100
|
|
10788
|
-
}
|
|
10789
|
-
}
|
|
10790
|
-
});
|
|
10791
10815
|
|
|
10792
10816
|
// src/chains/index.ts
|
|
10793
10817
|
var customViemChains = [
|
|
@@ -10800,7 +10824,8 @@ var customViemChains = [
|
|
|
10800
10824
|
astralisTestnet,
|
|
10801
10825
|
tempo,
|
|
10802
10826
|
hemi,
|
|
10803
|
-
citrea
|
|
10827
|
+
citrea,
|
|
10828
|
+
robinhood
|
|
10804
10829
|
];
|
|
10805
10830
|
var viemChainsById = [...Object.values(viemChains), ...customViemChains].reduce((acc, chainData) => {
|
|
10806
10831
|
return chainData.id ? {
|
|
@@ -16988,4 +17013,4 @@ var zapPathAction = {
|
|
|
16988
17013
|
harvest: "harvest"
|
|
16989
17014
|
};
|
|
16990
17015
|
|
|
16991
|
-
export { AllowanceTypes, ApprovalModes, dZapClient_default as DZapClient, DZapPermitMode, OtherAbis, PermitTypes, QuoteFilters, STATUS, Services, SignatureExpiryInSecs, StatusCodes, SwapInputDataDecoder, TxnStatus, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
|
|
17016
|
+
export { AllowanceTypes, ApprovalModes, dZapClient_default as DZapClient, DZapPermitMode, OtherAbis, PermitTypes, QuoteFilters, STATUS, Services, SignatureExpiryInSecs, StatusCodes, SwapInputDataDecoder, TxnStatus, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, 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.43",
|
|
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",
|