Skip to content
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

PRO-2111- Config Changes #65

Merged
merged 14 commits into from
Feb 28, 2024
Merged

PRO-2111- Config Changes #65

merged 14 commits into from
Feb 28, 2024

Conversation

vignesha22
Copy link
Contributor

Description

  • added indexer service to all chains supported
  • added ability to limit transactions in a month for each apiKey
  • added ability to change indexer for each apiKeys so that if they wish to subscribe to prime data service they can

Types of changes

What types of changes does your code introduce?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Further comments (optional)

Copy link

linear bot commented Feb 13, 2024

backend/indexer/ponder.config.ts Show resolved Hide resolved
backend/indexer/src/index.ts Outdated Show resolved Hide resolved
backend/package.json Show resolved Hide resolved
backend/src/routes/admin.ts Show resolved Hide resolved
backend/src/routes/index.ts Outdated Show resolved Hide resolved
Copy link

cloudflare-workers-and-pages bot commented Feb 20, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d936934
Status: ✅  Deploy successful!
Preview URL: https://14722d5b.arka-3qg.pages.dev
Branch Preview URL: https://pro-2111-config-changes.arka-3qg.pages.dev

View logs

Copy link
Member

@ch4r10t33r ch4r10t33r left a comment

Choose a reason for hiding this comment

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

LGTM

admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
backend/src/routes/index.ts Outdated Show resolved Hide resolved
backend/src/routes/index.ts Show resolved Hide resolved
backend/src/routes/index.ts Outdated Show resolved Hide resolved
backend/src/routes/index.ts Outdated Show resolved Hide resolved
backend/src/routes/index.ts Show resolved Hide resolved
@vignesha22 vignesha22 requested a review from IAmKio February 27, 2024 08:05
Copy link

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

Thanks for the changes so far, some reminders and replies below:

admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
admin_frontend/src/components/ApiKeys.jsx Show resolved Hide resolved
admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
admin_frontend/src/components/ApiKeys.jsx Show resolved Hide resolved
admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
backend/indexer/src/index.ts Show resolved Hide resolved
@vignesha22 vignesha22 requested a review from IAmKio February 28, 2024 08:07
Copy link

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

A few things still outstanding but much better than before:

  • In the admin_frontend code indentation still isn't aligned with the rest of the repo (tabs vs spaces)
  • About new lines: https://thoughtbot.com/blog/no-newline-at-end-of-file, i didn't see a .editorconfig file committed
  • The routes file is becoming huge, this should be split out into controllers in the future
  • Consider a defacto logger like Winston in the future, i saw some custom logging function but wasn't sure what it's using behind the scenes

admin_frontend/src/components/ApiKeys.jsx Show resolved Hide resolved
@@ -85,9 +106,10 @@ const ApiKeysPage = () => {
toast.error("Could not save");
Copy link

Choose a reason for hiding this comment

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

Can you give extra instructions to what the user should do next?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have to see the logs on backend on what's causing the error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should I give that on the toast?

Copy link

Choose a reason for hiding this comment

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

Toast is okay, but for now you can just ask them to check their details and try again, or contact the support team.

admin_frontend/src/components/ApiKeys.jsx Outdated Show resolved Hide resolved
'getKeys': '/getKeys',
'saveKey' : '/saveKey',
'deleteKey': '/deleteKey',
}
Copy link

Choose a reason for hiding this comment

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

New line missing - did you add this to your editor config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes on the other PR and when I changed the branch it got deleted

/.ponder/

package-lock.json

Copy link

Choose a reason for hiding this comment

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

Missing new line, this can be done automatically with editorconfig

Copy link
Contributor Author

Choose a reason for hiding this comment

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

line 21 is a new line

"stateMutability": "nonpayable",
"type": "function"
}
] as const;
Copy link

Choose a reason for hiding this comment

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

Still not comfortable with a JSON file being cast as s JS object and exported in a TS file... it's just a JSON file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes but the import through assertion, the ponder does not take it and moreover the ponder docs have the same type

backend/indexer/package.json Outdated Show resolved Hide resolved
backend/indexer/src/index.ts Outdated Show resolved Hide resolved
backend/src/routes/admin.ts Show resolved Hide resolved
backend/src/routes/index.ts Show resolved Hide resolved
@vignesha22 vignesha22 requested a review from IAmKio February 28, 2024 10:13
Copy link

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

Nearly there...

backend/src/paymaster/index.ts Outdated Show resolved Hide resolved
backend/src/paymaster/index.ts Outdated Show resolved Hide resolved
@vignesha22 vignesha22 requested a review from IAmKio February 28, 2024 16:13
Copy link

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@vignesha22 vignesha22 merged commit b380f8e into master Feb 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants