Class ChildToParentExchange

java.lang.Object
nxt.addons.AbstractContract<Object,Object>
com.jelurida.ardor.contracts.ChildToParentExchange
All Implemented Interfaces:
Contract<Object,Object>

public class ChildToParentExchange extends AbstractContract<Object,Object>
Sample contract which receives amount in child chain and returns amount in parent chain according to the coin exchange order book. It enables users to exchange child coins to ARDR without first having ARDR in the account which is a major limitation. The contract demonstrates two different callbacks. processTransaction - activated by a transaction with trigger message processRequest - simulates the operation of the contract without actually receiving or submitting transactions