Skip to content

Commit

Permalink
Possible fix for currentSignalledTokens, remove unneeded logs
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmardefago committed Apr 4, 2022
1 parent c80a01e commit 4d4018a
Show file tree
Hide file tree
Showing 6 changed files with 982 additions and 856 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"test": "graph test -v 0.2.0"
},
"devDependencies": {
"@graphprotocol/contracts": "1.10.1",
"@graphprotocol/contracts": "1.10.2",
"@graphprotocol/graph-cli": "^0.25.1",
"@graphprotocol/graph-ts": "^0.24.1",
"@types/node": "^14.0.13",
Expand Down
1 change: 1 addition & 0 deletions src/mappings/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ export function updateCurrentDeploymentLinks(
newDeployment.save()

subgraph.currentVersionRelationEntity = newRelationEntity.id
subgraph.currentSignalledTokens = newDeployment.signalledTokens
subgraph.save()
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/mappings/tokenLockWallets/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export function handleTokenLockCreated(event: TokenLockCreated): void {
manager.save()

let id = event.params.contractAddress.toHexString()
log.warning('[TOKEN LOCK CREATED] id used: {}', [id])
let tokenLock = new TokenLockWallet(id)
tokenLock.manager = event.address
tokenLock.initHash = event.params.initHash
Expand All @@ -67,7 +66,6 @@ export function handleTokenLockCreated(event: TokenLockCreated): void {
tokenLock.revocable = 'Disabled'
}
tokenLock.save()
log.warning('[TOKEN LOCK CREATED] entity saved with id: {}', [id])
GraphTokenLockWallet.create(event.params.contractAddress)

createOrLoadGraphAccount(event.params.contractAddress, event.block.timestamp)
Expand Down
1 change: 0 additions & 1 deletion src/mappings/tokenLockWallets/tokenLockWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export function handleTokensRevoked(event: TokensRevoked): void {

export function handleManagerUpdated(event: ManagerUpdated): void {
let id = event.address.toHexString()
log.warning('address id: {}', [id])
let tokenLockWallet = TokenLockWallet.load(id)
if (tokenLockWallet == null) {
log.warning("wallet doesn't exist", [])
Expand Down
5 changes: 1 addition & 4 deletions subgraph.template.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
specVersion: 0.0.2
description: The Graph Network Smart Contracts on Ethereum
repository: https://github.com/graphprotocol/contracts/graph-network-subgraph
graft:
base: Qmf2oSezfBJA62M9NHvZNC14NrCKfhWbBgSAqJFzQCfkie
block: 14495975
repository: https://github.com/graphprotocol/graph-network-subgraph
schema:
file: ./schema.graphql
dataSources:
Expand Down
Loading

0 comments on commit 4d4018a

Please sign in to comment.