-
Notifications
You must be signed in to change notification settings - Fork 5
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
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 d03b48f
Add cargo lock
danimhr 516b3fd
Add generated types
danimhr 5cc3497
Add workspace
danimhr d837b7b
Add api as package
danimhr d3b6cee
Add dummy version
danimhr f9bf3d2
Fix
danimhr e3317b9
Add repo metadata
danimhr e4e2685
Fix
danimhr 4fe8dae
Add more types to api-types
danimhr 18be775
Add simple searcher schema
danimhr 1e8d89e
Add routes to api-types
danimhr ab0cdc9
Refactor
danimhr 4e5b35e
Sample client module
danimhr f9939f4
Add ws schema
danimhr ac1ac7d
Fix and add more messages
danimhr 8e3d1a2
Add evm functions
danimhr 2ef3e43
Empty
danimhr 6c09ee3
Better stream handling for ws
danimhr 1dc76bb
Add evm bid
danimhr e511d35
Merged with main
danimhr bc94c7d
Add api key
danimhr 6abc61c
Add chain configs for evm
danimhr 2e623dd
Fix build
danimhr e3b28ba
Fix
danimhr fa88650
Fix
danimhr 2098cd9
Fix
danimhr 06f56eb
Add timeout to ws
danimhr 88b89fe
Fix
danimhr d9ce41f
Fix
danimhr 16ba076
Fix
danimhr ee1f0e9
Remove print
danimhr c061e0e
Address some comments
danimhr 2f0163e
Remove abis
danimhr 46f3aac
Remove abi
danimhr 8eff822
Address more comments
danimhr 5716798
Address more comments
danimhr ab70f2e
Address more comments
danimhr 35b0d74
Update version
danimhr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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,17 @@ | ||
name: Publish Express Relay Client to crates.io | ||
|
||
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 }} |
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,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 }} |
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
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 |
---|---|---|
@@ -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" | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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