Compile and deploy contract preset
[blockchain/ethereum/contracts/Compile and deploy contract preset]

Compiles and deploys single file (flattened) Solidity contracts according to settings specified in a contract preset structure.
Keywords: Solidity, contract, compile, deploy, Ethereum.
Input ports
contract description:
{ "contract template": string, "name to replace": string, "compile settings": { "includeRoots": string[], "solidityVersion": string, "compileOptions": { optional "evmVersion": string, "optimizer": {"enabled": boolean, "runs": number} } }, "deploy settings": {"gas": number, optional "gasPrice": number} }
Receives a contract preset description.
contract name:
string
Receives the desired contract name to be inserted into the contract preset template.
contract params:
string[]
An array of arguments to be passed to the deployed contract's constructor when deployed.
credentials:
{"providerUrl": string, "privateKey": string}
Output ports
events:
{ "field": ( "transaction hash" or "receipt" or "confirmation" or "contract" or "error" ), "data": any }
[Inherited from port
events
ofcontract deployer
] Multiplexed events. Useful for monitoring progress. Use Demultiplexer to separate them.source:
string
compile settings:
(({string: any} or any[])[string] or ({string: any} or any[])[number])
[Inherited from port
compile settings
ofsplitter B
] Sends input data split into individual fields.error:
{"error": string}
Last updated