Skip to content

Commit f557ec8

Browse files
authored
DREL-264 MATIC to POL docs rename (#3100)
## Summary MATIC -> POL in docs, it won't affect anything else.
1 parent e80bd9d commit f557ec8

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

docs/docs/guides/become-an-operator.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_position: 7
66
**TL;DR 👨‍💻 Do these things to become an earning Streamr node Operator:**
77
- Deploy an Operator smart contract.
88
- Run Streamr node(s) and pair them with your Operator.
9-
- Stake `DATA` tokens on your Operator and give your node address a few `MATIC`
9+
- Stake `DATA` tokens on your Operator and give your node address a few `POL`
1010
- Join Sponsorships through your Operator that will earn you DATA tokens.
1111

1212
## Operator setup instructions
@@ -19,7 +19,7 @@ The wallet/account that you use to make the Operator creation transaction will b
1919

2020
You'll need to decide on your [owner's cut](../streamr-network/network-roles/operators.md#owners-cut) at the time of your Operator deployment. You'll be able to change this value later on, as long as you unstake from all Sponsorships first. The average cut Operators are choosing appears to be around 10%.
2121

22-
You can also practice your Operator deployment in the Polygon Amoy testnet environment with the [Streamr Hub](https://streamr.network/hub) (select "Polygon Amoy testnet" on the Streamr Hub). You'll need Amoy `MATIC` - widely available with [public faucets](https://faucet.polygon.technology/) and you'll need ` TEST` tokens (the Amoy network's worthless `DATA` tokens) - There is a `TEST` token faucet on the [Streamr Discord](https://discord.gg/gZAm8P7hK8).
22+
You can also practice your Operator deployment in the Polygon Amoy testnet environment with the [Streamr Hub](https://streamr.network/hub) (select "Polygon Amoy testnet" on the Streamr Hub). You'll need Amoy `POL` - widely available with [public faucets](https://faucet.polygon.technology/) and you'll need ` TEST` tokens (the Amoy network's worthless `DATA` tokens) - There is a `TEST` token faucet on the [Streamr Discord](https://discord.gg/gZAm8P7hK8).
2323

2424
### Step 2: Run a Streamr node
2525
Spin up a Streamr node using the **[How to run a Streamr node guide](./how-to-run-streamr-node.md#streamr-node-hardware-recommendations)**.
@@ -56,7 +56,7 @@ The format of your node config file should match [this template](./how-to-run-st
5656
After any config file change you should restart your node. If you're building your Operator in Amoy (for testing purposes), copy and paste [this config snippet](#amoy-node-config) instead.
5757

5858
### Step 4: Fund your Node address
59-
You’ll need a some `MATIC` (the gas token of Polygon) in your node address since the node(s) will periodically make transactions. 5 to 10 `MATIC` is recommended since the nodes will be making a few transactions per day.
59+
You’ll need a some `POL` (the gas token of Polygon) in your node address since the node(s) will periodically make transactions. 5 to 10 `POL` is recommended since the nodes will be making a few transactions per day.
6060

6161
If the node runs out of gas while they’re a part of an active Sponsorship, then a penalty may be applied to your unclaimed earnings. See [Operator value maintenance](../streamr-network/network-roles/operators.md#operator-maintenance).
6262

@@ -121,7 +121,7 @@ While the Streamr team provides regular updates on the **#node-announcements** D
121121
## The Amoy test environment
122122
The [Streamr Hub](https://streamr.network/hub) is the place to test out your Operator before creating it on Polygon with real tokens, just select "Polygon Amoy testnet" from top-right network selector. You'll need to use the [Amoy node config](./how-to-run-streamr-node.md#amoy-node-config).
123123

124-
You'll need Amoy `MATIC` - widely available with [public faucets](https://faucet.polygon.technology/) and you'll need ` TEST` tokens (the Amoy network's worthless `DATA` tokens) - There is a `TEST` token faucet on the [Streamr Discord](https://discord.gg/gZAm8P7hK8).
124+
You'll need Amoy `POL` - widely available with [public faucets](https://faucet.polygon.technology/) and you'll need ` TEST` tokens (the Amoy network's worthless `DATA` tokens) - There is a `TEST` token faucet on the [Streamr Discord](https://discord.gg/gZAm8P7hK8).
125125

126126
## Amoy node config
127127
Below is the template you can use to override and replace the contents of your config file with. You can copy this snippet or download the [JSON file](../../static/assets/testnet-default.json).

docs/docs/guides/how-to-stake-and-earn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Sponsorships are the source of incentivization. These are visible on [The Hub](h
2626
### The Amoy test environment
2727
The [Streamr Hub](https://streamr.network/hub) is the place to test out your Operator before creating it on Polygon with real tokens, just select "Polygon Amoy testnet" from the top-right dropdown.
2828

29-
You'll need Amoy `MATIC` - widely available with [public faucets](https://faucet.polygon.technology/) and you'll need ` TEST` tokens (the Amoy network's worthless `DATA` tokens) - There is a `TEST` token faucet on the [Streamr Discord](https://discord.gg/gZAm8P7hK8).
29+
You'll need Amoy `POL` - widely available with [public faucets](https://faucet.polygon.technology/) and you'll need ` TEST` tokens (the Amoy network's worthless `DATA` tokens) - There is a `TEST` token faucet on the [Streamr Discord](https://discord.gg/gZAm8P7hK8).
3030

3131
### Community resources
3232
- Tutorial videos. Follow at your own risk. Note that version numbers and exact instructions may change over time.

docs/docs/guides/nodejs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ This is a quickstart guide on creating your first stream using the Streamr TypeS
88
**Prerequisites:**
99
- NPM v8 or greater
1010
- NodeJS 18.13.x or greater (version 20 and later ideally)
11-
- A small amount of `MATIC` to pay for gas on Polygon mainnet. You can reachout to us on the #dev channel of [Discord](https://discord.gg/gZAm8P7hK8) for some tokens.
11+
- A small amount of `POL` to pay for gas on Polygon mainnet. You can reachout to us on the #dev channel of [Discord](https://discord.gg/gZAm8P7hK8) for some tokens.
1212

1313
:::tip Key Point:
14-
If you'd like to test out Streamr without needing `MATIC` to pay for stream creation and access control transactions then you can configure any Streamr app or node to be on Polygon Amoy.
14+
If you'd like to test out Streamr without needing `POL` to pay for stream creation and access control transactions then you can configure any Streamr app or node to be on Polygon Amoy.
1515

1616
Note that streams that are registered on one chain, cannot see or interact with streams on another chain (including the stream mentioned in this guide).
1717

@@ -50,7 +50,7 @@ User identity on Streamr is established via cryptographic keys. An Ethereum acco
5050
A stream is simply a **sequence of data points in time**, i.e. an append only log. This is semantically equivalent to **topics** in traditional pub/sub networks.
5151

5252
```ts
53-
// Requires MATIC tokens (Polygon blockchain gas token)
53+
// Requires POL tokens (Polygon blockchain gas token)
5454
const stream = await streamr.createStream({
5555
id: "/foo/bar",
5656
})
@@ -78,7 +78,7 @@ const stream = await streamr.getOrCreateStream({
7878
By default, the creator of the stream has full read, write and manage permissions over the stream, but if you'd like different addresses or public access controls to read and write (publish and subscribe) to your stream, then you'll need to add these permissions.
7979

8080
```ts
81-
// Requires MATIC tokens (Polygon blockchain gas token)
81+
// Requires POL tokens (Polygon blockchain gas token)
8282
await stream.grantPermissions({
8383
userId: "0x12345...",
8484
permissions: [StreamPermission.PUBLISH],

docs/docs/guides/use-any-language-or-device.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This tutorial will show you how to publish data into the Streamr Network from in
1111
- NPM v8 or greater
1212
- NodeJS 18.x or greater (Ideally v20+)
1313
- MacOS/Linux environments (Windows environments may require minor adjustments)
14-
- A small amount of `MATIC` to pay for gas on Polygon mainnet. You can reachout to us on the #dev channel of [Discord](https://discord.gg/gZAm8P7hK8) for some tokens.
14+
- A small amount of `POL` to pay for gas on Polygon mainnet. You can reachout to us on the #dev channel of [Discord](https://discord.gg/gZAm8P7hK8) for some tokens.
1515
- A MQTT library of your choice (this tutorial uses [MQTT.js](https://www.npmjs.com/package/mqtt))
1616

1717
If you have a Helium setup, you may benefit from reading this blog post first, [Helium x Streamr](https://blog.helium.com/helium-x-streamr-ea89c4b61a14)
@@ -67,7 +67,7 @@ $ npm install @streamr/sdk
6767
Having trouble installing the client? Maybe our [troubleshooting](../usage/sdk/how-to-use#Troubleshooting) section will help.
6868

6969
:::note
70-
Make sure the `PRIVATE_KEY` you add has a small amount of `MATIC` (the native token of the Polygon blockchain) in its wallet to pay for gas to create the stream and make the permission assignment.
70+
Make sure the `PRIVATE_KEY` you add has a small amount of `POL` (the native token of the Polygon blockchain) in its wallet to pay for gas to create the stream and make the permission assignment.
7171
:::
7272

7373
TODO: ** Create a stream widget **
@@ -92,7 +92,7 @@ const stream = await streamr.getOrCreateStream({
9292

9393
#### Assign permission to your Streamr node
9494

95-
The Streamr node **needs permission to publish data to your stream**. We will be granting the Streamr node `PUBLISH` and `SUBSCRIBE` permissions on the stream we just created. This step will consume a small amount of `MATIC` tokens.
95+
The Streamr node **needs permission to publish data to your stream**. We will be granting the Streamr node `PUBLISH` and `SUBSCRIBE` permissions on the stream we just created. This step will consume a small amount of `POL` tokens.
9696

9797
:::note
9898
Take care to not confuse `stream` with `streamr` ;)

docs/docs/guides/web-app-frameworks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In this quickstart guide, you'll be using Streamr in a **ReactJS** web applicati
1010
- NPM v8 or greater
1111
- NodeJS 18.x or greater (Ideally v20+)
1212
- A basic understanding of ReactJS or NextJS
13-
- A small amount of `MATIC` to pay for gas on Polygon mainnet. You can reachout to us on the #dev channel of [Discord](https://discord.gg/gZAm8P7hK8) for some tokens.
13+
- A small amount of `POL` to pay for gas on Polygon mainnet. You can reachout to us on the #dev channel of [Discord](https://discord.gg/gZAm8P7hK8) for some tokens.
1414

1515
## Setup & installation
1616

docs/docs/help/operator-faq.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ Yes.
140140
#### Can we share private key for 25 nodes? In this case will the Operator recognize 1 node or 25 nodes?
141141
Node addresses do not equal nodes. In other words, yes, you can share private keys among all your nodes.
142142

143-
#### Is there any benefit to having two or more node addresses added to the Operator and managing MATIC balance on multiple wallets instead of having a single node address for all nodes in my fleet?
143+
#### Is there any benefit to having two or more node addresses added to the Operator and managing POL balance on multiple wallets instead of having a single node address for all nodes in my fleet?
144144
It is perhaps easier to debug if something goes wrong but there's no other benefits to having multiple addresses for each of your fleet nodes.
145145

146146
#### As an Operator, can I generate the node signing key in memory?
147147
No. The node signing key must be known and persist so that it can be paired with the Operator Contract.
148148

149149
#### Which address do I need to fund?
150-
You need to fund your node address(es) with a small amount of `MATIC` tokens.
150+
You need to fund your node address(es) with a small amount of `POL` tokens.
151151

152152
### Troubleshooting common issues
153153
#### Issue:
@@ -245,7 +245,7 @@ The delegators will then simply leave and delegate to someone else, as they are
245245
No, you will need to periodically check and claim your uncollected earnings from the Operator(s) that you have staked/delegated on.
246246

247247
#### How does the auto collect earnings work?
248-
Nodes work on a collection trigger which is based on how much value there is to collect. The limit to decide whether the earnings are collected upon checking is configurable, and this is defined relative to the limit. The default is halfway to the limit, meaning that uncollected earnings are collected when they equal at least 2.5% of Operator stake. If nodes are running and have enough `MATIC` to pay for gas, then the 5% uncollected limit should not be exceeded.
248+
Nodes work on a collection trigger which is based on how much value there is to collect. The limit to decide whether the earnings are collected upon checking is configurable, and this is defined relative to the limit. The default is halfway to the limit, meaning that uncollected earnings are collected when they equal at least 2.5% of Operator stake. If nodes are running and have enough `POL` to pay for gas, then the 5% uncollected limit should not be exceeded.
249249

250250
These check runs every hour by default.
251251

docs/docs/streamr-network/network-roles/operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The Operator’s cut is the percentage taken by the Operator from all earnings.
7575
#### Operator uncollected earnings limit
7676
Operators continuously earn rewards from Sponsorships on every block. For the Operator’s total value to be correctly reflected on-chain, those earnings must be periodically collected to limit the error between the recorded on-chain value and the ‘real-time’ value of the Operator, which constantly changes due to uncollected earnings accumulating.
7777

78-
Normally, the node software handles this earnings collection and maintenance of Operator value automatically. The Operator is responsible for ensuring that this happens by ensuring their nodes are running and the wallets of their nodes have enough `MATIC` to pay gas for transactions.
78+
Normally, the node software handles this earnings collection and maintenance of Operator value automatically. The Operator is responsible for ensuring that this happens by ensuring their nodes are running and the wallets of their nodes have enough `POL` to pay gas for transactions.
7979

8080
The uncollected earnings limit has been set to 5% and this value is subject to change by Streamr DAO governance vote.
8181

@@ -90,7 +90,7 @@ This reward is set to 25% and this value is subject to change by Streamr DAO gov
9090
Streamr nodes are also the validators in the Streamr Network. They inspect and validate that other nodes in the same [sponsored stream] are doing the work
9191
If an operator fails completely (all their nodes go offline), they will eventually get flagged in all the sponsorships where they are staked. So yes more Sponsorships means more flagging in this case.
9292

93-
If the flags are raised by the random inspection process, it's likely that the flags will be raised evenly by all the other operators, so no one operator's MATIC balance gets a major unexpected drain.
93+
If the flags are raised by the random inspection process, it's likely that the flags will be raised evenly by all the other operators, so no one operator's POL balance gets a major unexpected drain.
9494

9595
By default, nodes inspect each other quite lazily (pick one operator-sponsorship-partition triplet every 15 minutes). However, correctly flagging and voting is profitable, so more 'eager' flaggers might appear in the network, with smarter inspection strategies - for example if a node gets slashed in one sponsorship, it might be worthwhile for someone to inspect them in all their other sponsorships too, and raise flags if the inspection fails.
9696
How to earn DATA tokens by being an Operator

docs/docs/usage/streams/creating-streams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 2
44

55
# Creating streams
66
```ts
7-
// Requires MATIC tokens (Polygon blockchain gas token)
7+
// Requires POL tokens (Polygon blockchain gas token)
88
const stream = await streamr.createStream({
99
id: '/foo/bar',
1010
});
@@ -15,7 +15,7 @@ console.log(stream.id); // e.g. `0x12345.../foo/bar`
1515
You can also create a stream by defining the address in the provided id. Please note that the creation will only succeed if you specify the same address as provided for authentication when creating the `streamr` instance:
1616

1717
```ts
18-
// Requires MATIC tokens (Polygon blockchain gas token)
18+
// Requires POL tokens (Polygon blockchain gas token)
1919
const stream = await streamr.createStream({
2020
id: `${address}/foo/bar`,
2121
});

docs/docs/usage/streams/interacting-with-streams.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const stream = await streamr.getStream(streamId);
1313
The method getOrCreateStream gets the stream if it exists, and if not, creates it:
1414

1515
```ts
16-
// May require MATIC tokens (Polygon blockchain gas token)
16+
// May require POL tokens (Polygon blockchain gas token)
1717
const stream = await streamr.getOrCreateStream({
1818
id: streamId,
1919
});
@@ -23,7 +23,7 @@ const stream = await streamr.getOrCreateStream({
2323
To update the description of a stream:
2424

2525
```ts
26-
// Requires MATIC tokens (Polygon blockchain gas token)
26+
// Requires POL tokens (Polygon blockchain gas token)
2727
await stream.update({
2828
description: 'New description',
2929
});
@@ -33,6 +33,6 @@ await stream.update({
3333
To delete a stream:
3434

3535
```ts
36-
// Requires MATIC tokens (Polygon blockchain gas token)
36+
// Requires POL tokens (Polygon blockchain gas token)
3737
await stream.delete();
3838
```

docs/docs/usage/streams/partitioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Create new partions if your messages extend approx. 100 msg/sec per partition.
3131
By default, streams only have 1 partition when they are created. The partition count can be set to any number between 1 and 100. An example of creating a partitioned stream:
3232

3333
```ts
34-
// Requires MATIC tokens (Polygon blockchain gas token)
34+
// Requires POL tokens (Polygon blockchain gas token)
3535
const stream = await streamr.createStream({
3636
id: `/foo/bar`,
3737
partitions: 10,

0 commit comments

Comments
 (0)