Skip to content

Commit 260eb62

Browse files
committed
updates
1 parent d3d0d93 commit 260eb62

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

components/opensea/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"dependencies": {
1616
"@pipedream/platform": "^3.0.3",
17-
"bottleneck": "^2.19.5"
17+
"bottleneck": "^2.19.5",
18+
"md5": "^2.3.0"
1819
}
1920
}

components/opensea/sources/new-collection-events/new-collection-events.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import opensea from "../../opensea.app.mjs";
22
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
3+
import md5 from "md5";
34

45
export default {
56
key: "opensea-new-collection-events",
@@ -35,7 +36,8 @@ export default {
3536
"transfer",
3637
],
3738
label: "Event Type",
38-
description: "The type of event to filter by. If not provided, only sales will be returned.",
39+
description: "The type of event to filter by",
40+
default: "all",
3941
optional: true,
4042
},
4143
},
@@ -48,8 +50,8 @@ export default {
4850
},
4951
generateMeta(event) {
5052
return {
51-
id: event.order_hash,
52-
summary: `${event.asset?.name || event.nft?.name}`,
53+
id: md5(JSON.stringify(event)),
54+
summary: `New ${event.event_type} event`,
5355
ts: event.event_timestamp,
5456
};
5557
},

0 commit comments

Comments
 (0)