@dzapio/sdk 2.0.46 → 2.0.48
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 +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +30 -15
- package/dist/index.mjs +31 -17
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2073,6 +2073,53 @@ declare function extendViemChain<Formatters extends ChainFormatters, const Base
|
|
|
2073
2073
|
|
|
2074
2074
|
declare const formatToken: <T extends HexString | string = string>(token: T, nativeTokenAddress?: T) => T;
|
|
2075
2075
|
|
|
2076
|
+
declare const arcTestnet: {
|
|
2077
|
+
blockExplorers: {
|
|
2078
|
+
readonly default: {
|
|
2079
|
+
readonly name: "ArcScan";
|
|
2080
|
+
readonly url: "https://testnet.arcscan.app";
|
|
2081
|
+
readonly apiUrl: "https://testnet.arcscan.app/api";
|
|
2082
|
+
};
|
|
2083
|
+
};
|
|
2084
|
+
blockTime?: number | undefined | undefined;
|
|
2085
|
+
contracts: {
|
|
2086
|
+
readonly multicall3: {
|
|
2087
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
2088
|
+
readonly blockCreated: 0;
|
|
2089
|
+
};
|
|
2090
|
+
};
|
|
2091
|
+
ensTlds?: readonly string[] | undefined;
|
|
2092
|
+
id: 5042002;
|
|
2093
|
+
name: "Arc Testnet";
|
|
2094
|
+
nativeCurrency: {
|
|
2095
|
+
readonly name: "USDC";
|
|
2096
|
+
readonly symbol: "USDC";
|
|
2097
|
+
readonly decimals: 6;
|
|
2098
|
+
};
|
|
2099
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
2100
|
+
rpcUrls: {
|
|
2101
|
+
readonly default: {
|
|
2102
|
+
readonly http: readonly ["https://rpc.testnet.arc.network", "https://rpc.quicknode.testnet.arc.network", "https://rpc.blockdaemon.testnet.arc.network", "https://rpc.drpc.testnet.arc.network"];
|
|
2103
|
+
readonly webSocket: readonly ["wss://rpc.testnet.arc.network", "wss://rpc.quicknode.testnet.arc.network"];
|
|
2104
|
+
};
|
|
2105
|
+
};
|
|
2106
|
+
sourceId?: number | undefined | undefined;
|
|
2107
|
+
testnet: true;
|
|
2108
|
+
custom?: Record<string, unknown> | undefined;
|
|
2109
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
2110
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
2111
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2112
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2113
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2114
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2115
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2116
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
2117
|
+
}] | undefined;
|
|
2118
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
|
|
2119
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
2120
|
+
formatters?: undefined | undefined;
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2076
2123
|
declare const arthera: {
|
|
2077
2124
|
blockExplorers: {
|
|
2078
2125
|
readonly default: {
|
|
@@ -2531,4 +2578,4 @@ declare const robinhood: {
|
|
|
2531
2578
|
declare const customViemChains: viemChains.Chain[];
|
|
2532
2579
|
declare const viemChainsById: Record<number, viemChains.Chain>;
|
|
2533
2580
|
|
|
2534
|
-
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, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -2073,6 +2073,53 @@ declare function extendViemChain<Formatters extends ChainFormatters, const Base
|
|
|
2073
2073
|
|
|
2074
2074
|
declare const formatToken: <T extends HexString | string = string>(token: T, nativeTokenAddress?: T) => T;
|
|
2075
2075
|
|
|
2076
|
+
declare const arcTestnet: {
|
|
2077
|
+
blockExplorers: {
|
|
2078
|
+
readonly default: {
|
|
2079
|
+
readonly name: "ArcScan";
|
|
2080
|
+
readonly url: "https://testnet.arcscan.app";
|
|
2081
|
+
readonly apiUrl: "https://testnet.arcscan.app/api";
|
|
2082
|
+
};
|
|
2083
|
+
};
|
|
2084
|
+
blockTime?: number | undefined | undefined;
|
|
2085
|
+
contracts: {
|
|
2086
|
+
readonly multicall3: {
|
|
2087
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
2088
|
+
readonly blockCreated: 0;
|
|
2089
|
+
};
|
|
2090
|
+
};
|
|
2091
|
+
ensTlds?: readonly string[] | undefined;
|
|
2092
|
+
id: 5042002;
|
|
2093
|
+
name: "Arc Testnet";
|
|
2094
|
+
nativeCurrency: {
|
|
2095
|
+
readonly name: "USDC";
|
|
2096
|
+
readonly symbol: "USDC";
|
|
2097
|
+
readonly decimals: 6;
|
|
2098
|
+
};
|
|
2099
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
2100
|
+
rpcUrls: {
|
|
2101
|
+
readonly default: {
|
|
2102
|
+
readonly http: readonly ["https://rpc.testnet.arc.network", "https://rpc.quicknode.testnet.arc.network", "https://rpc.blockdaemon.testnet.arc.network", "https://rpc.drpc.testnet.arc.network"];
|
|
2103
|
+
readonly webSocket: readonly ["wss://rpc.testnet.arc.network", "wss://rpc.quicknode.testnet.arc.network"];
|
|
2104
|
+
};
|
|
2105
|
+
};
|
|
2106
|
+
sourceId?: number | undefined | undefined;
|
|
2107
|
+
testnet: true;
|
|
2108
|
+
custom?: Record<string, unknown> | undefined;
|
|
2109
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
2110
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
2111
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2112
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2113
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
2114
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
2115
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
2116
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
2117
|
+
}] | undefined;
|
|
2118
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
|
|
2119
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
2120
|
+
formatters?: undefined | undefined;
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2076
2123
|
declare const arthera: {
|
|
2077
2124
|
blockExplorers: {
|
|
2078
2125
|
readonly default: {
|
|
@@ -2531,4 +2578,4 @@ declare const robinhood: {
|
|
|
2531
2578
|
declare const customViemChains: viemChains.Chain[];
|
|
2532
2579
|
declare const viemChainsById: Record<number, viemChains.Chain>;
|
|
2533
2580
|
|
|
2534
|
-
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, arthera, astralisTestnet, checkEIP2612PermitSupport, citrea, classifyAddress, contractErrorActions, customViemChains, erc20Functions, extendViemChain, fiveIre, formatToken, getTokensPairKey, hemi, hyperEvm, hyperliquid, pushTestnet, robinhood, stableChain, tempo, viemChainsById, zapPathAction, zapStepAction };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -10608,6 +10608,33 @@ var abi5 = [
|
|
|
10608
10608
|
type: "event"
|
|
10609
10609
|
}
|
|
10610
10610
|
];
|
|
10611
|
+
|
|
10612
|
+
// src/utils/extendViemChain.ts
|
|
10613
|
+
function extendViemChain(base, extension) {
|
|
10614
|
+
const chain = {
|
|
10615
|
+
formatters: void 0,
|
|
10616
|
+
fees: void 0,
|
|
10617
|
+
serializers: void 0,
|
|
10618
|
+
...base,
|
|
10619
|
+
...extension
|
|
10620
|
+
};
|
|
10621
|
+
return chain;
|
|
10622
|
+
}
|
|
10623
|
+
|
|
10624
|
+
// src/chains/definitions/arcTestnet.ts
|
|
10625
|
+
var arcTestnet = extendViemChain(viemChains.arcTestnet, {
|
|
10626
|
+
nativeCurrency: {
|
|
10627
|
+
name: "USDC",
|
|
10628
|
+
symbol: "USDC",
|
|
10629
|
+
decimals: 6
|
|
10630
|
+
},
|
|
10631
|
+
rpcUrls: {
|
|
10632
|
+
default: {
|
|
10633
|
+
...viemChains.arcTestnet.rpcUrls.default,
|
|
10634
|
+
http: [...viemChains.arcTestnet.rpcUrls.default.http, "https://rpc.drpc.testnet.arc.network"]
|
|
10635
|
+
}
|
|
10636
|
+
}
|
|
10637
|
+
});
|
|
10611
10638
|
var arthera = /* @__PURE__ */ viem.defineChain({
|
|
10612
10639
|
id: 10242,
|
|
10613
10640
|
name: "Arthera",
|
|
@@ -10656,20 +10683,6 @@ var astralisTestnet = /* @__PURE__ */ viem.defineChain({
|
|
|
10656
10683
|
}
|
|
10657
10684
|
}
|
|
10658
10685
|
});
|
|
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
10686
|
var citrea = extendViemChain(viemChains.citrea, {
|
|
10674
10687
|
contracts: {
|
|
10675
10688
|
multicall3: {
|
|
@@ -10851,7 +10864,8 @@ var customViemChains = [
|
|
|
10851
10864
|
tempo,
|
|
10852
10865
|
hemi,
|
|
10853
10866
|
citrea,
|
|
10854
|
-
robinhood
|
|
10867
|
+
robinhood,
|
|
10868
|
+
arcTestnet
|
|
10855
10869
|
];
|
|
10856
10870
|
var viemChainsById = [...Object.values(viemChains__namespace), ...customViemChains].reduce((acc, chainData) => {
|
|
10857
10871
|
return chainData.id ? {
|
|
@@ -17052,6 +17066,7 @@ exports.SignatureExpiryInSecs = SignatureExpiryInSecs;
|
|
|
17052
17066
|
exports.StatusCodes = StatusCodes;
|
|
17053
17067
|
exports.SwapInputDataDecoder = SwapInputDataDecoder;
|
|
17054
17068
|
exports.TxnStatus = TxnStatus;
|
|
17069
|
+
exports.arcTestnet = arcTestnet;
|
|
17055
17070
|
exports.arthera = arthera;
|
|
17056
17071
|
exports.astralisTestnet = astralisTestnet;
|
|
17057
17072
|
exports.checkEIP2612PermitSupport = checkEIP2612PermitSupport;
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { encodeAbiParameters, parseAbiParameters, keccak256, encodePacked, strin
|
|
|
2
2
|
import Axios from 'axios';
|
|
3
3
|
import { Signer, ethers } from 'ethers';
|
|
4
4
|
import * as viemChains from 'viem/chains';
|
|
5
|
-
import { 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 } from 'viem/chains';
|
|
6
6
|
import { decodeFunctionData, getAction } from 'viem/utils';
|
|
7
7
|
import { waitForCallsStatus, sendCalls } from 'viem/actions';
|
|
8
8
|
import Decimal from 'decimal.js';
|
|
@@ -10582,6 +10582,33 @@ var abi5 = [
|
|
|
10582
10582
|
type: "event"
|
|
10583
10583
|
}
|
|
10584
10584
|
];
|
|
10585
|
+
|
|
10586
|
+
// src/utils/extendViemChain.ts
|
|
10587
|
+
function extendViemChain(base, extension) {
|
|
10588
|
+
const chain = {
|
|
10589
|
+
formatters: void 0,
|
|
10590
|
+
fees: void 0,
|
|
10591
|
+
serializers: void 0,
|
|
10592
|
+
...base,
|
|
10593
|
+
...extension
|
|
10594
|
+
};
|
|
10595
|
+
return chain;
|
|
10596
|
+
}
|
|
10597
|
+
|
|
10598
|
+
// src/chains/definitions/arcTestnet.ts
|
|
10599
|
+
var arcTestnet = extendViemChain(arcTestnet$1, {
|
|
10600
|
+
nativeCurrency: {
|
|
10601
|
+
name: "USDC",
|
|
10602
|
+
symbol: "USDC",
|
|
10603
|
+
decimals: 6
|
|
10604
|
+
},
|
|
10605
|
+
rpcUrls: {
|
|
10606
|
+
default: {
|
|
10607
|
+
...arcTestnet$1.rpcUrls.default,
|
|
10608
|
+
http: [...arcTestnet$1.rpcUrls.default.http, "https://rpc.drpc.testnet.arc.network"]
|
|
10609
|
+
}
|
|
10610
|
+
}
|
|
10611
|
+
});
|
|
10585
10612
|
var arthera = /* @__PURE__ */ defineChain({
|
|
10586
10613
|
id: 10242,
|
|
10587
10614
|
name: "Arthera",
|
|
@@ -10630,20 +10657,6 @@ var astralisTestnet = /* @__PURE__ */ defineChain({
|
|
|
10630
10657
|
}
|
|
10631
10658
|
}
|
|
10632
10659
|
});
|
|
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
10660
|
var citrea = extendViemChain(citrea$1, {
|
|
10648
10661
|
contracts: {
|
|
10649
10662
|
multicall3: {
|
|
@@ -10825,7 +10838,8 @@ var customViemChains = [
|
|
|
10825
10838
|
tempo,
|
|
10826
10839
|
hemi,
|
|
10827
10840
|
citrea,
|
|
10828
|
-
robinhood
|
|
10841
|
+
robinhood,
|
|
10842
|
+
arcTestnet
|
|
10829
10843
|
];
|
|
10830
10844
|
var viemChainsById = [...Object.values(viemChains), ...customViemChains].reduce((acc, chainData) => {
|
|
10831
10845
|
return chainData.id ? {
|
|
@@ -17013,4 +17027,4 @@ var zapPathAction = {
|
|
|
17013
17027
|
harvest: "harvest"
|
|
17014
17028
|
};
|
|
17015
17029
|
|
|
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 };
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzapio/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.48",
|
|
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",
|