Skip to content

Commit 62c56de

Browse files
authored
New Crowdin updates (#169)
* New translations overview.mdx (Spanish) * New translations assemblyscript-migration-guide.mdx (Spanish) * New translations about.mdx (Spanish) * New translations about.mdx (Arabic) * New translations about.mdx (Japanese) * New translations overview.mdx (Arabic) * New translations overview.mdx (Korean) * New translations about.mdx (Korean) * New translations overview.mdx (Japanese) * New translations overview.mdx (Chinese Simplified) * New translations about.mdx (Chinese Simplified) * New translations overview.mdx (Vietnamese) * New translations about.mdx (Vietnamese) * New translations global.json (Urdu (Pakistan)) * New translations index.json (Urdu (Pakistan)) * New translations near.mdx (Urdu (Pakistan)) * New translations migrating-a-subgraph.mdx (Urdu (Pakistan)) * New translations near.mdx (Urdu (Pakistan)) * New translations arweave.mdx (Urdu (Pakistan)) * New translations cosmos.mdx (Urdu (Pakistan)) * New translations about.mdx (Urdu (Pakistan)) * New translations benefits.mdx (Urdu (Pakistan)) * New translations curating.mdx (Urdu (Pakistan)) * New translations benefits.mdx (Urdu (Pakistan)) * New translations grafting.mdx (Urdu (Pakistan)) * New translations delegating.mdx (Urdu (Pakistan)) * New translations developing.mdx (Urdu (Pakistan)) * New translations quick-start.mdx (Urdu (Pakistan)) * New translations subgraph-debug-forking.mdx (Urdu (Pakistan)) * New translations subgraph-studio-faqs.mdx (Urdu (Pakistan)) * New translations hosted-service.mdx (Urdu (Pakistan)) * New translations deploying-a-subgraph-to-studio.mdx (Urdu (Pakistan)) * New translations deploying-a-subgraph-to-hosted.mdx (Urdu (Pakistan)) * New translations assemblyscript-api.mdx (Urdu (Pakistan)) * New translations subgraph-studio.mdx (Urdu (Pakistan)) * New translations benefits.mdx (Urdu (Pakistan)) * New translations global.json (Urdu (Pakistan)) * New translations developer-faqs.mdx (Urdu (Pakistan)) * New translations distributed-systems.mdx (Urdu (Pakistan)) * New translations explorer.mdx (Urdu (Pakistan)) * New translations overview.mdx (Urdu (Pakistan)) * New translations managing-api-keys.mdx (Urdu (Pakistan)) * New translations transferring-subgraph-ownership.mdx (Urdu (Pakistan)) * New translations docsearch.json (Urdu (Pakistan)) * New translations supported-networks.mdx (Urdu (Pakistan)) * New translations unit-testing-framework.mdx (Urdu (Pakistan)) * New translations deprecating-a-subgraph.mdx (Urdu (Pakistan)) * New translations publishing-a-subgraph.mdx (Urdu (Pakistan)) * New translations querying-best-practices.mdx (Urdu (Pakistan)) * New translations querying-the-graph.mdx (Urdu (Pakistan)) * New translations querying-the-hosted-service.mdx (Urdu (Pakistan)) * New translations assemblyscript-migration-guide.mdx (Urdu (Pakistan)) * New translations billing.mdx (Urdu (Pakistan)) * New translations firehose.mdx (Urdu (Pakistan)) * New translations substreams.mdx (Urdu (Pakistan)) * New translations graphql-api.mdx (Urdu (Pakistan)) * New translations querying-from-an-application.mdx (Urdu (Pakistan)) * New translations operating-graph-node.mdx (Urdu (Pakistan)) * New translations global.json (Ukrainian) * New translations index.json (Ukrainian) * New translations docsearch.json (Ukrainian) * New translations curating.mdx (Ukrainian) * New translations delegating.mdx (Ukrainian) * New translations benefits.mdx (Ukrainian) * New translations developing.mdx (Ukrainian) * New translations creating-a-subgraph.mdx (Urdu (Pakistan)) * New translations firehose.mdx (Russian) * New translations network-transition-faq.mdx (Urdu (Pakistan)) * New translations substreams.mdx (Spanish) * New translations operating-graph-node.mdx (Urdu (Pakistan)) * New translations indexing.mdx (Urdu (Pakistan)) * New translations billing.mdx (Urdu (Pakistan)) * New translations migrating-a-subgraph.mdx (Urdu (Pakistan)) * New translations cosmos.mdx (Urdu (Pakistan)) * New translations arweave.mdx (Urdu (Pakistan)) * New translations near.mdx (Urdu (Pakistan)) * New translations quick-start.mdx (Urdu (Pakistan)) * New translations subgraph-debug-forking.mdx (Urdu (Pakistan)) * New translations deploying-a-subgraph-to-hosted.mdx (Urdu (Pakistan)) * New translations network-transition-faq.mdx (Urdu (Pakistan)) * New translations index.json (French) * New translations about.mdx (French) * New translations deprecating-a-subgraph.mdx (French) * New translations transferring-subgraph-ownership.mdx (French) * New translations publishing-a-subgraph.mdx (French) * New translations querying-the-hosted-service.mdx (French) * New translations substreams.mdx (French) * New translations about.mdx (French) * New translations cosmos.mdx (Urdu (Pakistan)) * New translations subgraph-debug-forking.mdx (Urdu (Pakistan)) * New translations explorer.mdx (Urdu (Pakistan)) * New translations grafting.mdx (Urdu (Pakistan)) * New translations billing.mdx (Spanish) * New translations developing.mdx (Spanish) * New translations grafting.mdx (Spanish) * New translations tokenomics.mdx (Spanish) * New translations quick-start.mdx (Spanish) * New translations subgraph-debug-forking.mdx (Spanish) * New translations deploying-a-subgraph-to-studio.mdx (Spanish) * New translations quick-start.mdx (Russian) * New translations tokenomics.mdx (Russian) * New translations arweave.mdx (Spanish) * New translations deploying-a-subgraph-to-hosted.mdx (Spanish) * New translations delegating.mdx (Spanish) * New translations network-transition-faq.mdx (Spanish) * New translations subgraph-studio.mdx (Spanish) * New translations deprecating-a-subgraph.mdx (Spanish) * New translations subgraph-studio.mdx (Spanish) * New translations about.mdx (Spanish) * New translations overview.mdx (Spanish) * New translations network-transition-faq.mdx (Spanish) * Run `yarn lint:fix` * New translations subgraph-debug-forking.mdx (Spanish) * New translations arweave.mdx (Russian) * New translations quick-start.mdx (Russian) * New translations subgraph-debug-forking.mdx (Russian) * New translations hosted-service.mdx (Russian) * New translations network-transition-faq.mdx (Spanish) * New translations tokenomics.mdx (Russian) * New translations cosmos.mdx (Urdu (Pakistan)) * New translations near.mdx (Urdu (Pakistan)) * New translations subgraph-debug-forking.mdx (Urdu (Pakistan)) * New translations delegating.mdx (Ukrainian) * New translations unit-testing-framework.mdx (Urdu (Pakistan)) * New translations delegating.mdx (Urdu (Pakistan)) * New translations indexing.mdx (Urdu (Pakistan)) * New translations graphql-api.mdx (Urdu (Pakistan)) * New translations querying-best-practices.mdx (Urdu (Pakistan)) * New translations assemblyscript-migration-guide.mdx (Urdu (Pakistan)) * New translations operating-graph-node.mdx (Urdu (Pakistan)) * New translations subgraph-uncrashable.mdx (Russian) * Run `yarn lint:fix` * New translations subgraph-debug-forking.mdx (Spanish) * New translations subgraph-debug-forking.mdx (Russian) * New translations network-transition-faq.mdx (Spanish) * New translations cosmos.mdx (Urdu (Pakistan)) * New translations near.mdx (Urdu (Pakistan)) * New translations subgraph-debug-forking.mdx (Urdu (Pakistan)) * New translations delegating.mdx (Ukrainian) * New translations unit-testing-framework.mdx (Urdu (Pakistan)) * New translations delegating.mdx (Urdu (Pakistan)) * New translations indexing.mdx (Urdu (Pakistan)) * New translations graphql-api.mdx (Urdu (Pakistan)) * New translations querying-best-practices.mdx (Urdu (Pakistan)) * New translations assemblyscript-migration-guide.mdx (Urdu (Pakistan)) * New translations operating-graph-node.mdx (Urdu (Pakistan)) * New translations subgraph-uncrashable.mdx (Russian) * Run `yarn lint:fix`
1 parent ef753e3 commit 62c56de

File tree

94 files changed

+12308
-305
lines changed

Some content is hidden

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

94 files changed

+12308
-305
lines changed

pages/ar/about.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: مقدمة
2+
title: حول The Graph
33
---
44

55
هذه الصفحة ستشرح The Graph وكيف يمكنك أن تبدأ.

pages/ar/network/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: نظرة عامة حول الشبكة
3-
navTitle: Overview
3+
navTitle: نظره عامة
44
---
55

66
شبكة The Graph هو بروتوكول فهرسة لامركزي لتنظيم بيانات الـ blockchain. التطبيقات تستخدم GraphQL للاستعلام عن APIs المفتوحة والتي تسمى subgraphs ، لجلب البيانات المفهرسة على الشبكة. باستخدام The Graph ، يمكن للمطورين إنشاء تطبيقات بدون خادم تعمل بالكامل على البنية الأساسية العامة.

pages/en/cookbook/subgraph-uncrashable.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,26 @@ title: Safe Subgraph Code Generator
44

55
[Subgraph Uncrashable](https://float-capital.github.io/float-subgraph-uncrashable/) is a code generation tool that generates a set of helper functions from the graphql schema of a project. It ensures that all interactions with entities in your subgraph are completely safe and consistent.
66

7-
87
### Why integrate with Subgraph Uncrashable?
98

10-
- **Continuous Uptime**. Mishandled entities may cause subgraphs to crash, which can be disruptive for projects that are dependent on The Graph. Set up helper functions to make your subgraphs “uncrashable” and ensure business continuity.
9+
- **Continuous Uptime**. Mishandled entities may cause subgraphs to crash, which can be disruptive for projects that are dependent on The Graph. Set up helper functions to make your subgraphs “uncrashable” and ensure business continuity.
1110

12-
- **Completely Safe**. Common problems seen in subgraph development are issues of loading undefined entities, not setting or initializing all values of entities, and race conditions on loading and saving entities. Ensure all interactions with entities are completely atomic.
11+
- **Completely Safe**. Common problems seen in subgraph development are issues of loading undefined entities, not setting or initializing all values of entities, and race conditions on loading and saving entities. Ensure all interactions with entities are completely atomic.
1312

14-
- **User Configurable** Set default values and configure the level of security checks that suits your individual project's needs. Warning logs are recorded indicating where there is a breach of subgraph logic to help patch the issue to ensure data accuracy.
13+
- **User Configurable** Set default values and configure the level of security checks that suits your individual project's needs. Warning logs are recorded indicating where there is a breach of subgraph logic to help patch the issue to ensure data accuracy.
1514

1615
**Key Features**
1716

18-
- The code generation tool accommodates **all** subgraph types and is configurable for users to set sane defaults on values. The code generation will use this config to generate helper functions that are to the users specification.
17+
- The code generation tool accommodates **all** subgraph types and is configurable for users to set sane defaults on values. The code generation will use this config to generate helper functions that are to the users specification.
1918

20-
- The framework also includes a way (via the config file) to create custom, but safe, setter functions for groups of entity variables. This way it is impossible for the user to load/use a stale graph entity and it is also impossible to forget to save or set a variable that is required by the function.
19+
- The framework also includes a way (via the config file) to create custom, but safe, setter functions for groups of entity variables. This way it is impossible for the user to load/use a stale graph entity and it is also impossible to forget to save or set a variable that is required by the function.
2120

22-
- Warning logs are recorded as logs indicating where there is a breach of subgraph logic to help patch the issue to ensure data accuracy. These logs can be viewed in the The Graph's hosted service under the 'Logs' section.
21+
- Warning logs are recorded as logs indicating where there is a breach of subgraph logic to help patch the issue to ensure data accuracy. These logs can be viewed in the The Graph's hosted service under the 'Logs' section.
2322

2423
Subgraph Uncrashable can be run as an optional flag using the Graph CLI codegen command.
2524

2625
```sh
2726
graph codegen -u [options] [<subgraph-manifest>]
2827
```
2928

30-
Visit the [subgraph uncrashable documentation](https://float-capital.github.io/float-subgraph-uncrashable/docs/) or watch this [video tutorial](https://float-capital.github.io/float-subgraph-uncrashable/docs/tutorial) to learn more and to get started with developing safer subgraphs.
29+
Visit the [subgraph uncrashable documentation](https://float-capital.github.io/float-subgraph-uncrashable/docs/) or watch this [video tutorial](https://float-capital.github.io/float-subgraph-uncrashable/docs/tutorial) to learn more and to get started with developing safer subgraphs.

pages/en/developing/creating-a-subgraph.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,6 @@ import { Gravatar } from '../generated/schema'
562562
563563
Code generation does not check your mapping code in `src/mapping.ts`. If you want to check that before trying to deploy your subgraph to the Graph Explorer, you can run `yarn build` and fix any syntax errors that the TypeScript compiler might find.
564564

565-
566565
## Data Source Templates
567566

568567
A common pattern in Ethereum smart contracts is the use of registry or factory contracts, where one contract creates, manages, or references an arbitrary number of other contracts that each have their own state and events. The addresses of these sub-contracts may or may not be known upfront and many of these contracts may be created and/or added over time. This is why, in such cases, defining a single data source or a fixed number of data sources is impossible and a more dynamic approach is needed: _data source templates_.
@@ -1067,10 +1066,10 @@ Example handler:
10671066

10681067
```typescript
10691068
import { json, Bytes, dataSource } from '@graphprotocol/graph-ts'
1070-
import { TokenMetadata } from "../generated/schema"
1069+
import { TokenMetadata } from '../generated/schema'
10711070
10721071
export function handleMetadata(content: Bytes): void {
1073-
let tokenMetadata = new TokenMetadata(dataSource.stringParam());
1072+
let tokenMetadata = new TokenMetadata(dataSource.stringParam())
10741073
const value = json.fromBytes(content).toObject()
10751074
if (value) {
10761075
const image = value.get('image')
@@ -1104,7 +1103,7 @@ Example:
11041103
```typescript
11051104
import { TokenMetadata as TokenMetadataTemplate } from '../generated/templates'
11061105
1107-
const ipfshash = "QmaXzZhcYnsisuue5WRdQDH6FDvqkLQX1NckLqBYeYYEfm"
1106+
const ipfshash = 'QmaXzZhcYnsisuue5WRdQDH6FDvqkLQX1NckLqBYeYYEfm'
11081107
//This example code is for a Crypto coven subgraph. The above ipfs hash is a directory with token metadata for all crypto coven NFTs.
11091108
11101109
export function handleTransfer(event: TransferEvent): void {
@@ -1116,7 +1115,7 @@ export function handleTransfer(event: TransferEvent): void {
11161115
token.tokenURI = '/' + event.params.tokenId.toString() + '.json'
11171116
const tokenIpfsHash = ipfshash + token.tokenURI
11181117
//This creates a path to the metadata for a single Crypto coven NFT. It concats the directory with "/" + filename + ".json"
1119-
1118+
11201119
token.ipfsURI = tokenIpfsHash
11211120
11221121
TokenMetadataTemplate.create(tokenIpfsHash)

pages/es/about.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Introducción
2+
title: Acerca de The Graph
33
---
44

55
En esta página se explica qué es The Graph y cómo puedes empezar a utilizarlo.
@@ -28,20 +28,20 @@ The Graph aprende, qué y cómo indexar los datos de Ethereum, basándose en las
2828

2929
Una vez que has escrito el `subgraph manifest`, utilizas el CLI de The Graph para almacenar la definición en IPFS y decirle al indexador que empiece a indexar los datos de ese subgrafo.
3030

31-
Este diagrama ofrece más detalles sobre el flujo de datos una vez que se ha desplegado en el manifiesto para un subgrafo, que trata de las transacciones en Ethereum:
31+
Este diagrama ofrece más detalles sobre el flujo de datos una vez que se ha deployado en el manifiesto para un subgrafo, que trata de las transacciones en Ethereum:
3232

3333
![](/img/graph-dataflow.png)
3434

3535
El flujo sigue estos pasos:
3636

3737
1. Una aplicación descentralizada añade datos a Ethereum a través de una transacción en un contrato inteligente.
3838
2. El contrato inteligente emite uno o más eventos mientras procesa la transacción.
39-
3. Graph Node escanea continuamente la red de Ethereum en busca de nuevos bloques y los datos de su subgrafo que puedan contener.
39+
3. Graph Node escanea continuamente la red de Ethereum en busca de nuevos bloques y los datos de tu subgrafo que puedan contener.
4040
4. Graph Node encuentra los eventos de la red Ethereum, a fin de proveerlos en tu subgrafo mediante estos bloques y ejecuta los mapping handlers que proporcionaste. El mapeo (mapping) es un módulo WASM que crea o actualiza las entidades de datos que Graph Node almacena en respuesta a los eventos de Ethereum.
41-
5. La aplicación descentralizada consulta a través de Graph Node los datos indexados de la blockchain, utilizando el [GraphQL endpoint](https://graphql.org/learn/) del nodo. El Nodo de The Graph, a su vez, traduce las consultas GraphQL en consultas para su almacenamiento de datos subyacentes con el fin de obtener estos datos, haciendo uso de las capacidades de indexación que ofrece el almacenamiento. La aplicación descentralizada muestra estos datos en una interfaz muy completa para el usuario, a fin de que los cliente que usan este subgrafo puedan emitir nuevas transacciones en Ethereum. Y así... el ciclo se repite continuamente.
41+
5. La aplicación descentralizada consulta a través de Graph Node los datos indexados de la blockchain, utilizando el [GraphQL endpoint](https://graphql.org/learn/) del nodo. El Nodo de The Graph, a su vez, traduce las consultas GraphQL en consultas para su almacenamiento de datos subyacentes con el fin de obtener estos datos, haciendo uso de las capacidades de indexación que ofrece el almacenamiento. La aplicación descentralizada muestra estos datos en una interfaz muy completa para el usuario, a fin de que los end users que usan este subgrafo puedan emitir nuevas transacciones en Ethereum. Y así... el ciclo se repite continuamente.
4242

4343
## Próximos puntos
4444

45-
En las siguientes secciones entraremos en más detalles sobre cómo definir subgrafos, cómo desplegarlos y cómo consultar los datos de los índices que construye el Graph Node.
45+
En las siguientes secciones entraremos en más detalles sobre cómo definir subgrafos, cómo deployarlos y cómo consultar los datos de los índices que construye el Graph Node.
4646

47-
Antes de que empieces a escribir tu propio subgrafo, es posible que debas echar un vistazo a The Graph Explorer para explorar algunos de los subgrafos que ya han sido desplegados. La página de cada subgrafo contiene un playground que te permite consultar los datos de ese subgrafo usando GraphQL.
47+
Antes de que empieces a escribir tu propio subgrafo, es posible que debas echar un vistazo a The Graph Explorer para explorar algunos de los subgrafos que ya han sido deployados. La página de cada subgrafo contiene un playground que te permite consultar los datos de ese subgrafo usando GraphQL.

0 commit comments

Comments
 (0)