@velora-dex/sdk 9.5.2 → 9.5.3-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk.esm.js CHANGED
@@ -6797,5 +6797,466 @@ function constructSimpleContractCaller(providerOptions) {
6797
6797
  };
6798
6798
  }
6799
6799
 
6800
- export { API_URL, AssetType, DEFAULT_VERSION, constructAllDeltaOrdersHandlers, constructAllLimitOrdersHandlers, constructAllNFTOrdersHandlers, constructApproveToken, constructApproveTokenForDelta, constructApproveTokenForLimitOrder, constructApproveTokenForNFTOrder, constructFetcher$2 as constructAxiosFetcher, constructBuildDeltaOrder, constructBuildExternalDeltaOrder, constructBuildLimitOrder, constructBuildLimitOrderTx, constructBuildNFTOrder, constructBuildNFTOrderTx, constructBuildTWAPDeltaOrder, constructBuildTx, constructCancelDeltaOrder, constructCancelLimitOrder, constructCancelNFTOrder, constructDeltaTokenModule, constructEthersV5ContractCaller as constructEthersContractCaller, constructEthersV5ContractCaller, constructContractCaller$2 as constructEthersV6ContractCaller, constructFetcher$1 as constructFetchFetcher, constructFillOrderDirectly, constructFullSDK, constructGetAdapters, constructGetBalances, constructGetBridgeInfo, constructGetDeltaContract, constructGetDeltaOrders, constructGetDeltaPrice, constructGetLimitOrders, constructGetLimitOrdersContract, constructGetNFTOrders, constructGetNFTOrdersContract, constructGetPartnerFee, constructGetQuote, constructGetRate, constructGetSpender, constructGetTokens, constructIsTokenSupportedInDelta, constructPartialSDK, constructPostDeltaOrder, constructPostExternalDeltaOrder, constructPostLimitOrder, constructPostNFTOrder, constructPostTWAPDeltaOrder, constructPreSignDeltaOrder, constructPreSignExternalDeltaOrder, constructPreSignTWAPDeltaOrder, constructSignDeltaOrder, constructSignExternalDeltaOrder, constructSignLimitOrder, constructSignNFTOrder, constructSignTWAPDeltaOrder, constructSimpleSDK, constructSubmitDeltaOrder, constructSubmitExternalDeltaOrder, constructSubmitLimitOrder, constructSubmitNFTOrder, constructSubmitTWAPDeltaOrder, constructSwapSDK, constructSwapTx, constructToken, constructContractCaller as constructViemContractCaller, constructContractCaller$1 as constructWeb3ContractCaller, isAllowance, isFetcherError, txParamsToViemTxParams };
6800
+ var _OrderKindToSwapSide;
6801
+ ///// CHECKS //////
6802
+ /**
6803
+ * @description Checks whether an order is a TWAP Sell or TWAP Buy order.
6804
+ */
6805
+ function isTWAPOrder(order) {
6806
+ return 'numSlices' in order && typeof order.numSlices === 'number';
6807
+ }
6808
+ /**
6809
+ * @description Checks whether an order is a TWAP Sell order.
6810
+ */
6811
+ function isTWAPSellOrder(order) {
6812
+ return isTWAPOrder(order) && 'totalSrcAmount' in order && typeof order.totalSrcAmount === 'string';
6813
+ }
6814
+ /**
6815
+ * @description Checks whether an order is a TWAP Buy order.
6816
+ */
6817
+ function isTWAPBuyOrder(order) {
6818
+ return isTWAPOrder(order) && 'totalDestAmount' in order && typeof order.totalDestAmount === 'string';
6819
+ }
6820
+ /**
6821
+ * @description Checks whether an order is an External order.
6822
+ */
6823
+ function isExternalOrder(order) {
6824
+ return 'handler' in order;
6825
+ }
6826
+ /**
6827
+ * @description Checks whether an order is a regular Delta auction order.
6828
+ */
6829
+ function isDeltaOrder(order) {
6830
+ return !isExternalOrder(order) && 'kind' in order && typeof order.kind === 'number';
6831
+ }
6832
+ /**
6833
+ * @description Checks whether an auction is a TWAP auction.
6834
+ */
6835
+ function isTWAPAuction(auction) {
6836
+ return isTWAPSellAuction(auction) || isTWAPBuyAuction(auction);
6837
+ }
6838
+ /**
6839
+ * @description Checks whether an auction is a TWAP Sell auction.
6840
+ */
6841
+ function isTWAPSellAuction(auction) {
6842
+ return auction.onChainOrderType === 'TWAPOrder';
6843
+ }
6844
+ /**
6845
+ * @description Checks whether an auction is a TWAP Buy auction.
6846
+ */
6847
+ function isTWAPBuyAuction(auction) {
6848
+ return auction.onChainOrderType === 'TWAPBuyOrder';
6849
+ }
6850
+ /**
6851
+ * @description Checks whether an auction is a Delta auction.
6852
+ */
6853
+ function isDeltaAuction(auction) {
6854
+ return auction.onChainOrderType === 'Order';
6855
+ }
6856
+ /**
6857
+ * @description Checks whether an auction is an External auction.
6858
+ */
6859
+ function isExternalAuction(auction) {
6860
+ return auction.onChainOrderType === 'ExternalOrder';
6861
+ }
6862
+ var checks = {
6863
+ isTWAPOrder: isTWAPOrder,
6864
+ isTWAPSellOrder: isTWAPSellOrder,
6865
+ isTWAPBuyOrder: isTWAPBuyOrder,
6866
+ isExternalOrder: isExternalOrder,
6867
+ isDeltaOrder: isDeltaOrder,
6868
+ isTWAPAuction: isTWAPAuction,
6869
+ isTWAPSellAuction: isTWAPSellAuction,
6870
+ isTWAPBuyAuction: isTWAPBuyAuction,
6871
+ isDeltaAuction: isDeltaAuction,
6872
+ isExternalAuction: isExternalAuction,
6873
+ isOrderCrosschain: isOrderCrosschain,
6874
+ isExecutedAuction: isExecutedAuction,
6875
+ isPartiallyExecutedAuction: isPartiallyExecutedAuction,
6876
+ isFailedAuction: isFailedAuction,
6877
+ isCanceledAuction: isCanceledAuction,
6878
+ isExpiredAuction: isExpiredAuction,
6879
+ isPendingAuction: isPendingAuction
6880
+ };
6881
+ ///// GETTERS //////
6882
+ /**
6883
+ * @description Returns the expected source amount for a TWAP order.
6884
+ */
6885
+ function getExpectedTwapSrcAmount(order) {
6886
+ if ('totalSrcAmount' in order) {
6887
+ // SELL
6888
+ return order.totalSrcAmount;
6889
+ }
6890
+ return order.maxSrcAmount; // BUY
6891
+ }
6892
+ /**
6893
+ * @description Returns the expected destination amount for a TWAP order.
6894
+ */
6895
+ function getExpectedTwapDestAmount(order) {
6896
+ var destAmount = 'destAmountPerSlice' in order ? BigInt(order.destAmountPerSlice) * BigInt(order.numSlices) // SELL
6897
+ : BigInt(order.totalDestAmount); // BUY
6898
+ if (isOrderCrosschain(order)) {
6899
+ return scaleByFactor(destAmount, order.bridge.scalingFactor).toString();
6900
+ }
6901
+ return destAmount.toString();
6902
+ }
6903
+ /**
6904
+ * @description Returns expected source and destination amounts for a TWAP order.
6905
+ */
6906
+ function getExpectedTwapOrderAmounts(order) {
6907
+ var srcAmount = getExpectedTwapSrcAmount(order);
6908
+ var destAmount = getExpectedTwapDestAmount(order);
6909
+ return {
6910
+ srcAmount: srcAmount,
6911
+ destAmount: destAmount
6912
+ };
6913
+ }
6914
+ /**
6915
+ * @description Returns expected and, when available, final amounts for a TWAP auction.
6916
+ */
6917
+ function getTwapAuctionAmounts(twapAuction) {
6918
+ var isExecuted = isExecutedAuction(twapAuction);
6919
+ var expected = getExpectedTwapOrderAmounts(twapAuction.order);
6920
+ if (isExecuted) {
6921
+ var _final = getTransactionAmounts(twapAuction.transactions);
6922
+ return {
6923
+ "final": _final,
6924
+ expected: expected
6925
+ };
6926
+ }
6927
+ return {
6928
+ expected: expected
6929
+ };
6930
+ }
6931
+ var getters = {
6932
+ getUnifiedDeltaOrderData: getUnifiedDeltaOrderData,
6933
+ getExpectedTwapSrcAmount: getExpectedTwapSrcAmount,
6934
+ getExpectedTwapDestAmount: getExpectedTwapDestAmount,
6935
+ getExpectedTwapOrderAmounts: getExpectedTwapOrderAmounts,
6936
+ getTwapAuctionAmounts: getTwapAuctionAmounts,
6937
+ getAuctionDestChainId: getAuctionDestChainId,
6938
+ getSwapSideFromDeltaOrder: getSwapSideFromDeltaOrder,
6939
+ getSwapSideFromTwapOrderType: getSwapSideFromTwapOrderType,
6940
+ getAuctionSwapSide: getAuctionSwapSide,
6941
+ getOrderTokenAddresses: getOrderTokenAddresses,
6942
+ getTransactionAmounts: getTransactionAmounts,
6943
+ getAuctionAmounts: getAuctionAmounts,
6944
+ getFilledPercent: getFilledPercent
6945
+ };
6946
+ var OrderHelpers = {
6947
+ checks: checks,
6948
+ getters: getters
6949
+ };
6950
+ // -------------------- Auction Unified Data --------------------
6951
+ /**
6952
+ * @description Returns the destination chain id for the auction.
6953
+ */
6954
+ function getAuctionDestChainId(_ref) {
6955
+ var order = _ref.order,
6956
+ chainId = _ref.chainId;
6957
+ return isOrderCrosschain(order) ? order.bridge.destinationChainId : chainId;
6958
+ }
6959
+ var OrderKindToSwapSide = (_OrderKindToSwapSide = {}, _OrderKindToSwapSide[OrderKind.Sell] = 'SELL', _OrderKindToSwapSide[OrderKind.Buy] = 'BUY', _OrderKindToSwapSide);
6960
+ /**
6961
+ * @description Returns swap side from a Delta or External order kind.
6962
+ */
6963
+ function getSwapSideFromDeltaOrder(order) {
6964
+ return OrderKindToSwapSide[order.kind];
6965
+ }
6966
+ var TwapTypeToSwapSide = {
6967
+ TWAPOrder: 'SELL',
6968
+ TWAPBuyOrder: 'BUY'
6969
+ };
6970
+ /**
6971
+ * @description Returns swap side from TWAP on-chain order type.
6972
+ */
6973
+ function getSwapSideFromTwapOrderType(onChainOrderType) {
6974
+ return TwapTypeToSwapSide[onChainOrderType];
6975
+ }
6976
+ /**
6977
+ * @description Returns swap side for any auction type.
6978
+ */
6979
+ function getAuctionSwapSide(auction) {
6980
+ if (isTWAPAuction(auction)) {
6981
+ // TWAP orders have onChainOrderType instead of kind
6982
+ return getSwapSideFromTwapOrderType(auction.onChainOrderType);
6983
+ }
6984
+ return getSwapSideFromDeltaOrder(auction.order);
6985
+ }
6986
+ /**
6987
+ * @description Returns unified order data with normalized amounts, tokens, and side.
6988
+ */
6989
+ function getUnifiedDeltaOrderData(auction) {
6990
+ var order = auction.order,
6991
+ chainId = auction.chainId;
6992
+ var _getOrderTokenAddress = getOrderTokenAddresses(order),
6993
+ srcToken = _getOrderTokenAddress.srcToken,
6994
+ destToken = _getOrderTokenAddress.destToken;
6995
+ var _getAuctionAmounts = getAuctionAmounts(auction),
6996
+ expected = _getAuctionAmounts.expected,
6997
+ _final2 = _getAuctionAmounts["final"];
6998
+ var srcChainId = chainId;
6999
+ var destChainId = getAuctionDestChainId({
7000
+ order: order,
7001
+ chainId: chainId
7002
+ });
7003
+ var swapSide = getAuctionSwapSide(auction);
7004
+ var filledPercent = getFilledPercent(auction);
7005
+ return {
7006
+ srcChainId: srcChainId,
7007
+ destChainId: destChainId,
7008
+ srcAmount: (_final2 == null ? void 0 : _final2.srcAmount) || expected.srcAmount,
7009
+ destAmount: (_final2 == null ? void 0 : _final2.destAmount) || expected.destAmount,
7010
+ amounts: {
7011
+ expected: expected,
7012
+ "final": _final2
7013
+ },
7014
+ srcToken: srcToken,
7015
+ destToken: destToken,
7016
+ swapSide: swapSide,
7017
+ filledPercent: filledPercent
7018
+ };
7019
+ }
7020
+ /**
7021
+ * @description Returns source and destination token addresses for an order.
7022
+ */
7023
+ function getOrderTokenAddresses(order) {
7024
+ var srcToken = order.srcToken;
7025
+ var destToken = isOrderCrosschain(order) ? order.bridge.outputToken : order.destToken;
7026
+ return {
7027
+ srcToken: srcToken,
7028
+ destToken: destToken
7029
+ };
7030
+ }
7031
+ /**
7032
+ * @description Aggregates transaction amounts into total source and destination values.
7033
+ */
7034
+ function getTransactionAmounts(transactions) {
7035
+ var _transactions$reduce = transactions.reduce(function (acc, _ref2) {
7036
+ var spentAmount = _ref2.spentAmount,
7037
+ receivedAmount = _ref2.receivedAmount,
7038
+ bridgeMetadata = _ref2.bridgeMetadata;
7039
+ return {
7040
+ srcAmount: acc.srcAmount + BigInt(spentAmount),
7041
+ destAmount: acc.destAmount + BigInt(bridgeMetadata ? bridgeMetadata.outputAmount : receivedAmount)
7042
+ };
7043
+ }, {
7044
+ srcAmount: 0n,
7045
+ destAmount: 0n
7046
+ }),
7047
+ srcAmount = _transactions$reduce.srcAmount,
7048
+ destAmount = _transactions$reduce.destAmount;
7049
+ return {
7050
+ srcAmount: srcAmount.toString(),
7051
+ destAmount: destAmount.toString()
7052
+ };
7053
+ }
7054
+ /**
7055
+ * @description Returns expected and, when available, final amounts for an auction.
7056
+ */
7057
+ function getAuctionAmounts(auction) {
7058
+ var isTwap = checks.isTWAPAuction(auction);
7059
+ if (isTwap) {
7060
+ return getTwapAuctionAmounts(auction);
7061
+ }
7062
+ var expected = {
7063
+ srcAmount: auction.order.srcAmount,
7064
+ destAmount: auction.order.expectedAmount || auction.order.destAmount
7065
+ };
7066
+ var order = auction.order;
7067
+ if (isOrderCrosschain(order)) {
7068
+ expected = {
7069
+ srcAmount: expected.srcAmount,
7070
+ destAmount: scaleByFactor(BigInt(expected.destAmount), order.bridge.scalingFactor).toString()
7071
+ };
7072
+ }
7073
+ var isExecuted = isExecutedAuction(auction);
7074
+ if (isExecuted) {
7075
+ var _final3 = getTransactionAmounts(auction.transactions);
7076
+ return {
7077
+ "final": _final3,
7078
+ expected: expected
7079
+ };
7080
+ }
7081
+ return {
7082
+ expected: expected
7083
+ };
7084
+ }
7085
+ /**
7086
+ * @description Checks whether an order includes valid cross-chain bridge details.
7087
+ */
7088
+ function isOrderCrosschain(order
7089
+ // Extract<ExternalOrder, { bridge?: Bridge }> == never
7090
+ ) {
7091
+ return 'bridge' in order && !!order.bridge && order.bridge.destinationChainId !== 0;
7092
+ }
7093
+ function scaleByFactor(amount, scalingFactor) {
7094
+ if (!amount) return 0n;
7095
+ if (scalingFactor === undefined) return amount;
7096
+ var base = 10n;
7097
+ return scalingFactor < 0 ? amount / Math.pow(base, BigInt(-scalingFactor)) : amount * Math.pow(base, BigInt(scalingFactor));
7098
+ }
7099
+ /**
7100
+ * @description Checks whether an auction is fully executed.
7101
+ */
7102
+ function isExecutedAuction(auction) {
7103
+ if (auction.status !== 'EXECUTED') return false;
7104
+ if (isOrderCrosschain(auction.order)) {
7105
+ var filledPercent = getFilledPercent(auction);
7106
+ return filledPercent === 100;
7107
+ }
7108
+ return true;
7109
+ }
7110
+ var failedAuctionStatuses = ['FAILED', 'EXPIRED', 'CANCELLED', 'REFUNDED'];
7111
+ var failedAuctionStatusesSet = /*#__PURE__*/new Set(failedAuctionStatuses);
7112
+ /**
7113
+ * @description Checks whether an auction is failed on source or destination chain.
7114
+ */
7115
+ function isFailedAuction(auction) {
7116
+ // already failed on srcChain, whether Order is crosschain or not
7117
+ if (failedAuctionStatusesSet.has(auction.status)) return true;
7118
+ // crosschain Order is executed on srcChain, but failed on destChain
7119
+ if (auction.status === 'EXECUTED' && isOrderCrosschain(auction.order)) {
7120
+ return auction.bridgeStatus === 'expired' || auction.bridgeStatus === 'refunded';
7121
+ }
7122
+ return false;
7123
+ }
7124
+ /**
7125
+ * @description Checks whether an auction status is cancelled.
7126
+ */
7127
+ function isCanceledAuction(auction) {
7128
+ return auction.status === 'CANCELLED';
7129
+ }
7130
+ /**
7131
+ * @description Checks whether an auction status is expired.
7132
+ */
7133
+ function isExpiredAuction(auction) {
7134
+ return auction.status === 'EXPIRED';
7135
+ }
7136
+ var pendingAuctionStatuses = ['NOT_STARTED', 'AWAITING_PRE_SIGNATURE', 'RUNNING', 'EXECUTING'];
7137
+ var pendingAuctionStatusesSet = /*#__PURE__*/new Set(pendingAuctionStatuses);
7138
+ /**
7139
+ * @description Checks whether an auction status is in pending execution states.
7140
+ */
7141
+ function isPendingAuction(auction) {
7142
+ return pendingAuctionStatusesSet.has(auction.status);
7143
+ }
7144
+ /**
7145
+ * @description Auction can be cancelled in the middle of execution,
7146
+ * or crosschain-TWAP slices may not all be bridged,
7147
+ * or order can be suspended if it runs out of user balance/allowance.
7148
+ * Orders in the middle of normal execution can also be considered partially executed if they have any transactions.
7149
+ */
7150
+ function isPartiallyExecutedAuction(auction) {
7151
+ if (auction.transactions.length === 0) return false;
7152
+ var filledPercent = getFilledPercent(auction);
7153
+ return filledPercent > 0 && filledPercent < 100;
7154
+ }
7155
+ /**
7156
+ * @description Calculates filled percentage from auction transaction filled bps values.
7157
+ */
7158
+ function getFilledPercent(auction) {
7159
+ var transaction = !isOrderCrosschain(auction.order) ? auction.transactions : auction.transactions.filter(function (transaction) {
7160
+ return transaction.bridgeStatus === 'filled';
7161
+ });
7162
+ var filledPercentBps = transaction.reduce(function (acc, _ref3) {
7163
+ var filledPercent = _ref3.filledPercent;
7164
+ return acc + filledPercent;
7165
+ }, 0);
7166
+ var filledPercent = filledPercentBps / 100;
7167
+ return filledPercent;
7168
+ }
7169
+ ///// TESTS //////
7170
+ // @TODO remove
7171
+ var auction = {};
7172
+ var minAuction = {
7173
+ onChainOrderType: 'TWAPOrder',
7174
+ gas: 6
7175
+ };
7176
+ if (isTWAPAuction(minAuction)) {
7177
+ console.log('🚀 ~ auction:', minAuction);
7178
+ /**
7179
+ * {
7180
+ onChainOrderType: OnChainOrderType;
7181
+ gas: number;
7182
+ } & {
7183
+ onChainOrderType: "TWAPOrder" | "TWAPBuyOrder";
7184
+ }
7185
+ */
7186
+ }
7187
+ if (isTWAPAuction(auction)) {
7188
+ console.log('🚀 ~ auction:', auction);
7189
+ /**
7190
+ (DeltaAuctionBase & {
7191
+ onChainOrderType: "TWAPOrder";
7192
+ order: TWAPDeltaOrder;
7193
+ }) | (DeltaAuctionBase & {
7194
+ onChainOrderType: "TWAPBuyOrder";
7195
+ order: TWAPBuyDeltaOrder;
7196
+ })
7197
+ */
7198
+ }
7199
+ if (isTWAPSellAuction(auction)) {
7200
+ console.log('🚀 ~ auction:', auction);
7201
+ /**
7202
+ * DeltaAuctionBase & {
7203
+ onChainOrderType: "TWAPOrder";
7204
+ order: TWAPDeltaOrder;
7205
+ }
7206
+ */
7207
+ }
7208
+ if (isTWAPBuyAuction(auction)) {
7209
+ console.log('🚀 ~ auction:', auction);
7210
+ /**
7211
+ * DeltaAuctionBase & {
7212
+ onChainOrderType: "TWAPBuyOrder";
7213
+ order: TWAPBuyDeltaOrder;
7214
+ }
7215
+ */
7216
+ }
7217
+ if (isDeltaAuction(auction)) {
7218
+ console.log('🚀 ~ auction:', auction);
7219
+ /**
7220
+ * DeltaAuctionBase & {
7221
+ onChainOrderType: "Order";
7222
+ order: DeltaAuctionOrder;
7223
+ }
7224
+ */
7225
+ }
7226
+ if (isExternalAuction(auction)) {
7227
+ console.log('🚀 ~ auction:', auction);
7228
+ /**
7229
+ * DeltaAuctionBase & {
7230
+ onChainOrderType: "ExternalOrder";
7231
+ order: ExternalDeltaOrder;
7232
+ }
7233
+ */
7234
+ }
7235
+ // ------------------------------------------------------------ //
7236
+ var orderAny = {};
7237
+ if (isOrderCrosschain(orderAny)) {
7238
+ console.log('🚀 ~ order:', orderAny);
7239
+ /**
7240
+ DeltaAuctionOrder | TWAPDeltaOrder | TWAPBuyDeltaOrder
7241
+ */
7242
+ }
7243
+ var orderExternal = {};
7244
+ if (isOrderCrosschain(orderExternal)) {
7245
+ console.log('🚀 ~ order:', orderExternal);
7246
+ /**
7247
+ never
7248
+ */
7249
+ }
7250
+ var orderLike = {};
7251
+ if (isOrderCrosschain(orderLike)) {
7252
+ console.log('🚀 ~ order:', orderLike);
7253
+ /**
7254
+ * {
7255
+ bridge: Bridge;
7256
+ a: 2;
7257
+ }
7258
+ */
7259
+ }
7260
+
7261
+ export { API_URL, AssetType, DEFAULT_VERSION, OrderHelpers, constructAllDeltaOrdersHandlers, constructAllLimitOrdersHandlers, constructAllNFTOrdersHandlers, constructApproveToken, constructApproveTokenForDelta, constructApproveTokenForLimitOrder, constructApproveTokenForNFTOrder, constructFetcher$2 as constructAxiosFetcher, constructBuildDeltaOrder, constructBuildExternalDeltaOrder, constructBuildLimitOrder, constructBuildLimitOrderTx, constructBuildNFTOrder, constructBuildNFTOrderTx, constructBuildTWAPDeltaOrder, constructBuildTx, constructCancelDeltaOrder, constructCancelLimitOrder, constructCancelNFTOrder, constructDeltaTokenModule, constructEthersV5ContractCaller as constructEthersContractCaller, constructEthersV5ContractCaller, constructContractCaller$2 as constructEthersV6ContractCaller, constructFetcher$1 as constructFetchFetcher, constructFillOrderDirectly, constructFullSDK, constructGetAdapters, constructGetBalances, constructGetBridgeInfo, constructGetDeltaContract, constructGetDeltaOrders, constructGetDeltaPrice, constructGetLimitOrders, constructGetLimitOrdersContract, constructGetNFTOrders, constructGetNFTOrdersContract, constructGetPartnerFee, constructGetQuote, constructGetRate, constructGetSpender, constructGetTokens, constructIsTokenSupportedInDelta, constructPartialSDK, constructPostDeltaOrder, constructPostExternalDeltaOrder, constructPostLimitOrder, constructPostNFTOrder, constructPostTWAPDeltaOrder, constructPreSignDeltaOrder, constructPreSignExternalDeltaOrder, constructPreSignTWAPDeltaOrder, constructSignDeltaOrder, constructSignExternalDeltaOrder, constructSignLimitOrder, constructSignNFTOrder, constructSignTWAPDeltaOrder, constructSimpleSDK, constructSubmitDeltaOrder, constructSubmitExternalDeltaOrder, constructSubmitLimitOrder, constructSubmitNFTOrder, constructSubmitTWAPDeltaOrder, constructSwapSDK, constructSwapTx, constructToken, constructContractCaller as constructViemContractCaller, constructContractCaller$1 as constructWeb3ContractCaller, isAllowance, isFetcherError, txParamsToViemTxParams };
6801
7262
  //# sourceMappingURL=sdk.esm.js.map