You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contracts writers should be able to instantiate contracts that have already been deployed as template contracts. This will ensure that bytecode is reused for instantiating multiple versions of the same contract, but using different metadata. Ownership should be transferred to the identifier of the current transaction.
Possible solution design or implementation
Contracts should have a host call available, so that contract writer can deploy these template modules.
Additional context
Some types of contracts, such as XSC, are built specifically to be instantiated multiple times with different parameters. Supporting this at the VM level will make this simpler, and less costly.
The text was updated successfully, but these errors were encountered:
ureeves
added
team:Core
Low Level Core Development Team (Rust)
mark:next
Strategic issues related to next versions of Testnet and mid/long term plans
labels
Feb 24, 2023
HDauven
added
type:enhancement
Issues concerning code or feature improvement (performance, refactoring, etc)
type:feature
implementing a new feature
and removed
mark:next
Strategic issues related to next versions of Testnet and mid/long term plans
type:enhancement
Issues concerning code or feature improvement (performance, refactoring, etc)
labels
Apr 10, 2024
This is a backward compatible feature which can be realized through a binary upgrade. It would expose a host function that would be functionally equivalent to Ethereum's CREATE opcode.
Summary
Contracts writers should be able to instantiate contracts that have already been deployed as template contracts. This will ensure that bytecode is reused for instantiating multiple versions of the same contract, but using different metadata.
Ownership should be transferred to the identifier of the current transaction.
Possible solution design or implementation
Contracts should have a host call available, so that contract writer can deploy these template modules.
Additional context
Some types of contracts, such as XSC, are built specifically to be instantiated multiple times with different parameters. Supporting this at the VM level will make this simpler, and less costly.
The text was updated successfully, but these errors were encountered: