Skip to content

Commit 671a00c

Browse files
authored
Merge branch 'main' into fix/logger-examples
2 parents c1c98b5 + 70368b6 commit 671a00c

File tree

94 files changed

+1778
-14837
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1778
-14837
lines changed

CHANGELOG.md

+35
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
1+
# v0.4.19
2+
- Adds factory sources. added an example factory-source to showcase this. API looks like:
3+
```typescript
4+
new Manifest('factory-source')
5+
.addChain('ethereum', (ethereum) =>
6+
ethereum
7+
.setOptions({
8+
blockRange: 100n,
9+
})
10+
.addContract({
11+
abi: UNISWAP_V2_FACTORY,
12+
name: 'UniswapV2Factory',
13+
sources: {
14+
'0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f': 17736650n,
15+
},
16+
})
17+
.addContract({
18+
abi: UNISWAP_V2_PAIR,
19+
name: 'UniswapV2Pair',
20+
factorySources: {
21+
UniswapV2Factory: {
22+
PairCreated: 'pair',
23+
},
24+
},
25+
eventHandlers: {
26+
Swap: onSwap,
27+
},
28+
}))
29+
.build()
30+
```
31+
- remove deprecated overloads to `addContract`. this wont break compatibility because the function implementation stays the same
32+
- move lib exports from `mod.ts` to a new top-level `libs.ts` file
33+
- add polygonZkEvm to supportedChains
34+
- add top-level `utils.ts` file which export some useful utility function
35+
136
# v0.4.18
237
- fix: fix version of arktype to fix export error
338

README.md

+21-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
1-
# [Arkiver](https://docs.arkiver.net)
1+
![Arkiver Logo](./img/arkiver_logo.png)
2+
3+
# Arkiver
4+
Seamlessly Develop, Deploy & Manage Data Pipelines for Web3 Applications
25

36
Fast and Fully Type-Safe Blockchain Indexer
47

8+
# Links
9+
- [Arkiver App](https://arkiver.net)
10+
- [Docs](https://www.arkiver.net/docs/intro)
11+
- [Quickstart](https://www.arkiver.net/docs/examples/index-erc20-events)
12+
513
# Features
614

7-
- **Fast** - Maximize indexing speed by minimizing I/O and caching data in
8-
memory
15+
- **Fast** - Maximize indexing speed by minimizing I/O and caching data in memory
916
- **Type-Safe** - End-to-end type-safety with TypeScript
1017
- **Flexible** - Write custom handlers to process data however you want
1118
- **Ergonomic** - Minimal configuration and easy to test locally
1219
- **Multi-Chain** - Index multiple chains in a single Arkive
1320
- **GraphQL** - Serve your data via a GraphQL API
1421
- **Open-Source** - Arkiver is open-source and free to use
1522
- **Self-Hosted** - Run Arkiver on your own infrastructure
16-
- **Cloud-Hosted** - Deploy your Arkive to the Arkiver cloud
23+
- **Cloud-Hosted** - Deploy your Arkive to the Arkiver Hosted Service
24+
25+
### Pick your use-case
26+
27+
Deploy Next.js, Svelte, Remix, Astro, Solid, or any static site to AWS.
1728

18-
... and a lot more!
29+
- [**ERC20 Events**](https://www.arkiver.net/docs/examples/index-erc20-events)
30+
- [**Vault Share Price**](https://www.arkiver.net/docs/examples/block-handler-vault-snapshot)
1931

2032
# Overview
2133

@@ -38,10 +50,10 @@ manifest
3850
export default manifest.build()
3951
```
4052

41-
# Documentation
42-
43-
[(WIP)](https://docs.arkiver.net)
44-
4553
# License
4654

4755
[MIT](LICENSE) License
56+
57+
---
58+
59+
**Join our community** [Discord](https://discord.gg/robovault-865495351175282708) | [Twitter](https://twitter.com/robolabs_biz)

cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
} from './cli/mod.ts'
1818
import 'https://deno.land/std@0.179.0/dotenv/load.ts'
1919

20-
export const version = 'v0.4.18'
20+
export const version = 'v0.4.19'
2121

2222
const command = new Command()
2323
.name('arkiver')

cli/init/mod.ts

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ export const action = async () => {
112112
.cwd(newDir)
113113
.quiet('stdout')
114114
}
115+
116+
await $`deno cache --reload deps.ts`.cwd(newDir).quiet('stdout')
115117
} catch (e) {
116118
$.logError(`Error initializing arkive: ${e}`)
117119
return

cli/start/mod.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ export const action = async (
133133
'mongodb://admin:password@localhost:27017'
134134
await mongoose.connect(connectionString, {
135135
dbName: '0-0',
136-
// deno-lint-ignore no-explicit-any
137-
} as any)
136+
})
138137
logger('arkiver').debug(`Connected to database`)
139138

140139
if (!options.gqlOnly) {

deno.lock

+95-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/.gitignore

-20
This file was deleted.

docs/README.md

-45
This file was deleted.

docs/babel.config.js

-3
This file was deleted.

docs/blog/2019-05-28-first-blog-post.md

-14
This file was deleted.

0 commit comments

Comments
 (0)