I want to listen to an event from inside another (deployed) smart contract.
I am a complete noob to Ethereum and Solidity. So please excuse me for stupid questions, I might have misunderstood everything.
I want to listen to an event inside a deployed contract C1. And when a certain event takes place a want to call a function on another contract C2.
For example, there is a token called
Matryx Token, Solidity code can be found here at EtherScan.io
In the Solidity code there is a
contract MintableToken is ReleasableToken, inside that contract there is an event
How can I listen to this event and then call a function on another contract C2?
I am an experienced Swift developer. So I was thinking of writing this as a macOS app or iOS app. I found Geth, Go Ethereum, mobile client but it is a bit unclear how I can listen to events.
So maybe the easiest way would be to develop my own Solidity "program" (dApp?) and deploy it as a smart contract?
Where I would make most functions private or
Is it possible to call a non
public function on a smart contract (C2)? 😬
I do not understand the answer given for this question (possible duplicate)
Can a contract listen to events of another contract?