Skip to content

Commit

Permalink
WIP update to holochain 0.4-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Nov 13, 2024
1 parent 6814e89 commit 6309e4b
Show file tree
Hide file tree
Showing 15 changed files with 321 additions and 151 deletions.
4 changes: 2 additions & 2 deletions scripts/download-happs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
mkdir -p electron/binaries
# bump this in tandem with bumping the INTEGRITY_VERSION_NUMBER
# -q is just "quiet" without the logs
wget -q https://github.com/lightningrodlabs/acorn-happ/releases/download/v14.0.0/acorn.happ -O electron/binaries/acorn.happ
wget -q https://github.com/lightningrodlabs/acorn-happ/releases/download/v14.0.0/projects.happ -O electron/binaries/projects.happ
wget -q https://github.com/lightningrodlabs/acorn-happ/releases/download/v14.0.1/acorn.happ -O electron/binaries/acorn.happ
wget -q https://github.com/lightningrodlabs/acorn-happ/releases/download/v14.0.1/projects.happ -O electron/binaries/projects.happ
6 changes: 3 additions & 3 deletions we-applet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"dev-we": "we-dev-cli --agent-idx 1 --dev-config we.dev.config.ts",
"dev-we2": "we-dev-cli --agent-idx 2 --dev-config we.dev.config.ts"
"dev-we": "weave --agent-idx 1 --dev-config we.dev.config.ts",
"dev-we2": "weave --agent-idx 2 --dev-config we.dev.config.ts"
},
"dependencies": {
"@lightningrodlabs/we-dev-cli": "0.13.0-beta.5"
"@theweave/cli": "0.13.0-gamma.6"
}
}
2 changes: 1 addition & 1 deletion we-applet/we.dev.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from '@lightningrodlabs/we-dev-cli'
import { defineConfig } from '@theweave/cli'

