Skip to content

Commit

Permalink
update bos-workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Apr 19, 2024
1 parent 41c6bde commit 0df5e2f
Show file tree
Hide file tree
Showing 10 changed files with 1,278 additions and 10,326 deletions.
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

41 changes: 11 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,14 @@ on:
push:
branches: [main]
jobs:
deploy-widgets:
runs-on: ubuntu-latest
name: Deploy widgets to social.near (mainnet)
env:
BOS_DEPLOY_ACCOUNT_ID: ${{ vars.BOS_DEPLOY_ACCOUNT_ID }}
BOS_SIGNER_ACCOUNT_ID: ${{ vars.BOS_SIGNER_ACCOUNT_ID }}
BOS_SIGNER_PUBLIC_KEY: ${{ vars.BOS_SIGNER_PUBLIC_KEY }}
BOS_SIGNER_PRIVATE_KEY: ${{ secrets.BOS_SIGNER_PRIVATE_KEY }}
NETWORK_ID: mainnet

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install near-social CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/FroVolod/bos-cli-rs/releases/download/v0.3.1/bos-cli-v0.3.1-installer.sh | sh
- name: Install bos-workspace from dev branch
run: |
npm install -D bos-workspace
- name: Build the workspaces
run: |
npm run build
- name: Deploy widgets
working-directory: ./build/bluntdao
run: |
bos components deploy "$BOS_DEPLOY_ACCOUNT_ID" sign-as "$BOS_SIGNER_ACCOUNT_ID" network-config mainnet sign-with-plaintext-private-key --signer-public-key "$BOS_SIGNER_PUBLIC_KEY" --signer-private-key "$BOS_SIGNER_PRIVATE_KEY" send
deploy-mainnet:
uses: NEARBuilders/bos-workspace/.github/workflows/deploy.yml@main
with:
bw-legacy: false
deploy-env: "mainnet"
app-name: "bluntdao"
deploy-account-address: bluntdao.near
signer-account-address: bluntdao.near
signer-public-key: ${{ vars.BOS_SIGNER_PUBLIC_KEY }}
secrets:
SIGNER_PRIVATE_KEY: ${{ secrets.BOS_SIGNER_PRIVATE_KEY }}
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# bluntdao-bos-components
# Blunt DAO BOS Cmponents
Blunt DAO workspace for all BOS components

## Getting Started
## Getting started

```
npm install
```

Then, run the command:
1. Install packages

```
npm run dev
```cmd
yarn install
```

This will serve the widgets from `http://127.0.0.1:4040/`.
2. Start dev environment

Go to [everything.dev/flags](https://everything.dev) and paste this value there.
```cmd
yarn run dev
```

Once set, see the locally served app at [bluntdao.near/widget/app](https://everything.dev/bluntdao.near/widget/app).
This will start a gateway at [127.0.0.1:8080](http://127.0.0.1:8080) which will render your local widgets.
2 changes: 1 addition & 1 deletion apps/bluntdao/bos.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"appAccount": "bluntdao.near"
"account": "bluntdao.near"
}
109 changes: 109 additions & 0 deletions apps/bluntdao/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"bluntdao.near": {
"widget": {
"BluntDAO.Button.Join": {
"metadata": {}
},
"BluntDAO.Holders.OGValidators": {
"metadata": {
"description": "BluntDAO OG Validator holders on NEAR",
"image": {
"ipfs_cid": "bafkreibwuv5plyqlu6hkxtpakdhkpgchmesun4tiormhemnxpw3hzhx3bu"
},
"name": "BluntDAO OG Holders",
"tags": {
"app": "",
"bluntdao": ""
}
}
},
"BluntDAO.addAllOGs": {
"metadata": {}
},
"BluntDAO.member": {
"metadata": {}
},
"BluntFeed": {
"metadata": {}
},
"DAO.Dashboard": {
"metadata": {}
},
"Donate": {
"metadata": {
"description": "Put a dollar down for Blunts. The plug takes NEAR",
"image": {},
"name": "Put A Dollar Down For Blunts",
"tags": {
"proof-of-sesh": "",
"crowdfund": "",
"joints": "",
"blunts": "",
"donate": "",
"spliff": "",
"giving": "",
"app": "",
"blunt-dao": "",
"dao": "",
"social-justice": ""
}
}
},
"MasterBluntCount": {
"metadata": {
"description": "The following widget is for people to track on chain how many times they hit the Blunt. A new innovation for Proof of Sesh, the leading sybil resistance mechanism on NEAR. \n",
"image": {},
"name": "BluntCounter",
"tags": {
"blunts": "",
"blunt-dao": "",
"joints": "",
"dao": "",
"nft": "",
"widget": "",
"blunt": "",
"proof-of-sesh": "",
"spliff": "",
"counter": "",
"blutdao": "",
"sybil-resistance": ""
}
}
},
"RequestASesh": {
"metadata": {
"description": "Request A Proof of Sesh from a Blunt DAO OG Validator ⋈ NEAR you",
"image": {},
"name": "Request A Sesh",
"tags": {
"sesh": "",
"proof-of-sesh": "",
"guestbook": "",
"app": "",
"blunt-dao": ""
}
}
},
"RequestSesh": {
"metadata": {
"description": "Pick your smoking stick for Proof of Sesh. You like Joints (JointsDAO.rg), Spliffs (SpliffDAO.org), or Blunts (BluntDAO.org).\n\nProof of Sesh",
"image": {},
"name": "Pick A Smoking Stick",
"tags": {
"blunts": "",
"spliff": "",
"blunt": "",
"joints": "",
"poll": "",
"blunt-dao": "",
"joint": "",
"proof-of-sesh": "",
"spliff-dao": "",
"dao": "",
"labels": ""
}
}
}
}
}
}
3 changes: 3 additions & 0 deletions bos.workspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"apps": ["./apps/*"]
}
Loading

0 comments on commit 0df5e2f

Please sign in to comment.