Skip to content

Commit

Permalink
chore: update to latest sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Jan 24, 2025
1 parent 7546355 commit d508865
Show file tree
Hide file tree
Showing 81 changed files with 27,097 additions and 4,523 deletions.
15,183 changes: 10,720 additions & 4,463 deletions Cargo.lock

Large diffs are not rendered by default.

18 changes: 5 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,30 @@ keywords = ["tangle", "blueprint", "avs"]
rust-version = "1.81"

[dependencies]
tracing = "0.1"
async-trait = "0.1"
color-eyre = "0.6"
structopt = "0.3.26"
tokio = { version = "^1", default-features = false, features = ["full"] }
tracing-subscriber = { version = "0.3", features = ["parking_lot", "env-filter"] }
serde_json = "1.0.133"
serde = "1.0.215"
lazy_static = "1.5.0"
alloy-json-abi = { version = "0.8.12", features = ["serde_json"] }
alloy-sol-types = "0.8.12"
alloy-primitives = "0.8.12"
tempfile = "3.14.0"
tempfile = "3.13"
uuid = "1.11.0"
thiserror = "2.0.3"
schemars = "0.8"
kube = { version = "0.96.0", features = ["runtime", "derive"] }
k8s-openapi = { version = "0.23.0", features = ["v1_31"] }
gadget-sdk = { version = "0.4.0", default-features = false, features = ["getrandom"] }
blueprint-sdk = { git = "https://github.com/tangle-network/gadget", features = ["tangle", "evm", "macros", "local-store"] }
bytes = "1.8.0"
reqwest = "0.12.9"
wiremock = "0.6.2"
fake = "3.0.1"
rand = "0.8.5"
regex = "1.11.1"
ethers = { version = "2.0.14" }
anyhow = "1.0.93"
enigo = "0.3.0"
rexpect = "0.6.0"
bollard = "0.16.1"
bollard = "0.17"
futures = "0.3.31"
testcontainers = "0.20.0"
testcontainers = "0.23.0"
chrono = "0.4.39"

[dev-dependencies]
Expand All @@ -61,7 +53,7 @@ blueprint-metadata = "0.1.6"

[features]
default = ["std"]
std = ["gadget-sdk/std"]
std = ["blueprint-sdk/std"]

[lib]
path = "src/lib.rs"
Expand Down
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>"
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
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
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*
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"
}
]
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"
}
]
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
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"
}
}
Loading

0 comments on commit d508865

Please sign in to comment.