Sample contract which receives amount in child chain and returns amount in parent chain according to the coin exchange
It let's you to exchange child coins to ARDR without first having ARDR in the account which was a major limitation.
The contract demonstrates 3 different callbacks.
processTransaction - activated by a transaction with trigger message
processBlock - scans the transaction in a block and when finding one which matches the criteria performs the exchange
processRequest - simulates the operation of the contract without actually receiving or submitting transactions