export default defineConfig({
groups: [
Expand Down
12 changes: 6 additions & 6 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"zip:ui": "zip -r dist.zip dist",
"build:webhapp": "hc web-app pack --output=./acorn.webhapp ./",
"package": "npm run build:ui && npm run zip:ui && npm run build:webhapp && cp acorn.webhapp /Users/weswalla/lrl/kando/we_dev",
"dev:we": "we-dev-cli --agent-idx 1 --dev-config we.dev.config.ts"
"dev:we": "weave --agent-idx 1 --dev-config we.dev.config.ts"
},
"devDependencies": {
"@babel/core": "^7.14.0",
Expand Down Expand Up @@ -61,11 +61,11 @@
},
"dependencies": {
"@babel/runtime": "^7.7.4",
"@holochain/client": "0.18.0-dev.1",
"@lightningrodlabs/we-applet": "0.17.0-dev.1",
"@lightningrodlabs/we-dev-cli": "0.12.0-dev.0",
"@holochain-open-dev/profiles": "0.400.0-dev.1",
"@holochain-open-dev/utils": "0.300.2",
"@holochain/client": "0.18.0-rc.0",
"@theweave/api": "0.2.1",
"@theweave/cli": "0.13.0-gamma.6 ",
"@holochain-open-dev/profiles": "0.400.0-dev.4",
"@holochain-open-dev/utils": "0.400.0-dev.4",
"@tweenjs/tween.js": "^18.6.4",
"babel-plugin-transform-class-properties": "^6.24.1",
"buffer": "^6.0.3",
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/IntroScreen/IntroScreen.connector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import IntroScreenInner, {
import useAppWebsocket from '../../hooks/useAppWebsocket'
import React from 'react'
import { getAppWs, getWeaveProfilesClient } from '../../hcWebsockets'
import { isWeContext } from '@lightningrodlabs/we-applet'
import { isWeContext } from '@theweave/api'

function mapStateToProps(state: RootState): IntroScreenStateProps {
return {
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/NetworkInfo/NetworkInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './NetworkInfo.scss'
import { getAdminWs } from '../../hcWebsockets'
import ReactJsonView from 'react-json-view'
import { VersionInfo } from '../../hooks/useVersionChecker'
import { isWeContext } from '@lightningrodlabs/we-applet'
import { isWeContext } from '@theweave/api'

export type NetworkInfoProps = {
versionInfo: VersionInfo
Expand Down
2 changes: 1 addition & 1 deletion web/src/hcWebsockets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AdminWebsocket, AppWebsocket, AppClient } from '@holochain/client'
import { MAIN_APP_ID } from './holochainConfig'
import { isWeContext, WeaveClient } from '@lightningrodlabs/we-applet'
import { isWeContext, WeaveClient } from '@theweave/api'
import { ProfilesClient } from '@holochain-open-dev/profiles'

// export for use by holochainMiddleware (redux)
Expand Down
2 changes: 1 addition & 1 deletion web/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
WeaveClient,
initializeHotReload,
isWeContext,
} from '@lightningrodlabs/we-applet'
} from '@theweave/api'
import createStoreAndRenderToDom, { electronInit } from './indexForElectron'
import {
getAdminWs,
Expand Down
2 changes: 1 addition & 1 deletion web/src/indexForMoss.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { cellIdToString } from './utils'
// Import styles
import './variables.scss'
import './global.scss'
import { isWeContext } from '@lightningrodlabs/we-applet'
import { isWeContext } from '@theweave/api'
import { ProfilesClient } from '@holochain-open-dev/profiles'

export async function mossInit(
Expand Down
2 changes: 1 addition & 1 deletion web/src/migrating/import/zomeApiCreators.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AppClient } from '@holochain/client'
import ProfilesZomeApi from '../../api/profilesApi'
import ProjectsZomeApi from '../../api/projectsApi'
import { isWeContext } from '@lightningrodlabs/we-applet'
import { isWeContext } from '@theweave/api'
import { getWeaveProfilesClient } from '../../hcWebsockets'

export async function createProfilesZomeApi(
Expand Down
2 changes: 1 addition & 1 deletion web/src/projects/installProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { PROJECT_APP_PREFIX, PROJECTS_ROLE_NAME } from '../holochainConfig'
import { passphraseToUid } from '../secrets'
import { CellIdString } from '../types/shared'
import { cellIdToString } from '../utils'
import { isWeContext } from '@lightningrodlabs/we-applet'
import { isWeContext } from '@theweave/api'

export async function internalInstallProject(
passphrase: string,
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/App.connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { updateProjectMeta } from '../redux/persistent/projects/project-meta/act
import { uninstallProject } from '../projects/uninstallProject'
import { unselectAll } from '../redux/ephemeral/selection/actions'
import { CellId } from '@holochain/client'
import { isWeContext } from '@lightningrodlabs/we-applet'
import { isWeContext } from '@theweave/api'

function mapStateToProps(state: RootState): AppStateProps {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import CreateProfilePage, {
import { Profile } from '../../types'
import { CellIdString } from '../../types/shared'
import { AppClient } from '@holochain/client'
import { isWeContext } from '@lightningrodlabs/we-applet'
import { isWeContext } from '@theweave/api'
import { getWeaveProfilesClient } from '../../hcWebsockets'

function mapStateToProps(state: RootState): CreateProfilePageStateProps {
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/ProjectView/ProjectView.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import selectAndComputeOutcomes from '../../selectors/computeOutcomes'
import selectOutcomeAndAncestors from '../../selectors/outcomeAndAncestors'
import { getAdminWs } from '../../hcWebsockets'
import { cellIdFromString } from '../../utils'
import { isWeContext } from '@lightningrodlabs/we-applet'
import { isWeContext } from '@theweave/api'

export type ProjectViewInnerOwnProps = {
projectId: CellIdString
Expand Down
Loading

0 comments on commit 6309e4b

Please sign in to comment.