chainline-contracts / chainline.contracts / WalletContract

WalletContract

object WalletContract : SmartContract (source)

Functions

HubContract

external fun HubContract(operation: String, vararg args: Any): Boolean

Calls the HubContract with the specified operation and args.

Main

fun Main(signature: ByteArray): Boolean

The entry point of the smart contract.

vm_throwIfNot

external fun vm_throwIfNot(arg: Any): Unit

Inserts the "THROWIFNOT" VM OpCode. Aborts execution if the supplied arg is not true.