fix(amm-ui): pin standalone client input

This commit is contained in:
Ricardo Guilherme Schmidt 2026-07-15 18:15:01 -03:00
parent c3a07949f3
commit 7265cf18eb
No known key found for this signature in database
GPG Key ID: 4665EDC861D87867
3 changed files with 22 additions and 16 deletions

View File

@ -82,10 +82,11 @@ nix-store --gc
Do not remove `/nix/store` directly.
### A local flake lock error mentions an unlocked `amm_client` input
### A flake lock error mentions an unlocked input
The committed `flake.lock` includes a hash for the repository-local client
input. Restore that file if a local experiment replaced it, then retry:
The committed `flake.lock` pins the AMM client to the PR branch and hashes the
local shared-wallet source. Restore that file if a local experiment replaced
it, then retry:
```sh
git restore flake.lock

26
apps/amm/flake.lock generated
View File

@ -6,16 +6,19 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1784149231,
"narHash": "sha256-C2Z0t4FNq0tLlFosZ6/HNYoq2jqSkEJeytObS3I/MPA=",
"path": "../..",
"type": "path"
"lastModified": 1784138901,
"narHash": "sha256-kqLqwQiTpc1Lj8RGz2EIWpFx2rPOBwXaMzwsByYx38o=",
"owner": "logos-blockchain",
"repo": "lez-programs",
"rev": "ca0b67db08f19da01154a481017fc95d230516ae",
"type": "github"
},
"original": {
"path": "../..",
"type": "path"
},
"parent": []
"owner": "logos-blockchain",
"ref": "feat/amm-pool-creation",
"repo": "lez-programs",
"type": "github"
}
},
"crane": {
"locked": {
@ -26903,16 +26906,15 @@
"shared_wallet": {
"flake": false,
"locked": {
"lastModified": 1784149231,
"narHash": "sha256-yhF0x6BrOn3IvffBq+jjnwfDWKK0NrMV7iFsHvCvqc8=",
"lastModified": 1,
"narHash": "sha256-m7PiWaU5Beio+XeJP6Tz7JFUq8PZZJvcZrmKwShekTY=",
"path": "../shared/wallet",
"type": "path"
},
"original": {
"path": "../shared/wallet",
"type": "path"
},
"parent": []
}
}
},
"root": "root",

View File

@ -14,7 +14,10 @@
# deployed program ID and keeps the `logos_execution_zone` module identity.
logos_execution_zone.url = "github:logos-blockchain/logos-execution-zone-module?rev=d70225ced646934d2294fd9e8f8b03615c104b80";
amm_client.url = "path:../..";
# A path input to the repository contains this flake.lock, which makes
# its lock hash self-referential. Pin the client to this PR's remote
# branch instead so a fresh clone can evaluate the flake reproducibly.
amm_client.url = "github:logos-blockchain/lez-programs/feat/amm-pool-creation";
};
outputs = inputs@{ logos-module-builder, shared_wallet, ... }: