-
Notifications
You must be signed in to change notification settings - Fork 18
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
add new sdk to current app #2579
Conversation
93d40a5
to
1111dff
Compare
PR deployed in Google Cloud |
PR deployed in Google Cloud |
53a9371
to
a176b8c
Compare
fc5a202
to
3b36d12
Compare
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
8336c18
to
7dff8d0
Compare
d69f969
to
3fe9057
Compare
89d04b6
to
c2e3556
Compare
|
||
// FORMAT FUNCTIONS FOR NEW SDK | ||
|
||
export function formatDecimal(decimalVal: any, displayDecimals: number, currency?: string): 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.
export function formatDecimal(decimalVal: any, displayDecimals: number, currency?: string): string { | |
export function formatDecimal( amount: CurrencyBalance | TokenBalance | Price | Rate | Decimal | number, | |
, displayDecimals = 2, currency?: string): string { |
Would love to see this function types like the other formatting options we had. There will be some type conflicts with Rate/Perquintill but I think you can circumvent the problem by writing the functions in a new file e.g formatting-sdk.ts
. Then we can likely also keep the names formatBalance
, formatBalanceAbbreviated
and formatPercentage
(I don't think formatDecimal
really conveys what the function does)
centrifuge-app/package.json
Outdated
@@ -29,7 +29,7 @@ | |||
"@centrifuge/centrifuge-js": "workspace:*", | |||
"@centrifuge/centrifuge-react": "workspace:*", | |||
"@centrifuge/fabric": "workspace:*", | |||
"@centrifuge/sdk": "^0.0.0-alpha.0", | |||
"@centrifuge/sdk": "latest", |
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.
Let's pin down the version so we don't accidentally include updates that we're not ready for yet
?.filter( | ||
(tx) => tx.transactionType !== 'PROPOSED' && tx.transactionType !== 'ADDED' && tx.transactionType !== 'REMOVED' | ||
) |
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.
could we move this filter to the sdk?
Move filter to sdk and specify the sdk version
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.
Amazing!!! 🔥🔥🔥
Let's get this merged after this current release to give product enough time to test it before it goes live
No problem. I will merge it into your reports branch and we can release from there! |
* Use Centrifuge SDK in cashflow report * Remove unused cashflow chart files * Fix asset purchases/asset financings * Use first offical alpha release of sdk * add new sdk to current app (#2579) * Upgrade SDK * Add hook * Add formatting and utils * Add to reports * wip[ * Fix bugs based on new sdk release * Add reports to query * Remove console * Fix formatting options * Fix imports * Fix formatting * Fix percentage function * Feedback changes Move filter to sdk and specify the sdk version * fix bug on report type --------- Co-authored-by: Guillermo Perez <[email protected]> Co-authored-by: Katty Barroso <[email protected]>
* Use Centrifuge SDK in cashflow report * Remove unused cashflow chart files * Fix asset purchases/asset financings * Use first offical alpha release of sdk * add new sdk to current app (#2579) * Upgrade SDK * Add hook * Add formatting and utils * Add to reports * wip[ * Fix bugs based on new sdk release * Add reports to query * Remove console * Fix formatting options * Fix imports * Fix formatting * Fix percentage function * Feedback changes Move filter to sdk and specify the sdk version * fix bug on report type --------- Co-authored-by: Guillermo Perez <[email protected]> Co-authored-by: Katty Barroso <[email protected]>
* Use Centrifuge SDK in cashflow report * Remove unused cashflow chart files * Fix asset purchases/asset financings * Use first offical alpha release of sdk * add new sdk to current app (#2579) * Upgrade SDK * Add hook * Add formatting and utils * Add to reports * wip[ * Fix bugs based on new sdk release * Add reports to query * Remove console * Fix formatting options * Fix imports * Fix formatting * Fix percentage function * Feedback changes Move filter to sdk and specify the sdk version * fix bug on report type --------- Co-authored-by: Guillermo Perez <[email protected]> Co-authored-by: Katty Barroso <[email protected]>
* ci: Review GHA pipeline (#2620) * upgrade 3rd party action versions and configure dependabot * remove catalyst and cleanup unused functions deployments * Make sure prod deploy uses the right tag to pull artifacts * Adding more owners for bus factor purposes * Simplify and fix prod deploy to allow for rollbacks * notify slack of staging failed jobs * upgrade node to v20 (v18 deprecated in April) * disable e2e tests automatic triggers * Improve PR comment adding the functions URL --------- Co-authored-by: sophian <[email protected]> * Redemption flow fixes (#2626) - Change logic around the redeem flow - Remove rounded number from clain button * Use new Centrifuge SDK in cashflow report (#2549) * Use Centrifuge SDK in cashflow report * Remove unused cashflow chart files * Fix asset purchases/asset financings * Use first offical alpha release of sdk * add new sdk to current app (#2579) * Upgrade SDK * Add hook * Add formatting and utils * Add to reports * wip[ * Fix bugs based on new sdk release * Add reports to query * Remove console * Fix formatting options * Fix imports * Fix formatting * Fix percentage function * Feedback changes Move filter to sdk and specify the sdk version * fix bug on report type --------- Co-authored-by: Guillermo Perez <[email protected]> Co-authored-by: Katty Barroso <[email protected]> * Fix bug on pool creation demo (#2629) * Take stepper outside form context * Fix infinite loop bug * Hide scrolling on menu bar (#2631) * Fix token amount calculation (#2634) * Persist to, from and groupBy filters and fix linter warnings (#2635) --------- Co-authored-by: Guillermo Perez <[email protected]> Co-authored-by: Katty Barroso <[email protected]>
Integrate new sdk into out current app (reports and data tabs only)