• Jordan Frankfurt's avatar
    feat(widgets): use default input/output (#3161) · ce96873a
    Jordan Frankfurt authored
    * feat: use default input/output on chain switch
    
    * feat(widgets): ErrorGenerator -> PropValidator
    
    * default prop validation
    
    * useDefaults hook
    
    * pr feedback
    
    * fix cosmos
    
    * drop token map changes
    
    * add default inputs to cosmos fixture
    
    * set up different validation layers for widget and swap
    
    * split widget/swap prop types
    
    * cleanup
    
    * pr feedback
    
    * clear defaults when they're no longer valid on the current chain
    
    * remove state checks on validators
    
    * stop using address in cosmos fixture
    
    * pr feedback
    
    * useMemo on useSwapDefaults args
    
    * tell the user what they gave to error'd props
    Co-authored-by: default avatarZach Pomerantz <zzmp@uniswap.org>
    ce96873a
index.tsx 293 Bytes