Skip to content

Commit

Permalink
Merge pull request #1 from NEARBuilders/init-repo
Browse files Browse the repository at this point in the history
Added web4 contract and stake widgets
  • Loading branch information
Megha-Dev-19 authored Aug 2, 2024
2 parents b514ba5 + d353e58 commit 1626b40
Show file tree
Hide file tree
Showing 16 changed files with 8,546 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy 'nearbuilders-delegation' Components to Mainnet

on:
push:
branches: [main]

jobs:
deploy-mainnet:
environment: buildcommons.near
uses: nearbuilders/bos-workspace/.github/workflows/deploy.yml@main
with:
bw-legacy: false
deploy-env: "mainnet"
app-name: "nearbuilders-delegation"
deploy-account-address: "${{ vars.BOS_DEPLOY_ACCOUNT_ID }}"
signer-account-address: "${{ vars.BOS_DEPLOY_ACCOUNT_ID }}"
signer-public-key: ${{ vars.BOS_SIGNER_PUBLIC_KEY }}
secrets:
SIGNER_PRIVATE_KEY: ${{ secrets.BOS_SIGNER_PRIVATE_KEY }}
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/web4-deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to production
on:
push:
branches: [main]
paths:
- web4contract/**

defaults:
run:
working-directory: ./web4contract

jobs:
test:
uses: ./.github/workflows/web4-test.yml

deploy-staging:
name: Deploy to production
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.6.2/cargo-near-installer.sh | sh
- name: Deploy to production
run: |
cargo near deploy "${{ vars.BOS_DEPLOY_ACCOUNT_ID }}" \
without-init-call \
network-config "mainnet" \
sign-with-plaintext-private-key \
--signer-public-key "${{ vars.BOS_SIGNER_PUBLIC_KEY }}" \
--signer-private-key "${{ secrets.BOS_SIGNER_PRIVATE_KEY }}" \
send
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
.vscode
.DS_Store

/build
/dist

tree.json
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# nearbuilders-delegation

## Getting started

1. Install packages

```cmd
yarn install
```

2. Start dev environment

```cmd
yarn run dev
```

This will start a gateway at [127.0.0.1:8080](http://127.0.0.1:8080) which will render your local widgets. The entry point for this app is [nearbuilders-delegation/widget/app](http://127.0.0.1:8080/nearbuilders-delegation/widget/app)
3 changes: 3 additions & 0 deletions bos.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"account": "nearbuilders-delegation"
}
3 changes: 3 additions & 0 deletions data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"nearbuilders-delegation": {}
}
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "nearbuilders-delegation",
"version": "0.0.0",
"description": "",
"author": "",
"license": "MIT",
"scripts": {
"bw": "bos-workspace",
"dev": "bw dev",
"build": "bw build",
"fmt": "prettier --write '**/*.{js,jsx,ts,tsx,json}'"
},
"devDependencies": {
"bos-workspace": "^1.0.0-alpha"
}
}
1 change: 1 addition & 0 deletions web4contract/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit 1626b40

Please sign in to comment.