Deploying a Dumb Contract
Deploying a Dumb Contract
To deploy a new Dumb Contract you send another Ethscription to the null address, this time with "op": "create"
instead of "op": "call"
.
As with the EVM, to ensure Dumb Contract code is always available, it must be stored onchain. This means if you're the first person deploying a specific Dumb Contract you must submit that Dumb Contract's transpiled Rubidity in your dataURI. Fortunately, if at least one person has already deployed a given Dumb Contract you can deploy a new instance by including only a hash of the code in your Ethscription.
Here's an example:
You can use the Facet VM to generate transpiled source_code
and init_code_hash
from Rubidity files.
Supported Dumb Contracts
The Facet Protocol doesn't yet support the execution of arbitrary and untrusted Dumb Contact code. Rather, as we build towards this, it will support a curated list of tested contracts that are contributed by the community as in this example. In the future the protocol will support arbitrary Dumb Contracts.
Last updated