mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
add block to dt orders (#62)
This commit is contained in:
parent
69ec3ec209
commit
59800e7992
@ -167,6 +167,7 @@ type TokenOrder @entity {
|
||||
|
||||
timestamp: Int!
|
||||
tx: Bytes
|
||||
block: Int!
|
||||
}
|
||||
|
||||
type TokenBalance @entity {
|
||||
|
@ -121,6 +121,7 @@ export function handleOrderStarted(event: OrderStarted): void {
|
||||
}
|
||||
order.marketFee = tokenToDecimal(event.params.marketFee.toBigDecimal(), 18)
|
||||
order.tx = tx
|
||||
order.block = event.block.number.toI32()
|
||||
|
||||
order.save()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user