-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-example.yaml
148 lines (148 loc) · 8.77 KB
/
config-example.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
health_check_port: 8080
server_config:
channel_size: 100
db_config:
type: "postgres_config"
connection_string: postgresql://postgres@localhost:5432/nft_marketplace
transaction_stream_config:
starting_version: <starting_version>
request_ending_version: <request_ending_version>
indexer_grpc_data_service_address: "https://grpc.mainnet.aptoslabs.com:443"
auth_token: <auth_token>
request_name_header: "nft_marketplace_processor"
nft_marketplace_configs:
marketplace_configs:
- marketplace_name: "topaz"
event_config:
collection_id: "$.collection_id"
token_name: "$.token_id.token_data_id.name"
creator_address: "$.token_id.token_data_id.creator"
collection_name: "$.token_id.token_data_id.collection"
price: "$.price"
token_amount: "$.amount"
buyer: "$.buyer"
seller: "$.seller"
deadline: "$.deadline"
token_inner: "$.token_inner" # V2 field
collection_inner: "$.collection_inner" # V2 field
listing_config:
cancel_event: "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::events::DelistEvent"
fill_event: "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::events::BuyEvent"
place_event: "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::events::ListEvent"
collection_name: "$.collection_metadata.collection_name"
offer_config:
cancel_event: "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::events::CancelBidEvent"
fill_event: "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::events::BidEvent"
place_event: "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::events::SellEvent"
collection_offer_config:
cancel_event:
event_type: "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::events::CancelCollectionBidEvent"
collection_name: "$.collection_name"
creator_address: "$.creator"
fill_event:
event_type: "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::events::FillCollectionBidEvent"
collection_name: "$.token_id.token_data_id.collection"
creator_address: "$.token_id.token_data_id.creator"
place_event:
event_type: "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::events::CollectionBidEvent"
collection_name: "$.collection_name"
creator_address: "$.creator"
- marketplace_name: "tradeport"
event_config:
collection_id: "$.collection_id"
token_name: "$.token_id.token_data_id.name"
creator_address: "$.token_id.token_data_id.creator"
collection_name: "$.token_id.token_data_id.collection"
price: "$.price"
token_amount: "$.amount"
buyer: "$.bid_buyer"
seller: "$.bid_seller"
token_inner: "$.token_inner" # V2 field
collection_inner: "$.collection_inner" # V2 field
listing_config:
cancel_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::listings::DeleteListingEvent"
fill_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::listings::BuyEvent"
place_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::listings::InsertListingEvent"
buyer: "$.buyer"
seller: "$.owner"
offer_config:
cancel_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings::DeleteTokenBidEvent"
fill_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings::AcceptTokenBidEvent"
place_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings::InsertTokenBidEvent"
collection_offer_config:
cancel_event:
event_type: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings::DeleteCollectionBidEvent"
collection_name: "$.collection_id.collection_name"
creator_address: "$.collection_id.collection_creator"
fill_event:
event_type: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings::AcceptCollectionBidEvent"
collection_name: "$.token_id.token_data_id.collection"
creator_address: "$.token_id.token_data_id.creator"
place_event:
event_type: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings::InsertCollectionBidEvent"
collection_name: "$.collection_id.collection_name"
creator_address: "$.collection_id.collection_creator"
- marketplace_name: "tradeport_v2"
event_config:
collection_id: "$.collection_id"
token_name: "$.token_metadata.token_name"
creator_address: "$.token_metadata.creator_address"
collection_name: "$.token_metadata.collection_name"
price: "$.price"
token_amount: "$.token_amount"
buyer: "$.bid_buyer"
seller: "$.bid_seller"
token_inner: "$.token.inner"
collection_inner: "$.collection.inner"
listing_config:
cancel_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::listings_v2::DeleteListingEvent"
fill_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::listings_v2::BuyEvent"
place_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::listings_v2::InsertListingEvent"
buyer: "$.buyer"
seller: "$.seller"
offer_config:
cancel_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings_v2::DeleteTokenBidEvent"
fill_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings_v2::AcceptTokenBidEvent"
place_event: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings_v2::InsertTokenBidEvent"
buyer: "$.bid_buyer"
seller: "$.bid_seller"
collection_offer_config:
cancel_event:
event_type: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings_v2::DeleteCollectionBidEvent"
fill_event:
event_type: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings_v2::AcceptCollectionBidEvent"
place_event:
event_type: "0xe11c12ec495f3989c35e1c6a0af414451223305b579291fc8f3d9d0575a23c26::biddings_v2::InsertCollectionBidEvent"
- marketplace_name: "wapal"
event_config:
collection_id: "$.collection_id"
token_name: "$.token_metadata.token_name"
creator_address: "$.token_metadata.creator_address"
collection_name: "$.token_metadata.collection_name"
price: "$.price"
token_amount: "$.token_amount"
buyer: "$.purchaser"
seller: "$.seller"
token_inner: "$.token_metadata.collection.vec[0].inner"
collection_inner: "$.token_metadata.collection.vec[0].inner"
listing_config:
cancel_event: "0x584b50b999c78ade62f8359c91b5165ff390338d45f8e55969a04e65d76258c9::events::ListingCanceledEvent"
fill_event: "0x584b50b999c78ade62f8359c91b5165ff390338d45f8e55969a04e65d76258c9::events::ListingFilledEvent"
place_event: "0x584b50b999c78ade62f8359c91b5165ff390338d45f8e55969a04e65d76258c9::events::ListingPlacedEvent"
offer_config:
cancel_event: "0x584b50b999c78ade62f8359c91b5165ff390338d45f8e55969a04e65d76258c9::events::TokenOfferCanceledEvent"
fill_event: "0x584b50b999c78ade62f8359c91b5165ff390338d45f8e55969a04e65d76258c9::events::TokenOfferFilledEvent"
place_event: "0x584b50b999c78ade62f8359c91b5165ff390338d45f8e55969a04e65d76258c9::events::TokenOfferPlacedEvent"
collection_offer_config:
cancel_event:
event_type: "0x584b50b999c78ade62f8359c91b5165ff390338d45f8e55969a04e65d76258c9::events::CollectionOfferCanceledEvent"
collection_name: "$.collection_metadata.collection_name"
creator_address: "$.collection_metadata.creator_address"
fill_event:
event_type: "0x584b50b999c78ade62f8359c91b5165ff390338d45f8e55969a04e65d76258c9::events::CollectionOfferFilledEvent"
collection_name: "$.token_metadata.collection_name"
creator_address: "$.token_metadata.creator_address"
place_event:
event_type: "0x584b50b999c78ade62f8359c91b5165ff390338d45f8e55969a04e65d76258c9::events::CollectionOfferPlacedEvent"
collection_name: "$.collection_metadata.collection_name"
creator_address: "$.collection_metadata.creator_address"