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

Merge Integration #759

Merged
merged 38 commits into from
Jul 16, 2024
Merged

Merge Integration #759

merged 38 commits into from
Jul 16, 2024

Conversation

peterjah
Copy link
Contributor

No description provided.

Thykof and others added 30 commits May 27, 2024 09:45
* update ui kit fetch

* update ui kit
* update ui kit next

* clean deps

* refactor mode store

* add bsc address and rename

* rename to BSC

* add dropdown option for evm blockchain

* network validation

* clean code

* wip fee estimations

* filter tokens by chain id

* Add New Banner

* Revamp claim

* Add BSC Bridge Buildnet Contract

* update iconsNetwork enum

* filter tokens by chain id

* fix deps

* add new bsc bridge sc address

---------

Co-authored-by: Phoebe Lartisant <phoebelartisant@proton.me>
* WIP revamp link to explorers

* refactor miniLinkToExplo to be shown in claim, DAO and history

* clean up

* rename linkToExplorer components

* improve getExplorerUrl fn

* clean

* remove unecessary fn

* rename variable

* review changes
* add onClick claim on wrong network flow

* improve function call + add switchNetwork rejection + i18n

* improve function syntax

* move isIncompatibleChain variable

* fix getEvmIconNetwork

* remove comment

* improve hanldeClaimSyntax

Co-authored-by: Nathan Seva <thykof@protonmail.ch>

---------

Co-authored-by: Nathan Seva <thykof@protonmail.ch>
* Update call sc address based on selected chain

* update more contract address

* Update history page

* improve bridgeCOntractAddr selection syntax

* fix build

* improve claim page operation component sizing

* small massaNetwork display refactor
* update FT icons

* update bridge address

* clean code

* update ui kit

* fix: icon of massa token bridged

* fix: use correct sepolia icon

* Rename BNBSvg to BSCSvg

* clean label evmChainAndNetwork

* change round of amount in success screen

---------

Co-authored-by: Phoebe Lartisant <phoebelartisant@proton.me>
* initial QA fixes

* update ui-kit and enable usdt icon

* update ui-kit

* revert claim reject styling improvement

* change wrong network label

* set selectedEvm in storage and init selectedEvm with stored value on app render

* fix min confirmations

* refresh balance when mint is successful

* fix wrong contract selection in claim page

* remove comment

* add try catch

* revert bdb1506 and improve solution

* Revert "revert bdb1506 and improve solution"

This reverts commit 3bb8b3f.

* no enum for trans key

* class name indentation

* rename BLOCKCHAIN_TO_CHAIN_IDS to SUPPORTED_BLOCKCHAIN_TO_CHAIN_IDS

* fixup no const or enum in trans key

* enum MassaNetworkType for mode store

* use trans key with currentMassaNetwork

* clean enum Blockchain

* change WrongChainProps

* change ChainStatusProps: isMassaChain instead of blockchain

* rollback useConnectedEvmChain and fix useClaim

* useClaim: use chain of the operation

* use connected chain for useClaim getMinConfirmations

* update contracts

* use chain id to supported... instead of selectedEvm

* fix desync between claims

* fix warning-no-eth symbol

* replace unsupported network

* fix buildnet faq

* add link exports in const

---------

Co-authored-by: Nathan Seva <thykof@protonmail.ch>
* Add useServiceFeeHook

* (WIP) move cnd improve calculateAmountReceived to utils + create tests + revamp hook

* (WIP) move and improve calculateAmountReceived to utils + create tests + revamp hook

* upgrade to getAmountReceived fn

* add serviceFeeTDoolTip

* rename service fee hook

* add inputAmount and outputAmount in operationStore

* add output calculation mechanism in frontend

* improve UX when chaning networks

* fmt

* fmt tests

* rename and improve tests

* clean

* add service fee styling

* update fe designs

* clean test

* clean

* Revert "fix warning-no-eth symbol"

This reverts commit 4a2fb50.

* zsh:1: command not found: q

* Revert "fix buildnet faq"

This reverts commit 3179117.

* rebase and clean

* clean

* improve warnign no eth

* update ui-kit

* remove whitesoace
* refactor claim page to prepare service fee integration

* clean

* remove hook
* add service fees on claim page

* add success amount

* update usehandleBurnRedeem hook

* clean utils

* move logic to initClaim.tsx

* clean

* rename amount to receive

* add outputAmount check in succesClaim

* refacto getAmountToReceive and edit tests

* refactor getAmountToreceive

* remove undefined from success claim props

* add comments

* refactor input and output

* add outputAmount to success page

* clean bridgeRedeemLayout

* fix changeAmount fn

* Revert "fix changeAmount fn"

This reverts commit 13c2648.

* clean changeAmount fn

* set inputs undefined

* exp => inputAmount to bigint

* update ui kit with npm link, PR #459

* fix retrievePercent

* fix Amount

* fix tests

* rename variable

* rename var + fix component

* fix claim page wwhen failing to parse 1,000 to bigint

* remove comment

* prevent crashing from parsing a string with , seperator

* seperate send from received

* refactor getAmountReceived()

* refactor getAmountReceived() p2

* clean claim page

* rename amount in BridgeRedeemLayout.tsx

* compare struct equal and fix test

* rename _outputAmount

---------

Co-authored-by: Nathan Seva <thykof@protonmail.ch>
* add confirmation layout

* fmt

* jsx in return statement

Co-authored-by: Nathan Seva <thykof@protonmail.ch>

* Revert "jsx in return statement"

This reverts commit d06a80a.

* rename token balance

* move stepsEnum

* clean

---------

Co-authored-by: Nathan Seva <thykof@protonmail.ch>
* add front skeleton

* add OperationDirection component

* add operation input

* add WIP OperationFees

* add operation output

* add OperationTime

* add serviceFee tooltip

* add imports in confirmation layout

* improve FeeEstimation syntax

* move estimated amount component

* rename useFeeEstimation

* update imports

* create MassaFeeEstimation

* fix infinite burn

* useCallback in useEvmFeeEstimation

* fmt

* update FeeEstimation component

* improve validation

* update useMasFeeEstimation

* update FeeEstimation render logic

* add fees to confirmation page

* fmt

* use formatAmount functions

* prevent silent fail of useHandleBurnRedeem function

* fix build

* improve useEffect

* no useState CTA

* remove async function

* fmt

* fix build

* fix test

* calculate fees on account change

* fmt

* use minimal fees in useBurn.ts

* fmt
* case InputAmount component

* create InputHead component

* refactor DAOHead.tsx

* refactor evm and massa headers

* refactor index layout

* add select as props

* fmt
* claim page: refetch output amount

* fix refresh automatically claim page on mode change

* improve amount display

* add refetch check

* fix build

* add sugar syntax

---------

Co-authored-by: Phoebe Lartisant <phoebelartisant@proton.me>
* style input

* revamp fetch usdc price

* fix dusa price estimate

* fmt

* remove unecessary warns

* use params in custom hook again + return undefined

* improve-styling

* update imports

* remove try catch

---------

Co-authored-by: Pierre Seznec <petterseznec@gmail.com>
pivilartisant and others added 8 commits June 20, 2024 13:53
* fix service fees display on bridge mode

* new logic for setting service fees on bridge
* revamp servuce fees display

* use MASSA TOKEN const

* fix test
* clean code

* fix getServiceFeeAmount

* history: preview format
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-759.d1u92gh798a6e1.amplifyapp.com

@peterjah peterjah merged commit 98b3416 into main Jul 16, 2024
5 checks passed
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