Skip to content

Commit 0982388

Browse files
committed
Run Prettier
1 parent 90e4f2f commit 0982388

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+249
-230
lines changed

pages/ar/curating.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ title: (التنسيق) curating
100100
title="مشغل فيديو يوتيوب"
101101
frameBorder="0"
102102
allowFullScreen
103-
></iframe>
103+
></iframe>
104104
</figure>

pages/ar/delegating.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ This guide will explain how to be an effective delegator in the Graph Network. D
2828

2929
يجب اختيار المفهرس بحكمة. إذا اخترت مفهرسا ليس جديرا بالثقة ، أو لا يقوم بعمل جيد ، فستحتاج إلى إلغاء التفويض ، مما يعني أنك ستفقد الكثير من الفرص لكسب المكافآت والتي يمكن أن تكون سيئة مثل حرق GRT.
3030

31-
<div sx={{ mx: 'auto', maxWidth: '400px' }}>
32-
لاحظ 0.5٪ رسوم التفويض ، بالإضافة إلى فترة 28 يوما لإلغاء التفويض.
33-
</div>
31+
<div sx={{ mx: 'auto', maxWidth: '400px' }}>لاحظ 0.5٪ رسوم التفويض ، بالإضافة إلى فترة 28 يوما لإلغاء التفويض.</div>
3432

3533
### اختيار مفهرس جدير بالثقة مع عائد جيد للمفوضين
3634

@@ -88,5 +86,5 @@ Using this formula, we can see that it is actually possible for an indexer who i
8886
title="مشغل فيديو يوتيوب"
8987
frameBorder="0"
9088
allowFullScreen
91-
></iframe>
89+
></iframe>
9290
</figure>

pages/ar/developer/assemblyscript-api.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ The `@graphprotocol/graph-ts` library provides the following APIs:
4343

4444
The `apiVersion` in the subgraph manifest specifies the mapping API version which is run by Graph Node for a given subgraph. The current mapping API version is 0.0.6.
4545

46-
| Version | Release notes |
47-
|:-------:| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
48-
| 0.0.6 | Added `nonce` field to the Ethereum Transaction object<br />Added `baseFeePerGas` to the Ethereum Block object |
49-
| 0.0.5 | AssemblyScript upgraded to version 0.19.10 (this includes breaking changes, please see the [`Migration Guide`](/developer/assemblyscript-migration-guide))<br />`ethereum.transaction.gasUsed` renamed to `ethereum.transaction.gasLimit` |
50-
| 0.0.4 | Added `functionSignature` field to the Ethereum SmartContractCall object |
51-
| 0.0.3 | Added `from` field to the Ethereum Call object<br />`etherem.call.address` renamed to `ethereum.call.to` |
52-
| 0.0.2 | Added `input` field to the Ethereum Transaction object |
46+
| Version | Release notes |
47+
| :-: | --- |
48+
| 0.0.6 | Added `nonce` field to the Ethereum Transaction object<br />Added `baseFeePerGas` to the Ethereum Block object |
49+
| 0.0.5 | AssemblyScript upgraded to version 0.19.10 (this includes breaking changes, please see the [`Migration Guide`](/developer/assemblyscript-migration-guide))<br />`ethereum.transaction.gasUsed` renamed to `ethereum.transaction.gasLimit` |
50+
| 0.0.4 | Added `functionSignature` field to the Ethereum SmartContractCall object |
51+
| 0.0.3 | Added `from` field to the Ethereum Call object<br />`etherem.call.address` renamed to `ethereum.call.to` |
52+
| 0.0.2 | Added `input` field to the Ethereum Transaction object |
5353

5454
### Built-in Types
5555

pages/ar/developer/assemblyscript-migration-guide.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,11 @@ ERROR TS2451: Cannot redeclare block-scoped variable 'a'
127127
~~~~~~~~~~~~~
128128
in assembly/index.ts(4,3)
129129
```
130+
130131
You'll need to rename your duplicate variables if you had variable shadowing.
132+
131133
### Null Comparisons
134+
132135
By doing the upgrade on your subgraph, sometimes you might get errors like these:
133136

134137
```typescript
@@ -137,6 +140,7 @@ ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigInt | null' i
137140
~~~~
138141
in src/mappings/file.ts(41,21)
139142
```
143+
140144
To solve you can simply change the `if` statement to something like this:
141145
142146
```typescript
@@ -281,6 +285,7 @@ ERROR TS2322: Type '~lib/string/String | null' is not assignable to type '~lib/s
281285
let somethingOrElse: string = container.data ? container.data : "else";
282286
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
283287
```
288+
284289
To fix this issue, you can create a variable for that property access so that the compiler can do the nullability check magic:
285290
286291
```typescript

