Skip to content

Commit

Permalink
refactor: simpler searchers (#228)
Browse files Browse the repository at this point in the history
* Simplify js

* Simplify python
  • Loading branch information
m30m authored Nov 12, 2024
1 parent cc612f4 commit 7402bdf
Show file tree
Hide file tree
Showing 9 changed files with 343 additions and 450 deletions.
4 changes: 2 additions & 2 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ local_resource(

local_resource(
"svm-searcher-py",
serve_cmd="poetry run python3 -m express_relay.searcher.examples.simple_searcher_svm --endpoint-express-relay http://127.0.0.1:9000 --chain-id development-solana --private-key-json-file ../../keypairs/searcher_js.json --endpoint-svm http://127.0.0.1:8899 --bid 10000000 --fill-rate 4 --bid-margin 1 --with-latency",
serve_cmd="poetry run python3 -m express_relay.searcher.examples.testing_searcher_svm --endpoint-express-relay http://127.0.0.1:9000 --chain-id development-solana --private-key-json-file ../../keypairs/searcher_js.json --endpoint-svm http://127.0.0.1:8899 --bid 10000000 --fill-rate 4 --bid-margin 100 --with-latency",
serve_dir="sdk/python",
resource_deps=["svm-initialize-programs", "auction-server"],
)

local_resource(
"svm-searcher-js",
serve_cmd="npm run simple-searcher-limo -- --endpoint-express-relay http://127.0.0.1:9000 --chain-id development-solana --private-key-json-file ../../keypairs/searcher_py.json --endpoint-svm http://127.0.0.1:8899 --bid 10000000 --fill-rate 4 --bid-margin 1 --with-latency",
serve_cmd="npm run testing-searcher-limo -- --endpoint-express-relay http://127.0.0.1:9000 --chain-id development-solana --private-key-json-file ../../keypairs/searcher_py.json --endpoint-svm http://127.0.0.1:8899 --bid 10000000 --fill-rate 4 --bid-margin 100 --with-latency",
serve_dir="sdk/js",
resource_deps=["svm-initialize-programs", "auction-server"],
)
4 changes: 2 additions & 2 deletions sdk/js/package-lock.json

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

4 changes: 2 additions & 2 deletions sdk/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/express-relay-js",
"version": "0.13.3",
"version": "0.13.4",
"description": "Utilities for interacting with the express relay protocol",
"homepage": "https://github.com/pyth-network/per/tree/main/sdk/js",
"author": "Douro Labs",
Expand All @@ -16,8 +16,8 @@
"build": "tsc",
"test": "jest src/ --passWithNoTests",
"simple-searcher-evm": "npm run build && node lib/examples/simpleSearcherEvm.js",
"simple-searcher-svm": "npm run build && node lib/examples/simpleSearcherSvm.js",
"simple-searcher-limo": "npm run build && node lib/examples/simpleSearcherLimo.js",
"testing-searcher-limo": "npm run build && node lib/examples/testingSearcherLimo.js",
"generate-api-types": "openapi-typescript http://127.0.0.1:9000/docs/openapi.json --output src/serverTypes.d.ts",
"generate-anchor-types": "anchor idl type src/idl/idlExpressRelay.json --out src/expressRelayTypes.d.ts && anchor idl type src/examples/idl/idlDummy.json --out src/examples/dummyTypes.d.ts",
"format": "prettier --write \"src/**/*.ts\"",
Expand Down
Loading

0 comments on commit 7402bdf

Please sign in to comment.