Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Releases: graphprotocol/graph-ts

0.22.0-alpha.3

09 Sep 11:06
Compare
Choose a tag to compare
0.22.0-alpha.3 Pre-release
Pre-release

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

23 Aug 14:09
Compare
Choose a tag to compare
v0.22.0-alpha.2 Pre-release
Pre-release

Added static methods for constructing zero values for:

  • Address
  • BigInt
  • BigDecimal

And empty values for:

  • ByteArray
  • Bytes

v0.22.0-alpha.1

13 Aug 16:55
Compare
Choose a tag to compare
v0.22.0-alpha.1 Pre-release
Pre-release

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

11 Aug 00:35
Compare
Choose a tag to compare
v0.22.0-alpha.0 Pre-release
Pre-release

Update to AssemblyScript version 0.19.10.

This version breaks compatibility with older versions of graph-ts.

v0.20.0

24 Feb 16:31
Compare
Choose a tag to compare

Add bitwise operations and string constructor to BigInt.

v0.19.0

13 Oct 16:07
Compare
Choose a tag to compare
  • Fix Entity helpers like getBoolean.

v0.18.1

15 Apr 10:58
Compare
Choose a tag to compare
  • Properly exprt all types in the ethereum module (#111).

v0.18.0

08 Apr 11:30
Compare
Choose a tag to compare
  • 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 for SomeTemplate.createWithContext()
    (#106, #108).
  • Add support for calling overloaded Ethereum contract functions (#100).
  • Add a Babylonian .sqrt() method to BigInt (#104).
  • Move Ethereum integration into a dedicated ethereum module. Rename
    types from EthereumBlock to ethereum.Block etc. (#99).

v0.17.0

23 Dec 11:48
Compare
Choose a tag to compare
  • Fix error message in ByteArray.toI32() assertion (#97).
  • Dependency updates: glob.

v0.16.0

01 Nov 11:10
Compare
Choose a tag to compare

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).