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

Upgrade RPC Logic #100

Closed
0x4007 opened this issue Mar 14, 2024 · 15 comments
Closed

Upgrade RPC Logic #100

0x4007 opened this issue Mar 14, 2024 · 15 comments

Comments

@0x4007
Copy link
Member

0x4007 commented Mar 14, 2024

@Keyrxng you think you can swap out the logic in the repos using the old version with your package? I'm not sure which all have it off hand but I assume onboard, audit, and pay have this logic.

Originally posted by @pavlovcik in ubiquity/rpc-handler#3 (comment)

@Keyrxng
Copy link
Member

Keyrxng commented Mar 14, 2024

Sure thing will catch it tomorrow

Frontend

  • onboarding
  • audit
  • pay
  • staking

Backend

  • I'll implement it into permit module for when that's in use but should I add it into any of the current production backend stuff?

@0x4007
Copy link
Member Author

0x4007 commented Mar 14, 2024

Sure thing will catch it tomorrow

Frontend

  • onboarding

  • audit

  • pay

  • staking

As in uAD.ubq.fi? I think there's an issue open for it you can handle that separately because I expect that to be its own big project. It's significantly more complicated codebase.

Backend

  • I'll implement it into permit module for when that's in use but should I add it into any of the current production backend stuff?

Don't think it's necessary for anything in production currently. Besides I can't think of where it's even being used.

@Keyrxng
Copy link
Member

Keyrxng commented Mar 15, 2024

I think there's an issue open for it you can handle that separately because I expect that to be its own big project

I already have a pull ready for it, if you can allow the build workflow I can abuse the preview deployment and try to reproduce, either way I can add the rpc-handler as part of that PR

Don't think it's necessary

No probs

@Keyrxng
Copy link
Member

Keyrxng commented Mar 15, 2024

neither audit nor onboarding actually make use of any RPC calls reviewing the code, onboarding does lean into using the MM provider which the rpc-handler would have no effect on

  • audit: getRandomRpcUrl() & getOptimalRPC() exist but are never used in the codebase
  • onboarding: uses getNetworkName, NetworkIds, Tokens from constants.ts which are also exported from the package but seems redundant installing the pkg just for 3 exports which exist in constants.ts

  • pay: PR open
  • uad: TODO

@0x4007
Copy link
Member Author

0x4007 commented Mar 15, 2024

onboarding does lean into using the MM provider which the rpc-handler would have no effect on

The built in RPC sucks for speed. Let's use our custom ones if its for reading data on chain.

@Keyrxng
Copy link
Member

Keyrxng commented Mar 15, 2024

I'm mistaken anyway there are two calls, decimals and approve, my bad

Will pr it rn

@Keyrxng
Copy link
Member

Keyrxng commented Mar 15, 2024

What could be replaced:

  • first chainId fetch
  • chainId fetch and decimals, but then we'd need to instantiate a signer to call approve (which seems messier than as-is)

I'm unsure if it's worth it but that's the only reads that are happening, thought I'd ask before firing in a PR

@0x4007
Copy link
Member Author

0x4007 commented Jun 14, 2024

@Keyrxng heres a follow up

@Keyrxng
Copy link
Member

Keyrxng commented Jun 16, 2024

Last PR open in permit-generation

@0x4007
Copy link
Member Author

0x4007 commented Jul 6, 2024

@Keyrxng seems that it's the last step before closing this out?

@Keyrxng
Copy link
Member

Keyrxng commented Jul 6, 2024

@0x4007 yeah just need this PR merged and I'm sure this is complete.

@Keyrxng Keyrxng self-assigned this Jul 16, 2024
Copy link

ubiquibot bot commented Jul 16, 2024

@Keyrxng the deadline is at 2024-07-16T03:43:14.940Z

@Keyrxng Keyrxng closed this as completed Jul 16, 2024
Copy link

ubiquibot bot commented Jul 16, 2024

+ Evaluating results. Please wait...

Copy link

ubiquibot-dev bot commented Jul 16, 2024

[ 100 WXDAI ]

@Keyrxng
Contributions Overview
View Contribution Count Reward
Issue Task 1 100
Issue Comment 7 0
Conversation Incentives
Comment Formatting Relevance Reward
Sure thing will catch it tomorrow #### Frontend - onboarding - a…
0
content:
  p:
    count: 43
    score: 1
wordValue: 0
formattingMultiplier: 0
0.9 -
I already have a pull ready for it, if you can allow the build w…
0
content:
  p:
    count: 41
    score: 1
wordValue: 0
formattingMultiplier: 0
0.7 -
neither audit nor onboarding actually make use of any RPC calls …
0
content:
  p:
    count: 80
    score: 1
  code:
    count: 7
    score: 1
wordValue: 0
formattingMultiplier: 0
0.8 -
I'm mistaken anyway there are two calls, decimals and approve, m…
0
content:
  p:
    count: 16
    score: 1
