You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rewrite ^/docs/(?!(?:[a-zA-Z][a-zA-Z]|_next|img)(?:/|$))(.*)$ $scheme://$http_host/docs/en/$1 permanent; # Redirect to `/en` if no language in URL and not an asset URL
47
+
# Redirect to `/en` if no language in URL and not an asset URL
Copy file name to clipboardExpand all lines: website/pages/ar/cookbook/near.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ title: بناء Subgraphs على NEAR
37
37
38
38
**schema.graphql:** a schema file that defines what data is stored for your subgraph, and how to query it via GraphQL. The requirements for NEAR subgraphs are covered by [the existing documentation](/developing/creating-a-subgraph#the-graphql-schema).
39
39
40
-
**AssemblyScript Mappings:**[AssemblyScript code](/developing/assemblyscript-api) that translates from the event data to the entities defined in your schema. NEAR support introduces NEAR-specific data types and new JSON parsing functionality.
40
+
**AssemblyScript Mappings:**[AssemblyScript code](/developing/graph-ts/api) that translates from the event data to the entities defined in your schema. NEAR support introduces NEAR-specific data types and new JSON parsing functionality.
41
41
42
42
During subgraph development there are two key commands:
43
43
@@ -98,7 +98,7 @@ Schema definition describes the structure of the resulting subgraph database and
98
98
99
99
تمت كتابة المعالجات(handlers) الخاصة بمعالجة الأحداث بـ[ AssemblyScript ](https://www.assemblyscript.org/).
100
100
101
-
NEAR indexing introduces NEAR-specific data types to the [AssemblyScript API](/developing/assemblyscript-api).
101
+
NEAR indexing introduces NEAR-specific data types to the [AssemblyScript API](/developing/graph-ts/api).
102
102
103
103
```typescript
104
104
@@ -165,9 +165,9 @@ These types are passed to block & receipt handlers:
165
165
- معالجات الكتلة ستتلقى`Block`
166
166
- معالجات الاستلام ستتلقى`ReceiptWithOutcome`
167
167
168
-
Otherwise, the rest of the [AssemblyScript API](/developing/assemblyscript-api) is available to NEAR subgraph developers during mapping execution.
168
+
Otherwise, the rest of the [AssemblyScript API](/developing/graph-ts/api) is available to NEAR subgraph developers during mapping execution.
169
169
170
-
This includes a new JSON parsing function - logs on NEAR are frequently emitted as stringified JSONs. A new `json.fromString(...)` function is available as part of the [JSON API](/developing/assemblyscript-api#json-api) to allow developers to easily process these logs.
170
+
This includes a new JSON parsing function - logs on NEAR are frequently emitted as stringified JSONs. A new `json.fromString(...)` function is available as part of the [JSON API](/developing/graph-ts/api#json-api) to allow developers to easily process these logs.
Copy file name to clipboardExpand all lines: website/pages/ar/developing/creating-a-subgraph.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1477,7 +1477,7 @@ The file data source must specifically mention all the entity types which it wil
1477
1477
1478
1478
#### Create a new handler to process files
1479
1479
1480
-
This handler should accept one `Bytes` parameter, which will be the contents of the file, when it is found, which can then be processed. This will often be a JSON file, which can be processed with `graph-ts` helpers ([documentation](/developing/assemblyscript-api/#json-api)).
1480
+
This handler should accept one `Bytes` parameter, which will be the contents of the file, when it is found, which can then be processed. This will often be a JSON file, which can be processed with `graph-ts` helpers ([documentation](/developing/graph-ts/api/#json-api)).
1481
1481
1482
1482
The CID of the file as a readable string can be accessed via the `dataSource` as follows:
Copy file name to clipboardExpand all lines: website/pages/ar/developing/unit-testing-framework.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1368,7 +1368,7 @@ The log output includes the test run duration. Here's an example:
1368
1368
1369
1369
> Critical: Could not create WasmInstance from valid module with context: unknown import: wasi_snapshot_preview1::fd_write has not been defined
1370
1370
1371
-
This means you have used `console.log`in your code, which is not supported by AssemblyScript. Please consider using the [Logging API](/developing/assemblyscript-api/#logging-api)
1371
+
This means you have used `console.log`in your code, which is not supported by AssemblyScript. Please consider using the [Logging API](/developing/graph-ts/api/#logging-api)
0 commit comments