diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 24085eb6..f2c5d1c6 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -30,7 +30,7 @@ jobs: cache: "yarn" - name: Install dependencies run: | - yarn add bos-workspace + yarn add bos-workspace@1.0.0-alpha.32 npx playwright install-deps npx playwright install - name: Run tests diff --git a/.github/workflows/web4-deploy-production.yml b/.github/workflows/web4-deploy-production.yml index 6256051e..60c41176 100644 --- a/.github/workflows/web4-deploy-production.yml +++ b/.github/workflows/web4-deploy-production.yml @@ -1,4 +1,4 @@ -name: Deploy to production +name: Deploy web4 contract to production on: push: branches: [main] diff --git a/.github/workflows/web4-deploy-staging.yml b/.github/workflows/web4-deploy-staging.yml index 58a70249..9e03aba5 100644 --- a/.github/workflows/web4-deploy-staging.yml +++ b/.github/workflows/web4-deploy-staging.yml @@ -1,4 +1,4 @@ -name: Deploy to staging +name: Deploy web4 contract to staging on: pull_request: paths: diff --git a/.github/workflows/web4-test.yml b/.github/workflows/web4-test.yml index da1a9906..a2d5d479 100644 --- a/.github/workflows/web4-test.yml +++ b/.github/workflows/web4-test.yml @@ -1,4 +1,4 @@ -name: Test +name: Test web4 contract on: workflow_call: diff --git a/.github/workflows/web4-undeploy-staging.yml b/.github/workflows/web4-undeploy-staging.yml index 3b3f862c..bbb252f0 100644 --- a/.github/workflows/web4-undeploy-staging.yml +++ b/.github/workflows/web4-undeploy-staging.yml @@ -1,4 +1,4 @@ -name: Undeploy staging +name: Undeploy web4 contract from staging on: pull_request: types: [closed] diff --git a/aliases.mainnet.json b/aliases.mainnet.json index 708cfe5e..8436c39c 100644 --- a/aliases.mainnet.json +++ b/aliases.mainnet.json @@ -6,5 +6,6 @@ "gateway_url": "https://nearbuilders.org", "new": "builddao.near", "old": "buildhub.near", - "potlock": "potlock.near" + "potlock": "potlock.near", + "every": "every.near" } diff --git a/aliases.testnet.json b/aliases.testnet.json index d09075f1..1ec8f40f 100644 --- a/aliases.testnet.json +++ b/aliases.testnet.json @@ -6,5 +6,6 @@ "gateway_url": "https://test.nearbuilders.org", "new": "builddao.testnet", "old": "buildhub.testnet", - "potlock": "potlock.testnet" + "potlock": "potlock.testnet", + "every": "allthethings.testnet" } diff --git a/apps/old/bos.config.json b/apps/old/bos.config.json deleted file mode 100644 index 52771c07..00000000 --- a/apps/old/bos.config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "account": "buildhub.near", - "aliases": ["../../aliases.mainnet.json"], - "overrides": { - "testnet": { - "account": "buildhub.testnet", - "aliases": ["../../aliases.testnet.json"] - } - } -} diff --git a/apps/old/widget/MetadataEditor.jsx b/apps/old/widget/MetadataEditor.jsx deleted file mode 100644 index abfa6c67..00000000 --- a/apps/old/widget/MetadataEditor.jsx +++ /dev/null @@ -1,204 +0,0 @@ -const initialMetadata = props.initialMetadata ?? {}; -const onChange = props.onChange; -const options = props.options; - -State.init({ - initialMetadata, - metadata: initialMetadata, - reportedMetadata: initialMetadata, - linktree: initialMetadata.linktree ?? {}, - image: initialMetadata.image, - backgroundImage: initialMetadata.backgroundImage, - screenshots: initialMetadata.screenshots ?? {}, -}); - -const metadata = { - name: options.name ? state.metadata.name : undefined, - description: options.name ? state.metadata.description : undefined, - linktree: - options.linktree && Object.keys(state.linktree).length > 0 - ? state.linktree - : undefined, - image: - options.image && state.image && Object.keys(state.image).length > 0 - ? state.image - : undefined, - backgroundImage: - options.backgroundImage && - state.backgroundImage && - Object.keys(state.backgroundImage).length > 0 - ? state.backgroundImage - : undefined, - tags: options.tags ? state.metadata.tags : undefined, - screenshots: options.screenshots ? state.metadata.screenshots : undefined, -}; - -if ( - onChange && - JSON.stringify(state.reportedMetadata) !== JSON.stringify(metadata) -) { - State.update({ - reportedMetadata: metadata, - }); - onChange(metadata); -} - -const Container = styled.div` - color: #fff; -`; - -const CustomTagEditor = styled.div` - .form-control { - background: #23242b; - border: 1px solid rgba(255, 255, 255, 0.2); - } -`; - -const CustomImageUpload = styled.div` - .nav-link { - background: transparent; - color: #fff; - border: none; - } - - .nav.nav-tabs { - border: none; - } - - .nav-link.active { - color: #fff; - background: transparent; - border: 1px solid rgba(255, 255, 255, 0.2); - border-bottom: none; - } - - .p-2 { - border: none; - border: 1px solid rgba(255, 255, 255, 0.2) !important; - /* border-top: 0; */ - background: #23242b !important; - color: #fff !important; - } - - .form-control { - background: #23242b; - border: 1px solid rgba(255, 255, 255, 0.2); - } -`; - -return ( - - {options.name && ( -
- - -
- )} - {options.image && ( -
- - - State.update({ image }), - }} - /> - -
- )} - {options.backgroundImage && ( -
- - State.update({ backgroundImage }), - }} - /> -
- )} - {options.description && ( -
- - (supports markdown) -