wordValue: 0
formattingMultiplier: 0
0.5 -
- https://github.com/ubiquity/onboard.ubq.fi/blob/66b2bcbb3ca21f…
0
content:
  ul:
    count: 86
    score: 1
  li:
    count: 86
    score: 1
wordValue: 0
formattingMultiplier: 0
0.9 -
Last PR open in [`permit-generation` ](https://github.co…
0
content:
  p:
    count: 5
    score: 1
  a:
    count: 1
    score: 1
  code:
    count: 1
    score: 1
wordValue: 0
formattingMultiplier: 0
0.3 -
@0x4007 yeah just need this [PR](https://github.com/ubiquibot/pe…
0
content:
  p:
    count: 13
    score: 1
  a:
    count: 1
    score: 1
wordValue: 0
formattingMultiplier: 0
0.2 -

[ 6.78 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Specification 1 4.4
Issue Comment 4 2.38
Conversation Incentives
Comment Formatting Relevance Reward
@Keyrxng you think you can swap out the logic in the repos using…
4.4
content:
  p:
    count: 44
    score: 1
  em:
    count: 6
    score: 0
wordValue: 0.1
formattingMultiplier: 1
1 4.4
As in uAD.ubq.fi? I think there's an issue open for it you can h…
10
content:
  p:
    count: 50
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.2 2
The built in RPC sucks for speed. Let's use our custom ones if i…
3.8
content:
  p:
    count: 19
    score: 1
wordValue: 0.2
formattingMultiplier: 1
0.1 0.38
@Keyrxng heres a follow up
1
content:
  p:
    count: 5
    score: 1
wordValue: 0.2
formattingMultiplier: 1
- -
@Keyrxng seems that it's the last step before closing this out?
2.2
content:
  p:
    count: 11
    score: 1
wordValue: 0.2
formattingMultiplier: 1
- -

Copy link

ubiquibot bot commented Jul 16, 2024

[ 33.8 WXDAI ]

@0x4007
Contributions Overview
ViewContributionCountReward
IssueSpecification17.8
IssueComment426
Conversation Incentives
CommentFormattingRelevanceReward
@Keyrxng you think you can swap out the logic in the repos using...
7.817.8
> Sure thing will catch it tomorrow > > > > ##...
18.6
h4:
  count: 2
  score: "2"
  words: 2
li:
  count: 5
  score: "5"
  words: 26
0.1318.6
> onboarding does lean into using the MM provider which the r...
40.664
@Keyrxng heres a follow up...
10.681
@Keyrxng seems that it's the last step before closing this out? ...
2.40.642.4

[ 156.2 WXDAI ]

@Keyrxng
Contributions Overview
ViewContributionCountReward
IssueTask1100
IssueComment70
IssueComment756.2
Conversation Incentives
CommentFormattingRelevanceReward
Sure thing will catch it tomorrow

Frontend

  • onboarding...
-
h4:
  count: 2
  score: "0"
  words: 2
li:
  count: 5
  score: "0"
  words: 30
0.18-
> I think there's an issue open for it you can handle that se...
-
li:
  count: 1
  score: "0"
  words: 9
0.09-
neither audit nor onboarding actually make use of any RPC calls ...
-
li:
  count: 4
  score: "0"
  words: 57
code:
  count: 5
  score: "0"
  words: 9
0.28-
I'm mistaken anyway there are two calls, decimals and approve, m...
-0.71-
- https://github.com/ubiquity/onboard.ubq.fi/blob/66b2bcbb3ca21f...
-
li:
  count: 4
  score: "0"
  words: 25
0.61-
Last PR open in [`permit-generation` ](https://github.co...
-
a:
  count: 1
  score: "0"
  words: 4
code:
  count: 1
  score: "0"
  words: 2
0.6-
@0x4007 yeah just need this [PR](https://github.com/ubiquibot/pe...
-
a:
  count: 1
  score: "0"
  words: 1
0.84-
Sure thing will catch it tomorrow

Frontend

  • onboarding...
10.8
h4:
  count: 2
  score: "2"
  words: 2
li:
  count: 5
  score: "5"
  words: 30
0.1810.8
> I think there's an issue open for it you can handle that se...
5.9
li:
  count: 1
  score: "1"
  words: 9
0.095.9
neither audit nor onboarding actually make use of any RPC calls ...
16.8
li:
  count: 4
  score: "4"
  words: 57
code:
  count: 5
  score: "5"
  words: 9
0.2816.8
I'm mistaken anyway there are two calls, decimals and approve, m...
1.70.711.7
- https://github.com/ubiquity/onboard.ubq.fi/blob/66b2bcbb3ca21f...
16
li:
  count: 4
  score: "4"
  words: 25
0.6116
Last PR open in [`permit-generation` ](https://github.co...
2.6
a:
  count: 1
  score: "1"
  words: 4
code:
  count: 1
  score: "1"
  words: 2
0.62.6
@0x4007 yeah just need this [PR](https://github.com/ubiquibot/pe...
2.4
a:
  count: 1
  score: "1"
  words: 1
0.842.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants