diff --git a/CHANGELOG.md b/CHANGELOG.md index 29a854a..f0db6a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# v0.4.20 +- Add two new utility functions: + - `getClosestTimestamp` + - `getTimestampFromBlockNumber` +- Update manifest validator to not use arktype +- change --public options to --private in `arkiver deploy` +- Updated examples + # v0.4.19 - Adds factory sources. added an example factory-source to showcase this. API looks like: ```typescript diff --git a/cli.ts b/cli.ts index aec777b..00e7920 100644 --- a/cli.ts +++ b/cli.ts @@ -17,7 +17,7 @@ import { } from './cli/mod.ts' import 'https://deno.land/std@0.179.0/dotenv/load.ts' -export const version = 'v0.4.19' +export const version = 'v0.4.20' const command = new Command() .name('arkiver') diff --git a/examples/block-handler-vaults/deps.ts b/examples/block-handler-vaults/deps.ts index 4efb5de..ababa5a 100644 --- a/examples/block-handler-vaults/deps.ts +++ b/examples/block-handler-vaults/deps.ts @@ -3,4 +3,4 @@ export { createEntity, type EventHandlerFor, Manifest, -} from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +} from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' diff --git a/examples/block-handler-vaults/handlers/vault.ts b/examples/block-handler-vaults/handlers/vault.ts index c9e7744..34f15f5 100644 --- a/examples/block-handler-vaults/handlers/vault.ts +++ b/examples/block-handler-vaults/handlers/vault.ts @@ -1,5 +1,5 @@ import { formatUnits, getContract } from 'npm:viem' -import { type BlockHandler } from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +import { type BlockHandler } from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' import { VaultSnapshot } from '../entities/vault.ts' import { YEARN_V2_ABI } from '../abis/YearnV2.ts' diff --git a/examples/block-handler-vaults/manifest.ts b/examples/block-handler-vaults/manifest.ts index d09cf6a..6bb671d 100644 --- a/examples/block-handler-vaults/manifest.ts +++ b/examples/block-handler-vaults/manifest.ts @@ -1,4 +1,4 @@ -import { Manifest } from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +import { Manifest } from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' import { VaultSnapshot } from './entities/vault.ts' import { snapshotVault } from './handlers/vault.ts' diff --git a/examples/erc20-balance-history/entities.ts b/examples/erc20-balance-history/entities.ts index fe0d98f..9683e40 100644 --- a/examples/erc20-balance-history/entities.ts +++ b/examples/erc20-balance-history/entities.ts @@ -1,4 +1,4 @@ -import { createEntity } from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +import { createEntity } from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' // @note: "Index: true" enhances graphql queries diff --git a/examples/erc20-balance-history/handlers.ts b/examples/erc20-balance-history/handlers.ts index 8d3877e..017b3b8 100644 --- a/examples/erc20-balance-history/handlers.ts +++ b/examples/erc20-balance-history/handlers.ts @@ -1,5 +1,5 @@ import { formatUnits, fromHex, numberToHex } from 'npm:viem' -import { type EventHandlerFor } from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +import { type EventHandlerFor } from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' import erc20 from './erc20.ts' import { Balance, BalanceHistory, Transfer } from './entities.ts' diff --git a/examples/erc20-balance-history/manifest.ts b/examples/erc20-balance-history/manifest.ts index ea3301b..2e37a93 100644 --- a/examples/erc20-balance-history/manifest.ts +++ b/examples/erc20-balance-history/manifest.ts @@ -1,4 +1,4 @@ -import { Manifest } from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +import { Manifest } from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' import { ERC_20_ABI } from './Erc20.ts' import { Entities } from './entities.ts' import { onTransfer } from './handlers.ts' diff --git a/examples/erc20-events/entities.ts b/examples/erc20-events/entities.ts index 2b29108..f76e04c 100644 --- a/examples/erc20-events/entities.ts +++ b/examples/erc20-events/entities.ts @@ -1,4 +1,4 @@ -import { createEntity } from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +import { createEntity } from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' // @note: "Index: true" enhances graphql queries export const Transfer = createEntity('Transfer', { diff --git a/examples/erc20-events/handlers.ts b/examples/erc20-events/handlers.ts index 41b8b3b..06bdcdc 100644 --- a/examples/erc20-events/handlers.ts +++ b/examples/erc20-events/handlers.ts @@ -1,5 +1,5 @@ import { formatUnits } from 'npm:viem' -import { type EventHandlerFor } from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +import { type EventHandlerFor } from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' import { ERC_20_ABI } from './Erc20.ts' import { Approval, Transfer } from './entities.ts' diff --git a/examples/erc20-events/manifest.ts b/examples/erc20-events/manifest.ts index 4f04788..0691118 100644 --- a/examples/erc20-events/manifest.ts +++ b/examples/erc20-events/manifest.ts @@ -1,4 +1,4 @@ -import { Manifest } from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +import { Manifest } from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' import { ERC_20_ABI } from './Erc20.ts' import { Approval, Transfer } from './entities.ts' import { onApproval, onTransfer } from './handlers.ts' diff --git a/examples/event-wildcard/deps.ts b/examples/event-wildcard/deps.ts index 4efb5de..ababa5a 100644 --- a/examples/event-wildcard/deps.ts +++ b/examples/event-wildcard/deps.ts @@ -3,4 +3,4 @@ export { createEntity, type EventHandlerFor, Manifest, -} from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +} from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' diff --git a/examples/library/deps.ts b/examples/library/deps.ts index 4bcbc78..341cc6e 100644 --- a/examples/library/deps.ts +++ b/examples/library/deps.ts @@ -3,8 +3,8 @@ export { createEntity, type EventHandlerFor, Manifest, -} from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +} from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts' export { Erc721Lib, type Erc721Opts, -} from 'https://deno.land/x/robo_arkiver@v0.4.19/libs.ts' +} from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/libs.ts' diff --git a/examples/simple/deps.ts b/examples/simple/deps.ts index 4efb5de..ababa5a 100644 --- a/examples/simple/deps.ts +++ b/examples/simple/deps.ts @@ -3,4 +3,4 @@ export { createEntity, type EventHandlerFor, Manifest, -} from 'https://deno.land/x/robo_arkiver@v0.4.19/mod.ts' +} from 'hhttps://deno.land/x/robo_arkiver@v0.4.20/mod.ts'