-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add new messages and fix all tests Most tests failed because the call_index changed for most messages. * messages.sol: Add AddCurrency support * test: AddCurrency encoding/decoding * Update AddPool fields and tests Drop currency and decimals and update all tests * Support AllowPoolCurrency encoding/decoding + test * Extend Connector's GatewayLike interface * Implement Connector to Gateway delegation * Connector: Impl Transfer outgoing message delegation * Rename 'token' to 'currency' * Implement Gateway to Router delegation * Adapt AddTranche to contains decimals field * Fix all possible warnings * fmt * tests: Fix AddTranche encoding/decoding * Use AddTranche decimals in DeployTranche * Drop todo * gateway: Handle incoming AddCurrency + AllowPoolCurrency * draft: Implement Connector.addCurrency * draft: Implement Connector.allowPoolCurrency * test: Add testAddingCurrencyWorks * Add poolId to AllowPoolCurrency * Refactor AddCurrency and AllowPoolCurrency * Extend testing of AddCurrency * fmt * Clean up AddCurrency * test: AllowPoolCurrencyWorks * test: testAllowPoolCurrencyWithUnknownCurrencyFails * Impl and test Transfer Centrifuge -> EVM * test: Add testIncomingTransferWorks * fmt * Fix several warnings * wip: Fix outgoing & incoming transfer logic Facing some issues with the tests but the logic should be correct now. * Fix unexpected revert * Fix testIncomingTransferWorks * fmt * draft: Implement all outgoing message todo flows * wip: Adapt addCurrency * wip: Adapt allowPoolCurrency * Check pool exists in allowPoolCurrency * Fix increaseInvesOrder and interface GatewayLike * fmt * Address todos to fix currency param * test: Add testDecreaseInvestOrder * fmt * Test increase/decrease redeem orders * more tests * Add testIncreaseRedeemOrderWithNotAllowedCurrencyFails * fmt * Prune outgoing messages `require`s * Tests ++ * fmt * Prune latest tests 🧹 * All all remaining tests * Small improvements * Refactor Connector.transfer interface to receive address Instead of receiving uint128, we expect `address` instead to follow the same logic used for the other outgoing messages reference a currency. * ff * Add `parseIncomingTransfer` for gas savings * Implement todo around optimised parseTransfer * Test parseTransfer <> parseIncomingTransfer equality * fmt * connector: Make escrow immutable * Update tests to latest ERC20 contract * fixup! * fmt * Drop CollectFor* * wip: Fix TransferTrancheToken (d)encoding * Fix TransferTrancheTokenst tests * Drop todo * Fix all TransferTrancheTokens tests & optimise parsing * fmt * AddCurrency: require address == 0 This stops us from being able to override a Currency <> Address mapping. * Fix escrow approve and rely setup * fmt * AddCurrency: Also check that require(currencyAddressToId[currencyAddress] == 0 * Fix tests with vm.assume * fmt * Rename `caller` to `investor` * Rename poolCurrencies to allowedPoolCurrencies * Place CollectInvest before CollectRedeem * Increase AddCurrency error's granularity * Swap AllowPoolCurrency fields * Drop Pool.currency field * fmt * fixup * fmt
- Loading branch information
1 parent
5f19c1c
commit c1fc9c1
Showing
10 changed files
with
970 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.