-
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.
- Loading branch information
Showing
81 changed files
with
27,097 additions
and
4,523 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 2 additions & 0 deletions
2
indexer_multi_network_test_316833db-8421-470d-b682-a13f46877379/.env.example
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# To create or update a token visit https://envio.dev/app/api-tokens | ||
ENVIO_API_TOKEN="<YOUR-API-TOKEN>" |
37 changes: 37 additions & 0 deletions
37
indexer_multi_network_test_316833db-8421-470d-b682-a13f46877379/.gitignore
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
*.exe | ||
*.obj | ||
*.out | ||
*.compile | ||
*.native | ||
*.byte | ||
*.cmo | ||
*.annot | ||
*.cmi | ||
*.cmx | ||
*.cmt | ||
*.cmti | ||
*.cma | ||
*.a | ||
*.cmxa | ||
*.obj | ||
*~ | ||
*.annot | ||
*.cmj | ||
*.bak | ||
lib/* | ||
*.mlast | ||
*.mliast | ||
.vscode | ||
.merlin | ||
.bsb.lock | ||
/node_modules/ | ||
benchmarks/ | ||
artifacts | ||
cache | ||
generated | ||
logs | ||
*.bs.js | ||
*.bs.mjs | ||
*.gen.ts | ||
build | ||
.env |
5 changes: 5 additions & 0 deletions
5
indexer_multi_network_test_316833db-8421-470d-b682-a13f46877379/.npmrc
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 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 |
3 changes: 3 additions & 0 deletions
3
indexer_multi_network_test_316833db-8421-470d-b682-a13f46877379/README.md
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Envio Blank Template | ||
|
||
*Please refer to the [documentation website](https://docs.envio.dev) for a thorough guide on all Envio indexer features* |
103 changes: 103 additions & 0 deletions
103
indexer_multi_network_test_316833db-8421-470d-b682-a13f46877379/abis/Greeter_abi.json
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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "_greeting", | ||
"type": "string" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "GreeterError", | ||
"type": "error" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "address", | ||
"name": "user", | ||
"type": "address" | ||
} | ||
], | ||
"name": "ClearGreeting", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "address", | ||
"name": "user", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "string", | ||
"name": "greeting", | ||
"type": "string" | ||
} | ||
], | ||
"name": "NewGreeting", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "clearGreeting", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "greet", | ||
"outputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "", | ||
"type": "string" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "greeting", | ||
"outputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "", | ||
"type": "string" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "_greeting", | ||
"type": "string" | ||
} | ||
], | ||
"name": "setGreeting", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "throwError", | ||
"outputs": [], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
} | ||
] |
103 changes: 103 additions & 0 deletions
103
...xer_multi_network_test_316833db-8421-470d-b682-a13f46877379/abis/OptimismGreeter_abi.json
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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "_greeting", | ||
"type": "string" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "GreeterError", | ||
"type": "error" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "address", | ||
"name": "user", | ||
"type": "address" | ||
} | ||
], | ||
"name": "ClearGreeting", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "address", | ||
"name": "user", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "string", | ||
"name": "greeting", | ||
"type": "string" | ||
} | ||
], | ||
"name": "NewGreeting", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "clearGreeting", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "greet", | ||
"outputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "", | ||
"type": "string" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "greeting", | ||
"outputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "", | ||
"type": "string" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "_greeting", | ||
"type": "string" | ||
} | ||
], | ||
"name": "setGreeting", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "throwError", | ||
"outputs": [], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
} | ||
] |
24 changes: 24 additions & 0 deletions
24
indexer_multi_network_test_316833db-8421-470d-b682-a13f46877379/config.yaml
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# yaml-language-server: $schema=./node_modules/envio/evm.schema.json | ||
name: envio-indexer | ||
networks: | ||
- id: 1 | ||
start_block: 0 | ||
contracts: | ||
- name: Greeter | ||
address: | ||
- 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 | ||
handler: src/EventHandlers.ts | ||
events: | ||
- event: ClearGreeting(address user) | ||
- event: NewGreeting(address user, string greeting) | ||
- id: 10 | ||
start_block: 0 | ||
contracts: | ||
- name: OptimismGreeter | ||
address: | ||
- 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 | ||
handler: src/EventHandlers.ts | ||
events: | ||
- event: ClearGreeting(address user) | ||
- event: NewGreeting(address user, string greeting) | ||
rollback_on_reorg: false |
30 changes: 30 additions & 0 deletions
30
indexer_multi_network_test_316833db-8421-470d-b682-a13f46877379/package.json
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "envio-indexer", | ||
"version": "0.1.0", | ||
"scripts": { | ||
"clean": "tsc --clean", | ||
"build": "tsc --build", | ||
"watch": "tsc --watch", | ||
"mocha": "ts-mocha test/**/*.ts", | ||
"codegen": "envio codegen", | ||
"dev": "envio dev", | ||
"test": "pnpm mocha", | ||
"start": "ts-node generated/src/Index.bs.js" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.3.11", | ||
"@types/mocha": "10.0.6", | ||
"@types/node": "20.8.8", | ||
"ts-mocha": "^10.0.0", | ||
"ts-node": "10.9.1", | ||
"typescript": "5.2.2", | ||
"chai": "4.3.10", | ||
"mocha": "10.2.0" | ||
}, | ||
"dependencies": { | ||
"envio": "2.8.2" | ||
}, | ||
"optionalDependencies": { | ||
"generated": "./generated" | ||
} | ||
} |
Oops, something went wrong.