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
* fixes typos
line 86: directly follow -> directly followed
line 142: removes "it"
line 175: stored -> store
line 191: is -> are - adds comma before etc
* Update pages/en/developer/assemblyscript-api.mdx
Co-authored-by: Benoît Rouleau <benoit.rouleau@icloud.com>
Co-authored-by: Benoît Rouleau <benoit.rouleau@icloud.com>
Copy file name to clipboardExpand all lines: pages/en/developing/assemblyscript-api.mdx
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ _Operators_
83
83
84
84
-`equals(y: ByteArray): bool` – can be written as `x == y`.
85
85
-`concat(other: ByteArray) : ByteArray` - return a new `ByteArray` consisting of `this` directly followed by `other`
86
-
-`concatI32(other: i32) : ByteArray` - return a new `ByteArray` consisting of `this` directly follow by the byte representation of `other`
86
+
-`concatI32(other: i32) : ByteArray` - return a new `ByteArray` consisting of `this` directly followed by the byte representation of `other`
87
87
88
88
#### BigDecimal
89
89
@@ -139,7 +139,7 @@ _Construction_
139
139
140
140
-`x.toHex(): string` – turns `BigInt` into a string of hexadecimal characters.
141
141
-`x.toString(): string` – turns `BigInt` into a decimal number string.
142
-
-`x.toI32(): i32` – returns the `BigInt` as an `i32`; fails if it the value does not fit into `i32`. It's a good idea to first check `x.isI32()`.
142
+
-`x.toI32(): i32` – returns the `BigInt` as an `i32`; fails if the value does not fit into `i32`. It's a good idea to first check `x.isI32()`.
143
143
-`x.toBigDecimal(): BigDecimal` - converts into a decimal with no fractional part.
144
144
145
145
_Math_
@@ -172,7 +172,7 @@ _Math_
172
172
import { TypedMap } from'@graphprotocol/graph-ts'
173
173
```
174
174
175
-
`TypedMap` can be used to stored key-value pairs. See [this example](https://github.com/graphprotocol/aragon-subgraph/blob/29dd38680c5e5104d9fdc2f90e740298c67e4a31/individual-dao-subgraph/mappings/constants.ts#L51).
175
+
`TypedMap` can be used to store key-value pairs. See [this example](https://github.com/graphprotocol/aragon-subgraph/blob/29dd38680c5e5104d9fdc2f90e740298c67e4a31/individual-dao-subgraph/mappings/constants.ts#L51).
176
176
177
177
The `TypedMap` class has the following API:
178
178
@@ -188,7 +188,7 @@ The `TypedMap` class has the following API:
188
188
import { Bytes } from'@graphprotocol/graph-ts'
189
189
```
190
190
191
-
`Bytes` is used to represent arbitrary-length arrays of bytes. This includes Ethereum values of type `bytes`, `bytes32` etc.
191
+
`Bytes` is used to represent arbitrary-length arrays of bytes. This includes Ethereum values of type `bytes`, `bytes32`, etc.
192
192
193
193
The `Bytes` class extends AssemblyScript's [Uint8Array](https://github.com/AssemblyScript/assemblyscript/blob/3b1852bc376ae799d9ebca888e6413afac7b572f/std/assembly/typedarray.ts#L64) and this supports all the `Uint8Array` functionality, plus the following new methods:
0 commit comments