Skip to content

Commit

Permalink
Merge pull request #19 from graphprotocol/mde/json-oracle-encoder
Browse files Browse the repository at this point in the history
feat: json-encoder-web for oracle configuration transaction to DataEdge
  • Loading branch information
Maikol authored Apr 26, 2024
2 parents 25c9ae7 + b7a3269 commit f951ae4
Show file tree
Hide file tree
Showing 25 changed files with 9,534 additions and 16 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/web-encoder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GH Pages

on:
push:
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: latest
cache: "npm"
cache-dependency-path: json-encoder-web/package-lock.json
- run: npm install
working-directory: json-encoder-web
- run: npm run build
working-directory: json-encoder-web
- name: Deploy to GH Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: json-encoder-web/dist
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Cargo
# will have compiled files and executables
/target/
target/

# These are backup files generated by rustfmt
**/*.rs.bk
Expand All @@ -17,3 +17,7 @@
# IDEs
/.vscode
/.idea

# Ignore node stuff
node_modules/
yarn-error.log
113 changes: 101 additions & 12 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = [
"common",
"availability-oracle",
"crates/*",
"availability-oracle"
]
2 changes: 1 addition & 1 deletion availability-oracle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
common = { path = "../common" }
common = { path = "../crates/common" }
async-trait = "0.1.50"
tokio = { version = "1.10", features = ["macros", "sync", "time"] }
serde_yaml = "0.9.31"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions crates/json-oracle-encoder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "json-oracle-encoder"
version = "0.1.0"
edition = "2018"

[dependencies]
anyhow = "1.0.57"
ethabi = "17.2.0"
hex = "0.4.3"
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1"
Loading

0 comments on commit f951ae4

Please sign in to comment.