Skip to content

Conversation

@tbwebb22
Copy link
Contributor

@tbwebb22 tbwebb22 commented Oct 14, 2025

Closes ACX-4548

@tbwebb22 tbwebb22 self-assigned this Oct 14, 2025
@tbwebb22 tbwebb22 marked this pull request as draft October 15, 2025 01:20
@tbwebb22 tbwebb22 changed the title Hypercorelib feat: Hypercorelib Oct 15, 2025
@linear
Copy link

linear bot commented Oct 15, 2025

ACX-4548 `HyperCoreLib`

* @param to The address to receive tokens on HyperCore
* @param amountCore The amount to transfer on HyperCore
*/
function transferERC20CoreToCore(uint64 erc20CoreIndex, address to, uint64 amountCore) internal {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function could check this contract's spot balance on HyperCore and revert if it is less than amountCore. Or this check could be handled at the higher level handler contracts. Thoughts on this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intuition is that we treat this lib as a rather low-level primitive. Handler contracts are the ones to make sure our interactions with HCore make sense in terms of failures. I'd leave this responsibility to them

Copy link
Contributor

@fusmanii fusmanii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff, looks good just have some minor comments and questions

* @param erc20CoreIndex The HyperCore index id of the token to transfer
* @param decimalDiff The decimal difference of evmDecimals - coreDecimals
* @param bridgeAddress The asset bridge address of the token to transfer
* @param amountEVM The number of tokens that (pre-dusted) that we are trying to send
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param amountEVM The number of tokens that (pre-dusted) that we are trying to send
* @param amountEVM The number of tokens (pre-dusted) that we are trying to send

also what do you mean by pre-dusted here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so since the EVM and HyperCore typically have different decimals for the same token, when bridging across you can end up losing this dust amount that results from the decimal difference. This function takes the amount we want to send (EVM decimals, this is the pre-dusted amount) and removes that small amount that we would have lost from dust. So we send a little less, but don't lose any amount to dust.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok makes sense, and that would only be true in the case that evm decimal > core decimal

* @param assetBridgeAddress The asset bridge address to convert
* @return erc20CoreIndex The core token index id
*/
function into_tokenId(address assetBridgeAddress) internal pure returns (uint64) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let use camelCase for this and the rest of the functions below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call, done!

Comment on lines +329 to +330
if (amountEVM > maxTransferableAmountEVM)
revert TransferAmtExceedsAssetBridgeBalance(amountEVM, maxTransferableAmountEVM);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice check!!

// Basic sanity checks
if (limitPriceX1e8 == 0) revert LimitPxIsZero();
if (sizeX1e8 == 0) revert OrderSizeIsZero();
if (!(encodedTif == 1 || encodedTif == 2 || encodedTif == 3)) revert InvalidTif();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we create an enum for these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that, enum added

* @param cloid The client order id of the order, 0 means no cloid
*/
function submitLimitOrder(
uint32 asset,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is asset here different than the erc20CoreIndex you have in the functions above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, asset refers to a spot market index which is different from the erc20CoreIndex

https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/asset-ids

// Basic sanity checks
if (limitPriceX1e8 == 0) revert LimitPxIsZero();
if (sizeX1e8 == 0) revert OrderSizeIsZero();
if (tif == Tif.None || uint8(tif) > uint8(Tif.IOC)) revert InvalidTif();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since tif will never be None lets remove it

also you can just do

Suggested change
if (tif == Tif.None || uint8(tif) > uint8(Tif.IOC)) revert InvalidTif();
if (uint8(tif) > uint8(type(Tif).max)) revert InvalidTif();

@tbwebb22 tbwebb22 marked this pull request as ready for review October 15, 2025 23:37
@tbwebb22 tbwebb22 merged commit cd311fd into audit-oct-20 Oct 15, 2025
7 of 8 checks passed
@tbwebb22 tbwebb22 deleted the hypercorelib branch October 15, 2025 23:39
grasphoper added a commit that referenced this pull request Dec 9, 2025
* feat: Hypercorelib (#1137)

* HyperCoreLib init commit

* add functions for submitting and canceling limit orders

* clean up function & variable naming

* add tokenInfo getter function

* split HyperCoreLib into two libraries

* rename helper library

* add function for bridging to self on Core

* Update natspec and naming

* fix natspec

* combine libraries into single library with MIT license

* make all function camelCase

* Make tif order types into enum

* check tif against tif.max

* feat: Hypercorelib - clean up decimal conversion functions (#1139)

* HyperCoreLib init commit

* add functions for submitting and canceling limit orders

* clean up function & variable naming

* add tokenInfo getter function

* split HyperCoreLib into two libraries

* rename helper library

* add function for bridging to self on Core

* Update natspec and naming

* fix natspec

* combine libraries into single library with MIT license

* make all function camelCase

* Make tif order types into enum

* check tif against tif.max

* add spotPx function

* add minimumCoreAmountsToAmounts

* clean up decimal conversion functions

* feat: OP Adapter update (#1132)

* feat: OP Adapter update

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Undo the branch logic

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* revert formatting

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added tests

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Fixed test

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

---------

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* feat: eraVM Spoke Pool 7702 Handling (#1122)

* feat: eraVM Spoke Pool upgrade

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added tests

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

---------

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* feat: add safe bridge check (#1140)

* Add function for checking if bridge amount is safe

* fix function natspec

* feat: Sponsored Bridging - CCTP (#1135)

* feat: SponsoredCCTPLib

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Updated stuct hash for sig validation

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added src/dst periphery contracts

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* updates const

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Updated event names and params

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Updated receive event

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added hypercore lib

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added safe guards

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added wip swap handler

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added missing calls

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added limit order queue

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* updated simple transfer flow

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added hyper core forwarder

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* init hyper core forwarder swap func

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* progress

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* complete _initiateSwapFlow2

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* Added finalize pending swaps function

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* removed finalTokenHCoreId

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* correct the limit price, size calculation, and send to SwapHandler logic

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* added access control

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* first draft of cancelLimitOrderByCloid + submitNewLimitOrder

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* complete the newMinCoreAmountFromLO calculation

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add a check to submitNewLimitOrder that safeguards new params against old calculated token amounts

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add fixes wrt new HyperCoreLib

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* adjust functionality using new HyperCoreLib fns

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add _executeFlow + multiple random improvements

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* some renamings for consistency

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* try to improve donationBox interactions

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* added bridge balance check before transfer

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* added fallback to send on evm

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Updated dst periphery to use executeflow func

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* unified fallback logic

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* updated account activation logic

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Removed ownable

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Removed maxBpsToSponsor from sig check

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* check for mint recipient in message validation

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* make the bridge safety buffer configurable; use new isCoreAmountSafeToBridge function

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* improve fallback to hyperevm emitted event and logic

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* added sweep functions

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Added min delay between finalizations

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* added commulative funcs

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* rewrite _initiateSwapFlow to support non-sponsored flow

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* fallback flows and events

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* misc todos

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* misc improvements

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* misc todos and fixes

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* rough draft of correct size calculations

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* new calc functions, hook up to swap flow

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* fix math in submitUpdatedLimitOrder

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* correct the amt calc

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add updated comments

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* misc todos

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add _getSuggestedPriceX1e8 and comments

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* comments + misc fixes

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* improve fallback hyperEVM flow + fix donationBox interactions

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update account activation logic for SwapHandler

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add a comment

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add PX_D to _calcLOAmountsSell

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add maxUserSlippage for CCTP flow; add quote deadline buffer

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* feedback

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Stack too deep, amount less fee & removal of isFinalized

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* fix incorrect calculation of non-sponsored token amount

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* internal => extrenal in HyperCoreLib

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* fix incorrect bridge safety check

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* change from time-based buffer between fund pulls to block-based buffer

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* Update quote lib

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* use safeErc20 in src

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

---------

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Ihor Farion <ihor@umaproject.org>
Co-authored-by: Ihor Farion <ihor@umaproject.org>

* feat: sponsored bridging -- OFT track (#1134)

* commit before too late

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* remove lz deps; reimplement minimal lz options functionality

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* some polish and comments

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* polish

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* move things around

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add event for sponsored sends tracking

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* polish

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add barebones DstOFTHandler

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* improve  lib quality

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* added OFTComposeMsgCodec

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* progress .. Flow implementaions left

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* rough first draft of transfer-only flow

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add AccessControl

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* pull account creation funds from donationbox

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* remove HyperCoreLib

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* first ROUGHEST draft of swap flow implementation

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* a more complete implementation

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* copy Forwarder + misc helper contracts into this branch

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* adjust DstOFTHandler to use HyperCoreForwarder-implemented flows, instead of implementing flows from Handler direcly

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update error messageas

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* updates

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* added gas limits and max slippage bps

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* polish

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update HyperCoreForwarder import

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add maxUserSlippageBps to emitted event

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* polish

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* fix typechain oddness

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update HyperCoreFlowExecutor

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* Deploy script

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* idk. fixing typechain :)

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* deploy + test scripts + fix bugs

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update .gitignore and script

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* fix

Signed-off-by: Ihor Farion <ihor@umaproject.org>

---------

Signed-off-by: Ihor Farion <ihor@umaproject.org>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Co-authored-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* fix: add fixes for issues that codex found (#1142)

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* fix account activation flow

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* use CREATE2 for deterministic SwapHandler addresses. Check for HyperCore account existence before allowing to set a final token or deploy a HyperCoreFlowExecutor contract

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* improve events

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* misc

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* feat: add arbitrary actions execution to sponsored bridging (#1143)

* feat: add arbitrary actions execution to sponsored bridging

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* fix the MIN_COMPOSE_MSG_BYTE_LENGTH

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

---------

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
Signed-off-by: Ihor Farion <ihor@umaproject.org>
Co-authored-by: Ihor Farion <ihor@umaproject.org>

* Update contracts/periphery/mintburn/HyperCoreFlowExecutor.sol

Co-authored-by: nicholaspai <9457025+nicholaspai@users.noreply.github.com>

* Update contracts/periphery/mintburn/HyperCoreFlowExecutor.sol

Co-authored-by: nicholaspai <9457025+nicholaspai@users.noreply.github.com>

* fix typo

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* moved nonce setting before external calls

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Fix: Remvoed token info setting on deploy

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Undo commented out require

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Remove unused constructor args

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* move LayerZero libs to `external/` (#1151)

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* feat: add swapsProcessed return values to finalizePendingsSwaps (#1145)

* add swapsProcessed return values to finalizePendingsSwaps

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

* return finalized swap amount & number of swaps remaining

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

* update var name process to finalize

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

---------

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

* fix: arbitrary actions flow (#1149)

* fix

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* a few renames

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* remove dedundant maxBpsToSponsor enforcement

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* save 1 stack depth.

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add _calcFinalExtraFees

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* comment

Signed-off-by: Ihor Farion <ihor@umaproject.org>

---------

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* chore: Added NatSpec to CCTP contracts (#1144)

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Co-authored-by: Ihor Farion <65650773+grasphoper@users.noreply.github.com>

* add reentrancy guards and follow the CEI pattern where possible (#1148)

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* improve: Move BytesLib to external folder (#1153)

* improve: Move BytesLib to external folder

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Undo var scoping

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

---------

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* fix: HyperCoreFlowExecutor stack too deep (#1154)

* fix stack too deep - need to verify equivalance

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

* update comment

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

* remove confusing comment

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

* use CommonFlowParams struct

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

* use CommonFlowParams struct in _executeFlow

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

* remove confusing comment

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>

* move things around

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* remove remappings.txt

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* chore: Update solidity and OZ versions (#1156)

* chore: Update solidity and OZ versions

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* Upgrade hardhat as well

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* downgrade to 0.8.24

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

---------

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

---------

Signed-off-by: Taylor Webb <tbwebb22@gmail.com>
Signed-off-by: Ihor Farion <ihor@umaproject.org>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Co-authored-by: Ihor Farion <ihor@umaproject.org>
Co-authored-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* feat: remove swap calcs form contracts (#1158)

* remove

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* polish

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add _finalizeSwapFlows

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* complete finalization flow

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add a comment

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* add

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* Update events (#1159)

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

---------

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* fix cumulativeSponsoredAmount + add event

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* update comment

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* Update contracts/periphery/mintburn/HyperCoreFlowExecutor.sol

Co-authored-by: Matt Rice <matthewcrice32@gmail.com>

---------

Signed-off-by: Ihor Farion <ihor@umaproject.org>
Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
Co-authored-by: Matt Rice <matthewcrice32@gmail.com>

* add Bytes from OZ (#1160)

* fix: Set version to cancun (#1162)

* fix: Set version to cancun

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* remove evmVersion on overrides

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

---------

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

* fix: contract sizes (#13)

Signed-off-by: Ihor Farion <ihor@umaproject.org>
Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Taylor Webb <tbwebb22@gmail.com>
Co-authored-by: Matt Rice <matthewcrice32@gmail.com>
Co-authored-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Co-authored-by: Taylor Webb <84364476+tbwebb22@users.noreply.github.com>
Co-authored-by: Taylor Webb <tbwebb22@gmail.com>

* chore: common branch (#21)

Signed-off-by: Ihor Farion <ihor@umaproject.org>
Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: nicholaspai npai.nyc@gmail.com
Signed-off-by: nicholaspai <npai.nyc@gmail.com>
Signed-off-by: Taylor Webb <tbwebb22@gmail.com>
Co-authored-by: Matt Rice <matthewcrice32@gmail.com>
Co-authored-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Co-authored-by: nicholaspai <9457025+nicholaspai@users.noreply.github.com>
Co-authored-by: Taylor Webb <84364476+tbwebb22@users.noreply.github.com>
Co-authored-by: Taylor Webb <tbwebb22@gmail.com>

* improve: update verify bytecode script to work with `foundry` deployments  (#82)

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* fix duplicate foundry flag

Signed-off-by: Ihor Farion <ihor@umaproject.org>

* conditional compilation when testing w/ hardhat

Signed-off-by: Ihor Farion <ihor@umaproject.org>

---------

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Ihor Farion <ihor@umaproject.org>
Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
Signed-off-by: Taylor Webb <tbwebb22@gmail.com>
Signed-off-by: nicholaspai npai.nyc@gmail.com
Signed-off-by: nicholaspai <npai.nyc@gmail.com>
Co-authored-by: Taylor Webb <84364476+tbwebb22@users.noreply.github.com>
Co-authored-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Co-authored-by: Matt Rice <matthewcrice32@gmail.com>
Co-authored-by: nicholaspai <9457025+nicholaspai@users.noreply.github.com>
Co-authored-by: Taylor Webb <tbwebb22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants