Skip to content

Commit

Permalink
chore: release 2.26.0 (#2192)
Browse files Browse the repository at this point in the history
* chore(develop): release 2.25.1

* feat(proposals) v2 cleanup (#2096)

* feat(proposal-list): removed view selector from filter widget and added titles with counters (#2061)

* feat(proposal-list): improved filter widget (#2061)

(cherry picked from commit 388e40d)
(cherry picked from commit f3177eb)
(cherry picked from commit 4f6701b)

* feat(proposal-card): improved proposal card styles in proposals page (#2061)

* feat(proposal-list): added proposal history widget (#2061)

(cherry picked from commit 175a47e)
(cherry picked from commit 5f6811e)
(cherry picked from commit f4007cf)

* feat(proposal-list): fixed view selector in filter-widget (#2061)

* feat(proposal-list): fixed page displaying (#2061)

* feat(proposal-list): improved code style (#2061)

* feat(proposal-list): improved code

* feat(organization): add circles (#2104) (#2119)

* feat(organization): added circles widget in organization page (#2104)

* feat(organization): improved code (#2104)

* feat(circles): add circle dashboard

* feat(organization): add slug param to the circles

* fix(profile-picture): remove right slot

* feat(members): add member actions

* feat(circle-card): add slug

* refactor(circle): remove commented code

* feat(dao-proposal-history): add circle doc

* feat(circles): add backend integration

* feat(circle): add subscribeToMore for dao circle detail

* feat(circle): add dao circle detail subscription

* feat(circle): add subcircles

---------

Co-authored-by: Arsenije Savic <[email protected]>

* feat: proposal details design updates (#2123)

* feat(proposal-details): updated voting widget styles

* feat(proposal-details): updated comments widget styles

* feat(proposal-details): updated proposal details page styles

* feat: policy proposal version history (#2105) (#2112)

* feat(version-history): added version history component (#2105)

* feat(version-history): added missed icons (#2105)

* feat(version-history): temporarily hide component (#2105)

* feat(version-history): fixed comment

* feat: eaas (#2034)

* feat: eaas

* fix: remove console.log

* feat(ecosystem-info): add domain const

* refactor(ecosystem-info): clean up

* feat: ecosystem filter (#1557) (#2102)

* feat(explore-page): added ecosystem filter widget in explore page (#1557)

* feat(explore-page): added top icon (#1557)

* feat(explore-page): added few fields in graphql (#1557)

* feat(explore-page): explore by widget moved to a separate component (#1557)

* feat(explore-page): created new component ecosystem-card (#1557)

* fix(dao): action clean up

* fix(create-dho-widget): remove lorem ipsum

* fix(profile-card): remove try catch

* fix(ecosystem-checkout): add plan const

* refactor(router): remove unsude route

* refactor(dao): remove created date

* style(create-dho-widget): add todo for copy

* refactor(ecosystem): add ecosystem domain const

* refactor(explore-by-widget): add EXPLORE_BY const

* refactor(ecosystem-info): add check for form domain

* refactor(explore-by-widget): swap select fn with change

* refactor(explore): rename displayingItemsType to exploreBy

* refactor(wallet-hypha): add token computed

* refactor(wallet-hypha): remove commented code

* feat(ecosystem-checkout): add waitingForActivationInterval

* feat(ecosystem-checkout): add CHECKOUT_STATE

* refactor: add explore by const

---------

Co-authored-by: Evgeni B <[email protected]>

* feat(configuration): add multi sig (#2126)

* fix: update ual-seeds and hypha-dao/ppp-client-api libraries (#2125)

* refactor(ts): common components to ts (#2114)

* feat: add prettier and volar pug plugin

* refactor(ts): common components to ts

* fix: remove import

* fix: run yarn

* fix(prettier): prettier configuration for pug

* build(yarn): update lock file

* feat(proposals): proposal creation wizard v2 (#2127)

* feat(proposals): added quest-claim-widget component (#2107)

* feat(proposals): addedui part for quest progression component (#2106)

* feat(proposal-creation): update config for new proposal-creation flow - intermediate commit (#1980)

* feat(proposal-creation): added config for core - apply flow (#1980)

* feat(proposal-creation): added config for core - create flow (#1980)

* feat(config): update copy for proposal creation

* fix(proposal-type): add correct styling

* feat(step-description): add label to parent circle

* feat: add circle proposal

* feat(proposal-creation): improved ipfs component

* feat(proposal-creation): improved styles for q-date component

* feat(proposal-creation): fixed titles, structures and designs for proposal creation - core flow

* feat(proposal-creation): update config for proposal creation core flow

* fix(dao-proposals-stage): comment parent circle

* feat(step-description): list circles from backend

* feat(dao-proposals-history): add circle type

* feat(proposal-creation): integrate backend part for create policy type proposal

* feat(proposal-creation): fixed edit possibility for staging proposals

* feat(proposal-creation): integrate api for quest start proposal

* feat(quest): add backend implemntation

* feat: add quest proposal

* feat(proposal-creation): added new dynamic getter for check member type

* feat(proposal-creation): integrate api for policy version history (#2105) (#2124)

* feat(quest-progression): integrate api for quest progression widget (#2106)

* feat: add copy changes

* refactor: proposal create

* refactor: proposal create

* feat(circle-budget): integrate circle budget creation with backend

* feat(proposal-creation): integrate api for poll proposal type creation

* refactor: clean up

---------

Co-authored-by: Evgeni B <[email protected]>
Co-authored-by: Evgeni B <[email protected]>

* chore: remove console.log

* fix(proposal): rename compensation to payout

* fix(proposals): add isApplying

* feat: add eos account support (#2045)

* feat: add github actions for deploying eos mainnet and eos testnet instances

* feat: retrieve the configuration from github environment secrets and variables

* feat: retrieve the configuration from github environment secrets and variables

* feat: add github actions for deploying eos mainnet and eos testnet instances

* feat: retrieve the configuration from github environment secrets and variables

* feat: retrieve the configuration from github environment secrets and variables

* feat: use DHO with EOS account

* feat: add login with EOS

* fix: replace hardcoded kv contract name with config variable

* fix: remove hardcoded contract names

* fix: add missing spaces, make lint happy

* fix: add BASE_APP as app id

* fix: force new deploy - rollback

* fix: remove unused DGraph call, force deploy to EOS MainNet DHO

* fix: fix deploy to production EOS

* fix: set root dao slug as env variable

* fix: temp fix for redirect

* fix(configuration): add correct variable name (#2120)

* chore: release 2.5.2

Release-As: 2.5.2

* build(eslint): remove console.log

* chore: release 2.5.3

Release-As: 2.5.3

* fix: update the ppp-client-api dependency version

* fix: fix typo; deploy updated instance

---------

Co-authored-by: Arsenije Savić <[email protected]>

* fix: update eos deployment workflows

* fix(home): members count in dashboard (#2132)

* fix(proposal-creation): added compensation widget to review step (#2133)

* feat(proposal-details): added parent circle for proposal details with circle type (#2130)

* feat(proposal-details): added parent circle for proposal details with circle type

* fix(proposal-creation): policy type creation

* fix(proposal-editing): returns the previously selected parent circle when edited (#DEV-616) (#2135)

* fix(proposal-view): added circle widget in review step (#DEV-615,620) (#2136)

* fix(proposal-card): proposal publishing time (#DEV-617) (#2137)

* fix(configuration): add ability to save all params (#2131)

* fix(multi-sig): remove console.log

* fix(explore): colors in explore by widget (#DEV-632) (#2142)

* fix(explore): explore page improvements (#2143)

* fix(explore): remove view selector from filter (#DEV-634)

* fix(explore): dho card layout (#DEV-633)

* ci: implement deployment actions for new workflow (#2129)

* fix(configuration): add correct variable name (#2120)

* chore: release 2.5.2

Release-As: 2.5.2

* build(eslint): remove console.log

* chore: release 2.5.3

Release-As: 2.5.3

* ci: update the workflow actions

* fix: replace usage of ::set-output

* fix: add credentials and deploy step

* fix: add check to not create bucket if it already exists

* feat: create and configure distribution if it doesn'te exists already

* feat: get branch name

* fix: create cloudfront distribution

* ci: deploy to production on published release

* ci: add all conventional commit branch types

---------

Co-authored-by: Arsenije Savić <[email protected]>

* refactor(configuration): multi-sig clean up (#2144)

* refactor(configuration): configuration multi-sig clean up

* refactor(configuraion): feedback cleanup

* feat(circles): swap getDao with queryCircle (#2139)

* refactor(proposal): change budget copy (#2138)

* fix(circles-widget): improved circles widget ui in circle budget distribution tab (#DEV-594) (#2145)

* chore(api): add console.error

* chore(dev): add sentry dsn

* fix(dao-badges): query only approved

* chore(api): add full error logging

* fix: eos specific variables (#2149)

* fix(proposal): remove active tag for generic contribution proposal type (#DEV-641) (#2150)

* fix(side-panel): improved side menu (#DEV-583) (#2151)

* fix: use root dao slug instead of app default route variable (#2157)

* fix: use root dao slug instead of app default route variable

* ci: add github action to destroy resources when branch is deleted

* fix: fix dev env variables

* fix(organization-assets): bug with archetypes not loading (#DEV-662) (#2159)

* fix(filter-widget): search filter box bug (#DEV-663) (#2158)

* fix(badges): apply button (#DEV-659) (#2160)

* fix(proposal-creation): removed reset button from duration step (#DEV-674) (#2163)

* fix(explore): ecosystems filter (#DEV-678) (#2167)

* fix(proposal-history): hide staging and voting proposals in history page (#DEV-614) (#2134)

* fix(proposal-history): hide staging and voting proposals in history page (#DEV-614)

* fix(proposal-history): query for getting proposal history

* fix(proposal-history): changed values to constants

* fix: proposal history page design (DEV-631) (#2148)

* fix(proposal-card): improved design (#DEV-631) - intermediate commit

* fix(proposal-card): improved design (#DEV-631) - finally

* fix(proposal-history): changed values to constants

* feat(proposal-creation): added poll proposal to the core (#DEV-666) (#2161)

* feat(proposal-creation): added poll proposal to the core (#DEV-666)

* fix: added dynamic check for voting method

* fix(dho-card): added missed prop (#DEV-677) (#2168)

* fix(proposals): ability proposals showing bug (#DEV-685) (#2169)

* fix(filter-widget): add new types in proposal filter (#DEV-688) (#2173)

* fix(members): spinner bug (#DEV-676) (#2162)

* fix(members): spinner bug (#DEV-676)

* fix: created hasLastResult method

* fix(proposal-creation): added auto fill for title and description in ability type (#DEV-683) (#2172)

* fix(proposal-creation): added auto fill for title and description in ability type (#DEV-683)

* fix: code improvements

* fix(proposal-card): added parent circle name in dho-card (#DEV-691) (#2171)

* fix(proposal-card): added parent circle name in dho-card (#DEV-691)

* fix: code improvements

* fix(proposal-creation): creation poll proposal bug (#DEV-692) (#2170)

* fix(proposal-creation): creation poll proposal bug (#DEV-692)

* fix: remove console.log

* fix(proposal-creation): duration now showing on quest proposal (#DEV-684) (#2182)

* fix(proposal-creation): bug with not showing compensation elements on budget proposal (#DEV-681) (#2181)

* fix(step-duration): added default value for start date and period (#DEV-673) (#2179)

* fix(proposal-creation): change computed to method (#2178)

* fix(proposal-list): filtered proposals count (#DEV-680) (#2177)

* fix(ecosystems): add missing icons (#DEV-679) (#2176)

* fix(explore): hide search bar in explore page (#DEV-695) (#2180)

* fix(explore): hide search bar in explore page (#DEV-695)

* fix(search): remove search box from all pages

* fix(policy): added parent policy select in proposal creation (#DEV-689) (#2183)

* feat: treasury page (#2184)

* feat(treasury): integrated new UI with dummy data for treasury page (#DEV-626)

* feat(treasury): integrated new UI with dummy data for treasury page (#DEV-626)

* feat(treasury): added subscription under widget

* feat(treasury): integrate api for create multisig, approve multisig and get multisigs list

* feat(treasury): integrated remaining api

* fix(treasury): select row bug

* fix(treasury): changed telos icon

* fix(treasury): changed values to constants

* refactor: remove console.log

---------

Co-authored-by: Arsenije Savic <[email protected]>

* fix: merge conflict

* refactor(dho): move settings getter

* fix(wallet): add all address redemption

* feat(treasury): add polling

* feat(templates): templates modal UI (#DEV-667) (#2166)

* feat(templates): created templates modal component with start step (#DEV-667)

* feat(templates): added modal config file and second step

* feat(templates): added setup state for templates modal

* feat(templates): improved config file

* feat(templates): added ui for options details step

* feat(templates): added proposal details step

* refactor(organization): remove template

* refactor(dho-selector): clean up

* fix(proposal-list): add margins

* fix(configuration): save url only when changed

* feat(actions): add initDAOTemplate function

* refactor: clean up

---------

Co-authored-by: Arsenije Savic <[email protected]>

* fix: format currency in treasury tables (#2185)

* feat(gql): add types codegen (#2141)

* feat: add prettier and volar pug plugin

* refactor(ts): common components to ts

* fix: remove import

* fix: run yarn

* fix(prettier): prettier configuration for pug

* feat(codegen): add codegen for gql types

* fix: merge issue

* fix: load graphql url from environment variable

---------

Co-authored-by: Alex-IS <[email protected]>

* feat(templates): added modal config file and second step

* feat(templates): added setup state for templates modal

* refactor: clean up

* fix(proposal-creation): integrated new ui for attachments (#DEV-672) (#2186)

* fix: remove console log that breaks the build

* feat(proposal-view): remove voting method from proposal review (#DEV-740) (#2187)

* fix(proposal): added circle widget for budget proposal type (#DEV-738) (#2189)

* fix(proposal-view): added token widget for budget proposal type (#DEV-739) (#2188)

* ci: add missing health endpoint variable

* fix(profile): remove email and sms card (#2164)

* fix: remove email and sms card

add some debug statements and fake email

* fix: adding missing profile fields as needed

Fixes DEV-687

* fix: remove some unneeded printouts

* fix(profile): added quests tab in profile page (#DEV-741) (#2190)

* fix(profile): added quests tab in profile page (#DEV-741)

* refactor: add const insted of string

---------

Co-authored-by: Arsenije Savic <[email protected]>

* refactor: remove console.log

* refactor(multi-dho-layout): remove template modal

* refactor: remove console

* fix: the loading of eos testnet (#2193)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Evgeni B <[email protected]>
Co-authored-by: Alex <[email protected]>
Co-authored-by: Irving Puga <[email protected]>
Co-authored-by: Evgeni B <[email protected]>
Co-authored-by: Nikolaus Heger <[email protected]>
  • Loading branch information
7 people authored Jun 1, 2023
1 parent c9dd41a commit a74ceef
Show file tree
Hide file tree
Showing 220 changed files with 40,823 additions and 3,804 deletions.
41 changes: 41 additions & 0 deletions .env-eos-mainnet.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
APP_NAME=Hypha DHO - EOS MainNet

# BLOCKCHAIN CONFIG
NETWORK_CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
BLOCKCHAIN_ENDPOINTS=https://eos.api.eosnation.io

# BLOCKCHAIN EXPLORER
BLOCKCHAIN_EXPLORER=https://bloks.io/
BLOCKCHAIN_EXPLORER_BTC=https://www.blockchain.com/btc/tx/
BLOCKCHAIN_EXPLORER_ETH=https://etherscan.io/tx/
BLOCKCHAIN_EXPLORER_EOS=https://bloks.io/transaction/

# CONTRACTS
DAO_CONTRACT=dao.hypha
TLOSTO_SEEDS=tlosto.seeds
SUPPLY_CONTRACT=voice.hypha
KV_CONTRACT=kv.hypha

# INFURA
IPFS_URL=ipfs.infura.io
IPFS_PROJECT_ID=
IPFS_PROJECT_SECRET=

# GRAPHQL
DGRAPH_URL=https://nameless-brook-400051.eu-central-1.aws.cloud.dgraph.io
GRAPHQL_URI=https://nameless-brook-400051.eu-central-1.aws.cloud.dgraph.io/graphql
DGRAPH_AUTH_KEY=

# HYPHA TOKEN SALES
HYPHA_TOKEN_SALES_ENCODE_KEY=
HYPHA_TOKEN_SALES_URL='https://tokensale.hypha.earth'

# ONBOARDING AND ACCOUNT CREATION SERVICE
PPP_ENV=eos
ACCOUNT_API_URL=https://9fxmgfe1l5.execute-api.us-east-1.amazonaws.com/eosMainNet
ACCOUNT_API_KEY=

# MONITORING / TOOLING
SENTRY_DSN=
DOCUMENTATION=https://notepad.hypha.earth/5dC66nNXRVGpb1aTHaRJXw
CHROMATIC_PROJECT_TOKEN=
42 changes: 42 additions & 0 deletions .env-eos-testnet.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
APP_NAME=Hypha DHO - EOS TestNet

# BLOCKCHAIN CONFIG
NETWORK_CHAIN_ID=73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d
BLOCKCHAIN_ENDPOINTS=https://jungle4.cryptolions.io
EOS_ENDPOINTS=https://jungle4.cryptolions.io

# BLOCKCHAIN EXPLORER
BLOCKCHAIN_EXPLORER=https://local.bloks.io/?nodeUrl=jungle4.cryptolions.io&systemDomain=eosio&hyperionUrl=https%3A%2F%2Fjungle4history.cryptolions.io
BLOCKCHAIN_EXPLORER_BTC=https://www.blockchain.com/btc/tx/
BLOCKCHAIN_EXPLORER_ETH=https://etherscan.io/tx/
BLOCKCHAIN_EXPLORER_EOS=https://bloks.io/transaction/

# CONTRACTS
DAO_CONTRACT=daoxhypha111
TLOSTO_SEEDS=tlosto.seeds
SUPPLY_CONTRACT=voicexhypha1
KV_CONTRACT=kvxhypha1111

# INFURA
IPFS_URL=ipfs.infura.io
IPFS_PROJECT_ID=
IPFS_PROJECT_SECRET=

# GRAPHQL
DGRAPH_URL=https://nameless-brook-400226.eu-central-1.aws.cloud.dgraph.io
GRAPHQL_URI=https://nameless-brook-400226.eu-central-1.aws.cloud.dgraph.io/graphql
DGRAPH_AUTH_KEY=

# HYPHA TOKEN SALES
HYPHA_TOKEN_SALES_ENCODE_KEY=
HYPHA_TOKEN_SALES_URL='https://tokensale.hypha.earth'

# ONBOARDING AND ACCOUNT CREATION SERVICE
PPP_ENV=eos-test
ACCOUNT_API_URL=https://9fxmgfe1l5.execute-api.us-east-1.amazonaws.com/eosMainNet
ACCOUNT_API_KEY=

# MONITORING / TOOLING
SENTRY_DSN=
DOCUMENTATION=https://notepad.hypha.earth/5dC66nNXRVGpb1aTHaRJXw
CHROMATIC_PROJECT_TOKEN=
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ DGRAPH_ROOT_HASH=52a7ff82bd6f53b31285e97d6806d886eefb650e79754784e9d923d3df347c9
GRAPHQL_URI=https://alpha-stts.tekit.io/graphql

BLOCKCHAIN_ENDPOINTS=https://testnet.telos.caleos.io
EOS_ENDPOINTS='https://eos.greymass.com'

TLOSTO_SEEDS=tlosto.seeds
SUPPLY_CONTRACT=mtvoicehypha
Expand Down
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'babel-eslint',
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
env: {
Expand All @@ -20,6 +21,8 @@ module.exports = {
},
// add your custom rules here
rules: {
'space-before-function-paren': 'off',
semi: ['error', 'never'],
// allow async-await
'generator-star-spacing': 'off',
// allow paren-less arrow functions
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: Build and Deploy to Development

on:
push:
branches: [ develop ]
branches:
- develop

jobs:
build:
name: build-dev
environment: telosTestNet
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -33,10 +35,9 @@ jobs:
BLOCKCHAIN_EXPLORER_ETH: 'https://etherscan.io/tx/'
BLOCKCHAIN_EXPLORER_EOS: 'https://bloks.io/transaction/'
PPP_ENV: 'test'
SENTRY_DSN: ''
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
DGRAPH_URL: 'https://alpha-test.tekit.io/'
DGRAPH_ROOT_HASH: '52a7ff82bd6f53b31285e97d6806d886eefb650e79754784e9d923d3df347c91'
BLOCKCHAIN_ENDPOINTS: ${{ secrets.DEV_BLOCKCHAIN_ENDPOINTS }}
BLOCKCHAIN_ENDPOINTS: ${{ vars.BLOCKCHAIN_ENDPOINTS }}
TLOSTO_SEEDS: 'tlosto.seeds'
SUPPLY_CONTRACT: 'mtvoicehypha'
GRAPHQL_URI: 'https://alpha-stts.tekit.io/graphql'
Expand All @@ -51,7 +52,10 @@ jobs:
HYPHA_TOKEN_SALES_URL: 'https://dp9rw57cx84kg.cloudfront.net'
HYPHA_TOKEN_SALES_API_URL: 'http://api-tokensale.hypha.earth'
HYPHA_TOKEN_SALES_RPC_URL: 'https://telos.greymass.com'

ROOT_DAO_ID: ${{vars.ROOT_DAO_ID}}
ROOT_DAO_SLUG: ${{vars.ROOT_DAO_SLUG}}
HEALTH_ENDPOINT: ${{ vars.HEALTH_ENDPOINT }}

- name: S3 sync
uses: jakejarvis/s3-sync-action@master
with:
Expand All @@ -60,8 +64,8 @@ jobs:
AWS_S3_BUCKET: ${{ secrets.DEV_AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
SOURCE_DIR: 'dist/spa' # optional: defaults to entire repository
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
SOURCE_DIR: 'dist/spa' # optional: defaults to entire repository

# Invalidate Cloudfront (this action)
- name: invalidate
Expand Down
39 changes: 19 additions & 20 deletions .github/workflows/deploy-eos-dev.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: EOS - Build and Deploy to Development - TestNet
name: EOS - Build and Deploy to Development - TestNet

on:
push:
branches:
- feat/eos-deploy
- feature/eos-account-support
branches: [develop]

jobs:
build:
Expand All @@ -23,28 +21,28 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "16.x"
node-version: '16.x'
- run: yarn global add @vue/cli@latest
- run: yarn install
- run: mv public/chain-manifests-dev.json public/chain-manifests.json
- run: mv public/app-manifest-dev.json public/app-manifest.json
- run: yarn build
env:
APP_NAME: "Hypha DHO - EOS TestNet"
APP_NAME: 'Hypha DHO - EOS TestNet'
NETWORK_CHAIN_ID: ${{ vars.NETWORK_CHAIN_ID }}
DAO_CONTRACT: "daoxhypha111"
HYPHA_CONTRACT: "hyphaxhypha1"
SUPPLY_CONTRACT: "voicexhypha1"
MULTISIG_CONTRACT: "msig.hypha"
KV_CONTRACT: "kvxhypha1111"
DAO_CONTRACT: 'daoxhypha111'
HYPHA_CONTRACT: 'hyphaxhypha1'
SUPPLY_CONTRACT: 'voicexhypha1'
MULTISIG_CONTRACT: 'msig.hypha'
KV_CONTRACT: 'kvxhypha1111'
PPP_ENV: ${{ vars.PPP_ENV }}
ACCOUNT_API_URL: ${{ vars.ACCOUNT_API_URL }}
ACCOUNT_API_KEY: ${{ secrets.ACCOUNT_API_KEY }}
BLOCKCHAIN_ENDPOINTS: ${{ vars.BLOCKCHAIN_ENDPOINTS }}
BLOCKCHAIN_EXPLORER: ${{ vars.BLOCKCHAIN_EXPLORER }}
BLOCKCHAIN_EXPLORER_BTC: "https://www.blockchain.com/btc/tx/"
BLOCKCHAIN_EXPLORER_ETH: "https://etherscan.io/tx/"
BLOCKCHAIN_EXPLORER_EOS: "https://bloks.io/transaction/"
BLOCKCHAIN_EXPLORER_BTC: 'https://www.blockchain.com/btc/tx/'
BLOCKCHAIN_EXPLORER_ETH: 'https://etherscan.io/tx/'
BLOCKCHAIN_EXPLORER_EOS: 'https://bloks.io/transaction/'

SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
DOCUMENTATION: ${{ vars.DOCUMENTATION }}
Expand All @@ -54,26 +52,27 @@ jobs:
DGRAPH_AUTH_KEY: ${{ secrets.DGRAPH_AUTH_KEY }}
GRAPHQL_URI: ${{vars.GRAPHQL_URI}}
ROOT_DAO_ID: ${{vars.ROOT_DAO_ID}}
HEALTH_ENDPOINT: ${{ vars.HEALTH_ENDPOINT }}

ELASTIC_SEARCH_URL: ${{ vars.ELASTIC_SEARCH_URL }}
ELASTIC_SEARCH_API_KEY: ${{ secrets.ELASTIC_SEARCH_API_KEY }}

IPFS_URL: "ipfs.infura.io"
IPFS_PROJECT_ID: "2F5pWHIOMgHji1DeqUT0mGpvySz"
IPFS_URL: 'ipfs.infura.io'
IPFS_PROJECT_ID: '2F5pWHIOMgHji1DeqUT0mGpvySz'
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }}
IPFS_GATEWAY: "https://hypha.infura-ipfs.io/ipfs/"
IPFS_GATEWAY: 'https://hypha.infura-ipfs.io/ipfs/'

HYPHA_TOKEN_SALES_ENCODE_KEY: ${{ secrets.HYPHA_TOKEN_SALES_ENCODE_KEY }}
HYPHA_TOKEN_SALES_URL: ${{ vars.HYPHA_TOKEN_SALES_URL }}
HYPHA_TOKEN_SALES_API_URL: "http://api-tokensale.hypha.earth"
HYPHA_TOKEN_SALES_RPC_URL: "https://telos.greymass.com"
HYPHA_TOKEN_SALES_API_URL: 'http://api-tokensale.hypha.earth'
HYPHA_TOKEN_SALES_RPC_URL: 'https://telos.greymass.com'

- name: Deploy to S3 bucket
run: aws s3 sync ./dist/spa s3://${{ vars.AWS_S3_BUCKET}} --delete
- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: ${{ vars.DISTRIBUTION_ID}}
PATHS: "/*"
PATHS: '/*'
AWS_ACCESS_KEY_ID: ${{ secrets.HYPHA_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.HYPHA_AWS_SECRET_ACCESS_KEY }}
73 changes: 42 additions & 31 deletions .github/workflows/deploy-eos-prod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: EOS - Build and Deploy to Production - MainNet

on:
push:
branches:
- master
release:
types: [published]

jobs:
build:
Expand All @@ -22,48 +21,60 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "16.x"
node-version: '16.x'
- run: yarn global add @vue/cli@latest
- run: yarn install
- run: mv public/chain-manifests-prod.json public/chain-manifests.json
- run: mv public/app-manifest-prod.json public/app-manifest.json
- run: yarn build
env:
APP_NAME: "Hypha DHO"
NETWORK_CHAIN_ID: "1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f"
DAO_CONTRACT: "dao.hypha"
HYPHA_CONTRACT: "hypha.hypha"
ACCOUNT_API_URL: "https://tb3nnn0qa9.execute-api.us-east-1.amazonaws.com/prod"
ACCOUNT_API_KEY: ${{ secrets.PROD_ACCOUNT_API_KEY }}
BLOCKCHAIN_EXPLORER: "https://telos.bloks.io"
BLOCKCHAIN_EXPLORER_BTC: "https://www.blockchain.com/btc/tx/"
BLOCKCHAIN_EXPLORER_ETH: "https://etherscan.io/tx/"
BLOCKCHAIN_EXPLORER_EOS: "https://bloks.io/transaction/"
PPP_ENV: eos
SENTRY_DSN: "https://[email protected]/4503898341703680"
DOCUMENTATION: "https://notepad.hypha.earth/5dC66nNXRVGpb1aTHaRJXw"
DGRAPH_URL: "https://alpha.tekit.io"
DGRAPH_ROOT_HASH: "52a7ff82bd6f53b31285e97d6806d886eefb650e79754784e9d923d3df347c91"
BLOCKCHAIN_ENDPOINTS: "https://mainnet.telos.net"
TLOSTO_SEEDS: "tlosto.seeds"
SUPPLY_CONTRACT: "voice.hypha"
GRAPHQL_URI: "https://alpha-dhomn.tekit.io/graphql"
ELASTIC_SEARCH_URL: "https://hypha.es.eu-west-1.aws.found.io:9243/dho-mainnet-documents/_search"
ELASTIC_SEARCH_API_KEY: ${{ secrets.PROD_ELASTIC_SEARCH_API_KEY }}
IPFS_URL: "ipfs.infura.io"
IPFS_PROJECT_ID: "2F5pWHIOMgHji1DeqUT0mGpvySz"
APP_NAME: 'Hypha DHO - EOS'
NETWORK_CHAIN_ID: ${{ vars.NETWORK_CHAIN_ID }}
DAO_CONTRACT: 'dao.hypha'
HYPHA_CONTRACT: 'hypha.hypha'
SUPPLY_CONTRACT: 'voice.hypha'
MULTISIG_CONTRACT: 'msig.hypha'
KV_CONTRACT: 'kv.hypha'
PPP_ENV: ${{ vars.PPP_ENV }}
PPP_APP_ID: ${{ vars.PPP_APP_ID }}
ACCOUNT_API_URL: ${{ vars.ACCOUNT_API_URL }}
ACCOUNT_API_KEY: ${{ secrets.ACCOUNT_API_KEY }}
BLOCKCHAIN_ENDPOINTS: ${{ vars.BLOCKCHAIN_ENDPOINTS }}
BLOCKCHAIN_EXPLORER: ${{ vars.BLOCKCHAIN_EXPLORER }}
BLOCKCHAIN_EXPLORER_BTC: 'https://www.blockchain.com/btc/tx/'
BLOCKCHAIN_EXPLORER_ETH: 'https://etherscan.io/tx/'
BLOCKCHAIN_EXPLORER_EOS: 'https://bloks.io/transaction/'

SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
DOCUMENTATION: ${{ vars.DOCUMENTATION }}

DGRAPH_URL: ${{ vars.DGRAPH_URL }}
DGRAPH_ROOT_HASH: ${{ vars.DGRAPH_ROOT_HASH }}
DGRAPH_AUTH_KEY: ${{ secrets.DGRAPH_AUTH_KEY }}
GRAPHQL_URI: ${{vars.GRAPHQL_URI}}
ROOT_DAO_ID: ${{vars.ROOT_DAO_ID}}
ROOT_DAO_SLUG: ${{vars.ROOT_DAO_SLUG}}
HEALTH_ENDPOINT: ${{ vars.HEALTH_ENDPOINT }}

ELASTIC_SEARCH_URL: ${{ vars.ELASTIC_SEARCH_URL }}
ELASTIC_SEARCH_API_KEY: ${{ secrets.ELASTIC_SEARCH_API_KEY }}

IPFS_URL: 'ipfs.infura.io'
IPFS_PROJECT_ID: '2F5pWHIOMgHji1DeqUT0mGpvySz'
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }}
IPFS_GATEWAY: "https://hypha.infura-ipfs.io/ipfs/"
MULTISIG_CONTRACT: "msigdhohypha"
IPFS_GATEWAY: 'https://hypha.infura-ipfs.io/ipfs/'

HYPHA_TOKEN_SALES_ENCODE_KEY: ${{ secrets.HYPHA_TOKEN_SALES_ENCODE_KEY }}
HYPHA_TOKEN_SALES_URL: "https://tokensale.hypha.earth"
HYPHA_TOKEN_SALES_URL: ${{ vars.HYPHA_TOKEN_SALES_URL }}
HYPHA_TOKEN_SALES_API_URL: 'http://api-tokensale.hypha.earth'
HYPHA_TOKEN_SALES_RPC_URL: 'https://telos.greymass.com'

- name: Deploy to S3 bucket
run: aws s3 sync ./dist/spa s3://${{ vars.AWS_S3_BUCKET}} --delete
- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: ${{ vars.DISTRIBUTION_ID}}
PATHS: "/*"
PATHS: '/*'
AWS_ACCESS_KEY_ID: ${{ secrets.HYPHA_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.HYPHA_AWS_SECRET_ACCESS_KEY }}
14 changes: 7 additions & 7 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build and Deploy to Production

on:
push:
branches: [ master ]

release:
types: [published]
jobs:
build:
name: build-prod
Expand Down Expand Up @@ -37,7 +36,6 @@ jobs:
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
DOCUMENTATION: 'https://notepad.hypha.earth/5dC66nNXRVGpb1aTHaRJXw'
DGRAPH_URL: 'https://alpha.tekit.io'
DGRAPH_ROOT_HASH: '52a7ff82bd6f53b31285e97d6806d886eefb650e79754784e9d923d3df347c91'
BLOCKCHAIN_ENDPOINTS: 'https://mainnet.telos.net'
TLOSTO_SEEDS: 'tlosto.seeds'
SUPPLY_CONTRACT: 'voice.hypha'
Expand All @@ -53,6 +51,9 @@ jobs:
HYPHA_TOKEN_SALES_URL: 'https://tokensale.hypha.earth'
HYPHA_TOKEN_SALES_API_URL: 'http://api-tokensale.hypha.earth'
HYPHA_TOKEN_SALES_RPC_URL: 'https://telos.greymass.com'
ROOT_DAO_ID: ${{vars.ROOT_DAO_ID}}
ROOT_DAO_SLUG: ${{vars.ROOT_DAO_SLUG}}
HEALTH_ENDPOINT: ${{ vars.HEALTH_ENDPOINT }}

- name: S3 sync
uses: jakejarvis/s3-sync-action@master
Expand All @@ -62,8 +63,8 @@ jobs:
AWS_S3_BUCKET: ${{ secrets.PROD_AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
SOURCE_DIR: 'dist/spa' # optional: defaults to entire repository
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
SOURCE_DIR: 'dist/spa' # optional: defaults to entire repository

# Invalidate Cloudfront (this action)
- name: invalidate
Expand All @@ -75,7 +76,6 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}


# - name: S3 Sync and Invalidate Cloudfront Distribution
# uses: digital-scarcity/s3-sync-action@master
# with:
Expand Down
Loading

0 comments on commit a74ceef

Please sign in to comment.