Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkenj1 committed Oct 3, 2024
1 parent 2f3e248 commit ba1ff8e
Show file tree
Hide file tree
Showing 8 changed files with 180 additions and 162 deletions.
31 changes: 31 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
############################################
############### POSTGRES ###################
############################################
POSTGRES_EXPOSED_PORT=5433
POSTGRES_PASSWORD=testing
POSTGRES_USER=postgres
POSTGRES_DB=envio-dev

############################################
############### HASURA #####################
############################################
HASURA_EXPOSED_PORT=8080
HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:testing@envio-postgres:5432/envio-dev
HASURA_GRAPHQL_ENABLE_CONSOLE=true
HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_NO_OF_RETRIES=10
HASURA_GRAPHQL_ADMIN_SECRET=testing
HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES="true"
PORT=8080
HASURA_GRAPHQL_UNAUTHORIZED_ROLE=public

############################################
############### INDEXER ####################
############################################
ENVIO_PG_HOST=envio-postgres
ENVIO_PG_PORT=5432
ENVIO_POSTGRES_PASSWORD=testing
ENVIO_PG_USER=postgres
ENVIO_PG_DATABASE=envio-dev
HASURA_GRAPHQL_ENDPOINT=http://graphql-engine:8080/v1/metadata
TUI_OFF=true
7 changes: 1 addition & 6 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
save-exact=true
# Needed for ts build folder to have
# access to rescript node_modules
shamefully-hoist=true
# Needed so users can run `pnpm install` in the root of the repo without requiring the `-w` flag.
ignore-workspace-root-check=true
save-exact=true
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ To deploy locally with Docker, run the following command:
docker-compose up -d --build
```

Once the deployment is complete, you can access Hasura by navigating to:

```
http://localhost:8080/
```

Use the default password: `testing`.

## Contributing

Wonderland is a team of top Web3 researchers, developers, and operators who believe that the future needs to be open-source, permissionless, and decentralized.
Expand Down
236 changes: 118 additions & 118 deletions apps/indexer/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ networks:
#######################
# MAINNET #
#######################
- id: 1 # mainnet
start_block: 18486688
contracts:
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
- name: Strategy
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - id: 1 # mainnet
# start_block: 18486688
# contracts:
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - name: Strategy
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3

- id: 10 # optimism
start_block: 111678968
Expand All @@ -127,93 +127,93 @@ networks:
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

- id: 11155111 # sepolia
start_block: 4617051
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

- id: 250 # fantom
start_block: 77624278
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

- id: 42161 # arbitrum
start_block: 146489425
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

- id: 137 # polygon
start_block: 49466006
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

- id: 8453 # base
start_block: 6083365
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

- id: 324 # zksync-era-mainnet
start_block: 31154341
contracts:
- name: Registry
address:
- 0xaa376Ef759c1f5A8b0B5a1e2FEC5C23f3bF30246
- name: Strategy
- name: Allo
address:
- 0x9D1D1BF2835935C291C0f5228c86d5C4e235A249

- id: 43114 # avalanche
start_block: 34540051
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

- id: 534352 # scroll
start_block: 2683205
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 11155111 # sepolia
# start_block: 4617051
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

# - id: 250 # fantom
# start_block: 77624278
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

# - id: 42161 # arbitrum
# start_block: 146489425
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

# - id: 137 # polygon
# start_block: 49466006
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

# - id: 8453 # base
# start_block: 6083365
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

# - id: 324 # zksync-era-mainnet
# start_block: 31154341
# contracts:
# - name: Registry
# address:
# - 0xaa376Ef759c1f5A8b0B5a1e2FEC5C23f3bF30246
# - name: Strategy
# - name: Allo
# address:
# - 0x9D1D1BF2835935C291C0f5228c86d5C4e235A249

# - id: 43114 # avalanche
# start_block: 34540051
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

# - id: 534352 # scroll
# start_block: 2683205
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

# - id: 1329 # sei-mainnet
# rpc_config:
Expand All @@ -228,27 +228,27 @@ networks:
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

- id: 42220 # celo-mainnet
start_block: 22257475
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

- id: 42 # lukso-mainnet
start_block: 2400000
contracts:
- name: Registry
address:
- 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
- name: Strategy
- name: Allo
address:
- 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
# - id: 42220 # celo-mainnet
# start_block: 22257475
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1

# - id: 42 # lukso-mainnet
# start_block: 2400000
# contracts:
# - name: Registry
# address:
# - 0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3
# - name: Strategy
# - name: Allo
# address:
# - 0x1133eA7Af70876e64665ecD07C0A0476d09465a1
#######################
# TESTNET #
#######################
Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"yaml": "2.5.1"
},
"devDependencies": {
"@types/chai": "^4.3.11",
"@types/chai": "4.3.11",
"@types/mocha": "10.0.6",
"@types/node": "20.8.8",
"mocha": "10.2.0",
"ts-mocha": "^10.0.0",
"ts-mocha": "10.0.0",
"ts-node": "10.9.1",
"typescript": "5.2.2"
},
Expand Down
12 changes: 6 additions & 6 deletions apps/indexer/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ba1ff8e

Please sign in to comment.