Skip to content

Commit

Permalink
testing (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
toyv0 authored Jan 21, 2024
1 parent cdc762e commit a32c610
Show file tree
Hide file tree
Showing 7 changed files with 1,344 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
env:
NETWORK_NAME: mainnet
START_BLOCK_NUMBER: 14265505
START_BLOCK_NUMBER: 16265505
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
if: github.ref == 'refs/heads/dev'
env:
NETWORK_NAME: mainnet
START_BLOCK_NUMBER: 14265505
START_BLOCK_NUMBER: 16265505
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
if: github.ref == 'refs/heads/main'
env:
NETWORK_NAME: mainnet
START_BLOCK_NUMBER: 14265505
START_BLOCK_NUMBER: 16265505
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"lint": "prettier --ignore-path .gitignore --list-different \"**/*.{ts,js,json,yaml}\""
},
"devDependencies": {
"@graphprotocol/graph-cli": "^0.67.1",
"@graphprotocol/graph-ts": "^0.32.0",
"@graphprotocol/graph-cli": "0.60.0",
"@graphprotocol/graph-ts": "0.32.0",
"@graphql-codegen/cli": "^2.6.2",
"@tsconfig/node16": "^1.0.2",
"@types/fs-extra": "^9.0.13",
Expand All @@ -47,6 +47,7 @@
"*.{ts,js,json,yaml}": "prettier --write"
},
"dependencies": {
"@protofire/subgraph-toolkit": "0.1.2"
"@protofire/subgraph-toolkit": "0.1.2",
"assemblyscript": "AssemblyScript/assemblyscript"
}
}
7 changes: 1 addition & 6 deletions subgraph/handlers/Alchemist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,7 @@ export function handleSnap(event: Snap): void {
entity.save();
}

export function handleSweepTokens(event: SweepTokens): void {
const entity = createAlchemistEvent<AlchemistSweepTokensEvent>(event);
entity.amount = event.params.amount;
entity.rewardToken = event.params.rewardToken;
entity.save();
}
export function handleSweepTokens(): void {}

export function handleTokenAdapterUpdated(event: TokenAdapterUpdated): void {
const entity = createAlchemistEvent<AlchemistTokenAdapterUpdatedEvent>(event);
Expand Down
3 changes: 3 additions & 0 deletions subgraph/handlers/EthAssetManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,6 @@

// getOrCreateEthAssetManagerMetaPoolTokenBalanceHistory(token, event.params.amount.times(BigInt.fromI32(-1)), event);
// }

// export function handleSweepEth(): void {}
// export function handleSweepToken(): void {}
4 changes: 4 additions & 0 deletions subgraph/handlers/FactoryPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ function getTokenInfo(address: Address): TokenInfo {
decimals.reverted ? 18 : decimals.value,
);
}

export function handleRampA(): void {}
export function handleStopRampA(): void {}

export function handleTokenExchange(event: TokenExchange): void {}
// export function handleTokenExchange(event: TokenExchange): void {
// let pool = getOrCreatePool(event.address, event);
Expand Down
2 changes: 2 additions & 0 deletions subgraph/handlers/TransmuterBuffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,5 @@ export function handleSetDivertToAmo(event: SetDivertToAmo): void {
entity.divert = event.params.divert;
entity.save();
}

export function handleSetTransmuter(): void {}
Loading

0 comments on commit a32c610

Please sign in to comment.