Module contract

Source
Expand description

Contract, for easier ErgoTree generation

Structs§

Contract
Defines the contract(script) that will be guarding box contents

Functions§

contract_compile
Compiles a contract from ErgoScript source code
contract_ergo_tree
Get the ErgoTree of the contract
contract_new
Create new contract from ErgoTree
contract_pay_to_address
Create new contract that allow spending of the guarded box by a given recipient

Type Aliases§

ConstContractPtr
ContractPtr