Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace gateway with web component, in both vercel and web4 #484

Merged
merged 33 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b5c451d
set -g flag
elliotBraem Jul 19, 2024
b642ca9
fmt
elliotBraem Jul 19, 2024
f8bddd3
Merge branch 'develop' into feat/use-wc-gateway
elliotBraem Jul 23, 2024
58fde02
Merge branch 'develop' into feat/use-wc-gateway
elliotBraem Jul 24, 2024
7414b3d
configures index.html
elliotBraem Jul 24, 2024
78d33a8
fix wallets
elliotBraem Jul 24, 2024
184b19a
fix wallets
elliotBraem Jul 24, 2024
4217f4b
removes old gatewy
elliotBraem Jul 24, 2024
4ee38b8
standardize to login container
elliotBraem Jul 24, 2024
3037f3d
introduces wallet for web4
elliotBraem Jul 24, 2024
c073c14
fmt
elliotBraem Jul 24, 2024
4118250
set -g flag
elliotBraem Jul 19, 2024
d55438b
fmt
elliotBraem Jul 19, 2024
95c0cb3
configures index.html
elliotBraem Jul 24, 2024
35cbddb
fix wallets
elliotBraem Jul 24, 2024
6604bdb
fix wallets
elliotBraem Jul 24, 2024
3c3ec39
removes old gatewy
elliotBraem Jul 24, 2024
e320d92
standardize to login container
elliotBraem Jul 24, 2024
bf67cb5
introduces wallet for web4
elliotBraem Jul 24, 2024
ffed2d3
fmt
elliotBraem Jul 24, 2024
5d40814
Merge branch 'feat/use-wc-gateway' of https://github.com/NEARBuilders…
elliotBraem Jul 29, 2024
ff350d0
fix test config
elliotBraem Jul 31, 2024
eca7803
fmt
elliotBraem Jul 31, 2024
e48d760
fix tests
elliotBraem Jul 31, 2024
0f6096f
converts web4contract to use setStaticUrl
elliotBraem Jul 31, 2024
4ac229d
rename and move contract code
elliotBraem Jul 31, 2024
ad764b2
update public key
elliotBraem Jul 31, 2024
7ff8724
fixes tests
elliotBraem Jul 31, 2024
3f2d8af
fmt
elliotBraem Jul 31, 2024
9a6e64c
fix editor test
elliotBraem Jul 31, 2024
6ddf657
fixes wallet for build dao gateway and adds redirects
elliotBraem Jul 31, 2024
b1a5fb2
fmt
elliotBraem Jul 31, 2024
221bbfe
fix auth tests
elliotBraem Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Deploy web4 contract to production
name: Deploy contract to production
on:
push:
branches: [main]
paths:
- web4contract/**
- contract/**

defaults:
run:
working-directory: ./web4contract
working-directory: ./contract

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

deploy-staging:
contract-deploy-staging:
name: Deploy to production
needs: [test]
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
name: Deploy web4 contract to staging
name: Deploy contract to staging
on:
pull_request:
paths:
- web4contract/**
- contract/**

defaults:
run:
working-directory: ./web4contract
working-directory: ./contract

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

deploy-staging:
contract-deploy-staging:
name: Deploy to staging subaccount
permissions:
pull-requests: write
needs: [test]
runs-on: ubuntu-latest
env:
NEAR_CONTRACT_PR_STAGING_ACCOUNT_ID: gh-${{ github.event.number }}.${{ vars.BOS_TESTNET_SIGNER_ACCOUNT_ID }}
BOS_BUILDDAO_TESTNET_SIGNER_PUBLIC_KEY: "ed25519:6ycWXZES2zEGPurZqP35AUQx92aAzuS7r9ea1GcSQQiT"

steps:
- name: Checkout repository
Expand All @@ -30,12 +31,12 @@ jobs:
- name: Create staging account
if: github.event.action == 'opened' || github.event.action == 'reopened'
run: |
near account create-account fund-myself "${{ env.NEAR_CONTRACT_PR_STAGING_ACCOUNT_ID }}" '10 NEAR' \
use-manually-provided-public-key "${{ vars.BOS_TESTNET_SIGNER_PUBLIC_KEY }}" \
near account create-account fund-myself "${{ env.NEAR_CONTRACT_PR_STAGING_ACCOUNT_ID }}" '3 NEAR' \
use-manually-provided-public-key "${{ env.BOS_BUILDDAO_TESTNET_SIGNER_PUBLIC_KEY }}" \
sign-as "${{ vars.BOS_TESTNET_SIGNER_ACCOUNT_ID }}" \
network-config "testnet" \
sign-with-plaintext-private-key \
--signer-public-key "${{ vars.BOS_TESTNET_SIGNER_PUBLIC_KEY }}" \
--signer-public-key "${{ env.BOS_BUILDDAO_TESTNET_SIGNER_PUBLIC_KEY }}" \
--signer-private-key "${{ secrets.BOS_BUILDDAO_TESTNET_SIGNER_PRIVATE_KEY }}" \
send

Expand All @@ -47,7 +48,7 @@ jobs:
without-init-call \
network-config "testnet" \
sign-with-plaintext-private-key \
--signer-public-key "${{ vars.BOS_TESTNET_SIGNER_PUBLIC_KEY }}" \
--signer-public-key "${{ env.BOS_BUILDDAO_TESTNET_SIGNER_PUBLIC_KEY }}" \
--signer-private-key "${{ secrets.BOS_BUILDDAO_TESTNET_SIGNER_PRIVATE_KEY }}" \
send

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Test web4 contract
name: Test contract
on:
workflow_call:

defaults:
run:
working-directory: ./web4contract
working-directory: ./contract

jobs:
code-formatting:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: Undeploy web4 contract from staging
name: Undeploy contract from staging
on:
pull_request:
types: [closed]
paths:
- web4contract/**
- contract/**

defaults:
run:
working-directory: ./web4contract
working-directory: ./contract

jobs:
cleanup-staging:
name: Cleanup staging account
runs-on: ubuntu-latest
env:
NEAR_CONTRACT_PR_STAGING_ACCOUNT_ID: gh-${{ github.event.number }}.${{ vars.BOS_TESTNET_SIGNER_ACCOUNT_ID }}
BOS_BUILDDAO_TESTNET_SIGNER_PUBLIC_KEY: "ed25519:6ycWXZES2zEGPurZqP35AUQx92aAzuS7r9ea1GcSQQiT"

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -26,6 +28,6 @@ jobs:
beneficiary "${{ vars.BOS_TESTNET_SIGNER_ACCOUNT_ID }}" \
network-config "testnet" \
sign-with-plaintext-private-key \
--signer-public-key "${{ vars.BOS_TESTNET_SIGNER_PUBLIC_KEY }}" \
--signer-public-key "${{ env.BOS_BUILDDAO_TESTNET_SIGNER_PUBLIC_KEY }}" \
--signer-private-key "${{ secrets.BOS_BUILDDAO_TESTNET_SIGNER_PRIVATE_KEY }}" \
send
19 changes: 19 additions & 0 deletions .github/workflows/web4-deploy-mainnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy web4 to mainnet contract
on:
push:
branches: [main]
paths:
- public/**

jobs:
web4-deploy-mainnet:
name: Deploy web4 to mainnet contract
runs-on: ubuntu-latest
env:
NEAR_SIGNER_KEY: ${{ secrets.BOS_BUILDDAO_SIGNER_PRIVATE_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Call web4-deploy
run: |
yarn web4:deploy:mainnet
19 changes: 19 additions & 0 deletions .github/workflows/web4-deploy-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy web4 to testnet contract
on:
push:
branches: [develop]
paths:
- public/**

jobs:
web4-deploy-mainnet:
name: Deploy web4 to mainnet contract
runs-on: ubuntu-latest
env:
NEAR_SIGNER_KEY: ${{ secrets.BOS_BUILDDAO_TESTNET_SIGNER_PRIVATE_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Call web4-deploy
run: |
yarn web4:deploy:testnet
92 changes: 0 additions & 92 deletions CHANGELOG.md

This file was deleted.

3 changes: 2 additions & 1 deletion aliases.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"new": "builddao.near",
"old": "buildhub.near",
"potlock": "potlock.near",
"every": "every.near"
"every": "every.near",
"web4_url": "builddao.near.page"
}
3 changes: 2 additions & 1 deletion aliases.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"new": "builddao.testnet",
"old": "buildhub.testnet",
"potlock": "potlock.testnet",
"every": "allthethings.testnet"
"every": "allthethings.testnet",
"web4_url": "builddao.testnet.page"
}
13 changes: 0 additions & 13 deletions config/paths.js

This file was deleted.

13 changes: 0 additions & 13 deletions config/presets/loadPreset.js

This file was deleted.

6 changes: 0 additions & 6 deletions config/presets/webpack.analyze.js

This file was deleted.

Loading
Loading