Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyp_erc20_collateral_test #111

Conversation

cyberhawk12121
Copy link
Contributor

@ametel01 ametel01 merged commit 4a9f443 into astraly-labs:feat-token-extensions Sep 13, 2024
2 of 3 checks passed
EvolveArt added a commit that referenced this pull request Sep 16, 2024
* renamed contracts dir

* upped cairo

* created all files req

* added workflow specific for token ext

* added function headers for contracts

* ci fix

* fixed other ci for dir renaming

* added scarb version to ci

* added headers for contracts in lib

* added alexandria dep

* + gas router comp

* pub modifier

* + router comp

* + utils for hook metadata

* fix rename

* + fast token router comp

* + token message trait

* token router comp

* added moduls

* added snforge

* renamed dir lib -> components

* HypErc20 init

* partial commit for hyp_erc721 comp

* set OZ tag to 0.14

* + hyp_erc721 + fixes

* fix on embedded components

* fix on naming

* initializer

* Naming correction

* fast_hyp_erc20 init

* fix added missing mailbox init

* fix added missing embedded impl

* + hyp_erc721_collateral + component

* + hyp_native + component

* fixes + (EnumerableMap + draft test)

* fmt

* HypErc20Collateral + Component

* FastHypErc20Collateral

* revert naming change to make test pass

* typo fix

* changed the function params

* fix on missing trait exposed

* + IMessageRecipient interface

* updated lib.cairo

* fix with workaround on token_router inheritance issue

* fix with workaround on token_router inheritance issue

* fixes for _handle

* fixes for recipient type

* extensions & simplifying the initializations

* fmt & typo fix

* fix test

* fmt

* implemented hooks for virtual functions

* + used hooks

* added hook to erc721_collateral

* fix typo

* added missing deps

* fix typo

* implemented hooks

* implemented hooks

* overrides draft

* switched to ERC721ABI trait

* renaming

* added hyp_erc721_URI extension

* added missing constructor logic

* added hyp_fiat token

* Revert "added hyp_fiat token"

This reverts commit b2be441.

* added hyp_native_scaled

* function overrides draft

* fmt

* IERC20Dispatcher to ERC20ABIDispatcher

* pub on struct

* partial tests setup before merge PR

* setup for hyp_erc20 tests

* mocks for tests

* added utils for erc20 tests

* setup for erc721 tests

* added utils for erc721 test

* Function overrides for `_handle` (#100)

* overrides for `_handle`

* fmt

* make test pass

* fmt&silence failing test template

* misc fixes for tests

* hyp_erc20 test + fixes

* tests for hyp_fiat + fixes

* mocks for xerc20 test

* ERC4626 extensions and override for `(TokenRouterComponent)._transfer_from` (#107)

* overrides for `_handle`

* fmt

* make test pass

* fmt&silence failing test template

* ERC4626 draft

* ERC4626 implementations

* getters

* vault collateral rebase func

* Fix initializer and embedded missing components

* comment for upgradeable impls

* remove outdated import

* merge 'hyperlane/feat-token-extensions' into 'feat-token-extensions'

* fix hyp_erc_721_setup

* fmt

* Removed TODOS for muldiv Round Down is default

* erc721 test deployment fix

* using self instead of ERC20MixinImpl

* u256 encode

* hyp_erc20_lockbox tests + fixes

* merge fixes

* hyp_xerc20_test (#108)

* overrides for `_handle`

* fmt

* make test pass

* fmt&silence failing test template

* ERC4626 draft

* ERC4626 implementations

* getters

* vault collateral rebase func

* Fix initializer and embedded missing components

* comment for upgradeable impls

* remove outdated import

* merge 'hyperlane/feat-token-extensions' into 'feat-token-extensions'

* fix hyp_erc_721_setup

* fmt

* Removed TODOS for muldiv Round Down is default

* erc721 test deployment fix

* using self instead of ERC20MixinImpl

* u256 encode

* hyp_xerc20_test

* xerc20 test

* removed unused import

* Auto stash before merge of "feat-token-extensions" and "origin/feat-token-extensions"

* test hyp_erc721 + fixes

* hyp_erc721_collateral test + fixes

* added ERC721Enumerable component and integrated in HypErc721

* integrated enumerable in hyp_erc721

* added erc721_uri_storage component

* Hyp_Erc20_Collateral_Vault_Deposit tests (#110)

* overrides for `_handle`

* fmt

* make test pass

* fmt&silence failing test template

* ERC4626 draft

* ERC4626 implementations

* getters

* vault collateral rebase func

* Fix initializer and embedded missing components

* comment for upgradeable impls

* remove outdated import

* merge 'hyperlane/feat-token-extensions' into 'feat-token-extensions'

* fix hyp_erc_721_setup

* fmt

* Removed TODOS for muldiv Round Down is default

* erc721 test deployment fix

* using self instead of ERC20MixinImpl

* u256 encode

* hyp_xerc20_test

* xerc20 test

* removed unused import

* ERC4626 Mocks

* hyp_erc20_collateral_vault_deposit_test

* fmt

* added docs

* hyp_erc20_collateral_test (#111)

* exposed token router impl

* added function signature to support collateral token functions

* collateral test

* formatted

---------

Co-authored-by: Sameer Kumar <[email protected]>

* refacto build.rs script

* fixed rust tests cairo artifacts path

* ci fix

* Feat: token erc721 uristorage (#109)

* Feat: initializer for ERC721 uri storage

* Feat: complete the basics of hyp_erc721_uri_storage

* Feat: Complete erc721 uri stirage

* resolve review

* integrate erc721 uri storage

* fix format and build check

* test erc721_uri_collateral + fixes

* restructured tests

* refacto into crates

* removed old /src

* refactored tests for new crates layout

* fmt

* ci fix

---------

Co-authored-by: Alex Metelli <[email protected]>
Co-authored-by: Turan Ege Caner <[email protected]>
Co-authored-by: Ege Caner <[email protected]>
Co-authored-by: Sameer Kumar <[email protected]>
Co-authored-by: Sameer Kumar <[email protected]>
Co-authored-by: Kayzee <[email protected]>
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.

3 participants