pages/ar/developer/create-subgraph-hosted.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,15 @@ Each entity must have an `id` field, which is of type `ID!` (string). The `id` f
218218

219219
We support the following scalars in our GraphQL API:
220220

221-
| Type | Description |
222-
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
223-
| `Bytes` | Byte array, represented as a hexadecimal string. Commonly used for Ethereum hashes and addresses. |
224-
| `ID` | Stored as a `string`. |
225-
| `String` | Scalar for `string` values. Null characters are not supported and are automatically removed. |
226-
| `Boolean` | Scalar for `boolean` values. |
227-
| `Int` | The GraphQL spec defines `Int` to have size of 32 bytes. |
228-
| `BigInt` | Large integers. Used for Ethereum's `uint32`, `int64`, `uint64`, ..., `uint256` types. Note: Everything below `uint32`, such as `int32`, `uint24` or `int8` is represented as `i32`. |
229-
| `BigDecimal` | `BigDecimal` High precision decimals represented as a signficand and an exponent. The exponent range is from −6143 to +6144. Rounded to 34 significant digits. |
221+
| Type | Description |
222+
| --- | --- |
223+
| `Bytes` | Byte array, represented as a hexadecimal string. Commonly used for Ethereum hashes and addresses. |
224+
| `ID` | Stored as a `string`. |
225+
| `String` | Scalar for `string` values. Null characters are not supported and are automatically removed. |
226+
| `Boolean` | Scalar for `boolean` values. |
227+
| `Int` | The GraphQL spec defines `Int` to have size of 32 bytes. |
228+
| `BigInt` | Large integers. Used for Ethereum's `uint32`, `int64`, `uint64`, ..., `uint256` types. Note: Everything below `uint32`, such as `int32`, `uint24` or `int8` is represented as `i32`. |
229+
| `BigDecimal` | `BigDecimal` High precision decimals represented as a signficand and an exponent. The exponent range is from −6143 to +6144. Rounded to 34 significant digits. |
230230

231231
#### Enums
232232

