Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: weird README collision add: execute near transactions add: Wallet contexts fix: build issue lint add: parse sequences from logs add: get emitter address lint lint fix: implement function correctly update: parseSequenceMethods add: signedVAA methods add: light/dark theme capabilities style: add makeStyle templates lint add: some bridge view components add: network tiles lint add: pass in network props add: token modal and opacity util lint add: advanced dropdown add: tooltip component add: network select functionality add: wallet modal and AppRouter component add: tokens modal open/close add: set token refactor: split up Bridge view into a few components add: destination gas payment options add: native gas slider add: transfer summary add: send button and redeem base component add: info box component add: some initial milestone page content lint add: stepper refactor: organize icons add: more stepper content refactor: themes refactor: better class combining syntax add: icon components refactor: networks cards add: better modal add: menu dropdown add: wallet dropdown update: token/amount fix: icons refactor: configure to support testnet update: fill in mainnet configs lint add: wallet connect modal add: basic send function refactor: connecting wallet add: props for redeem page style: options style: bridge options update: testnet config, add amount input focus add: TokenBridgeRelayer typechain add: sendWithRelay method add: action indicator to connect wallet tag add: balance field lint add: basic vaa store/data refactor: vaa stuff update: milestones stepper components fix: sendWithRelay, pass in values from store add: PageHeader component refactor: move sdk to its own package refactor: network and token configs fix: type errors fix: sdk package import refactor: tokens config refactor: send transaction codes fix: network modal open/close functionality fix: skip unwrapWeth flag, set in configs fix: build script and fix approve method add: tx hash to transfer state add: redeem logic refactor: prepare entry point for widget add: sample-app integration refactor: yarn workspace and rename packages build fix: move docs folder to root remove: config stuff from App root try: remove customization logic for the time being add: embedded widget fix: image tags, remove dark/light theme toggle fix: try moving image to public folder add: TokenIcon component add: TokenIcon component add: walletIcons component update: readme fix: figure out how to place in React app style: gas options and fill token symbols add: fill in more token inputs refactor: tokenId try: rename build command for netlify debugging add: sample-app to yarn workspace fix: netlify build command add: search box functionality refactor: rename packages, update readme add: getBalance for ERC-20 tokens fix: fantom rpc clean: remove modal console logs refactor: progress on wallet connection handling fix: better wallet handling fix: wallet handling on send page refactor: wallet connection and in progress transaction handling add: get native token balance fix: show wrapped asset fix: register signer and switch network fix: vaa byte conversion fix: switch network Native gas slider (#31) * add: calculate max swap amount * add: slider functionality * fix: make slider fully functional * lint docs: add disclaimer to README (#30) Update issue templates (#37) update: Readme instructions with build command Development (#40) * add: check user's native balance on the destination and update text * style: full-screen modals, balance loading * style: full-screen menu * fix: disable selecting the same from/to networks Development (#43) * add: fetch token balances * style: wallet connect button and animation * lint add: start Wormhole theme fix: slider, more theme styling style: wormhole styling and fix bnb icon lint fix: background image fix: align text Feature: tx lookup (#52) * add: parseMessageFromTx * add: initial Tx Search page * refactor: use values from tx receipt * fix: show actual amounts and fees in redeem page * fix: decimals and sendWithRelay method * lint fix: remove animation on wallet connect button style: remove color fill on static elements fix: modal search functionality fix: trigger search on entter or clicking the icon style: change cursor Relayer fee (#55) * add: getRelayerFee, handle token repr that don't exist * update: testnet relayer contracts * refactor: balance methods * fix: gas slider issues, getForeignAsset bug * add: fill in relayer fee * try: clear transfer fix: approve function fix: get token address on sending chain for approve/send Transfer complete (#61) * add: isTransferComplete, start updating from ui * fix: redeem page for manual transfers * add: check if transfer is complete and handle fix: use unicode arrow Development (#185) * update: build script * fix: mainnet configs * update: build script for integrations * update: build script again * Integration (#86) * add: generic dark theme, fix mainnet config * add: allow to pass in custom theme * add: custom theme support to builder * add: custom theme support to builder * fix: imports * fix: add MuiCollapse style to theme overrides * document: builder readme * revert: show wh theme again * fix: config value * clean: change name to just main.css * Solana refactor 2 (#130) * refactor: clean up contexts * update: make BridgeAbstract and RelayerAbstract * update: add solana to configs * lint and build sdk * clean: remove unused icons * add: WalletContextProvider * refactor: progress on wallet handling * add: set wallet type * fix: disable networks that are not available with the connected wallet * add: get solana token balances * lint * refactor: add ChainManager, update Contracts classes * lint: clean up wormhole context * fix: getForeignAsset functions * add: check if automatic relay is available * fix: send from ETH to any context * fix: solana send error * refactor: remove ChainsManager and combine with WormholeContext * fix: handle different decimals for Solana * fix: get tx details from solana tx id * fix: display solana addresses correctly * fix: solana transaction details * add: isTransferCompleted and vaa utils * add: get gas fee for source tx, refine method for getting sender address * fix: allow selecting a disabled network but clear the wallet * refactor: wallet modals, add redeem on solana * fix: move env variables out of sdk * lint * Update unicode right arrow (#132) Update from ⟶ to → * fix: horizontal scrollbar * update: enhance search filter * Routing (#135) * fix: make tx search its own route, clear store values on route change * lint * Progress bar (#136) * add: confirmations progress bar * fix: use txData for wormhole explorer link * fix: solana block height/confirmations logic * fix: add height and width to svgs so they show up on safari (#139) * fix: add height and width to svgs so they show up on safari * clean: delete validations file * Transfer validations (#140) * add: begin writing validation functions * refactor: transfer validations * add: very rough validation error states * fix: functioning validation * add: error borders * lint * add: more amount validations * lint * Show send tx link immediately (#158) * update: show link to send tx immediately * add: throw error if user is somehow not connected to wallet when claim function is called * style: tweak styling, make Redeem and Search pages mobile friendly (#159) * style: make network tile thinner on small screens to make room for amount/balance * Bridge style edits (#160) * style: add font configuration * style: tweak preview and gas options styling * style: rename token input title to Asset * Min amount validation (#161) * fix: minimum amount validation, show gas options always * add: warning banner for manual transfers * Modal styles (#162) * style: networks modal * style: token modal * style: tokens modal, standardize modal header styling * lint * Terms and FAQ pages (#173) * add: faq * lint * refactor: use npm instead of yarn * Pre-commit hook (#174) * add: pre-commit hook * add: pre-commit hook * refactor: pre-commit script * Network logic (#175) * refactor: network modal, clean up unused components/icons * refactor: from/to sections * fix: balance * fix: return checksummed address (#182) * fix: clear balance if wallet becomes disconnected, clear token if not supported (#183) * add: config tests, create Icon enum to help prevent against typos/error (#184) --------- Co-authored-by: Tony Jin <[email protected]> fix: delete extra step in GH Action (#187) fix: set working directory (#188) (#189) * test GH Action * refactor: add working directory to GH Actions * revert fix: remove working directory entirely (#191) Inputs (#193) * refactor: clean up to/from inputs layout * style: inputs for small screen sizes * style: clean up and style top inputs * fix: no network icon issues style: gray out unavailable wallets (#194) WIP: claim (#198) * fix: isTransferComplete for EVM chains * add: show error if claim fails * add: send error banner * fix: solana claim Tx search (#199) * clean: remove comment * copy: replace token with asset * fix: tx search checks and add error messages * clean: remove comment fix: input display with many decimals (#203) Disconnect error (#205) * style: placeholder on small screens * add: disconnect error banner WIP: Gas estimates (#204) * fix: loader keeps spinning after transfer complete * add: calculate sending gas estimate * add: 'Not available' copy * refactor: gas estimate calculations * fix: gas fee estimations * fix: gas payment options bug * add: solana gas estimations lint: remove unused imports add: bundle build files into one fix: remove root div and rename to bundle.html fix: BSC rpc and display wrapped asset in 'to' section fix: approve before sending ERC-20s fix: increase gas limit for relay transfers fix: pass in wallet address to redeemOnSolana fix: token approval build: bundle into 1 js and 1 css file Background (#221) * style: background * add: background to widget * fix: bug with adding custom config * fix: keep old background on wormhole-connect for now build fix: wormhole background (#230) update: build fix: type errors fix: remove mui/styles package fix: classes bug [#225] Bugfix disable controls on tx approval (#247) * bugfix: disable gas controls when a transaction is approved and in progress * lint --------- Co-authored-by: anondev2323 <[email protected]> add: moonbeam (#245) * refactor: move config, add moonbeam * fix: rename nativeToken to gasToken * copy: rename to just moonbase [#216] Catch NotSupported error when the wallet doesn't support switching chains (#244) * Bump @xlabs-libs/wallet-aggregator-evm package * bugfix: catch error when trying to switch chains and the wallet does not support it (e.g. some wallets with walletconnect) bugfix: clear wallet state when disconnected from outside app (#253) Add parameters to fix evaluation order when resolving the chain in the WalletModal (#268) copy: update resume transfer to resume transaction (#273) copy: update gas slider copy (#274) Add warning message for non registered tokens. Closes #272 fix: collapse transition on alert Solana sdk refactor (#233) Add disclaimer above approve button linking to the terms of service Address review comments enhancement: show validations once all inputs are filled (#288) Add from address override when simulating the transferToken call simulations in order to avoid errors when trying to transfer from that address (the provider would set it to null since it's a static provider) (#292) Add 'add to wallet' link on the final CTA step Address edge cases when watching a token Address review comments Extract add token to wallet code to a new AddToWallet component. Address edge case where the user would try to add the token after resuming a completed transfer operation. Add small component to AddToWallet to make the solana token mint address available for the user to copy Extract ExplorerLink component. Use it to link to the Solana explorer after the redeem process is done and the target network is solana bugfix: gas estimation fallbacks (#293) * fix: create gas estimates config * refactor: split out gas estimates logic into separate file * fix: await promise * fix: solana gas units fix: undefined token value (#297) Move token clear logic to setFromNetwork store action (#302) Value memoization and reduce of dispatch actions to prevent a bug where the token list would not properly load after changing networks Clear balances before refetching them Add loader shown when loading token balances Create associated token account (#304) * refactor: getForeignAsset returns null if it does not exist * add: check for existing associated token account * refactor: go back to creating solana token account at beginning of transfer * fix: createAssociatedTokenAccount * nits * fix: delete imports * fix: display warning bug * fix: poll to check for account Add types to config object retrieved from root tag and allow for rpc endpoints overriding (#328) Fix error due to undefined/null config (#336) [#163] Native gas slider toggle (#327) * Add the option to alternate between a switch and an arrow as collapse toggle controls. Reset the native gas dropoff to zero when the user switches off/collapses the gas slider * Create custom styled switch * Trigger collapse change event after the animation finishes Remove debug logs (#337) bugfix: accurately calculate and display fees on redeem page (#330) * fix: calculate gas fees/estimates * add: calculate gas fees on redeem page * fix: toNativeToken receive amount * fix: convert normalized amount * fix: normalized decimals conversions * update: create constants * fix: apply maxBlockSearch value * fix: toChainName call * fix: pass in maxBlockSearch update: build files Bump aggregator sdk solana package Parse amount to number before storing it to keep it consistent with the field type release/0.0.1 beta.0 (#358) Use text input by default and check whether it satisfies a numeric expression to remove unwanted characters Filter out tokens only when the wallet is connected and the network is selected Substract the native gas token converted from the transferred amount Avoid calculating swap information when the payment method is manual. As an additional precausion, render the native gas slider only when it is to be shown. add: cta to WormholeConnectConfig (#377) Remove useEffect hook from Bridge which would replace the token balance with that of the destination chain Readd useEffect hook but store the balance in a new receiverNativeBalance field from the store fix: add .d.ts files to list (#385) [348] check if token is accepted (#389) * fix: check if token is accepted * fix: handle 'Swap rate not set' errors * fix: accidentally deleted getConversion block * refactor: enable/disable automatic transfers Disconnect wallet when the user changes to another account Show gas estimate for automatic payment option even when there is no relayer fee (i.e. relay is free) Readd relayer fee check Readme update readme update fix: change moonbeam rpc (#392) release/0.0.1-beta.3 (#393) Update/create README, LICENSE, CONTRIBUTING (#396) * Update/create README, LICENSE, CONTRIBUTING closes #395 * Incorporate #393 CONTRIBUTING.md changes * Updated after convo with Dan * Update README.md * fix: spacing on readme after rebase --------- Co-authored-by: aakashthumaty <[email protected]> Co-authored-by: anondev2323 <[email protected]> Trigger amount verification on balances change (#416) Trigger wrapped token verification when changing network. Clear foreign asset address if it does not exist for the target chain Trigger checks when the token is changed Feature/trm screening (#419) * feature: add TRM screening check to transfer validations * fix: add cache to help with rate limiting triage: claim (#420) * fix: bsc default rpc url * fix: clear timeout before setting new value * update: refine claim UX * enhance: click area on search input * fix: poll more frequently upon initialization * clean: use onExited to clear text * clean: use ref instead of id
- Loading branch information