ContractBuilder
class ContractBuilder
DSL builder for creating a MidnightContract.
Properties
Link copied to clipboard
Link copied to clipboard
Coin public key (32 bytes). Required.
Link copied to clipboard
Arguments for the contract constructor, in declaration order, as Kotlin values (auto-marshaled to JS like circuit call args). Empty for a no-arg constructor (the counter/bboard case). A configurable contract — e.g. a multisig taking its signer set + threshold — passes them here.
Link copied to clipboard
Contract JavaScript as an InputStream. Accepts either:
Link copied to clipboard
Initial private state as a Kotlin map (auto-converted to JS).