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

Update contract init #1625

Merged
merged 6 commits into from
Oct 11, 2024
Merged

Update contract init #1625

merged 6 commits into from
Oct 11, 2024

Conversation

Ifropc
Copy link
Contributor

@Ifropc Ifropc commented Sep 25, 2024

What

Update contract init implementation.
Now it uses workspace template as the project root and also adds --name for easier contract initialization. It's now possible to initialize multiple contracts from a hello world template with passing different --name's

Why

Changes according to #1586

Known limitations

N/A

@Ifropc Ifropc force-pushed the contract-init-rework branch from 272aa0e to 840af02 Compare September 25, 2024 20:31
FULL_HELP_DOCS.md Outdated Show resolved Hide resolved
@Ifropc Ifropc force-pushed the contract-init-rework branch from 840af02 to fff708a Compare September 25, 2024 22:10
@Ifropc Ifropc changed the base branch from main to init-deprecate September 25, 2024 22:11
@Ifropc Ifropc force-pushed the contract-init-rework branch from fff708a to e294872 Compare September 25, 2024 22:16
@Ifropc Ifropc marked this pull request as draft September 26, 2024 15:50
@Ifropc
Copy link
Contributor Author

Ifropc commented Sep 26, 2024

I'm converting this PR back to draft, I think my original implementation is not what we would like to move forward with

Base automatically changed from init-deprecate to main October 10, 2024 18:49
# Conflicts:
#	FULL_HELP_DOCS.md
#	cmd/soroban-cli/src/commands/contract/init.rs
@Ifropc Ifropc force-pushed the contract-init-rework branch from f040e9e to 8843020 Compare October 10, 2024 22:33
@Ifropc
Copy link
Contributor Author

Ifropc commented Oct 10, 2024

After internal discussion I changed the implementation to keep the current behavior that switches template to the workspace, and make name of generated contract customizable via --name

@Ifropc Ifropc marked this pull request as ready for review October 10, 2024 22:35
@Ifropc Ifropc self-assigned this Oct 10, 2024
FULL_HELP_DOCS.md Outdated Show resolved Hide resolved
cmd/soroban-cli/src/commands/contract/init.rs Show resolved Hide resolved
@Ifropc Ifropc changed the title Rework contract init Update contract init Oct 10, 2024
@Ifropc Ifropc enabled auto-merge (squash) October 11, 2024 07:24
@Ifropc Ifropc merged commit a041c68 into main Oct 11, 2024
23 checks passed
@Ifropc Ifropc deleted the contract-init-rework branch October 11, 2024 07:43
chadoh added a commit to AhaLabs/soroban-astro-template that referenced this pull request Dec 9, 2024
The `stellar contract init` command no longer works with
`--frontend-template` (stellar/stellar-cli#1625)

This means that templates like this one need to hard-code their own list
of contracts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants