Skip to content

Commit

Permalink
upped utils, client, cell-client, core-types
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Aug 18, 2022
1 parent a843693 commit 8718478
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 30 deletions.
187 changes: 165 additions & 22 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch --preserveWatchOutput",
"publish-to-branch": "npm run build && rimraf node_modules && gh-pages -d . -b ui-build && cd .. && npm i"
"publish-to-branch": "npm run build && rimraf node_modules && gh-pages -d . -b ui-build-hdk-0.0.142 && cd .. && npm i"
},
"type": "module",
"dependencies": {
"@holochain-open-dev/cell-client": "^0.6.1",
"@holochain-open-dev/cell-client": "^0.7.1",
"@holochain-open-dev/core-types": "^0.4.0",
"@holochain-open-dev/utils": "^0.2.4",
"@holochain/client": "^0.6.0",
"@holochain-open-dev/utils": "^0.3.1",
"@holochain/client": "^0.7.0",
"lit-svelte-stores": "^0.1.9",
"svelte": "^3.48.0"
},
Expand Down
2 changes: 1 addition & 1 deletion ui/src/membrane-invitations-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class MembraneInvitationsService {

public getCloneRecipesForDna(
originalDnaHash: DnaHash
): Promise<HoloHashMap<CloneDnaRecipe>> { // keys of type EntryHash
): Promise<HoloHashMap<EntryHash, CloneDnaRecipe>> { // keys of type EntryHash
return this.callZome("get_clone_recipes_for_dna", originalDnaHash);
}

Expand Down
6 changes: 3 additions & 3 deletions ui/src/membrane-invitations-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { JoinMembraneInvitation } from "./types";
export class MembraneInvitationsStore {
public service: MembraneInvitationsService;

myInvitations: Writable<HoloHashMap<JoinMembraneInvitation>> = // keys of type ActionHash
writable(new HoloHashMap<JoinMembraneInvitation>());
myInvitations: Writable<HoloHashMap<ActionHash, JoinMembraneInvitation>> = // keys of type ActionHash
writable(new HoloHashMap<ActionHash, JoinMembraneInvitation>());

constructor(
protected cellClient: CellClient,
Expand All @@ -29,7 +29,7 @@ export class MembraneInvitationsStore {
}

async fetchMyInvitations() {
let myInvitations = new HoloHashMap<JoinMembraneInvitation>();
let myInvitations = new HoloHashMap<ActionHash, JoinMembraneInvitation>();
const invitationsArray: [ActionHash, JoinMembraneInvitation][] = await this.service.getMyInvitations();
invitationsArray.forEach(([actionHash, joinMembraneInvitation]) => {
myInvitations.put(actionHash, joinMembraneInvitation);
Expand Down

0 comments on commit 8718478

Please sign in to comment.