From 24511667b5212daca853ef3ae048488e4a66edda Mon Sep 17 00:00:00 2001 From: Markus Buhatem Koch Date: Tue, 31 Aug 2021 05:00:25 -0300 Subject: [PATCH] Hotfix: get LM manifest from GitHub (#765) * get LM manifest from github instead of fleek * version bump --- package-lock.json | 4 ++-- package.json | 2 +- src/services/claim.ts | 11 +++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index cede2e1e65..f6afd5caa1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@balancer-labs/frontend-v2", - "version": "1.16.1", + "version": "1.16.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@balancer-labs/frontend-v2", - "version": "1.16.1", + "version": "1.16.2", "license": "MIT", "dependencies": { "@balancer-labs/assets": "github:balancer-labs/assets#master", diff --git a/package.json b/package.json index 788fccb67f..8356b8b68f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@balancer-labs/frontend-v2", - "version": "1.16.1", + "version": "1.16.2", "engines": { "node": "14.x", "npm": ">=7" diff --git a/src/services/claim.ts b/src/services/claim.ts index 69149b300e..13097f7317 100644 --- a/src/services/claim.ts +++ b/src/services/claim.ts @@ -23,21 +23,20 @@ type Snapshot = Record; export const constants: Record> = { 1: { merkleRedeem: '0x6d19b2bF3A36A61530909Ae65445a906D98A2Fa8', - snapshot: 'balancer-team-bucket.storage.fleek.co/balancer-claim/snapshot' + snapshot: + 'https://raw.githubusercontent.com/balancer-labs/bal-mining-scripts/master/reports/_current.json' }, 42: { merkleRedeem: '0x3bc73D276EEE8cA9424Ecb922375A0357c1833B3', snapshot: - 'balancer-team-bucket.storage.fleek.co/balancer-claim-kovan/snapshot' + 'https://raw.githubusercontent.com/balancer-labs/bal-mining-scripts/master/reports-kovan/_current.json' } }; export async function getSnapshot(network: NetworkId) { if (constants[network]?.snapshot) { - return ( - (await ipfsService.get(constants[network].snapshot, 'ipns')) || - {} - ); + const response = await axios.get(constants[network].snapshot); + return response.data || {}; } return {}; }