-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from RoboVault/fix/event-types
fix event type
- Loading branch information
Showing
19 changed files
with
215 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ export { | |
createEntity, | ||
type EventHandlerFor, | ||
Manifest, | ||
} from 'https://deno.land/x/[email protected].14/mod.ts' | ||
} from 'https://deno.land/x/[email protected].15/mod.ts' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { formatUnits, getContract } from 'npm:viem' | ||
import { type BlockHandler } from 'https://deno.land/x/[email protected].14/mod.ts' | ||
import { type BlockHandler } from 'https://deno.land/x/[email protected].15/mod.ts' | ||
import { VaultSnapshot } from '../entities/vault.ts' | ||
import { YearnV2Abi } from '../abis/YearnV2.ts' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Manifest } from 'https://deno.land/x/[email protected].14/mod.ts' | ||
import { Manifest } from 'https://deno.land/x/[email protected].15/mod.ts' | ||
import { VaultSnapshot } from './entities/vault.ts' | ||
import { snapshotVault } from './handlers/vault.ts' | ||
|
||
const manifest = new Manifest('yearn-vaults') | ||
|
||
manifest | ||
.addEntity(VaultSnapshot) | ||
.chain('mainnet') | ||
.addChain('mainnet') | ||
.addBlockHandler({ | ||
blockInterval: 1000, | ||
startBlockHeight: 12790000n, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { createEntity } from 'https://deno.land/x/[email protected].14/mod.ts' | ||
import { createEntity } from 'https://deno.land/x/[email protected].15/mod.ts' | ||
|
||
// @note: "Index: true" enhances graphql queries | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { formatUnits } from 'npm:viem' | ||
import { type EventHandlerFor } from 'https://deno.land/x/[email protected].14/mod.ts' | ||
import { type EventHandlerFor } from 'https://deno.land/x/[email protected].15/mod.ts' | ||
import erc20 from './erc20.ts' | ||
import { Balance, BalanceHistory, Transfer } from './entities.ts' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Manifest } from 'https://deno.land/x/[email protected].14/mod.ts' | ||
import { Manifest } from 'https://deno.land/x/[email protected].15/mod.ts' | ||
import erc20 from './erc20.ts' | ||
import { Entities } from './entities.ts' | ||
import { onTransfer } from './handlers.ts' | ||
|
@@ -7,8 +7,8 @@ const manifest = new Manifest('frax-balances') | |
|
||
manifest | ||
.addEntities(Entities) | ||
.chain('mainnet', { blockRange: 500n }) | ||
.contract(erc20) | ||
.addChain('mainnet', { blockRange: 500n }) | ||
.addContract(erc20) | ||
.addSources({ '0x853d955aCEf822Db058eb8505911ED77F175b99e': 11465581n }) | ||
.addEventHandlers({ 'Transfer': onTransfer }) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { createEntity } from 'https://deno.land/x/[email protected].14/mod.ts' | ||
import { createEntity } from 'https://deno.land/x/[email protected].15/mod.ts' | ||
|
||
// @note: "Index: true" enhances graphql queries | ||
export const Transfer = createEntity('Transfer', { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { formatUnits } from 'npm:viem' | ||
import { type EventHandlerFor } from 'https://deno.land/x/[email protected].14/mod.ts' | ||
import { type EventHandlerFor } from 'https://deno.land/x/[email protected].15/mod.ts' | ||
import erc20 from './erc20.ts' | ||
import { Approval, Transfer } from './entities.ts' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Manifest } from 'https://deno.land/x/[email protected].14/mod.ts' | ||
import { Manifest } from 'https://deno.land/x/[email protected].15/mod.ts' | ||
import erc20 from './erc20.ts' | ||
import { Approval, Transfer } from './entities.ts' | ||
import { onApproval, onTransfer } from './handlers.ts' | ||
|
@@ -7,8 +7,8 @@ const manifest = new Manifest('weth-events') | |
|
||
manifest | ||
.addEntities([Transfer, Approval]) | ||
.chain('mainnet', { blockRange: 500n }) | ||
.contract('ERC20', erc20) | ||
.addChain('mainnet', { blockRange: 500n }) | ||
.addContract('ERC20', erc20) | ||
.addSources({ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2': 4729568n }) | ||
.addEventHandlers({ 'Transfer': onTransfer }) | ||
.addEventHandlers({ 'Approval': onApproval }) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ export { | |
createEntity, | ||
type EventHandlerFor, | ||
Manifest, | ||
} from 'https://deno.land/x/[email protected].14/mod.ts' | ||
} from 'https://deno.land/x/[email protected].15/mod.ts' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ export { | |
createEntity, | ||
type EventHandlerFor, | ||
Manifest, | ||
} from 'https://deno.land/x/[email protected].14/mod.ts' | ||
} from 'https://deno.land/x/[email protected].15/mod.ts' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
009eafc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
robo-arkiver-docs – ./
robo-arkiver-docs-git-main-robo-vault.vercel.app
robo-arkiver-docs-robo-vault.vercel.app
docs.arkiver.robolabs.biz
docs.arkiver.net
robo-arkiver-docs.vercel.app