From 27687f277fccb36863fb4633443de74338445f8a Mon Sep 17 00:00:00 2001 From: akhercha Date: Tue, 8 Oct 2024 09:33:03 +0200 Subject: [PATCH] feat(handle-pragma-devnet): --- .../pragma/pragma-devnet/devnet-script-spot-checkpoint.js | 2 +- examples/pragma/pragma-devnet/devnet-script-spot.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/pragma/pragma-devnet/devnet-script-spot-checkpoint.js b/examples/pragma/pragma-devnet/devnet-script-spot-checkpoint.js index b37ac1c..5e1636b 100644 --- a/examples/pragma/pragma-devnet/devnet-script-spot-checkpoint.js +++ b/examples/pragma/pragma-devnet/devnet-script-spot-checkpoint.js @@ -65,7 +65,7 @@ function decodeTransfersInBlock({ header, events }) { export const config = { streamUrl: "https://devnet.pragma.a5a.ch", startingBlock: Number(0), - network: "pragma-devnet", + network: "starknet", filter, batchSize: 1, finality: "DATA_STATUS_PENDING", diff --git a/examples/pragma/pragma-devnet/devnet-script-spot.js b/examples/pragma/pragma-devnet/devnet-script-spot.js index d3783b5..68898a2 100644 --- a/examples/pragma/pragma-devnet/devnet-script-spot.js +++ b/examples/pragma/pragma-devnet/devnet-script-spot.js @@ -65,9 +65,10 @@ export const config = { streamUrl: "https://devnet.pragma.a5a.ch", startingBlock: Number(0), network: "starknet", - finality: "DATA_STATUS_PENDING", filter, - sinkType: "console", + batchSize: 1, + finality: "DATA_STATUS_PENDING", + sinkType: "postgres", sinkOptions: { // Send data as returned by `transform`. // When `raw = false`, the data is sent together with the starting and end cursor.