Skip to content

Commit

Permalink
Hotfix: get LM manifest from GitHub (#765)
Browse files Browse the repository at this point in the history
* get LM manifest from github instead of fleek

* version bump
  • Loading branch information
markusbkoch authored Aug 31, 2021
1 parent bb9b46a commit 2451166
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer-labs/frontend-v2",
"version": "1.16.1",
"version": "1.16.2",
"engines": {
"node": "14.x",
"npm": ">=7"
Expand Down
11 changes: 5 additions & 6 deletions src/services/claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,20 @@ type Snapshot = Record<number, string>;
export const constants: Record<NetworkId, Record<string, string>> = {
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<Snapshot>(constants[network].snapshot, 'ipns')) ||
{}
);
const response = await axios.get<Snapshot>(constants[network].snapshot);
return response.data || {};
}
return {};
}
Expand Down

4 comments on commit 2451166

@vercel
Copy link

@vercel vercel bot commented on 2451166 Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app – ./

app-git-master-balancer.vercel.app
app-balancer.vercel.app
pm2.vercel.app
app.balancer.fi

@vercel
Copy link

@vercel vercel bot commented on 2451166 Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2451166 Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2451166 Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.