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

A user guide for the factory pattern. #983

Merged
merged 4 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ Once you are familiar with smart contracts, it is a good idea to read the :ref:`
upgradeable-contract
json-params
migrate-contracts
factory-pattern
394 changes: 394 additions & 0 deletions source/mainnet/smart-contracts/guides/factory-pattern.rst

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,10 @@ Deploying and initializing smart contracts

.. dropdown:: Can I create a factory smart contract on Concordium?

No. A factory smart contract on the Ethereum chain deploys other smart contracts. In contrast,
In short: no. A factory smart contract on the Ethereum chain deploys other smart contracts. In contrast,
the ``init`` function has to be called by an account (not a smart contract) on the Concordium chain.
The guide to :ref:`using the factory pattern on Concordium<factory-pattern>` discusses
the alternatives and how to emulate the factory pattern.

.. dropdown:: Can I predict/calculate the address of the smart contract before deploying it? Is there something similar to the Ethereum CREATE2?

Expand Down
Loading