-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathconfig.yaml
More file actions
61 lines (46 loc) · 1.86 KB
/
config.yaml
File metadata and controls
61 lines (46 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
migrations: "./migrations"
# Polygon RPC(用公共节点即可,读区块够用)
polygon_rpc: "https://polygon-rpc.com"
rpc_url: "tw-wallet-chain-account:80" # 若你本地没 geth,可随意填 http://127.0.0.1:8545
polygon_chain_id: "137"
http_host: "127.0.0.1"
http_port: 8189
db_host: "127.0.0.1"
db_port: 45432
db_name: "fishcake"
db_user: "bitadmin"
db_password: "wZa9wHac"
metrics_host: "127.0.0.1"
metrics_port: 9090
# 同步起始区块
start_block: 78801000
event_start_block: 80400000
# 三个合约地址(都用合法的格式即可)
contracts:
- "0x6298f654b2862B0ED25336f21CA507d8fB8a0b08"
- "0x2CAf752814f244b3778e30c27051cc6B45CB1fc9"
- "0x19C6bf3Ae8DFf14967C1639b96887E8778738417"
# 阿里云配置(本地无调用逻辑时填假值防空指针)
ali_config:
region_id: "cn-hangzhou"
access_key: "FAKE_ACCESS_KEY"
access_secret: "FAKE_ACCESS_SECRET"
# 合约依赖映射(都填上有效格式地址即可)
contract_info:
fcc_token: "0x9482bbA1De30f2715E9293964dcb692437BCDce4"
usdt_token: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F"
redemption_pool: "0x953E6DB14753552050B04a6393a827661bB4913a"
direct_sale_pool: "0xff99312c30466740bDA94b3Ff9E8FC1071BF18cE"
investor_sale_pool: "0xBBFa44467E12e6141B2961EE13705B9b6e3Ebe8B"
nft_manager: "0x2F2Cb24BaB1b6E2353EF6246a2Ea4ce50487008B"
fishcake_event_manager: "0x2CAf752814f244b3778e30c27051cc6B45CB1fc9"
# 加密字段防空指针:随便填假值
encrypted_private_key: "0x1234567890abcdef"
nonce: "0xabcdef1234567890"
key_phrase: "test key phrase for local debugging"
# Token 映射
usdt: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F"
fcc: "0x84eBc138F4Ab844A3050a6059763D269dC9951c6"
# PolygonScan API(假的 key 也没关系,主要是防止空字符串)
data_api_url: "https://api-testnet.polygonscan.com/api?"
data_api_key: "TEST_KEY_FOR_LOCAL"