mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
Saving tx hash in pool
This commit is contained in:
parent
d0b3d2bf9f
commit
345a3284ea
@ -1,4 +1,4 @@
|
|||||||
import { BigInt, Address } from '@graphprotocol/graph-ts'
|
import { BigInt, Address, log } from '@graphprotocol/graph-ts'
|
||||||
import {
|
import {
|
||||||
LOG_EXIT,
|
LOG_EXIT,
|
||||||
LOG_JOIN,
|
LOG_JOIN,
|
||||||
@ -235,9 +235,12 @@ export function handleSetup(event: LOG_SETUP): void {
|
|||||||
event.params.baseTokenAmountIn.toBigDecimal(),
|
event.params.baseTokenAmountIn.toBigDecimal(),
|
||||||
token.decimals
|
token.decimals
|
||||||
)
|
)
|
||||||
|
pool.tx = event.transaction.hash.toHex()
|
||||||
pool.save()
|
pool.save()
|
||||||
poolTx.save()
|
poolTx.save()
|
||||||
|
|
||||||
|
log.debug('\n\n Pool: {}\n\n\n', [pool.tx])
|
||||||
|
|
||||||
const lpFee = getPoolLpSwapFee(event.address)
|
const lpFee = getPoolLpSwapFee(event.address)
|
||||||
pool.liquidityProviderSwapFee = lpFee
|
pool.liquidityProviderSwapFee = lpFee
|
||||||
const publisherMarketFee = getPoolPublisherMarketFee(event.address)
|
const publisherMarketFee = getPoolPublisherMarketFee(event.address)
|
||||||
|
@ -536,7 +536,6 @@ describe('Simple Publish & consume test', async () => {
|
|||||||
transactions,
|
transactions,
|
||||||
publishMarketFeeAddress }}`
|
publishMarketFeeAddress }}`
|
||||||
}
|
}
|
||||||
console.log('poolQuery', poolQuery)
|
|
||||||
|
|
||||||
await sleep(2000)
|
await sleep(2000)
|
||||||
const response = await fetch(subgraphUrl, {
|
const response = await fetch(subgraphUrl, {
|
||||||
|
Loading…
Reference in New Issue
Block a user