Skip to main content

Token

Imported types#

Token#

type Token {
chainId: ChainId!
address: String!
currency: Currency!
}

TokenAmount#

type TokenAmount {
token: Token!
amount: String! # UInt256!
}

Query schemas#

tokenEquals#

Checks if the current instance is equal to another (has an identical chainId and address).

tokenEquals(token: Token!, other: Token!): Boolean!

tokenAmountEquals#

Compares two TokenAmount types for equality, returning true if they have the same token and same amount.

tokenAmountEquals(
tokenAmount0: TokenAmount!
tokenAmount1: TokenAmount!
): Boolean!

tokenSortsBefore#

Checks if the current instance sorts before another, by address.

tokenSortsBefore(token: Token!, other: Token!): Boolean!