import { ChainGetter , CosmosMsgOpts } from "@keplr-wallet/stores" ; import { ObservableQueryBalances } from "@keplr-wallet/stores/build/query/balances" ; import { useFeeConfig , useMemoConfig } from "../tx" ; import { useIBCAmountConfig } from "./amount" ; import { useIBCTransferGasConfig } from "./gas" ; import { useIBCChannelConfig } from "./channel" ; import { useIBCRecipientConfig } from "./reciepient" ; param chainGetter param chainId param msgOpts param sender param queryBalances param ensEndpoint export const useIBCTransferConfig = ( chainGetter , chainId , msgOpts , sender , queryBalances , ensEndpoint ? ) => { const amountConfig = useIBCAmountConfig ( chainGetter , chainId , sender , queryBalances ) ; const memoConfig = useMemoConfig ( chainGetter , chainId ) ; const gasConfig = useIBCTransferGasConfig ( chainGetter , chainId , msgOpts ) ; const feeConfig = useFeeConfig ( chainGetter , chainId , sender , queryBalances , amountConfig , gasConfig ) ; amountConfig . setFeeConfig ( feeConfig ) ; const channelConfig = useIBCChannelConfig ( ) ; const recipientConfig = useIBCRecipientConfig ( chainGetter , chainId , channelConfig , ensEndpoint ) ; return { amountConfig , memoConfig , gasConfig , feeConfig , recipientConfig , channelConfig , } ; } ;