Skip to content

Commit

Permalink
Merge pull request #1164 from rainlanguage/01-15-25-fetch-settings-fr…
Browse files Browse the repository at this point in the history
…om-repo

Fetch settings from raindex.strategies
  • Loading branch information
hardyjosh authored Jan 15, 2025
2 parents 4eb790d + 84fc688 commit ab712da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 295 deletions.
160 changes: 0 additions & 160 deletions packages/webapp/src/lib/settings-12-11-24.json

This file was deleted.

133 changes: 0 additions & 133 deletions packages/webapp/src/lib/settings-12-11-24.yml

This file was deleted.

7 changes: 5 additions & 2 deletions packages/webapp/src/routes/+layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ import type {
OrderbookRef
} from '@rainlanguage/ui-components';
import { writable, derived } from 'svelte/store';
import settingsJson from '$lib/settings-12-11-24.json';
import pkg from 'lodash';
const { pickBy } = pkg;
export interface LayoutData {
stores: AppStoresInterface;
}

export const load = () => {
export const load = async () => {
const response = await fetch(
'https://raw.githubusercontent.com/rainlanguage/rain.strategies/refs/heads/main/settings.json'
);
const settingsJson = await response.json();
const activeNetworkRef = writable<string>('');
const settings = writable<ConfigSource | undefined>(settingsJson);
const activeOrderbookRef = writable<string>('');
Expand Down

0 comments on commit ab712da

Please sign in to comment.