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
Copy file name to clipboardExpand all lines: pages/ar/about/introduction.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
@@ -26,7 +26,7 @@ The Graph هو بروتوكول لامركزي وذلك لفهرسة البيا
26
26
27
27
The Graph يفهرس بيانات Ethereumالـ بناء على أوصاف الـ subgraph ، والمعروفة باسم subgraph manifest. حيث أن وصف الـ subgraph يحدد العقود الذكية ذات الأهمية لـ subgraph ، ويحدد الأحداث في تلك العقود التي يجب الانتباه إليها ، وكيفية تعيين بيانات الحدث إلى البيانات التي سيخزنها The Graph في قاعدة البيانات الخاصة به.
28
28
29
-
بمجرد كتابة `subgraph manifest` ، يمكنك استخدام Graph CLI لتخزين التعريف في IPFS وإخبار المفهرس ببدء فهرسة البيانات لذلك الـ subgraph.
29
+
بمجرد كتابة `subgraph manifest` ، يمكنك استخدام Graph CLI لتخزين التعريف في IPFS وإخبار المفهرس ببدء فهرسة البيانات لذلك الـ subgraph.
30
30
31
31
يقدم هذا الرسم البياني مزيدًا من التفاصيل حول تدفق البيانات عند نشر الـsubgraph manifest ، التعامل مع إجراءات الـ Ethereum:
Copy file name to clipboardExpand all lines: pages/ar/developer/assemblyscript-migration-guide.mdx
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ title: دليل ترحيل AssemblyScript
6
6
7
7
سيمكن ذلك لمطوري ال Subgraph من استخدام مميزات أحدث للغة AS والمكتبة القياسية.
8
8
9
-
ينطبق هذا الدليل على أي شخص يستخدم `graph-cli`/`graph-ts` ادنى من الإصدار `0.22.0`. إذا كنت تستخدم بالفعل إصدارًا أعلى من (أو مساويًا) لذلك ، فأنت بالفعل تستخدم الإصدار `0.19.10` من AssemblyScript 🙂
9
+
ينطبق هذا الدليل على أي شخص يستخدم `graph-cli`/`graph-ts` ادنى من الإصدار `0.22.0`. إذا كنت تستخدم بالفعل إصدارًا أعلى من (أو مساويًا) لذلك ، فأنت بالفعل تستخدم الإصدار `0.19.10` من AssemblyScript 🙂
10
10
11
-
> ملاحظة: اعتبارًا من `0.24.0` ، يمكن أن يدعم `grapg-node` كلا الإصدارين ، اعتمادًا على `apiVersion` المحدد في Subgraph manifest.
11
+
> ملاحظة: اعتبارًا من `0.24.0` ، يمكن أن يدعم `grapg-node` كلا الإصدارين ، اعتمادًا على `apiVersion` المحدد في Subgraph manifest.
12
12
13
13
## مميزات
14
14
@@ -35,7 +35,7 @@ title: دليل ترحيل AssemblyScript
35
35
-`Math` دوال مثل `exp`, `exp2`, `log`, `log2` and `pow` تم استبدالها بمتغيرات أسرع ([v0.9.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.9.0))
36
36
- أكثر تحسينا `Math.mod` ([v0.17.1](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.17.1))
37
37
- Cache more field accesses in std Map and Set ([v0.17.8](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.17.8))
38
-
- قم بتحسين قدرات اثنين في `ipow32 / 64` ([ v0.18.2 ](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.18.2))
38
+
- قم بتحسين قدرات اثنين في `ipow32 / 64` ([ v0.18.2 ](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.18.2))
39
39
40
40
### آخر
41
41
@@ -44,7 +44,7 @@ title: دليل ترحيل AssemblyScript
44
44
45
45
## كيف تقوم بالترقية؟
46
46
47
-
1. تغيير ال Mappings الخاص بك `apiVersion` في `subgraph.yaml` إلى `0.0.6`:
47
+
1. تغيير ال Mappings الخاص بك `apiVersion` في `subgraph.yaml` إلى `0.0.6`:
48
48
49
49
```yaml
50
50
...
@@ -56,7 +56,7 @@ dataSources:
56
56
...
57
57
```
58
58
59
-
2. قم بتحديث `graph-cli` الذي تستخدمه إلى `أحدث إصدار` عن طريق تشغيل:
59
+
2. قم بتحديث `graph-cli` الذي تستخدمه إلى `أحدث إصدار` عن طريق تشغيل:
3. افعل الشيء نفسه مع `graph-ts` ، ولكن بدلاً من التثبيت بشكل عام ، احفظه في dependencies الرئيسية:
69
+
3. افعل الشيء نفسه مع `graph-ts` ، ولكن بدلاً من التثبيت بشكل عام ، احفظه في dependencies الرئيسية:
70
70
71
71
```bash
72
72
npm install --save @graphprotocol/graph-ts@latest
73
73
```
74
74
75
75
4. Follow the rest of the guide to fix the language breaking changes.
76
-
5. قم بتشغيل `codegen` و `deploy` مرة أخرى.
76
+
5. قم بتشغيل `codegen` و `deploy` مرة أخرى.
77
77
78
78
## Breaking changes
79
79
@@ -137,7 +137,7 @@ ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/numbers/BigInt | null' i
137
137
~~~~
138
138
insrc/mappings/file.ts(41,21)
139
139
```
140
-
لحل المشكلة يمكنك ببساطة تغيير عبارة `if` إلى شيء مثل هذا:
140
+
لحل المشكلة يمكنك ببساطة تغيير عبارة `if` إلى شيء مثل هذا:
141
141
142
142
```typescript
143
143
if (!decimals) {
@@ -218,7 +218,7 @@ let bytes = new Bytes(2)
218
218
changetype<ByteArray>(bytes) // works :)
219
219
```
220
220
221
-
إذا كنت تريد فقط إزالة nullability ، فيمكنك الاستمرار في استخدام `as` (أو `<T>variable`) ، ولكن تأكد من أنك تعرف أن القيمة لا يمكن أن تكون خالية ، وإلا فإنه سوف ينكسر.
221
+
إذا كنت تريد فقط إزالة nullability ، فيمكنك الاستمرار في استخدام `as` (أو `<T>variable`) ، ولكن تأكد من أنك تعرف أن القيمة لا يمكن أن تكون خالية ، وإلا فإنه سوف ينكسر.
222
222
223
223
```typescript
224
224
// remove nullability
@@ -242,7 +242,7 @@ let newBalance = new AccountBalance(balanceId)
242
242
243
243
### التحقق من Nullability مع الوصول الى الخاصية
244
244
245
-
لاستخدام [ مميزة التحقق من nullability ](https://www.assemblyscript.org/basics.html#nullability-checks) ، يمكنك استخدام عبارات `if` أو عامل التشغيل الثلاثي (`؟` and `:`) مثل هذا:
245
+
لاستخدام [ مميزة التحقق من nullability ](https://www.assemblyscript.org/basics.html#nullability-checks) ، يمكنك استخدام عبارات `if` أو عامل التشغيل الثلاثي (`؟` and `:`) مثل هذا:
246
246
247
247
```typescript
248
248
let something:string|null='data'
@@ -260,7 +260,7 @@ if (something) {
260
260
}
261
261
```
262
262
263
-
ومع ذلك ، فإن هذا لا يعمل إلا عند تنفيذ `if` / ternary على متغير ، وليس على خاصية الوصول ، مثل هذا:
263
+
ومع ذلك ، فإن هذا لا يعمل إلا عند تنفيذ `if` / ternary على متغير ، وليس على خاصية الوصول ، مثل هذا:
264
264
265
265
```typescript
266
266
classContainer {
@@ -417,7 +417,7 @@ export class Something {
417
417
}
418
418
```
419
419
420
-
فإن المترجم سيخطئ لأنك ستحتاج إما إضافة مُهيئ للخصائص التي هي فئات ، أو إضافة عامل التشغيل `!`:
420
+
فإن المترجم سيخطئ لأنك ستحتاج إما إضافة مُهيئ للخصائص التي هي فئات ، أو إضافة عامل التشغيل `!`:
421
421
422
422
```typescript
423
423
exportclassSomething {
@@ -443,7 +443,7 @@ export class Something {
443
443
444
444
### مخطط GraphQL
445
445
446
-
هذا ليس تغيير مباشرا ل AssemblyScript ، ولكن قد تحتاج إلى تحديث ملف `schema.graphql` الخاص بك.
446
+
هذا ليس تغيير مباشرا ل AssemblyScript ، ولكن قد تحتاج إلى تحديث ملف `schema.graphql` الخاص بك.
447
447
448
448
الآن لم يعد بإمكانك تعريف الحقول في الأنواع الخاصة بك والتي هي قوائم Non-Nullable. إذا كان لديك مخطط مثل هذا:
449
449
@@ -458,7 +458,7 @@ type MyEntity @entity {
458
458
}
459
459
```
460
460
461
-
سيتعين عليك إضافة `!` لعضو من نوع القائمة ، مثل هذا:
461
+
سيتعين عليك إضافة `!` لعضو من نوع القائمة ، مثل هذا:
462
462
463
463
```graphql
464
464
typeSomething@entity {
@@ -478,7 +478,7 @@ type MyEntity @entity {
478
478
- Aligned `Map#set` and `Set#add` with the spec, returning `this` ([v0.9.2](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.9.2))
479
479
- لم تعد المصفوفة ترث من ArrayBufferView ، لكنها أصبحت متميزة الآن ([ v0.10.0 ](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.10.0))
480
480
- Classes initialized from object literals can no longer define a constructor ([v0.10.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.10.0))
481
-
- نتيجة العملية الثنائية ` ** ` هي الآن العدد الصحيح للمقام المشترك إذا كان كلا المعاملين عددًا صحيحًا. Previously, the result was a float as if calling `Math/f.pow` ([v0.11.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.11.0))
481
+
- نتيجة العملية الثنائية `**` هي الآن العدد الصحيح للمقام المشترك إذا كان كلا المعاملين عددًا صحيحًا. Previously, the result was a float as if calling `Math/f.pow` ([v0.11.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.11.0))
482
482
- إجبار`NaN` إلى `false` عندما ال casting إلى`bool` ([v0.14.9](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.14.9))
483
483
- When shifting a small integer value of type `i8`/`u8` or `i16`/`u16`, only the 3 respectively 4 least significant bits of the RHS value affect the result, analogous to the result of an `i32.shl` only being affected by the 5 least significant bits of the RHS value. Example: `someI8 << 8` previously produced the value `0`, but now produces `someI8` due to masking the RHS as `8 & 7 = 0` (3 bits) ([v0.17.0](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.17.0))
484
484
- Bug fix of relational string comparisons when sizes differ ([v0.17.8](https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.17.8))
0 commit comments