mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
16 lines
434 B
TypeScript
16 lines
434 B
TypeScript
import { BigDecimal, BigInt } from 'temp_lib/index'
|
|
import { Entity, Bytes } from 'temp_lib/index'
|
|
|
|
export function testEntity(): void {
|
|
let entity = new Entity()
|
|
|
|
entity.setBytes('x', new Bytes(1))
|
|
assert(entity.getBytes('x') == new Bytes(1))
|
|
|
|
entity.setBoolean('x', true)
|
|
assert(entity.getBoolean('x') == true)
|
|
|
|
entity.setBigDecimal('x', new BigDecimal(BigInt.fromI32(2)))
|
|
assert(entity.getBigDecimal('x') !== null)
|
|
}
|