-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Init `useBridgeQuoteCallback` * Add guardrail statements for useBRidgeQuoteCallback states * getBridgeQuote * Add FetchStatusCallback to clean `getBridgeQuoet` progress updates * Return `getBridgeQuote` as callback in useBridgeQuoteCallback` * Add return type * BridgeQuote callback working * `useBridgeQuoteCallback` working properly in Widget * approveErc20Token util * init useApproveCallback * getErc20TokenAllowance * Init `useAllowance` hook * Update fetchErc20TokenAllowance prop naming * Add guardrail statements in useAllowance * Return checkAllowance callback in useAllowance hook * Clean useAllowance * useAllowance return type * Integrating * Add error handling for fetchErc20TokenAllowance * Import supported Chain constants, Wagmi setup * rollup image plugin * Basic Wagmi setup * Update roll up config, add back WagmiConfig * Working Viem * Update f etchErc20TokenAllowance with viem * Update `approveErc20Token` util action for viem * Basic useApprove callback * Basic approve callback flow working * Prevent approve callback from firing if guardrails fail * UseBridgeCallbackArgs interface * Pass synapseSDK object into useBridgeCallback * useBridgeCallback guardrail checks * Basic useBridgeCallback working with callback * Working * Wrap error handler on fetchBridgeQuote * Add Polygon on Consumer side * Set Polygon as Destination for testing bridge callback * Bridge Callback working * Add static Approve and Bridge button with states when Quote is reuiqred * rm assets/constants not being used yet * Fix merge * Setup Example with latest Redux work
- Loading branch information
1 parent
99f349e
commit a2a36c2
Showing
20 changed files
with
840 additions
and
197 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
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
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
Binary file not shown.
Oops, something went wrong.