-
Notifications
You must be signed in to change notification settings - Fork 295
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
[DDW-80] Integrate network parameters api endpoint #1915
[DDW-80] Integrate network parameters api endpoint #1915
Conversation
source/renderer/app/api/api.js
Outdated
}; | ||
} catch (error) { | ||
logger.error('AdaApi::getNetworkParameters error', { error }); | ||
// @API TODO - Inspect this implementation once TLS support is implemented on the BE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yakovkaravelov please remove this todo as we don't need it for this endpoint.
import { request } from '../../utils/request'; | ||
|
||
export const getNetworkParameters = ( | ||
epochId: string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yakovkaravelov epochId should be a number 🙏
@@ -79,6 +82,43 @@ export default (api: AdaApi) => { | |||
} | |||
}; | |||
|
|||
api.getNetworkParameters = async ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yakovkaravelov we don't need the patched Api method here. Please remove it.
@@ -5,6 +5,7 @@ import { action } from 'mobx'; | |||
import BigNumber from 'bignumber.js/bignumber'; | |||
import AdaApi from '../api'; | |||
import { getNetworkInfo } from '../network/requests/getNetworkInfo'; | |||
import { getNetworkParameters } from '../network/requests/getNetworkParameters'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yakovkaravelov remove this unused import
@@ -17,6 +18,8 @@ import StakePool from '../../domains/StakePool'; | |||
import type { | |||
GetNetworkInfoResponse, | |||
NetworkInfoResponse, | |||
GetNetworkParametersResponse, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yakovkaravelov please remove these unused imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…ub.com:input-output-hk/daedalus into chore/ddw-69-set-new-daedalus-name-and-version * 'chore/ddw-69-set-new-daedalus-name-and-version' of github.com:input-output-hk/daedalus: [DDW-69] Handle Flight network [DDW-39] Flight release information window (#1917) [DDW-80] Integrate network parameters api endpoint (#1915)
This PR integrated network parameters api endpoint.
Jira Ticket
Todos
Review Checklist
Basics
feature
/bug
/chore
,release-x.x.x
)yarn test
)yarn dev
)yarn package
/ CI builds)yarn flow:test
)yarn lint
)yarn prettier:check
)yarn manage:translations
produces no changes)yarn storybook
)yarn.lock
file is updatedCode Quality
Testing
After Review
done
column on the YouTrack board