Skip to content

Commit

Permalink
chore: debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
cinnabarhorse committed Nov 29, 2024
1 parent ae4bced commit f3efd5a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-alchemy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
run: yarn build

- name: Export Vars
id: export-vars
run: |
NETWORK=${{ steps.extract-network.outputs.NETWORK }}
AAVEGOTCHI_DIAMOND=$(node -e "console.log(require('./config/$NETWORK.json').contracts.diamond)")
Expand Down
7 changes: 5 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { BigInt } from "@graphprotocol/graph-ts";
// matic
export let BLOCK_SIDEVIEWS_ACTIVATED = BigInt.fromI32(39130900);

export const AAVEGOTCHI_DIAMOND = "0x6Acc828BbbC6874de40Ca20bfeA7Cd2a2DA8DA8c";
export const AAVEGOTCHI_DIAMOND_GEIST =
"0x6Acc828BbbC6874de40Ca20bfeA7Cd2a2DA8DA8c";
export const AAVEGOTCHI_DIAMOND_MATIC =
"0x86935F11C86623deC8a25696E1C19a8659CbF95d";

export const AAVEGOTCHI_BRIDGE_VAULT =
export const AAVEGOTCHI_BRIDGE_VAULT_MATIC =
"0xF1D1d61EEDDa7a10b494aF7af87D932AC910f3C5";
4 changes: 2 additions & 2 deletions src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Transfer,
} from "../generated/Contract/Contract";
import {
AAVEGOTCHI_BRIDGE_VAULT,
AAVEGOTCHI_BRIDGE_VAULT_MATIC,
BLOCK_SIDEVIEWS_ACTIVATED,
} from "./constants";
import { updateSideViews, updateSvg } from "./helper";
Expand Down Expand Up @@ -121,7 +121,7 @@ export function handleBlock(block: ethereum.Block): void {
}

export function handleTransfer(event: Transfer): void {
if (event.params._from == Address.fromString(AAVEGOTCHI_BRIDGE_VAULT)) {
if (event.params._from == Address.fromString(AAVEGOTCHI_BRIDGE_VAULT_MATIC)) {
// - if from is bridge vault, update svg because the equipped wearables may have changed
let gotchi = event.block.number.ge(BLOCK_SIDEVIEWS_ACTIVATED)
? updateSideViews(event.params._tokenId)
Expand Down
5 changes: 5 additions & 0 deletions subgraph.template.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
features:
- grafting
graft:
base: QmeWcqPd2QvWiLsNWRZsiYxwqqBRszTHfsSTXusWf2Z8bA # Subgraph ID of base subgraph
block: 64874170 # Block number
specVersion: 0.0.2
schema:
file: ./schema.graphql
Expand Down

0 comments on commit f3efd5a

Please sign in to comment.