From de8553029533c9b7afa7a929315499df29326180 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Sun, 14 Apr 2024 16:25:17 +0800 Subject: [PATCH] update event config --- config/event_abis/TreasureHunt.json | 25 ++++++++++++++++ config/event_list_production.json | 44 ++++------------------------- config/scription_list.json | 20 ++++++------- start_dev.json | 34 ---------------------- 4 files changed, 41 insertions(+), 82 deletions(-) create mode 100644 config/event_abis/TreasureHunt.json diff --git a/config/event_abis/TreasureHunt.json b/config/event_abis/TreasureHunt.json new file mode 100644 index 0000000..c9ce1a0 --- /dev/null +++ b/config/event_abis/TreasureHunt.json @@ -0,0 +1,25 @@ +{ + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "action", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "ActionEvent", + "type": "event" +} \ No newline at end of file diff --git a/config/event_list_production.json b/config/event_list_production.json index 92dc6cb..2ab8730 100644 --- a/config/event_list_production.json +++ b/config/event_list_production.json @@ -1,42 +1,10 @@ [ { - "chain": 42161, - "address": "0x3F13F83E6363D97d0353cAAfACA08B05D9BF3637", - "event": "Transfer", - "abi": "ERC721_Transfer", - "fromBlock": 104992059, - "eventProcesser": "NftHolder" - }, - { - "chain": 42161, - "address": "0x79fc2a4216A1e595DBD09D13c4B4bD3B095d5bb2", - "event": "Transfer", - "abi": "ERC721_Transfer", - "fromBlock": 110028781, - "eventProcesser": "NftHolder" - }, - { - "chain": 42161, - "address": "0xD728de3d9ebeD90E84aBe84539280cbC5b18E304", - "event": "Transfer", - "abi": "ERC721_Transfer", - "fromBlock": 110369163, - "eventProcesser": "NftHolder" - }, - { - "chain": 42161, - "address": "0xefD4c863E73e7E9Cc33d46fB30CE51510FCFdeb0", - "event": "Transfer", - "abi": "ERC721_Transfer", - "fromBlock": 116977151, - "eventProcesser": "NftHolder" - }, - { - "chain": 42161, - "address": "0x0cee888fA25810ca648D697099bc17a2c9E1dfBF", - "event": "Transfer", - "abi": "ERC721_Transfer", - "fromBlock": 148632616, - "eventProcesser": "NftHolder" + "chain": 5611, + "address": "0x0Fd13D2CD0B6c679B6f92590E0b91C18DDe7BD3A", + "event": "ActionEvent", + "abi": "TreasureHunt", + "fromBlock": 26202217, + "eventProcesser": "GeneralEvent" } ] \ No newline at end of file diff --git a/config/scription_list.json b/config/scription_list.json index 8829219..b6a58d7 100644 --- a/config/scription_list.json +++ b/config/scription_list.json @@ -1,7 +1,7 @@ [ { "chain": 5611, - "fromBlock": 25776083, + "fromBlock": 26106343, "filters": [{ "key": "input", "op": "eq", @@ -11,13 +11,13 @@ "key": "to", "op": "eq", "type": "address", - "value": "0x50a8e60041a206acaa5f844a1104896224be6f39" + "value": "0xcd4bb3402f1a444a1af10f31946ed37dac0eac4d" }], "dataModel": "CheckIn" }, { "chain": 5611, - "fromBlock": 25776083, + "fromBlock": 26106343, "filters": [{ "key": "input", "op": "like", @@ -27,13 +27,13 @@ "key": "to", "op": "eq", "type": "address", - "value": "0x50a8e60041a206acaa5f844a1104896224be6f39" + "value": "0xcd4bb3402f1a444a1af10f31946ed37dac0eac4d" }], "dataModel": "ChestRecord" }, { "chain": 5611, - "fromBlock": 25776083, + "fromBlock": 26106343, "filters": [{ "key": "input", "op": "like", @@ -43,13 +43,13 @@ "key": "to", "op": "eq", "type": "address", - "value": "0x50a8e60041a206acaa5f844a1104896224be6f39" + "value": "0xcd4bb3402f1a444a1af10f31946ed37dac0eac4d" }], "dataModel": "GenernalScription" }, { "chain": 5611, - "fromBlock": 25776083, + "fromBlock": 26106343, "filters": [{ "key": "input", "op": "like", @@ -59,13 +59,13 @@ "key": "to", "op": "eq", "type": "address", - "value": "0x50a8e60041a206acaa5f844a1104896224be6f39" + "value": "0xcd4bb3402f1a444a1af10f31946ed37dac0eac4d" }], "dataModel": "GenernalScription" }, { "chain": 5611, - "fromBlock": 25776083, + "fromBlock": 26106343, "filters": [{ "key": "input", "op": "like", @@ -75,7 +75,7 @@ "key": "to", "op": "eq", "type": "address", - "value": "0x50a8e60041a206acaa5f844a1104896224be6f39" + "value": "0xcd4bb3402f1a444a1af10f31946ed37dac0eac4d" }], "dataModel": "GenernalScription" } diff --git a/start_dev.json b/start_dev.json index fcd4183..b441f55 100644 --- a/start_dev.json +++ b/start_dev.json @@ -1,39 +1,5 @@ { "apps": [ - { - "name": "chain-client", - "script": "./dist/api.js", - "cwd": "/root/code/web_chain_client", - "max_memory_restart": "1024M", - "watch": false, - "ignore_watch": ["node_modules", "logs", "fixtures", "tasks"], - "instances": 1, - "exec_mode": "fork", - "env": { - "NODE_ENV": "production", - "NODE_PATH": "./dist" - }, - "env_production": { - "NODE_ENV": "production" - } - }, - { - "name": "chain-scriptions", - "script": "./dist/scriptions.js", - "cwd": "/root/code/web_chain_client", - "max_memory_restart": "1024M", - "watch": false, - "ignore_watch": ["node_modules", "logs", "fixtures", "tasks"], - "instances": 1, - "exec_mode": "fork", - "env": { - "NODE_ENV": "production", - "NODE_PATH": "./dist" - }, - "env_production": { - "NODE_ENV": "production" - } - }, { "name": "chain-events", "script": "./dist/events.js",