diff --git a/CHANGELOG.md b/CHANGELOG.md index ef201aeae..25d59bf31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.1 + - Bugs Fixed + - Alchemy should not crash immediately when there is a subgraph error. It will retry for approximately 2.5 minutes. + ## 1.0.0 - Features Added - Show active proposal status on the Proposal History page diff --git a/README.md b/README.md index 6cb928b23..bfe5e21db 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,29 @@ [![Build Status](https://travis-ci.org/daostack/alchemy.svg?branch=dev)](https://travis-ci.org/daostack/alchemy) +## URLs +https://v1.alchemy.do - alchemy v1 on mainnet + +https://xdai.v1.alchemy.do - alchemy v1 on xdai + +https://rinkeby.v1.alchemy.do - alchemy v1 on rinkeby + +https://kovan.v1.alchemy.do - alchemy v1 on kovan + +**Alchemy 2.0** :fire: + +Alchemy v2 source code can be found under [master-2](https://github.com/daostack/alchemy/tree/master-2) branch. + +https://alchemy.do - alchemy 2.0 on mainnet + +https://xdai.alchemy.do - alchemy 2.0 on xdai + +https://rinkeby.alchemy.do - alchemy 2.0 on kovan + +https://kovan.alchemy.do - alchemy 2.0 on rinkeby + + + **Alchemy is a budgeting and resource-allocation tool for decentralized organizations.** It is an interface that enables thousands of individuals to coordinate towards a common purpose, by proposing and deciding on how to spend funds in alignment with their goals and values. Some example use cases for Alchemy include decentralized venture funds, charitable funds, innovation funds, a budget proposal system (like Dash but more sophisticated), or prioritizing features for an open-source project. diff --git a/package-lock.json b/package-lock.json index 6ca1d76fb..c747b6494 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "alchemy-client", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a1a2ff264..83a96937c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "alchemy-client", - "version": "1.0.0", + "version": "1.0.1", "description": "An app for collaborative networks (DAOs), based on the DAO stack.", "author": "DAOstack", "license": "GPL-3.0", diff --git a/src/arc.ts b/src/arc.ts index 66db94c34..a362c36a7 100644 --- a/src/arc.ts +++ b/src/arc.ts @@ -134,25 +134,16 @@ export async function initializeArc(provider?: any): Promise { // https://www.apollographql.com/docs/link/links/retry/ const retryLink = new RetryLink({ - attempts: { - max: 5, - retryIf: (error, _operation) => { - // eslint-disable-next-line no-console - console.error("error occurred fetching data, retrying..."); - // eslint-disable-next-line no-console - console.log(error); - return !!error; - }, + attempts: (count) => { + return (count !== 10); }, - delay: { - initial: 500, // this is the initial time after the first retry - // next retries )up to max) will be exponential (i..e after 2*iniitial, etc) - jitter: true, - max: Infinity, + delay: () => { + // This will give a random delay between retries between the range of 5 to 30 seconds. + return Math.floor(Math.random() * (30000 - 5000 + 1) + 5000); }, }); - arcSettings.retryLink = retryLink; + arcSettings.graphqlRetryLink = retryLink; // if there is no existing arc, we create a new one if ((window as any).arc) {