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: multicall cairo precompile #1464

Open
obatirou opened this issue Oct 3, 2024 · 2 comments · May be fixed by #1503
Open

feat: multicall cairo precompile #1464

obatirou opened this issue Oct 3, 2024 · 2 comments · May be fixed by #1503
Assignees

Comments

@obatirou
Copy link
Collaborator

obatirou commented Oct 3, 2024

Feature Request

Create a precompile multicall that receive an array of (contract address, selector, calldata) and execute those starknet calls. It can only be called through a normal call and not delegatecall. This will allow to craft directly in the frontend starknet transaction with starknet sdk leading to a generic integration of every starknet contract

Steps:

  • create precompile.
  • Add test:
    • deploy a starknet contract and craft a starknet transaction: a simple one would to query the balance of several starknet tokens or a approve of token
    • craft a multicalll transaction to the multicall contract and execute it
@Eikix
Copy link
Member

Eikix commented Oct 3, 2024

frontend starknet transaction with starknet sdk

will this specific contract allow this? since its solidity im not sure it can be called with starknet SDK yet

@enitrat
Copy link
Collaborator

enitrat commented Oct 4, 2024

will this specific contract allow this? since its solidity im not sure it can be called with starknet SDK yet

Starknet SDK crafts the calldata and then your frontend invokes the ether provider with this calldata

@obatirou obatirou changed the title feat: multicall to cairo precompile feat: multicall cairo precompile Oct 7, 2024
@enitrat enitrat linked a pull request Oct 12, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Backlog
Development

Successfully merging a pull request may close this issue.

3 participants