Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add express relay rust client #280

Merged
merged 39 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
16f8426
Add express relay rust client
danimhr Dec 3, 2024
d03b48f
Add cargo lock
danimhr Dec 3, 2024
516b3fd
Add generated types
danimhr Dec 3, 2024
5cc3497
Add workspace
danimhr Dec 4, 2024
d837b7b
Add api as package
danimhr Dec 4, 2024
d3b6cee
Add dummy version
danimhr Dec 4, 2024
f9bf3d2
Fix
danimhr Dec 4, 2024
e3317b9
Add repo metadata
danimhr Dec 4, 2024
e4e2685
Fix
danimhr Dec 4, 2024
4fe8dae
Add more types to api-types
danimhr Dec 5, 2024
18be775
Add simple searcher schema
danimhr Dec 6, 2024
1e8d89e
Add routes to api-types
danimhr Dec 7, 2024
ab0cdc9
Refactor
danimhr Dec 7, 2024
4e5b35e
Sample client module
danimhr Dec 7, 2024
f9939f4
Add ws schema
danimhr Dec 9, 2024
ac1ac7d
Fix and add more messages
danimhr Dec 10, 2024
8e3d1a2
Add evm functions
danimhr Dec 10, 2024
2ef3e43
Empty
danimhr Dec 10, 2024
6c09ee3
Better stream handling for ws
danimhr Dec 11, 2024
1dc76bb
Add evm bid
danimhr Dec 11, 2024
e511d35
Merged with main
danimhr Dec 11, 2024
bc94c7d
Add api key
danimhr Dec 11, 2024
6abc61c
Add chain configs for evm
danimhr Dec 11, 2024
2e623dd
Fix build
danimhr Dec 11, 2024
e3b28ba
Fix
danimhr Dec 11, 2024
fa88650
Fix
danimhr Dec 11, 2024
2098cd9
Fix
danimhr Dec 11, 2024
06f56eb
Add timeout to ws
danimhr Dec 11, 2024
88b89fe
Fix
danimhr Dec 11, 2024
d9ce41f
Fix
danimhr Dec 11, 2024
16ba076
Fix
danimhr Dec 11, 2024
ee1f0e9
Remove print
danimhr Dec 12, 2024
c061e0e
Address some comments
danimhr Dec 14, 2024
2f0163e
Remove abis
danimhr Dec 14, 2024
46f3aac
Remove abi
danimhr Dec 14, 2024
8eff822
Address more comments
danimhr Dec 14, 2024
5716798
Address more comments
danimhr Dec 15, 2024
ab70f2e
Address more comments
danimhr Dec 16, 2024
35b0d74
Update version
danimhr Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-03-01
components: rustfmt, clippy
toolchain: 1.83.0
components: clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2024-04-10
components: rustfmt, clippy
toolchain: nightly-2024-12-03
components: rustfmt
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/publish-express-relay-api-types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish Express Relay Client to crates.io
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems weird that both github workflows have the same name and job name


on:
push:
tags:
- express-relay-api-types-v*
jobs:
publish-express-relay-client:
name: Publish Express Relay Client
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- run: cargo publish -p express-relay-api-types --token ${CARGO_REGISTRY_TOKEN}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.PYTH_NETWORK_PYTH_OPS_CARGO_PUSH }}
17 changes: 17 additions & 0 deletions .github/workflows/publish-rust-express-relay-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish Express Relay Client to crates.io

on:
push:
tags:
- rust-express-relay-client-v*
jobs:
publish-express-relay-client:
name: Publish Express Relay Client
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Publish Express Relay Client
run: cargo publish -p express-relay-client --token ${CARGO_REGISTRY_TOKEN}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.PYTH_NETWORK_PYTH_OPS_CARGO_PUSH }}
39 changes: 14 additions & 25 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: "^sdk/rust/abi/.*"
- id: check-added-large-files
exclude: package-lock.json
# Hook to format many type of files in the repo
Expand All @@ -15,52 +16,40 @@ repos:
additional_dependencies:
- "[email protected]"
- "[email protected]"
exclude: "^sdk/rust/abi/.*"
- repo: local
hooks:
# Hooks for auction server
- id: cargo-fmt-auction-server
name: Cargo format for auction server
# Hooks for workspace
- id: cargo-fmt-workspace
name: Cargo format for workspace
language: "rust"
entry: cargo +nightly-2024-04-10 fmt --manifest-path ./auction-server/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +nightly-2024-12-03 fmt --manifest-path ./Cargo.toml --all -- --config-path rustfmt.toml
pass_filenames: false
files: auction-server
- id: cargo-clippy-auction-server
name: Cargo clippy for auction server
files: .
- id: cargo-clippy-workspace
name: Cargo clippy for workspace
language: "rust"
entry: cargo +stable clippy --manifest-path ./auction-server/Cargo.toml --tests -- -D warnings
entry: cargo +stable clippy --manifest-path ./Cargo.toml --tests -- -D warnings
pass_filenames: false
files: auction-server
files: .
# Hooks for vault-simulator
- id: cargo-fmt-vault-simulator
name: Cargo format for vault simulator
language: "rust"
entry: cargo +nightly-2024-04-10 fmt --manifest-path ./vault-simulator/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo fmt --manifest-path ./vault-simulator/Cargo.toml --all -- --config-path rustfmt.toml
pass_filenames: false
files: vault-simulator
- id: cargo-clippy-vault-simulator
name: Cargo clippy for vault simulator
language: "rust"
entry: cargo +stable clippy --manifest-path ./vault-simulator/Cargo.toml --tests -- -D warnings
entry: cargo clippy --manifest-path ./vault-simulator/Cargo.toml --tests -- -D warnings
pass_filenames: false
files: vault-simulator
# Hooks for gas-oracle
- id: cargo-fmt-gas-oracle
name: Cargo format for gas oracle
language: "rust"
entry: cargo +nightly-2024-04-10 fmt --manifest-path ./gas-oracle/Cargo.toml --all -- --config-path rustfmt.toml
pass_filenames: false
files: gas-oracle
- id: cargo-clippy-gas-oracle
name: Cargo clippy for gas oracle
language: "rust"
entry: cargo +stable clippy --manifest-path ./gas-oracle/Cargo.toml --tests -- -D warnings
pass_filenames: false
files: gas-oracle
# Hooks for contracts-svm
- id: cargo-fmt-contracts-svm
name: Cargo format for svm contracts
language: "rust"
entry: cargo +nightly-2024-04-10 fmt --manifest-path ./contracts/svm/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +nightly-2024-12-03 fmt --manifest-path ./contracts/svm/Cargo.toml --all -- --config-path rustfmt.toml
pass_filenames: false
files: contracts/svm
- id: cargo-clippy-contracts-svm
Expand Down
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"rust-analyzer.linkedProjects": [
"./auction-server/Cargo.toml",
"./gas-oracle/Cargo.toml",
"./vault-simulator/Cargo.toml",
"./contracts/svm/Cargo.toml"
"./contracts/svm/Cargo.toml",
"./Cargo.toml"
]
}
Loading
Loading