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

[feat] Add contract types like in other SDKs #445

Open
ClementWalter opened this issue Jul 27, 2023 · 1 comment
Open

[feat] Add contract types like in other SDKs #445

ClementWalter opened this issue Jul 27, 2023 · 1 comment

Comments

@ClementWalter
Copy link

In starknet-py or starknet-js, one can use the Contract class, especially Contract.from_address to have a high level human-readable interaction with contracts. For example, one can do

starknet_eth = Contract.from_address(provider, 0x49...)
await starknet_eth.balance_of(0x1234)

or also build such an object from an embedded abi object.

Currently with starknet-rs, we end up doing encoding and decoding manually with raw starknet call/invoke. Or I am missing something?

@xJonathanLEI
Copy link
Owner

ABI-based encoding/decoding is indeed one more the most important missing features in starknet-rs. Will prioritize this accordingly.

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

Successfully merging a pull request may close this issue.

2 participants