Skip to content

Commit

Permalink
updating builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Mar 29, 2024
1 parent 1a21b14 commit f23a40b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 73 deletions.
59 changes: 21 additions & 38 deletions flake.lock

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

58 changes: 29 additions & 29 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
inputs.nixpkgs.follows = "nixpkgs";
};

maturin-src = {
url = "github:PyO3/maturin";
flake = false;
};
# maturin-src = {
# url = "github:PyO3/maturin";
# flake = false;
# };

pydantic-src = {
url = "github:pydantic/pydantic/v2.5.3";
Expand Down Expand Up @@ -258,29 +258,29 @@
];
};

maturin-latest = pkgs.python3Packages.buildPythonPackage {
name = "maturin";
version = "0.0.1";
format = "pyproject";

src = inputs.maturin-src;

cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
src = inputs.maturin-src;
name = "maturin";
version = "0.0.1";
hash = "sha256-ujbZ9AfDKPva/E/xGVr6Pq/M++U+B3Iv0TVGpE1aGQM=";
};

nativeBuildInputs = with pkgs.python3Packages; [
poetry-core
setuptools
setuptools-rust
setuptools-git-versioning
pkgs.rustPlatform.cargoSetupHook
pkgs.rustPlatform.maturinBuildHook
];
};
# maturin-latest = pkgs.python3Packages.buildPythonPackage {
# name = "maturin";
# version = "0.0.1";
# format = "pyproject";

# src = inputs.maturin-src;

# cargoDeps = pkgs.rustPlatform.fetchCargoTarball {
# src = inputs.maturin-src;
# name = "maturin";
# version = "0.0.1";
# hash = "sha256-ujbZ9AfDKPva/E/xGVr6Pq/M++U+B3Iv0TVGpE1aGQM=";
# };

# nativeBuildInputs = with pkgs.python3Packages; [
# poetry-core
# setuptools
# setuptools-rust
# setuptools-git-versioning
# pkgs.rustPlatform.cargoSetupHook
# pkgs.rustPlatform.maturinBuildHook
# ];
# };

poetryDeps = mkPoetryPackages {
projectDir = ./mantis;
Expand Down Expand Up @@ -318,7 +318,7 @@
});
cvxpy = cvxpy-latest;

maturin = maturin-latest;
# maturin = maturin-latest;
});

envShell = mkPoetryEnv {
Expand Down Expand Up @@ -448,7 +448,7 @@
cosmwasm-json-schema-ts
mantis-blackbox
pyscipopt-latest
maturin-latest
# maturin-latest
;
all =
pkgs.linkFarmFromDrvs "all"
Expand Down
6 changes: 0 additions & 6 deletions mantis/node/src/bin/mantis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ async fn solve_orders(solver_args: &SolverArgs) {
get_latest_block_and_account_by_key(&args.rpc_centauri, &args.grpc_centauri, &signer)
.await;
let all_orders = get_all_orders(&args.order_contract, &mut wasm_read_client, &tip).await;

// 1. proper order structure 1. solve and clean timeout
// 2. form CVM from string
// 3. deploy to devnet
// 4. test
// 5. final fix
if all_orders.any() {
solve(
&mut write_client,
Expand Down

0 comments on commit f23a40b

Please sign in to comment.