|
|
@ -29,17 +29,14 @@ export const useStore = create<AppState>()( |
|
|
|
chainConfigs: {}, |
|
|
|
chainConfigs: {}, |
|
|
|
setChainConfigs: async (configs: ChainMap<ChainConfig>) => { |
|
|
|
setChainConfigs: async (configs: ChainMap<ChainConfig>) => { |
|
|
|
const multiProvider = await buildMultiProvider(get().registry, configs); |
|
|
|
const multiProvider = await buildMultiProvider(get().registry, configs); |
|
|
|
console.log('setChainConfigs'); |
|
|
|
|
|
|
|
set({ chainConfigs: configs, multiProvider }); |
|
|
|
set({ chainConfigs: configs, multiProvider }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
multiProvider: new MultiProvider({}), |
|
|
|
multiProvider: new MultiProvider({}), |
|
|
|
setMultiProvider: (multiProvider: MultiProvider) => { |
|
|
|
setMultiProvider: (multiProvider: MultiProvider) => { |
|
|
|
console.log('setMultiProvider'); |
|
|
|
|
|
|
|
set({ multiProvider }); |
|
|
|
set({ multiProvider }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
registry: new GithubRegistry(), |
|
|
|
registry: new GithubRegistry(), |
|
|
|
setRegistry: (registry: IRegistry) => { |
|
|
|
setRegistry: (registry: IRegistry) => { |
|
|
|
console.log('setRegistry'); |
|
|
|
|
|
|
|
set({ registry }); |
|
|
|
set({ registry }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
bannerClassName: '', |
|
|
|
bannerClassName: '', |
|
|
|