Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove snapshot Regions ASIA, US, AU #1318

Merged
merged 3 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions typings/snapshot.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
export const SNAPSHOT_EU =
'https://snapshot-de.mydefichain.com/';
export const SNAPSHOT_ASIA =
'https://defi-snapshots.s3-ap-southeast-1.amazonaws.com/';
export const SNAPSHOT_AU =
'https://defi-snapshots-sydney.s3-ap-southeast-2.amazonaws.com/';
export const SNAPSHOT_US = 'https://defi-snapshots-us.s3.amazonaws.com/';
export const SNAPSHOT_INDEX = 'index.txt';
export interface SnapshotInterface {
SNAPSHOT_BLOCK: string;
Expand All @@ -18,7 +13,7 @@ export let SNAPSHOT_INFO = {
SNAPSHOT_EXTENSION: '.zip',
};

export const SNAPSHOT_PROVIDER = 'DeFiChain Foundation';
export const SNAPSHOT_PROVIDER = 'mydefichain';

export const getSnapshotFilename = (): string => {
const info = SNAPSHOT_INFO;
Expand Down
15 changes: 0 additions & 15 deletions webapp/src/containers/PopOver/SnapshotDownloadModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ import { DownloadSnapshotSteps } from '../types';
import {
SNAPSHOT_PROVIDER,
SNAPSHOT_EU,
SNAPSHOT_ASIA,
SNAPSHOT_US,
SNAPSHOT_AU,
} from '@defi_types/snapshot';
import {
openDownloadSnapshotModal,
Expand Down Expand Up @@ -54,18 +51,6 @@ const SnapshotDownloadModal: React.FunctionComponent = () => {
label: 'Europe',
value: SNAPSHOT_EU,
},
{
label: 'Asia',
value: SNAPSHOT_ASIA,
},
{
label: 'US',
value: SNAPSHOT_US,
},
{
label: 'Australia',
value: SNAPSHOT_AU,
},
];

const [snapshotURI, setSnapshotURI] = useState(snapshotLinks[0]);
Expand Down
Loading