From 1ee51d7bd3fd16a2791d2e5265d57e5cb135d7a0 Mon Sep 17 00:00:00 2001 From: jtakalai Date: Sat, 20 Jul 2024 07:35:56 +0300 Subject: [PATCH] [streamr] added customizable symbol to strategy (#1537) --- src/strategies/streamr/README.md | 3 ++- src/strategies/streamr/examples.json | 1 + src/strategies/streamr/schema.json | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/strategies/streamr/README.md b/src/strategies/streamr/README.md index 861a0d8e1..ba2ebc7f3 100644 --- a/src/strategies/streamr/README.md +++ b/src/strategies/streamr/README.md @@ -6,12 +6,13 @@ Operators are the node running "miners" in the Streamr Network. They run Streamr This is why part of the Operators' DATA tokens are staked in Sponsorships (through an Operator contract that they control). Only a small portion of DATA is expected to be in the Streamr Network participants' wallets, the rest is staked or delegated into the Streamr Network. -'''The point of the Streamr snapshot strategy''' is to allocate voting power not only according to DATA token holding (as in the plain erc-20-balance-of strategy), but also counting in the DATA tokens the token holders control via staking and delegation (NOTE: at first, only implemented for stakers. Counting delegated DATA may be added later). +The point of the Streamr snapshot strategy is to allocate voting power not only according to DATA token holding (as in the plain erc-20-balance-of strategy), but also counting in the DATA tokens the token holders control via staking and delegation. ## Parameters ```json { + "symbol": "DATA (operator)", "tokenAddress": "0x3a9A81d576d83FF21f26f325066054540720fC34", "operatorFactoryAddress": "0x935734e66729b69260543Cf6e5EfeB42AC962183" } diff --git a/src/strategies/streamr/examples.json b/src/strategies/streamr/examples.json index 7e0c62765..b14b6f52f 100644 --- a/src/strategies/streamr/examples.json +++ b/src/strategies/streamr/examples.json @@ -4,6 +4,7 @@ "strategy": { "name": "streamr", "params": { + "symbol": "DATA (operator)", "tokenAddress": "0x3a9A81d576d83FF21f26f325066054540720fC34", "operatorFactoryAddress": "0x935734e66729b69260543Cf6e5EfeB42AC962183" } diff --git a/src/strategies/streamr/schema.json b/src/strategies/streamr/schema.json index 781cc5ac2..2dd54443b 100644 --- a/src/strategies/streamr/schema.json +++ b/src/strategies/streamr/schema.json @@ -6,6 +6,12 @@ "title": "Strategy", "type": "object", "properties": { + "symbol": { + "type": "string", + "title": "Symbol", + "examples": ["e.g. DATA (operator)"], + "maxLength": 16 + }, "tokenAddress": { "type": "string", "title": "DATA token address",