-
Notifications
You must be signed in to change notification settings - Fork 195
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
Express relay python searcher #1319
Merged
Merged
Changes from 48 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
f4f2ba1
move js searcher sdk
474501d
add the python searcher sdk
574b8ff
remove pycache
64b7142
create class for simple searcher
244d8e0
add websocket to python searcher sdk
8dd3e74
finish ws, avoid storing liquidation opportunities within client
fcaff73
python scripts now working w auto type generation
6cab8b5
minor precommit changes
c14569e
address comments 1
2b819bb
add openapi type generations
7ad0165
fixed precommit issues on generated type files
069398f
reorg
e2acc99
fixed openapi_client generated precommit
616ff4a
fix js filepath issue
26bc8d2
added close ws
74b3200
renamings and add send_ws_message method
206f481
get rid of duplicate error parsing
3e66a84
cleanup
35abeca
set up pypi workflow
ed32ff8
address comments
e9e6e50
add python precommit
e64296c
changes + precommit changes
a3a5961
test precommit change
ef8a447
test precommit change
0252a7d
test precommit change
458f483
test precommit change
b0c086d
test precommit change
a6b640e
test precommit change
f70eefc
test precommit change
7d263f0
test precommit change
0902341
test precommit change
028b870
correct directory for poetry in pypi wf
6b8bc9f
remove isort
20bdd30
rename package
d62498d
add UUID and some cleanup
6af2df1
new openapi typings
4b27756
add pydantic to pyproj
342196e
more changes
2888be4
precommit
6b5555f
remove extraneous files, stick w actual_instance
968f874
added back http as nondefault
8afe3e7
correction
3e55b2f
some cleanup and reorg
fbc5e6b
minor changes
05f426e
add back api response typing file
c85480b
minorer changes
3af2730
exclude openapi_client from end of file fixer
946ff3a
build internal models via pydantic
0f90814
chgs
c40c824
start to reorg classes
3423ee7
configure precommit to work
559533e
some cleanup
c586c60
reorg a bit
5997608
address comments
9b0f395
chgs
dce3eee
fgt
b3d35b6
morechgs
81e5956
merge conflix
6090e3b
some more chgs
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,21 @@ | ||
name: Upload express-relay-utils Python Package to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade poetry | ||
poetry -C express_relay/sdk/python/express_relay_utils build | ||
- name: Build and publish | ||
run: | | ||
poetry -C express_relay/sdk/python/express_relay_utils build | ||
poetry -C express_relay/sdk/python/express_relay_utils publish --username __token__ --password ${{ secrets.PYPI_TOKEN }} |
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 |
---|---|---|
|
@@ -18,3 +18,4 @@ tsconfig.tsbuildinfo | |
*mnemonic* | ||
.envrc | ||
*/*.sui.log* | ||
__pycache__ |
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: openapi_client | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is not needed anymore |
||
- id: check-added-large-files | ||
exclude: package-lock.json | ||
# Hook to format many type of files in the repo | ||
|
@@ -111,3 +112,14 @@ repos: | |
entry: cargo +nightly-2023-03-01 clippy --manifest-path ./target_chains/solana/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings | ||
pass_filenames: false | ||
files: target_chains/solana | ||
# For express relay python files | ||
- id: black | ||
name: black | ||
entry: poetry -C express_relay/sdk/python/express_relay_utils run black express_relay/sdk/python/express_relay_utils | ||
pass_filenames: false | ||
language: system | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does this mean? |
||
- id: pyflakes | ||
name: pyflakes | ||
entry: poetry -C express_relay/sdk/python/express_relay_utils run pyflakes express_relay/sdk/python/express_relay_utils | ||
pass_filenames: false | ||
language: system |
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.
let's make this a bit more specific. maybe python-v*