Skip to content

Commit

Permalink
feat: add memproof provisioning calls to api (#263)
Browse files Browse the repository at this point in the history
* update deps

* add call to start app from app ws

* add call to query compatible cells

* update changelog

* update nix flake lock

* resolve name collision & rebuild docs

* ci: update nix installation

* upgrade nix version
  • Loading branch information
jost-s authored Jul 16, 2024
1 parent 9c7b5a4 commit 454b0e5
Show file tree
Hide file tree
Showing 24 changed files with 406 additions and 311 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v25
uses: cachix/install-nix-action@v27
with:
install_url: https://releases.nixos.org/nix/nix-2.17.0/install
install_url: https://releases.nixos.org/nix/nix-2.22.0/install

- name: Set up cachix
uses: cachix/cachix-action@v14
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## \[Unreleased\]

### Added
- New value `NotStartedAfterProvidingMemproofs` for type `DisabledAppReason` which effectively allows a new app status, corresponding to the specific state where a UI has just called AppRequest::ProvideMemproofs, but the app has not yet been enabled for the first time.
- New `AppWebsocket` call `EnableAfterMemproofsProvided`, which allows enabling an app only if the app is in the `AppStatus::Disabled(DisabledAppReason::NotStartedAfterProvidingMemproofs)` state. Attempting to enable the app from other states (other than Running) will fail.
- New field `lineage` to the DNA manifest, which declares forward compatibility for any hash in that list with this DNA.
- New `AdminWebsocket` call `GetCompatibleCells`, which returns `CellId` for all installed cells which use a DNA that is forward-compatible with a given DNA hash. This can be used to find a compatible cell for use with the UseExisting cell provisioning method.

### Changed
### Fixed
### Removed
Expand Down
110 changes: 55 additions & 55 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ resolver = "2"
opt-level = "z"

[workspace.dependencies]
hdk = "0.4.0-beta-dev.1"
hdk = "0.4.0-dev.10"
11 changes: 11 additions & 0 deletions docs/client.adminwebsocket.getcompatiblecells.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@holochain/client](./client.md) &gt; [AdminWebsocket](./client.adminwebsocket.md) &gt; [getCompatibleCells](./client.adminwebsocket.getcompatiblecells.md)

## AdminWebsocket.getCompatibleCells property

**Signature:**

```typescript
getCompatibleCells: Requester<GetCompatibleCellsRequest, GetCompatibleCellsResponse>;
```
Loading

0 comments on commit 454b0e5

Please sign in to comment.