Hello,
A week ago I set up an event watcher plugin (connected to ganache). It worked, Database was created and synched. I lost power and so had to restart with a new Ganache instance. I had set up the original plugin to watch a specific function at specific contract address. After some help from Moralis team I leared I would need to delete and recreate the event watcher and set up Ganache so that it persists data. Then my virus software started complainging about frpc (see topic: frpc zips had trojan). So I updated frpc.
Here is what I see:
- Log of plugin setup:
2021-05-09T22:09:46.759Z - Initialized plugin ./evm/events
2021-05-09T22:09:46.449Z - {"description":"CategoryCreatedUpdated","topic":"CategoryCreatedUpdated(uint64,label,address)","abi":{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"categoryId","type":"uint64"},{"indexed":false,"internalType":"string","name":"label","type":"string"},{"indexed":false,"internalType":"address","name":"_changedBy","type":"address"}],"name":"CategoryCreatedUpdated","type":"event"},"address":"0x89Fea6A7F283cd348fBf6524ce6eC577749E41B4","tableName":"CategoryCreatedUpdated"}
-
In EventSynch table I see an entry for the plugin I created. However table was not created.
-
Under Jobs there is a job called synchCategoryCreatedUpdated. Not sure how this was created. I cannot edited it or otherwise see its definition.
-
frpc.ini
server_addr = 51x9pnsvopbn.moralis.io
server_port = 7000
token = o22ZrETiTN
[ganache]
type = http
local_port = 7545
custom_domains = 51x9pnsvopbn.moralis.io
- frpc start up:
F:\Projects\1155project\frp>frpc.exe -c frpc.ini
2021/05/09 08:46:31 [I] [service.go:304] [8e436e93787086be] login to server success, get run id [8e436e93787086be], server udp port [0]
2021/05/09 08:46:31 [I] [proxy_manager.go:144] [8e436e93787086be] proxy added: [ganache]
2021/05/09 08:46:31 [I] [control.go:180] [8e436e93787086be] [ganache] start proxy success
-
In Moralis Admin Dev Proxy shows connected:
-
Event footprint and hash:
truffle(development)> web3.utils.sha3("CategoryCreatedUpdated(uint64,string,address)")
'0xd0ed9a9656b63055fd06e97eb58f2da370dcdc0c7adf751044de8271998d2cbe'
- The EventSync record shows the topic as the event footprint. I tried cloning this row and changing the topic to the hex value shown in #7 and re-ran the sync. No result.
Anything look obviously wrong in the above? Any further ideas to try?
Thank you,
David