@metamask/bridge-status-controller 71.2.0 → 72.0.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/CHANGELOG.md +41 -1
- package/dist/bridge-status-controller-method-action-types.cjs.map +1 -1
- package/dist/bridge-status-controller-method-action-types.d.cts +5 -1
- package/dist/bridge-status-controller-method-action-types.d.cts.map +1 -1
- package/dist/bridge-status-controller-method-action-types.d.mts +5 -1
- package/dist/bridge-status-controller-method-action-types.d.mts.map +1 -1
- package/dist/bridge-status-controller-method-action-types.mjs.map +1 -1
- package/dist/bridge-status-controller.cjs +161 -366
- package/dist/bridge-status-controller.cjs.map +1 -1
- package/dist/bridge-status-controller.d.cts +27 -7
- package/dist/bridge-status-controller.d.cts.map +1 -1
- package/dist/bridge-status-controller.d.mts +27 -7
- package/dist/bridge-status-controller.d.mts.map +1 -1
- package/dist/bridge-status-controller.mjs +162 -370
- package/dist/bridge-status-controller.mjs.map +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/dist/strategy/batch-sell-strategy.cjs +101 -0
- package/dist/strategy/batch-sell-strategy.cjs.map +1 -0
- package/dist/strategy/batch-sell-strategy.d.cts +10 -0
- package/dist/strategy/batch-sell-strategy.d.cts.map +1 -0
- package/dist/strategy/batch-sell-strategy.d.mts +10 -0
- package/dist/strategy/batch-sell-strategy.d.mts.map +1 -0
- package/dist/strategy/batch-sell-strategy.mjs +97 -0
- package/dist/strategy/batch-sell-strategy.mjs.map +1 -0
- package/dist/strategy/batch-strategy.cjs +64 -0
- package/dist/strategy/batch-strategy.cjs.map +1 -0
- package/dist/strategy/batch-strategy.d.cts +10 -0
- package/dist/strategy/batch-strategy.d.cts.map +1 -0
- package/dist/strategy/batch-strategy.d.mts +10 -0
- package/dist/strategy/batch-strategy.d.mts.map +1 -0
- package/dist/strategy/batch-strategy.mjs +60 -0
- package/dist/strategy/batch-strategy.mjs.map +1 -0
- package/dist/strategy/evm-strategy.cjs +149 -0
- package/dist/strategy/evm-strategy.cjs.map +1 -0
- package/dist/strategy/evm-strategy.d.cts +38 -0
- package/dist/strategy/evm-strategy.d.cts.map +1 -0
- package/dist/strategy/evm-strategy.d.mts +38 -0
- package/dist/strategy/evm-strategy.d.mts.map +1 -0
- package/dist/strategy/evm-strategy.mjs +143 -0
- package/dist/strategy/evm-strategy.mjs.map +1 -0
- package/dist/strategy/index.cjs +70 -0
- package/dist/strategy/index.cjs.map +1 -0
- package/dist/strategy/index.d.cts +12 -0
- package/dist/strategy/index.d.cts.map +1 -0
- package/dist/strategy/index.d.mts +12 -0
- package/dist/strategy/index.d.mts.map +1 -0
- package/dist/strategy/index.mjs +68 -0
- package/dist/strategy/index.mjs.map +1 -0
- package/dist/strategy/intent-strategy.cjs +160 -0
- package/dist/strategy/intent-strategy.cjs.map +1 -0
- package/dist/strategy/intent-strategy.d.cts +17 -0
- package/dist/strategy/intent-strategy.d.cts.map +1 -0
- package/dist/strategy/intent-strategy.d.mts +17 -0
- package/dist/strategy/intent-strategy.d.mts.map +1 -0
- package/dist/strategy/intent-strategy.mjs +156 -0
- package/dist/strategy/intent-strategy.mjs.map +1 -0
- package/dist/strategy/non-evm-strategy.cjs +80 -0
- package/dist/strategy/non-evm-strategy.cjs.map +1 -0
- package/dist/strategy/non-evm-strategy.d.cts +15 -0
- package/dist/strategy/non-evm-strategy.d.cts.map +1 -0
- package/dist/strategy/non-evm-strategy.d.mts +15 -0
- package/dist/strategy/non-evm-strategy.d.mts.map +1 -0
- package/dist/strategy/non-evm-strategy.mjs +76 -0
- package/dist/strategy/non-evm-strategy.mjs.map +1 -0
- package/dist/strategy/types.cjs +13 -0
- package/dist/strategy/types.cjs.map +1 -0
- package/dist/strategy/types.d.cts +77 -0
- package/dist/strategy/types.d.cts.map +1 -0
- package/dist/strategy/types.d.mts +77 -0
- package/dist/strategy/types.d.mts.map +1 -0
- package/dist/strategy/types.mjs +10 -0
- package/dist/strategy/types.mjs.map +1 -0
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +41 -6
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +41 -6
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/bridge.cjs +5 -1
- package/dist/utils/bridge.cjs.map +1 -1
- package/dist/utils/bridge.d.cts +2 -2
- package/dist/utils/bridge.d.cts.map +1 -1
- package/dist/utils/bridge.d.mts +2 -2
- package/dist/utils/bridge.d.mts.map +1 -1
- package/dist/utils/bridge.mjs +3 -0
- package/dist/utils/bridge.mjs.map +1 -1
- package/dist/utils/history.cjs +72 -20
- package/dist/utils/history.cjs.map +1 -1
- package/dist/utils/history.d.cts +19 -5
- package/dist/utils/history.d.cts.map +1 -1
- package/dist/utils/history.d.mts +19 -5
- package/dist/utils/history.d.mts.map +1 -1
- package/dist/utils/history.mjs +69 -19
- package/dist/utils/history.mjs.map +1 -1
- package/dist/utils/metrics.cjs +10 -7
- package/dist/utils/metrics.cjs.map +1 -1
- package/dist/utils/metrics.d.cts +7 -6
- package/dist/utils/metrics.d.cts.map +1 -1
- package/dist/utils/metrics.d.mts +7 -6
- package/dist/utils/metrics.d.mts.map +1 -1
- package/dist/utils/metrics.mjs +10 -7
- package/dist/utils/metrics.mjs.map +1 -1
- package/dist/utils/trace.cjs +4 -4
- package/dist/utils/trace.cjs.map +1 -1
- package/dist/utils/trace.d.cts +2 -2
- package/dist/utils/trace.d.cts.map +1 -1
- package/dist/utils/trace.d.mts +2 -2
- package/dist/utils/trace.d.mts.map +1 -1
- package/dist/utils/trace.mjs +4 -4
- package/dist/utils/trace.mjs.map +1 -1
- package/dist/utils/transaction.cjs +223 -252
- package/dist/utils/transaction.cjs.map +1 -1
- package/dist/utils/transaction.d.cts +68 -147
- package/dist/utils/transaction.d.cts.map +1 -1
- package/dist/utils/transaction.d.mts +68 -147
- package/dist/utils/transaction.d.mts.map +1 -1
- package/dist/utils/transaction.mjs +214 -247
- package/dist/utils/transaction.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1,49 +1,29 @@
|
|
|
1
|
-
import type { QuoteMetadata, QuoteResponse, TxData } from "@metamask/bridge-controller";
|
|
1
|
+
import type { BatchSellTradesResponse, QuoteMetadata, QuoteResponse, SimulatedGasFeeLimits, Trade, TxData, TxFeeGasLimits } from "@metamask/bridge-controller";
|
|
2
2
|
import { TransactionType } from "@metamask/transaction-controller";
|
|
3
|
-
import type {
|
|
4
|
-
import { Hex } from "@metamask/utils";
|
|
5
|
-
import { BigNumber } from "bignumber.js";
|
|
3
|
+
import type { TransactionController, TransactionMeta, BatchTransactionParams } from "@metamask/transaction-controller";
|
|
4
|
+
import type { Hex } from "@metamask/utils";
|
|
6
5
|
import type { BridgeStatusControllerMessenger } from "../types.mjs";
|
|
6
|
+
import type { QuoteAndTxMetadata } from "../types.mjs";
|
|
7
|
+
export declare const isApprovalTx: (type: TransactionType) => boolean;
|
|
8
|
+
export declare const isTradeTx: (type: TransactionType) => boolean;
|
|
7
9
|
export declare const isCrossChainTx: (type: TransactionType) => boolean;
|
|
8
|
-
export declare const getGasFeeEstimates: (messenger: BridgeStatusControllerMessenger, args: Parameters<TransactionController['estimateGasFee']>[0]) => Promise<{
|
|
9
|
-
maxFeePerGas?: string;
|
|
10
|
-
maxPriorityFeePerGas?: string;
|
|
11
|
-
}>;
|
|
12
10
|
/**
|
|
13
|
-
*
|
|
11
|
+
* For 7702 delegated transactions, check for delegation-specific fields
|
|
12
|
+
* These transactions might have authorizationList or delegationAddress
|
|
14
13
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* @
|
|
17
|
-
|
|
18
|
-
* @returns The gas fee estimates for the transaction
|
|
14
|
+
* @param tx - The transaction meta
|
|
15
|
+
* @returns Whether the transaction is a 7702 transaction
|
|
19
16
|
*/
|
|
20
|
-
export declare const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}>;
|
|
25
|
-
export declare const calculateGasFees: (skipGasFields: boolean, messenger: BridgeStatusControllerMessenger, { chainId: _, gasLimit, ...trade }: TxData, networkClientId: string, chainId: Hex, txFee?: {
|
|
26
|
-
maxFeePerGas: string;
|
|
27
|
-
maxPriorityFeePerGas: string;
|
|
28
|
-
}) => Promise<{
|
|
29
|
-
maxFeePerGas?: undefined;
|
|
30
|
-
maxPriorityFeePerGas?: undefined;
|
|
31
|
-
gas?: undefined;
|
|
32
|
-
} | {
|
|
33
|
-
gas: string | undefined;
|
|
34
|
-
maxFeePerGas: string;
|
|
35
|
-
maxPriorityFeePerGas: string;
|
|
36
|
-
} | {
|
|
37
|
-
maxFeePerGas: string | undefined;
|
|
38
|
-
maxPriorityFeePerGas: string | undefined;
|
|
39
|
-
gas: `0x${string}`;
|
|
40
|
-
}>;
|
|
17
|
+
export declare const is7702Tx: (tx: TransactionMeta) => boolean;
|
|
18
|
+
export declare const shouldDisable7702: (gasIncluded7702?: boolean, gasIncluded?: boolean, isDelegatedAccount?: boolean) => boolean;
|
|
19
|
+
export declare const hasNestedSwapTransactions: (txMeta: TransactionMeta) => boolean;
|
|
20
|
+
export declare const getGasFeeEstimates: (messenger: BridgeStatusControllerMessenger, args: Parameters<TransactionController['estimateGasFee']>[0]) => Promise<import("@metamask/transaction-controller").FeeMarketGasFeeEstimateForLevel | undefined>;
|
|
41
21
|
export declare const getTransactions: (messenger: BridgeStatusControllerMessenger) => TransactionMeta[];
|
|
42
22
|
export declare const getTransactionMetaById: (messenger: BridgeStatusControllerMessenger, txId?: string) => TransactionMeta | undefined;
|
|
43
23
|
export declare const getTransactionMetaByHash: (messenger: BridgeStatusControllerMessenger, txHash?: string) => TransactionMeta | undefined;
|
|
44
24
|
export declare const updateTransaction: (messenger: BridgeStatusControllerMessenger, txMeta: TransactionMeta, txMetaUpdates: Partial<TransactionMeta>, note: string) => void;
|
|
45
25
|
export declare const checkIsDelegatedAccount: (messenger: BridgeStatusControllerMessenger, fromAddress: Hex, chainIds: Hex[]) => Promise<boolean>;
|
|
46
|
-
export declare const addTransaction: (messenger: BridgeStatusControllerMessenger, txParams: TransactionParams, options: import("@metamask/transaction-controller").AddTransactionOptions) => Promise<TransactionMeta>;
|
|
26
|
+
export declare const addTransaction: (messenger: BridgeStatusControllerMessenger, txParams: import("@metamask/transaction-controller").TransactionParams, options: import("@metamask/transaction-controller").AddTransactionOptions) => Promise<TransactionMeta>;
|
|
47
27
|
export declare const generateActionId: () => string;
|
|
48
28
|
/**
|
|
49
29
|
* Adds a synthetic transaction to the TransactionController to display pending intent orders in the UI
|
|
@@ -52,7 +32,7 @@ export declare const generateActionId: () => string;
|
|
|
52
32
|
* @param args - The arguments for the transaction
|
|
53
33
|
* @returns The transaction meta
|
|
54
34
|
*/
|
|
55
|
-
export declare const addSyntheticTransaction: (messenger: BridgeStatusControllerMessenger, txParams: TransactionParams, options: import("@metamask/transaction-controller").AddTransactionOptions) => Promise<TransactionMeta>;
|
|
35
|
+
export declare const addSyntheticTransaction: (messenger: BridgeStatusControllerMessenger, txParams: import("@metamask/transaction-controller").TransactionParams, options: import("@metamask/transaction-controller").AddTransactionOptions) => Promise<TransactionMeta>;
|
|
56
36
|
export declare const handleApprovalDelay: (srcChainId: QuoteResponse['quote']['srcChainId']) => Promise<void>;
|
|
57
37
|
/**
|
|
58
38
|
* Adds a delay for hardware wallet transactions on mobile to fix an issue
|
|
@@ -77,125 +57,66 @@ export declare const waitForTxConfirmation: (messenger: BridgeStatusControllerMe
|
|
|
77
57
|
timeoutMs?: number | undefined;
|
|
78
58
|
pollMs?: number | undefined;
|
|
79
59
|
}) => Promise<TransactionMeta>;
|
|
80
|
-
export declare const
|
|
81
|
-
|
|
82
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
83
|
-
gas?: string | undefined;
|
|
84
|
-
}) => BatchTransactionParams;
|
|
85
|
-
export declare const getAddTransactionBatchParams: ({ messenger, isBridgeTx, approval, resetApproval, trade, quoteResponse: { quote: { feeData: { txFee }, gasIncluded, gasIncluded7702, gasSponsored, }, sentAmount, toTokenAmount, }, requireApproval, isDelegatedAccount, }: {
|
|
86
|
-
messenger: BridgeStatusControllerMessenger;
|
|
60
|
+
export declare const toQuoteAndTxMetadata: ({ quoteResponse, isBridgeTx, }: {
|
|
61
|
+
quoteResponse: QuoteResponse<Trade, Trade> & QuoteMetadata;
|
|
87
62
|
isBridgeTx: boolean;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
63
|
+
}) => Omit<QuoteAndTxMetadata, 'txMeta'>[];
|
|
64
|
+
/**
|
|
65
|
+
* Build the trade+quote metadata array for the batch sell transaction
|
|
66
|
+
* This ties together the quote, the tx params and the txMeta after submission
|
|
67
|
+
*
|
|
68
|
+
* @param options - The options for the batch sell transaction
|
|
69
|
+
* @param options.quoteResponses - The quote responses for the batch sell transaction
|
|
70
|
+
* @param options.batchSellTrades - The batch sell trades for the batch sell transaction
|
|
71
|
+
* @returns The trade+quote metadata array for the batch sell transaction
|
|
72
|
+
*/
|
|
73
|
+
export declare const toQuoteAndTxMetadataBatch: ({ quoteResponses, batchSellTrades, }: {
|
|
74
|
+
quoteResponses: (QuoteResponse<TxData, TxData> & QuoteMetadata)[];
|
|
75
|
+
batchSellTrades: BatchSellTradesResponse;
|
|
76
|
+
}) => Omit<QuoteAndTxMetadata, 'txMeta'>[];
|
|
77
|
+
/**
|
|
78
|
+
* Appends the gas fee estimates for a transaction and normalizes the trade data
|
|
79
|
+
*
|
|
80
|
+
* @param messenger - The messenger for the gas fee estimates
|
|
81
|
+
* @param trade - the trade data to append gas fees to
|
|
82
|
+
* @param trade.chainId - ignored, use chainId instead
|
|
83
|
+
* @param trade.gasLimit - the gas limit to use for the gas fee estimates
|
|
84
|
+
* @param networkClientId - the network client ID to use for the gas fee estimates
|
|
85
|
+
* @param chainId - the chain ID to use for the gas fee estimates
|
|
86
|
+
* @param simulatedGasFeeLimits - either the txFee from the quote or the simulated gas fee limits for the batch sell
|
|
87
|
+
* @returns The gas fee estimates for the transaction
|
|
88
|
+
*/
|
|
89
|
+
export declare const toTransactionParams: (messenger: BridgeStatusControllerMessenger, { chainId: tradeChainId, gasLimit, ...trade }: TxData, networkClientId: string, chainId: Hex, simulatedGasFeeLimits?: SimulatedGasFeeLimits | TxFeeGasLimits) => Promise<BatchTransactionParams>;
|
|
90
|
+
export declare const getAddTransactionBatchParams: ({ messenger, tradeData, requireApproval, isDelegatedAccount, ...addTransactionBatchParams }: Partial<import("@metamask/transaction-controller").TransactionBatchRequest> & {
|
|
91
|
+
messenger: BridgeStatusControllerMessenger;
|
|
92
|
+
tradeData: QuoteAndTxMetadata[];
|
|
108
93
|
requireApproval?: boolean | undefined;
|
|
109
94
|
isDelegatedAccount?: boolean | undefined;
|
|
110
|
-
}) => Promise<
|
|
111
|
-
export declare const
|
|
95
|
+
}) => Promise<Parameters<TransactionController['addTransactionBatch']>[0]>;
|
|
96
|
+
export declare const findAllTransactionsInBatch: ({ messenger, batchId, tradeData, }: {
|
|
112
97
|
messenger: BridgeStatusControllerMessenger;
|
|
113
98
|
batchId: string;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
bridge?: string | undefined;
|
|
117
|
-
bridgeApproval?: string | undefined;
|
|
118
|
-
cancel?: string | undefined;
|
|
119
|
-
contractInteraction?: string | undefined;
|
|
120
|
-
contractDeployment?: string | undefined;
|
|
121
|
-
eth_decrypt?: string | undefined;
|
|
122
|
-
eth_getEncryptionPublicKey?: string | undefined;
|
|
123
|
-
gas_payment?: string | undefined;
|
|
124
|
-
incoming?: string | undefined;
|
|
125
|
-
lendingDeposit?: string | undefined;
|
|
126
|
-
lendingWithdraw?: string | undefined;
|
|
127
|
-
moneyAccountDeposit?: string | undefined;
|
|
128
|
-
moneyAccountWithdraw?: string | undefined;
|
|
129
|
-
musdClaim?: string | undefined;
|
|
130
|
-
musdConversion?: string | undefined;
|
|
131
|
-
musdRelayDeposit?: string | undefined;
|
|
132
|
-
perpsAcrossDeposit?: string | undefined;
|
|
133
|
-
perpsDeposit?: string | undefined;
|
|
134
|
-
perpsDepositAndOrder?: string | undefined;
|
|
135
|
-
perpsRelayDeposit?: string | undefined;
|
|
136
|
-
perpsWithdraw?: string | undefined;
|
|
137
|
-
personal_sign?: string | undefined;
|
|
138
|
-
predictAcrossDeposit?: string | undefined;
|
|
139
|
-
predictAcrossWithdraw?: string | undefined;
|
|
140
|
-
predictBuy?: string | undefined;
|
|
141
|
-
predictClaim?: string | undefined;
|
|
142
|
-
predictDeposit?: string | undefined;
|
|
143
|
-
predictDepositAndOrder?: string | undefined;
|
|
144
|
-
predictSell?: string | undefined;
|
|
145
|
-
predictWithdraw?: string | undefined;
|
|
146
|
-
predictRelayDeposit?: string | undefined;
|
|
147
|
-
relayDeposit?: string | undefined;
|
|
148
|
-
retry?: string | undefined;
|
|
149
|
-
revokeDelegation?: string | undefined;
|
|
150
|
-
simpleSend?: string | undefined;
|
|
151
|
-
eth_signTypedData?: string | undefined;
|
|
152
|
-
smart?: string | undefined;
|
|
153
|
-
stakingClaim?: string | undefined;
|
|
154
|
-
stakingDeposit?: string | undefined;
|
|
155
|
-
stakingUnstake?: string | undefined;
|
|
156
|
-
swap?: string | undefined;
|
|
157
|
-
swapAndSend?: string | undefined;
|
|
158
|
-
swapApproval?: string | undefined;
|
|
159
|
-
approve?: string | undefined;
|
|
160
|
-
safetransferfrom?: string | undefined;
|
|
161
|
-
transfer?: string | undefined;
|
|
162
|
-
transferfrom?: string | undefined;
|
|
163
|
-
setapprovalforall?: string | undefined;
|
|
164
|
-
increaseAllowance?: string | undefined;
|
|
165
|
-
shieldSubscriptionApprove?: string | undefined;
|
|
166
|
-
cardDelegation?: string | undefined;
|
|
167
|
-
};
|
|
168
|
-
}) => {
|
|
169
|
-
approvalMeta?: TransactionMeta | undefined;
|
|
170
|
-
tradeMeta?: TransactionMeta | undefined;
|
|
171
|
-
};
|
|
172
|
-
export declare const addTransactionBatch: (messenger: BridgeStatusControllerMessenger, addTransactionBatchFn: TransactionController['addTransactionBatch'], request: import("@metamask/transaction-controller").TransactionBatchRequest) => Promise<{
|
|
173
|
-
approvalMeta: TransactionMeta | undefined;
|
|
174
|
-
tradeMeta: TransactionMeta;
|
|
175
|
-
}>;
|
|
99
|
+
tradeData: QuoteAndTxMetadata[];
|
|
100
|
+
}) => QuoteAndTxMetadata[];
|
|
176
101
|
/**
|
|
177
|
-
*
|
|
102
|
+
* This is a workaround to update the tx type after submission. Batch txs are submitted with
|
|
103
|
+
* the "batch" type, but we need to update to swap/bridge for display purposes.
|
|
178
104
|
*
|
|
179
|
-
* @param params - The parameters for the transaction
|
|
180
|
-
* @param params.transactionType - The type of transaction to submit
|
|
181
|
-
* @param params.trade - The trade data to confirm
|
|
182
|
-
* @param params.requireApproval - Whether to require approval for the transaction
|
|
183
|
-
* @param params.txFee - Optional gas fee parameters from the quote (used when gasIncluded is true)
|
|
184
|
-
* @param params.txFee.maxFeePerGas - The maximum fee per gas from the quote
|
|
185
|
-
* @param params.txFee.maxPriorityFeePerGas - The maximum priority fee per gas from the quote
|
|
186
|
-
* @param params.actionId - Optional actionId for pre-submission history (if not provided, one is generated)
|
|
105
|
+
* @param params - The parameters for the transaction search
|
|
187
106
|
* @param params.messenger - The messenger to use for the transaction
|
|
188
|
-
* @
|
|
107
|
+
* @param params.allTradesWithMetadata - The quote, tx data and type for each transaction in the batch
|
|
108
|
+
* @returns A list of transaction metas for each trade in the batch]
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* [
|
|
112
|
+
* {...tradeData[0], tradeMeta: TransactionMeta}
|
|
113
|
+
* {...tradeData[1], tradeMeta: TransactionMeta}
|
|
114
|
+
* {...tradeData[2], tradeMeta: TransactionMeta}
|
|
115
|
+
* {...tradeData[3], tradeMeta: TransactionMeta}
|
|
116
|
+
* ]
|
|
189
117
|
*/
|
|
190
|
-
export declare const
|
|
118
|
+
export declare const updateTransactionsInBatch: ({ messenger, allTradesWithMetadata, }: {
|
|
191
119
|
messenger: BridgeStatusControllerMessenger;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
requireApproval?: boolean | undefined;
|
|
195
|
-
txFee?: {
|
|
196
|
-
maxFeePerGas: string;
|
|
197
|
-
maxPriorityFeePerGas: string;
|
|
198
|
-
} | undefined;
|
|
199
|
-
actionId?: string | undefined;
|
|
200
|
-
}) => Promise<TransactionMeta>;
|
|
120
|
+
allTradesWithMetadata: QuoteAndTxMetadata[];
|
|
121
|
+
}) => QuoteAndTxMetadata[];
|
|
201
122
|
//# sourceMappingURL=transaction.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.mts","sourceRoot":"","sources":["../../src/utils/transaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transaction.d.mts","sourceRoot":"","sources":["../../src/utils/transaction.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,uBAAuB,EACvB,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,KAAK,EACL,MAAM,EACN,cAAc,EACf,oCAAoC;AAErC,OAAO,EAGL,eAAe,EAChB,yCAAyC;AAC1C,OAAO,KAAK,EAEV,qBAAqB,EACrB,eAAe,EAEf,sBAAsB,EACvB,yCAAyC;AAE1C,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB;AAG3C,OAAO,KAAK,EAAE,+BAA+B,EAAE,qBAAiB;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAiB;AAInD,eAAO,MAAM,YAAY,SAAU,eAAe,YAEX,CAAC;AACxC,eAAO,MAAM,SAA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