Releases: graphprotocol/graph-ts
0.22.0-alpha.3
Adds assertions to arithmetic operator overloaders in the case of the left hand side of the operation being nullable.
This is to prevent a bug in the AssemblyScript compiler that doesn't warn when you try to use an operator (like +) between a nullable value and a non nullable one.
It only happens when the left hand side is a field access.
An issue will be created in their repository, and the assertions removed once the compiler returns an error for this, for now we only guarantee this at runtime.
v0.22.0-alpha.2
Added static methods for constructing zero values for:
- Address
- BigInt
- BigDecimal
And empty values for:
- ByteArray
- Bytes
v0.22.0-alpha.1
Simple change over v0.22.0-alpha.0, instead of using !
on some ethereum class properties, we now have constructors.
This removes some unnecessary runtime checks.
v0.22.0-alpha.0
Update to AssemblyScript version 0.19.10.
This version breaks compatibility with older versions of graph-ts.
v0.20.0
v0.19.0
v0.18.1
v0.18.0
- Add
box.profile()
to access 3Box profile data (#109). - Add
areweave.transactionData()
to access Arweave transaction data (#109). - Add
Bytes.fromUTF8()
helper to create byte arrays from strings (#78). - Add
json.try_fromBytes()
for handling JSON parsing errors (#110). - Add a
DataSourceContext
class forSomeTemplate.createWithContext()
(#106, #108). - Add support for calling overloaded Ethereum contract functions (#100).
- Add a Babylonian
.sqrt()
method toBigInt
(#104). - Move Ethereum integration into a dedicated
ethereum
module. Rename
types fromEthereumBlock
toethereum.Block
etc. (#99).
v0.17.0
v0.16.0
Data source metadata (#90)
A few users have asked for access to the data source address and network name from mappings. This release introduces both via the following API:
import { dataSource } from '@graphprotocol/graph-ts'
...
let address = dataSource.address()
let network = dataSource.network() // e.g. "mainnet"
Other changes
- Fix
BigDecimal
comparison (#68). - Dependency updates (glob).