diff --git a/package-lock.json b/package-lock.json index b2b1ffc..07df5c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "v3-subgraph", - "version": "2.0.4", + "version": "2.0.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "v3-subgraph", - "version": "2.0.4", + "version": "2.0.5", "license": "AGPL-3.0-only", "devDependencies": { "@graphprotocol/graph-cli": "0.78.0", diff --git a/package.json b/package.json index f051db7..0b12ece 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "v3-subgraph", - "version": "2.0.4", + "version": "2.0.5", "description": "Subgraph for the StakeWise Protocol", "repository": "https://github.com/stakewise/v3-subgraph", "license": "AGPL-3.0-only", diff --git a/src/mappings/vault.ts b/src/mappings/vault.ts index e4cf6d5..8b59fed 100644 --- a/src/mappings/vault.ts +++ b/src/mappings/vault.ts @@ -117,6 +117,12 @@ export function handleMetadataUpdated(event: MetadataUpdated): void { const vault = Vault.load(vaultAddress) as Vault vault.metadataIpfsHash = params.metadataIpfsHash + vault.metadataUpdatedAt = event.block.timestamp + + vault.description = '' + vault.displayName = '' + vault.imageUrl = '' + const data = ipfs.cat(params.metadataIpfsHash) if (data) { @@ -124,7 +130,6 @@ export function handleMetadataUpdated(event: MetadataUpdated): void { if (parsedJson.isOk && !parsedJson.isError) { updateMetadata(parsedJson.value, vault) - vault.metadataUpdatedAt = event.block.timestamp } }