-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from NEARBuilders/init-repo
Added web4 contract and stake widgets
- Loading branch information
Showing
16 changed files
with
8,546 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules | ||
.vscode | ||
.DS_Store | ||
|
||
/build | ||
/dist | ||
|
||
tree.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"account": "nearbuilders-delegation" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"nearbuilders-delegation": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Oops, something went wrong.