starknet.py icon indicating copy to clipboard operation
starknet.py copied to clipboard

Consider renaming RPC schemes

Open franciszekjob opened this issue 1 year ago • 17 comments

Feature Request

Some RPC models and schemes are named differently than in spec https://github.com/starkware-libs/starknet-specs/tree/master/api.

Examples of potential changes:

  • PendingStarknetBlockWithReceipts -> PendingBlockWithReceipts
  • EstimatedFee -> FeeEstimate
  • FunctionInvocation -> FunctionCall

franciszekjob avatar Jun 06 '24 14:06 franciszekjob

@franciszekjob, Can I pick this issue?

harsha-mangena avatar Jun 06 '24 15:06 harsha-mangena

Hi, I think it's going to be better to pick it once #1316 is completed, which I'm currently working on šŸ‘

franciszekjob avatar Jun 07 '24 07:06 franciszekjob

Sure, Thank You @franciszekjob !

harsha-mangena avatar Jun 07 '24 15:06 harsha-mangena

I am applying to this issue via OnlyDust platform.

Mitish98 avatar Jun 26 '24 21:06 Mitish98

@Mitish98 Currently, we do not sponsor this issue nor any other issues through OnlyDust.

ddoktorski avatar Jul 02 '24 09:07 ddoktorski

Hey @harsha-mangena, #1316 has been closed, so you're welcome to pick this issue! šŸ˜„

franciszekjob avatar Jul 10 '24 13:07 franciszekjob

@franciszekjob, Thanks for letting me know!!

harsha-mangena avatar Jul 10 '24 20:07 harsha-mangena

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I have experience with RPC APIs and blockchain technology, particularly with StarkNet. My background includes working on integrating and customizing RPC models, making me well-suited to address discrepancies between existing implementations and spec updates

How I plan on tackling this issue

To approach this problem, you can follow these steps:

Review Spec: i will compare the existing RPC models with the StarkNet spec to identify discrepancies.

Update Names: Modify the names in the codebase to match the spec (e.g., PendingStarknetBlockWithReceipts to PendingBlockWithReceipts).

Test Changes: Ensure that the updated names work correctly by running existing tests and creating new ones if necessary.

Documentation: Update any related documentation to reflect the new names and ensure clarity for users.

Deploy: Roll out the updated models to the development or staging environment, then to production after verification.

ScottyDavies avatar Aug 26 '24 14:08 ScottyDavies

Hey @ScottyDavies, I assigned you to this issue šŸ‘

franciszekjob avatar Aug 27 '24 10:08 franciszekjob

okay, I will start working on it immediately.

ScottyDavies avatar Aug 27 '24 10:08 ScottyDavies

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

Im self taught in python, rust, js, sql

jcampos2907 avatar Sep 20 '24 22:09 jcampos2907

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I am a python developer and a block chain developer with multiple contributions with different projects worked on and problem solving skills.

How I plan on tackling this issue

I would audit the current API structure, using Python to build automated tests to identify inconsistencies in RPC schemes and model names. I’d propose naming conventions aligned with StarkNet and collaborate with the community to implement changes incrementally. To ensure accuracy, I’d create unit tests and documentation for the new API models, establishing a framework for future updates

Ndifreke000 avatar Sep 25 '24 08:09 Ndifreke000

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

back end developer skilled in Object oriented programming in python, experience in database models and ORM (SQLAlchemy)

How I plan on tackling this issue

simply change the name and reflect the change to all related files.

georgegoldman avatar Sep 27 '24 08:09 georgegoldman

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I'm Gerson from Dojo Coding community. I have contributed to many projects, you guys can check my OD profile here: https://app.onlydust.com/u/Gerson2102

How I plan on tackling this issue

I will start by understanding what ia have to do. Setting up the project. Doing my own research. If I'm stuck I will ask for help. I'll make a PR and wait for your feedback.

Gerson2102 avatar Sep 30 '24 21:09 Gerson2102

Hello. In this issue, I already knwo where is the rpc to start changing some of the names of the schemes. They're in starknet_py/net/schemas/rpc/ right?

One thing that I dont understand, is how to know the new correct names. I checked the resoruces on the issue but still dont get it. I dont know if somebody could help me here with that. I think that's the only thing that is not clear to me. @franciszekjob

And btw, do you guys have a telegram group or something like that?

Gerson2102 avatar Oct 02 '24 01:10 Gerson2102

@ddoktorski @kkawula

Gerson2102 avatar Oct 05 '24 15:10 Gerson2102

@georgegoldman Look up to Starknet API spec as reference when changing names.

Yes, here is the link to TG group link https://t.me/starknetpy

franciszekjob avatar Oct 07 '24 09:10 franciszekjob

Temporarily closing this issue as it will introduce many breaking changes which we don't need ATM.

franciszekjob avatar Nov 04 '24 09:11 franciszekjob