I am learning/playing around with some concepts of the blockchain, smart contracts and Ethereum. I have created my own "toy" cryptocurency ("myCoin") by forking a coin using the CryptoNote algo.
I want to use the Ethereum platform, to write smart contracts which are "denoted" using "myCoin" currency (i.e. tokens), instead of ether.
So for example a contract might state (pseudocode):
Definition of Event A Definition of Event B When Event A is raised by a user Pay user X units of myCoin When Event B is raised by a user Request user Y units of myCoin from user
Can someone outline the steps needed to write such smart contracts that are decoupled from ETH and instead rely on my alt coin?