From 7d65c2fd162d8006a48c20ff6eccff216b4f4b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Pradel?= Date: Sat, 30 Mar 2024 10:07:05 +0100 Subject: [PATCH] predicates --- .../velar/univ2-router.add-liquidity.json | 23 +++++++++++++++++++ .../velar/univ2-router.remove-liquidity.json | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 chainhooks/velar/univ2-router.add-liquidity.json create mode 100644 chainhooks/velar/univ2-router.remove-liquidity.json diff --git a/chainhooks/velar/univ2-router.add-liquidity.json b/chainhooks/velar/univ2-router.add-liquidity.json new file mode 100644 index 0000000..3f23982 --- /dev/null +++ b/chainhooks/velar/univ2-router.add-liquidity.json @@ -0,0 +1,23 @@ +{ + "chain": "stacks", + "uuid": "1", + "name": "univ2-router.add-liquidity", + "version": 1, + "networks": { + "mainnet": { + "if_this": { + "scope": "contract_call", + "contract_identifier": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-router", + "method": "add-liquidity" + }, + "then_that": { + "http_post": { + "url": "http://localhost:3000/api/chainhooks/velar/add-liquidity", + "authorization_header": "Bearer dev-api-token" + } + }, + "start_block": 138413, + "decode_clarity_values": false + } + } +} diff --git a/chainhooks/velar/univ2-router.remove-liquidity.json b/chainhooks/velar/univ2-router.remove-liquidity.json new file mode 100644 index 0000000..69642c1 --- /dev/null +++ b/chainhooks/velar/univ2-router.remove-liquidity.json @@ -0,0 +1,23 @@ +{ + "chain": "stacks", + "uuid": "1", + "name": "univ2-router.remove-liquidity", + "version": 1, + "networks": { + "mainnet": { + "if_this": { + "scope": "contract_call", + "contract_identifier": "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1.univ2-router", + "method": "remove-liquidity" + }, + "then_that": { + "http_post": { + "url": "http://localhost:3000/api/chainhooks/velar/remove-liquidity", + "authorization_header": "Bearer dev-api-token" + } + }, + "start_block": 138413, + "decode_clarity_values": false + } + } +}