@@ -627,7 +627,7 @@ export function handleNewExchange(event: NewExchange): void {
627627
```
628628

629629
> **Note:** A new data source will only process the calls and events for the block in which it was created and all following blocks, but will not process historical data, i.e., data that is contained in prior blocks.
630-
>
630+
>
631631
> If prior blocks contain data relevant to the new data source, it is best to index that data by reading the current state of the contract and creating entities representing that state at the time the new data source is created.
632632
633633
### Data Source Context
@@ -684,7 +684,7 @@ dataSources:
684684
```
685685
686686
> **Note:** The contract creation block can be quickly looked up on Etherscan:
687-
>
687+
>
688688
> 1. Search for the contract by entering its address in the search bar.
689689
> 2. Click on the creation transaction hash in the `Contract Creator` section.
690690
> 3. Load the transaction details page where you'll find the start block for that contract.

pages/ar/developer/graphql-api.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ Fulltext search queries have one required field, `text`, for supplying search te
204204

205205
Fulltext search operators:
206206

207-
| Symbol | Operator | Description |
208-
| ----------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------ |
209-
| `&` | `And` | For combining multiple search terms into a filter for entities that include all of the provided terms |
210-
| &#x7c; | `Or` | Queries with multiple search terms separated by the or operator will return all entities with a match from any of the provided terms |
211-
| `<->` | `Follow by` | Specify the distance between two words. |
212-
| `:*` | `Prefix` | Use the prefix search term to find words whose prefix match (2 characters required.) |
207+
| Symbol | Operator | Description |
208+
| --- | --- | --- |
209+
| `&` | `And` | For combining multiple search terms into a filter for entities that include all of the provided terms |
210+
| &#x7c; | `Or` | Queries with multiple search terms separated by the or operator will return all entities with a match from any of the provided terms |
211+
| `<->` | `Follow by` | Specify the distance between two words. |
212+
| `:*` | `Prefix` | Use the prefix search term to find words whose prefix match (2 characters required.) |
213213

214214
#### Examples
215215

pages/ar/explorer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: مستكشف
1111
title="مشغل فيديو يوتيوب"
1212
frameBorder="0"
1313
allowFullScreen
14-
></iframe>
14+
></iframe>
1515
</figure>
1616

1717
## Subgraphs

pages/ar/hosted-service/migrating-subgraph.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ If you're still confused, fear not! Check out the following resources or watch o
142142
title="مشغل فيديو يوتيوب"
143143
frameBorder="0"
144144
allowFullScreen
145-
></iframe>
145+
></iframe>
146146
</figure>
147147

148148
- [The Graph Network Contracts](https://github.com/graphprotocol/contracts)

pages/ar/indexing.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Disputes can be viewed in the UI in an Indexer's profile page under the `Dispute
115115
- **كبيرة** - مُعدة لفهرسة جميع ال subgraphs المستخدمة حاليا وأيضا لخدمة طلبات حركة المرور البيانات ذات الصلة.
116116

117117
| Setup | (CPUs) | (memory in GB) | (disk in TBs) | (CPUs) | (memory in GB) |
118-
| ----- |:------:|:--------------:|:-------------:|:------:|:--------------:|
118+
| ----- | :----: | :------------: | :-----------: | :----: | :------------: |
119119
| صغير | 4 | 8 | 1 | 4 | 16 |
120120
| قياسي | 8 | 30 | 1 | 12 | 48 |
121121
| متوسط | 16 | 64 | 2 | 32 | 64 |
@@ -149,20 +149,20 @@ Disputes can be viewed in the UI in an Indexer's profile page under the `Dispute
149149
150150
#### Graph Node
151151

152-
| Port | Purpose | Routes | CLI Argument | Environment Variable |
153-
| ---- | ------------------------------------------------------- | ------------------------------------------------------------------- | ----------------- | -------------------- |
154-
| 8000 | GraphQL HTTP server <br /> (for subgraph queries) | /subgraphs/id/... <br /> <br /> /subgraphs/name/.../... | --http-port | - |
155-
| 8001 | GraphQL WS <br /> (for subgraph subscriptions) | /subgraphs/id/... <br /> <br /> /subgraphs/name/.../... | --ws-port | - |
156-
| 8020 | JSON-RPC <br /> (for managing deployments) | / | --admin-port | - |
157-
| 8030 | Subgraph indexing status API | /graphql | --index-node-port | - |
158-
| 8040 | Prometheus metrics | /metrics | --metrics-port | - |
152+
| Port | Purpose | Routes | CLI Argument | Environment Variable |
153+
| --- | --- | --- | --- | --- |
154+
| 8000 | GraphQL HTTP server <br /> (for subgraph queries) | /subgraphs/id/... <br /> <br /> /subgraphs/name/.../... | --http-port | - |
155+
| 8001 | GraphQL WS <br /> (for subgraph subscriptions) | /subgraphs/id/... <br /> <br /> /subgraphs/name/.../... | --ws-port | - |
156+
| 8020 | JSON-RPC <br /> (for managing deployments) | / | --admin-port | - |
157+
| 8030 | Subgraph indexing status API | /graphql | --index-node-port | - |
158+
| 8040 | Prometheus metrics | /metrics | --metrics-port | - |
159159

160160
#### خدمة المفهرس
161161

162-
| Port | Purpose | Routes | CLI Argument | Environment Variable |
163-
| ---- | ------------------------------------------------------------ | --------------------------------------------------------------------------- | -------------- | ---------------------- |
164-
| 7600 | GraphQL HTTP server <br /> (for paid subgraph queries) | /subgraphs/id/... <br /> /status <br /> /channel-messages-inbox | --port | `INDEXER_SERVICE_PORT` |
165-
| 7300 | Prometheus metrics | /metrics | --metrics-port | - |
162+
| Port | Purpose | Routes | CLI Argument | Environment Variable |
163+
| --- | --- | --- | --- | --- |
164+
| 7600 | GraphQL HTTP server <br /> (for paid subgraph queries) | /subgraphs/id/... <br /> /status <br /> /channel-messages-inbox | --port | `INDEXER_SERVICE_PORT` |
165+
| 7300 | Prometheus metrics | /metrics | --metrics-port | - |
166166

167167
#### Indexer Agent
168168

pages/ar/studio/billing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ For a quick demo of how billing works on the Subgraph Studio, check out the vide
4646
title="مشغل فيديو يوتيوب"
4747
frameBorder="0"
4848
allowFullScreen
49-
></iframe>
49+
></iframe>
5050
</figure>
5151

5252
### Multisig Users

0 commit comments

Comments
 (0)