after adding sync and watch contract events should be created new table in database. But it doesn’t.
https://x515loxzctbn.usemoralis.com:2053/server
What should i do?
after adding sync and watch contract events should be created new table in database. But it doesn’t.
https://x515loxzctbn.usemoralis.com:2053/server
What should i do?
I try to restart server, but it doesn’t help me
the issue is only that you don’t see an empty table for a particular event sync?
Yes, i don’t see table in database. And i don’t know if it sync data from contracts and stores there
the issues seems to be some ABIs that are added for other events that are not of the expected type, and when you add an abi that is not of type event or is invalid, everything will stop working in coreservices
it looks like there are 4 ABIs that are generating errors, I don’t know exactly which ones
My event is:
topic: bankCreated(uint256, string, string, string, address, address, uint256, uint256, uint256, uint256, uint256)
abi: { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "uid", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "file_url", "type": "string" }, { "indexed": false, "internalType": "string", "name": "description", "type": "string" }, { "indexed": false, "internalType": "string", "name": "title", "type": "string" }, { "indexed": false, "internalType": "address", "name": "erc20address", "type": "address" }, { "indexed": false, "internalType": "address", "name": "owner_of", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "min_amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "max_amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "reserved", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "end_time", "type": "uint256" } ], "name": "bankCreated", "type": "event" }
claimed from contract abi and contract
I’m not sure if this particular abi is the issue or another one.
Could you try it on a separate server to see if it works? only this event
It works on enother server
then probably the issue is with another event sync and not with this one
So i should clean each of new events and repeat this actions?
for example, you should delete this one:
{
"chainId": "0x4",
"address": "0x...",
"tableName": "DaoStakingWithdrawed",
"topic": "withdrawed(uint256, address)",
"abi": {
"inputs": [
{
"internalType": "uint256",
"name": "bank_uid",
"type": "uint256"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
"filter": "",
"sync_historical": true,
"description": "DaoStakingWithdrawed"
}
this will make everything stop working
Ok, thanks, i see. Thank you very much!!!