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

Deployment scripts in cairo #18

Closed
THenry14 opened this issue Jul 6, 2023 · 2 comments
Closed

Deployment scripts in cairo #18

THenry14 opened this issue Jul 6, 2023 · 2 comments
Assignees
Labels

Comments

@THenry14
Copy link
Contributor

THenry14 commented Jul 6, 2023

software-mansion/protostar#2174

@MaksymilianDemitraszek please share your thoughts 🙏

@THenry14 THenry14 converted this from a draft issue Jul 6, 2023
@THenry14 THenry14 added this to the Cast milestone Jul 6, 2023
@THenry14 THenry14 self-assigned this Jul 20, 2023
@MaksymilianDemitraszek
Copy link
Member

Hi, my broad idea is something like this

fn some_contract_stuff (cli_arg: felt, cli_arg2: felt) {
    let class_hash = declared('ContractName');
    let address = deploy(class_hash);
   
    let dispatcher = DispatcherContractA { contract_address: address}

    dispatcher.increase_balance(5);

    let val = dispatcher.get_balance();

    let multicall = MulticallDispatcherContractA { contract_address: address};

    multicall.increase_balance(5);
    multicall.get_balance();

    multicall.execute();


}

This is some general idea I have in mind but details are TBD.

@MaksymilianDemitraszek MaksymilianDemitraszek removed this from the Cast milestone Jul 26, 2023
@THenry14 THenry14 moved this from Triage to TODO in Starknet foundry Jul 26, 2023
@ClementWalter
Copy link

This is forge script --broadcast I guess

@THenry14 THenry14 moved this from TODO to In Progress in Starknet foundry Aug 3, 2023
github-merge-queue bot pushed a commit that referenced this issue Sep 27, 2023
## Introduced changes

This PR introduces the idea for cairo deployment scripts. After it is
approved, new issues for MVP should be created.
#18

@glihm I know you were interested in this

## Checklist

<!-- Make sure all of these are complete -->

- [X] Linked relevant issue
- [X] Updated relevant documentation
- [X] Added relevant tests
- [X] Performed self-review of the code
- [X] Added changes to `CHANGELOG.md`
@github-project-automation github-project-automation bot moved this from In Progress to Done in Starknet foundry Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

4 participants