-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Axelar config and handle mobile bridge integration wallets (#917)
* move axl transfer fee * Filter non-mobile-enabled wallets * remove tokenMinAmount because coinMinimalDenom already exists * create a sourceChainConfig object to avoid rerunning find Co-authored-by: Jeremy Parish <jeremyparish69@gmail.com>
- Loading branch information
1 parent
726fc68
commit 553ca93
Showing
13 changed files
with
121 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { useState, useEffect } from "react"; | ||
import { AccountSetBase } from "@keplr-wallet/stores"; | ||
import { | ||
ObservableAssets, | ||
ObservableTransferUIConfig, | ||
} from "../../stores/assets"; | ||
import { makeLocalStorageKVStore } from "../../stores/kv-store"; | ||
import { useWindowSize } from "../window"; | ||
|
||
export function useTransferConfig( | ||
assetsStore: ObservableAssets, | ||
account: AccountSetBase | ||
) { | ||
const { isMobile } = useWindowSize(); | ||
|
||
const [transferConfig, setTransferConfig] = | ||
useState<ObservableTransferUIConfig | null>(null); | ||
const [transferKvStore] = useState(() => | ||
makeLocalStorageKVStore("transfer-ui-config") | ||
); | ||
useEffect( | ||
() => | ||
setTransferConfig( | ||
new ObservableTransferUIConfig( | ||
assetsStore, | ||
account, | ||
transferKvStore, | ||
isMobile | ||
) | ||
), | ||
[assetsStore, account, isMobile] | ||
); | ||
|
||
return transferConfig; | ||
} |
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
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
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
Oops, something went wrong.
553ca93
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
osmosis-frontend – ./
osmosis-frontend-osmo-labs.vercel.app
app.osmosis.zone
osmosis-frontend.vercel.app
osmosis-frontend-git-master-osmo-labs.vercel.app
553ca93
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
osmosis-frontier – ./
osmosis-frontier-git-master-osmo-labs.vercel.app
front.osmosis.zone
osmosis-frontier-osmo-labs.vercel.app
osmosis-frontier-new.vercel.app
frontier.osmosis.zone