You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have some common util for building THOR Txs with a "per-chain", or to be exact, per Tx type i.e:
EvmCustomTx - depositWithExpiry()
MsgDeposit - RUNE LP and Swap Txs
Send - actual sends
EVM transactions leverage EIP1559 if supported otherwise create legacy transactions
lib/utils/evm.ts was meant to be a common utility for creating evm transactions with the appropriate gas fees. utilize if possible or think of a good way to capsulate reusable evm fee logic that can be used for thorchain txs or elsewhere in the app
This is propagated over all THOR domains whenever applicable:
LP (the source of truth for this logic)
Savers
Lending
Swaps (if applicable)
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response
The text was updated successfully, but these errors were encountered:
gomesalexandre
changed the title
Consolidate Tx building in all THOR domains
Consolidate Tx building into a common util over all THOR domains
Apr 12, 2024
Overview
See this most recent guy which is nice and clean, properly switching over chains/Tx types to build a
depositWithExpiryTx
:web/src/pages/ThorChainLP/components/ReusableLpStatus/TransactionRow.tsx
Line 466 in c4c9f4f
We want to abstract this switching logic away into some helper function, to ensure:
depositWithExpiry()
when applicable i.e for EVMs, ensuring expiry is properly set, and facilitating Tx history parsingReferences and additional details
web/src/pages/ThorChainLP/components/ReusableLpStatus/TransactionRow.tsx
Line 466 in c4c9f4f
Acceptance Criteria
We have some common util for building THOR Txs with a "per-chain", or to be exact, per Tx type i.e:
EvmCustomTx
-depositWithExpiry()
MsgDeposit
- RUNE LP and Swap TxsSend
- actual sendsEVM transactions leverage EIP1559 if supported otherwise create legacy transactions
lib/utils/evm.ts
was meant to be a common utility for creating evm transactions with the appropriate gas fees. utilize if possible or think of a good way to capsulate reusable evm fee logic that can be used for thorchain txs or elsewhere in the appThis is propagated over all THOR domains whenever applicable:
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response
The text was updated successfully, but these errors were encountered: