diff --git a/.github/workflows/action_deploy-prod.yml b/.github/workflows/action_deploy-prod.yml index 934854c0ee..bc812b8d70 100644 --- a/.github/workflows/action_deploy-prod.yml +++ b/.github/workflows/action_deploy-prod.yml @@ -90,4 +90,34 @@ jobs: - name: Deploy to npm run: | npm publish --workspace packages/interfaces - cd packages/sdk/lib && npm publish + npm publish --workspace packages/sdk + + database_roll: + runs-on: ubuntu-latest + environment: staging + needs: [deploy_functions] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - id: 'auth' + uses: 'google-github-actions/auth@v1' + with: + credentials_json: '${{ secrets.SERVICE_ACCOUNT }}' + - name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v1' + - name: Set env vars + working-directory: packages/functions + run: echo "$ENV_VARS" > .env + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + - uses: mattes/gce-cloudsql-proxy-action@v1 + with: + creds: '${{ secrets.SERVICE_ACCOUNT }}' + instance: buildcore-prod:us-central1:buildcore + - name: Build and deploy + run: | + npm run build:functions + cd packages/functions + npm run migrate diff --git a/.github/workflows/action_deploy-wen.yml b/.github/workflows/action_deploy-wen.yml index 8b9f8c5c1a..e104bdcbfc 100644 --- a/.github/workflows/action_deploy-wen.yml +++ b/.github/workflows/action_deploy-wen.yml @@ -45,6 +45,7 @@ jobs: deploy_to_npm_as_next: runs-on: ubuntu-latest + environment: staging env: NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}} steps: @@ -64,8 +65,8 @@ jobs: npm run build:sdk - name: Deploy to npm as "upcoming" package run: | - npm publish --workspace packages/interfaces --tag next --access public - cd packages/sdk/lib && npm publish --tag next --access public + npm publish --workspace packages/interfaces --tag next + npm publish --workspace packages/sdk --tag next deploy_functions: runs-on: ubuntu-latest @@ -92,3 +93,33 @@ jobs: npm run create-deploy-script chmod 777 ./deploy.sh ./deploy.sh + + database_roll: + runs-on: ubuntu-latest + environment: staging + needs: [deploy_functions] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - id: 'auth' + uses: 'google-github-actions/auth@v1' + with: + credentials_json: '${{ secrets.SERVICE_ACCOUNT }}' + - name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v1' + - name: Set env vars + working-directory: packages/functions + run: echo "$ENV_VARS" > .env + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + - uses: mattes/gce-cloudsql-proxy-action@v1 + with: + creds: '${{ secrets.SERVICE_ACCOUNT }}' + instance: buildcore-test:us-central1:buildcore + - name: Build and deploy + run: | + npm run build:functions + cd packages/functions + npm run migrate \ No newline at end of file diff --git a/.github/workflows/functions_emulated-tests.yml b/.github/workflows/functions_emulated-tests.yml index e702868386..b9b4341ffe 100644 --- a/.github/workflows/functions_emulated-tests.yml +++ b/.github/workflows/functions_emulated-tests.yml @@ -29,6 +29,7 @@ jobs: chunk_0: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -59,22 +60,31 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test/auth.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/auth/legacy.auth.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/address.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/auction/auction.bid.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/collection.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/member.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/nft.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test/auth.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/auth/legacy.auth.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/address.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/auction/auction.bid.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/collection.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/member.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/nft.spec.ts chunk_1: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -105,22 +115,31 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test/controls/nft/nft.bidding.extends.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/nft/nft.bidding.finalize.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/nft/nft.bidding.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/nft/nft.set.for.sale.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/order.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/project/project.create.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/project/project.deactivate.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test/controls/nft/nft.bidding.extends.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/nft/nft.bidding.finalize.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/nft/nft.bidding.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/nft/nft.set.for.sale.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/order.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/project/project.create.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/project/project.deactivate.spec.ts chunk_2: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -151,22 +170,31 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test/controls/proposal.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/space.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/stake.reward.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/stamp.control.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token-distribution-auto-trigger.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token-distribution.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token-trade.buy.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test/controls/proposal.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/space.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/stake.reward.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/stamp.control.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token-distribution-auto-trigger.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token-distribution.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token-trade.buy.spec.ts chunk_3: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -197,22 +225,31 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test/controls/token-trade.sell.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token-trade.trigger.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token.expired.sale.cron.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token.order.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.airdrop.claim.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.airdrop.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.cancel.pub.sale.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test/controls/token-trade.sell.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token-trade.trigger.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token.expired.sale.cron.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token.order.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.airdrop.claim.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.airdrop.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.cancel.pub.sale.spec.ts chunk_4: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -243,22 +280,31 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.create.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.order.and.claim.air.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.rank.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.set.to.sale.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.update.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.vote.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/controls/workflow.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.create.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.order.and.claim.air.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.rank.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.set.to.sale.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.update.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/token/token.vote.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/controls/workflow.spec.ts chunk_5: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -289,22 +335,31 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test/cron/floor-price.cron.only.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/cron/nft-stake.cron.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/cron/proposal.cron.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/db.roll.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/func.name.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/naming.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/stake/delete.stake.reward.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test/cron/floor-price.cron.only.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/cron/nft-stake.cron.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/cron/proposal.cron.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/db.roll.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/func.name.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/naming.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/stake/delete.stake.reward.spec.ts chunk_6: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -335,12 +390,20 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test/stake/stake.reward.cron.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test/storage/resize.img.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test/stake/stake.reward.cron.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test/storage/resize.img.spec.ts diff --git a/.github/workflows/functions_lint.yml b/.github/workflows/functions_lint.yml index cd51e6ce9a..43b3259771 100644 --- a/.github/workflows/functions_lint.yml +++ b/.github/workflows/functions_lint.yml @@ -9,22 +9,14 @@ jobs: lint-and-prettier: runs-on: ubuntu-latest timeout-minutes: 20 - defaults: - run: - working-directory: packages/functions steps: - # - name: Collect Workflow Telemetry - # uses: runforesight/foresight-workflow-kit-action@v1 - # if: ${{ always() }} - # with: - # api_key: ${{ secrets.FORESIGHT_KEY }} - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 - name: Install Dependencies - run: cd ../../ && npm run build:functions - - name: Lint - run: npm run lint + run: npm run build:functions - name: Prettier - run: npx prettier --check . + run: npx prettier --check packages/functions + - name: Lint + run: cd packages/functions && npm run lint diff --git a/.github/workflows/functions_tangle-unit-tests.yml b/.github/workflows/functions_tangle-unit-tests.yml index 728f4f3879..750b43d8d7 100644 --- a/.github/workflows/functions_tangle-unit-tests.yml +++ b/.github/workflows/functions_tangle-unit-tests.yml @@ -29,6 +29,7 @@ jobs: chunk_0: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -59,18 +60,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/address.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/auction-tangle/auction.bit.tangle.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_1.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/address.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/auction-tangle/auction.bit.tangle.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_1.spec.ts chunk_1: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -101,18 +111,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_4.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_4.spec.ts chunk_2: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -143,18 +162,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_7.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award-tangle/award-tangle_7.spec.ts chunk_3: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -185,18 +213,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_1_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_10.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_1_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_10.spec.ts chunk_4: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -227,18 +264,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_11.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_12.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_11.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_12.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_2.spec.ts chunk_5: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -269,18 +315,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_5.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_5.spec.ts chunk_6: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -311,18 +366,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_8.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_8.spec.ts chunk_7: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -353,18 +417,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_9.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_10.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/award/award_9.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_10.spec.ts chunk_8: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -395,18 +468,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_11_a.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_11_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_11_c.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_11_a.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_11_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_11_c.spec.ts chunk_9: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -437,18 +519,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_11_d.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_12.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_13.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_11_d.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_12.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_13.spec.ts chunk_10: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -479,18 +570,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_14.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_15.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_16.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_14.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_15.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_16.spec.ts chunk_11: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -521,18 +621,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_17.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_18.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_19.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_17.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_18.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_19.spec.ts chunk_12: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -563,18 +672,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_4.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_4.spec.ts chunk_13: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -605,18 +723,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_7.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_7.spec.ts chunk_14: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -647,18 +774,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_8.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_9.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_1.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_8.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/base-token-trading/base-token-trading_9.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_1.spec.ts chunk_15: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -689,18 +825,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_10.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_11.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_12.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_10.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_11.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_12.spec.ts chunk_16: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -731,18 +876,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_13.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_4_a.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_13.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_4_a.spec.ts chunk_17: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -773,18 +927,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_4_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_4_c.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_5.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_4_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_4_c.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_5.spec.ts chunk_18: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -815,18 +978,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_8.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_8.spec.ts chunk_19: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -857,18 +1029,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_9.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_1_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_1.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_9.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_1_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_1.spec.ts chunk_20: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -899,18 +1080,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_10.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_3_b.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_10.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_3_b.spec.ts chunk_21: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -941,18 +1131,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_5_b.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_5_b.spec.ts chunk_22: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -983,18 +1182,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_7.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_7.spec.ts chunk_23: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1025,18 +1233,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_8.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_9.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_1_b.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_8.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/metadata-nft/mint-metadata-nft_9.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_1_b.spec.ts chunk_24: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1067,18 +1284,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_10.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_10.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_2.spec.ts chunk_25: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1109,18 +1335,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_5.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_5.spec.ts chunk_26: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1151,18 +1386,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_8.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_8.spec.ts chunk_27: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1193,18 +1437,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_1_a.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_1_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_1_c.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_1_a.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_1_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_1_c.spec.ts chunk_28: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1235,18 +1488,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_5.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-airdrop/minted-token-airdrop_5.spec.ts chunk_29: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1277,18 +1539,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_3.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_3.spec.ts chunk_30: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1319,18 +1590,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_6.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_6.spec.ts chunk_31: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1361,18 +1641,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_10.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-claim/token.claim.minted_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_10.spec.ts chunk_32: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1403,18 +1692,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_11.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_12_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_12.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_11.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_12_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_12.spec.ts chunk_33: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1445,18 +1743,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_13.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_14_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_14.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_13.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_14_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_14.spec.ts chunk_34: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1487,18 +1794,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_16.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_17.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_18.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_16.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_17.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_18.spec.ts chunk_35: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1529,18 +1845,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_19.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_2_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_19.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_2_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_2.spec.ts chunk_36: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1571,18 +1896,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_20.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_21.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_22.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_20.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_21.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_22.spec.ts chunk_37: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1613,18 +1947,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_23.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_24.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_3.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_23.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_24.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_3.spec.ts chunk_38: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1655,18 +1998,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_6.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_6.spec.ts chunk_39: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1697,18 +2049,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_8.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_9.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_8.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_9.spec.ts chunk_40: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1739,18 +2100,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bid/nft-bid.otr_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bid/nft-bid.otr_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bid/nft-bid.otr_3.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bid/nft-bid.otr_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bid/nft-bid.otr_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bid/nft-bid.otr_3.spec.ts chunk_41: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1781,18 +2151,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bid/nft-bid.otr_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bid/nft-bid.otr_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_2.spec.ts chunk_42: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1823,18 +2202,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_5.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_5.spec.ts chunk_43: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1865,18 +2253,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-set-for-sale/nft-set-for-sale_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-set-for-sale/nft-set-for-sale_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-bulk/order.bulk_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-set-for-sale/nft-set-for-sale_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-set-for-sale/nft-set-for-sale_2.spec.ts chunk_44: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1907,18 +2304,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-set-for-sale/nft-set-for-sale_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_10.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-set-for-sale/nft-set-for-sale_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_10.spec.ts chunk_45: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1949,18 +2355,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_2_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_3.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_2_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_3.spec.ts chunk_46: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -1991,18 +2406,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_6.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_6.spec.ts chunk_47: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2033,18 +2457,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_8.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_9.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_8.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-staking/nft-staking_9.spec.ts chunk_48: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2075,18 +2508,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_3.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_3.spec.ts chunk_49: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2117,18 +2559,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_6.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_6.spec.ts chunk_50: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2159,18 +2610,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_8.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.approval.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/nft-transfer/nft-transfer_8.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.approval.spec.ts chunk_51: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2201,18 +2661,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.create.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.simple.vote.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.stake.voting.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.create.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.simple.vote.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.stake.voting.spec.ts chunk_52: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2243,18 +2712,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.token.voting.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/soon_snap/soon.snap.claim.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.accept.member.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/proposal-tangle/proposal.token.voting.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/soon_snap/soon.snap.claim.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.accept.member.spec.ts chunk_53: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2285,18 +2763,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.block.member.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.create.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.decline.member.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.block.member.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.create.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.decline.member.spec.ts chunk_54: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2327,18 +2814,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.edit.guardian.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.join.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.leave.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.edit.guardian.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.join.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/space-tangle/space.leave.spec.ts chunk_55: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2369,18 +2865,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_3.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_3.spec.ts chunk_56: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2411,18 +2916,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_1_a.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/staking/staking_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_1_a.spec.ts chunk_57: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2453,18 +2967,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_1_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_3.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_1_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_3.spec.ts chunk_58: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2495,18 +3018,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_6.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/stamp-tangle/stamp-tangle_6.spec.ts chunk_59: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2537,18 +3069,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_3_a.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_3_a.spec.ts chunk_60: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2579,18 +3120,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_3_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_5.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_3_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_5.spec.ts chunk_61: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2621,18 +3171,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_8.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/swap/swap_8.spec.ts chunk_62: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2663,18 +3222,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/tangleRequest/simple.token.trade.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/tangleRequest/tangle-request.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/token-import/token.import_1.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/tangleRequest/simple.token.trade.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/tangleRequest/tangle-request.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/token-import/token.import_1.spec.ts chunk_63: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2705,18 +3273,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/token-import/token.import_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/stake.voting.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_1.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/token-import/token.import_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/stake.voting.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_1.spec.ts chunk_64: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2747,18 +3324,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_2.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_4.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_2.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_4.spec.ts chunk_65: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2789,18 +3375,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_5.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.mint/token.mint_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.mint/token.mint_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.based.voting/token.based.voting_5.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.mint/token.mint_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.mint/token.mint_2.spec.ts chunk_66: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2831,18 +3426,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.mint/token.mint_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/token.mint/token.mint_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/trade-base-token-order.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.mint/token.mint_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/token.mint/token.mint_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/trade-base-token-order.spec.ts chunk_67: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2873,18 +3477,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/tran.match.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_10.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/tran.match.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_10.spec.ts chunk_68: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2915,18 +3528,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_11.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_12.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_13.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_11.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_12.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_13.spec.ts chunk_69: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2957,18 +3579,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_14.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_15.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_14.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_15.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_2.spec.ts chunk_70: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -2999,18 +3630,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_5.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_5.spec.ts chunk_71: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3041,18 +3681,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_8.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_8.spec.ts chunk_72: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3083,18 +3732,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_9.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/web3/web3_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/web3/web3_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/transaction-trigger/transaction-trigger_9.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/web3/web3_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/web3/web3_2.spec.ts chunk_73: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3125,18 +3783,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/web3/web3_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_1_a.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_1_b.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/web3/web3_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_1_a.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_1_b.spec.ts chunk_74: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3167,18 +3834,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_1_c.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_10_1.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_10_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_1_c.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_10_1.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_10_2.spec.ts chunk_75: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3209,18 +3885,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_10_3.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_11.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_12_a.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_10_3.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_11.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_12_a.spec.ts chunk_76: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3251,18 +3936,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_12_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_13.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_14.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_12_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_13.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_14.spec.ts chunk_77: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3293,18 +3987,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_15.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_16.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_2.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_15.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_16.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_2.spec.ts chunk_78: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3335,18 +4038,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_4_b.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_4.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_5.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_4_b.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_4.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_5.spec.ts chunk_79: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3377,18 +4089,27 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_6.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_7.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_8.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_6.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_7.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_8.spec.ts chunk_80: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3419,17 +4140,26 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_9.spec.ts && - npm run test -- --findRelatedTests --forceExit ./test-tangle/workflow.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/withdraw-deposit-nft/deposit-withraw-nft_9.spec.ts && + npm run test -- --findRelatedTests --forceExit ./test-tangle/workflow.spec.ts chunk_81: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3460,16 +4190,25 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_3.only.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/collection-minting/collection-minting_3.only.spec.ts chunk_82: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3500,16 +4239,25 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_11.only.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-nft-trading/minted-nft-trading_11.only.spec.ts chunk_83: needs: npm-install + environment: development runs-on: ubuntu-latest timeout-minutes: 20 @@ -3540,11 +4288,19 @@ jobs: packages/functions/node_modules packages/interfaces/node_modules key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }} + - name: Set env vars + working-directory: packages/functions + run: | + echo "$ENV_VARS" > .env + echo "$SERVICE_ACCOUNT" > sa.json + env: + ENV_VARS: ${{ secrets.ENV_VARS }} + SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} - name: Init run: npm run build:functions - name: Test working-directory: packages/functions run: | - npm run start & - npm run notifier & - npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_15.only.spec.ts + npm run start & + npm run notifier & + npm run test -- --findRelatedTests --forceExit ./test-tangle/minted-token-trade/minted-token-trade_15.only.spec.ts diff --git a/.github/workflows/sdk-lint-and-tests.yml b/.github/workflows/sdk-lint-and-tests.yml index 88007c377c..40fb54e089 100644 --- a/.github/workflows/sdk-lint-and-tests.yml +++ b/.github/workflows/sdk-lint-and-tests.yml @@ -18,6 +18,6 @@ jobs: - name: Install Dependencies run: npm run build:sdk - name: Prettier - run: cd packages/sdk && npx prettier --check . + run: npx prettier --check packages/sdk - name: Lint run: cd packages/sdk && npm run lint diff --git a/.gitignore b/.gitignore index 6c49642e72..1af4c83aaf 100644 --- a/.gitignore +++ b/.gitignore @@ -58,5 +58,10 @@ node_modules dist packages/functions/scripts/*.json - deploy.sh + +**/lib +**/node_modules +.env +**/.env +**/sa.json \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index f8c80276c6..873bf27723 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,5 @@ -/dist **/lib -/coverage +**/coverage **/src/**/files **/node_modules **/.angular diff --git a/package-lock.json b/package-lock.json index 9d135c9417..0d2d7fe759 100644 --- a/package-lock.json +++ b/package-lock.json @@ -774,10 +774,6 @@ "resolved": "packages/functions", "link": true }, - "node_modules/@buildcore/indexes": { - "resolved": "packages/indexes", - "link": true - }, "node_modules/@buildcore/interfaces": { "resolved": "packages/interfaces", "link": true @@ -1271,90 +1267,90 @@ ] }, "node_modules/@firebase/app-check-interop-types": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@firebase/app-check-interop-types/-/app-check-interop-types-0.3.1.tgz", - "integrity": "sha512-NILZbe6RH3X1pZmJnfOfY2gLIrlKmrkUMMrrK6VSXHcSE0eQv28xFEcw16D198i9JYZpy5Kwq394My62qCMaIw==" + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@firebase/app-check-interop-types/-/app-check-interop-types-0.3.2.tgz", + "integrity": "sha512-LMs47Vinv2HBMZi49C09dJxp0QT5LwDzFaVGf/+ITHe3BlIhUiLNttkATSXplc89A2lAaeTqjgqVkiRfUGyQiQ==" }, "node_modules/@firebase/app-types": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.1.tgz", - "integrity": "sha512-nFGqTYsnDFn1oXf1tCwPAc+hQPxyvBT/QB7qDjwK+IDYThOn63nGhzdUTXxVD9Ca8gUY/e5PQMngeo0ZW/E3uQ==" + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.2.tgz", + "integrity": "sha512-oMEZ1TDlBz479lmABwWsWjzHwheQKiAgnuKxE0pz0IXCVx7/rtlkx1fQ6GfgK24WCrxDKMplZrT50Kh04iMbXQ==" }, "node_modules/@firebase/auth-interop-types": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@firebase/auth-interop-types/-/auth-interop-types-0.2.2.tgz", - "integrity": "sha512-k3NA28Jfoo0+o391bFjoV9X5QLnUL1WbLhZZRbTQhZdmdGYJfX8ixtNNlHsYQ94bwG0QRbsmvkzDnzuhHrV11w==" + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@firebase/auth-interop-types/-/auth-interop-types-0.2.3.tgz", + "integrity": "sha512-Fc9wuJGgxoxQeavybiuwgyi+0rssr76b+nHpj+eGhXFYAdudMWyfBHvFL/I5fEHniUM/UQdFzi9VXJK2iZF7FQ==" }, "node_modules/@firebase/component": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/@firebase/component/-/component-0.6.6.tgz", - "integrity": "sha512-pp7sWqHmAAlA3os6ERgoM3k5Cxff510M9RLXZ9Mc8KFKMBc2ct3RkZTWUF7ixJNvMiK/iNgRLPDrLR2gtRJ9iQ==", + "version": "0.6.7", + "resolved": "https://registry.npmjs.org/@firebase/component/-/component-0.6.7.tgz", + "integrity": "sha512-baH1AA5zxfaz4O8w0vDwETByrKTQqB5CDjRls79Sa4eAGAoERw4Tnung7XbMl3jbJ4B/dmmtsMrdki0KikwDYA==", "dependencies": { - "@firebase/util": "1.9.5", + "@firebase/util": "1.9.6", "tslib": "^2.1.0" } }, "node_modules/@firebase/database": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@firebase/database/-/database-1.0.4.tgz", - "integrity": "sha512-k84cXh+dtpzvY6yOhfyr1B+I1vjvSMtmlqotE0lTNVylc8m5nmOohjzpTLEQDrBWvwACX/VP5fEyajAdmnOKqA==", - "dependencies": { - "@firebase/app-check-interop-types": "0.3.1", - "@firebase/auth-interop-types": "0.2.2", - "@firebase/component": "0.6.6", - "@firebase/logger": "0.4.1", - "@firebase/util": "1.9.5", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@firebase/database/-/database-1.0.5.tgz", + "integrity": "sha512-cAfwBqMQuW6HbhwI3Cb/gDqZg7aR0OmaJ85WUxlnoYW2Tm4eR0hFl5FEijI3/gYPUiUcUPQvTkGV222VkT7KPw==", + "dependencies": { + "@firebase/app-check-interop-types": "0.3.2", + "@firebase/auth-interop-types": "0.2.3", + "@firebase/component": "0.6.7", + "@firebase/logger": "0.4.2", + "@firebase/util": "1.9.6", "faye-websocket": "0.11.4", "tslib": "^2.1.0" } }, "node_modules/@firebase/database-compat": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-1.0.4.tgz", - "integrity": "sha512-GEEDAvsSMAkqy0BIFSVtFzoOIIcKHFfDM4aXHtWL/JCaNn4OOjH7td73jDfN3ALvpIN4hQki0FcxQ89XjqaTjQ==", - "dependencies": { - "@firebase/component": "0.6.6", - "@firebase/database": "1.0.4", - "@firebase/database-types": "1.0.2", - "@firebase/logger": "0.4.1", - "@firebase/util": "1.9.5", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-1.0.5.tgz", + "integrity": "sha512-NDSMaDjQ+TZEMDMmzJwlTL05kh1+0Y84C+kVMaOmNOzRGRM7VHi29I6YUhCetXH+/b1Wh4ZZRyp1CuWkd8s6hg==", + "dependencies": { + "@firebase/component": "0.6.7", + "@firebase/database": "1.0.5", + "@firebase/database-types": "1.0.3", + "@firebase/logger": "0.4.2", + "@firebase/util": "1.9.6", "tslib": "^2.1.0" } }, "node_modules/@firebase/database-types": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@firebase/database-types/-/database-types-1.0.2.tgz", - "integrity": "sha512-JRigr5JNLEHqOkI99tAGHDZF47469/cJz1tRAgGs8Feh+3ZmQy/vVChSqwMp2DuVUGp9PlmGsNSlpINJ/hDuIA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@firebase/database-types/-/database-types-1.0.3.tgz", + "integrity": "sha512-39V/Riv2R3O/aUjYKh0xypj7NTNXNAK1bcgY5Kx+hdQPRS/aPTS8/5c0CGFYKgVuFbYlnlnhrCTYsh2uNhGwzA==", "dependencies": { - "@firebase/app-types": "0.9.1", - "@firebase/util": "1.9.5" + "@firebase/app-types": "0.9.2", + "@firebase/util": "1.9.6" } }, "node_modules/@firebase/logger": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@firebase/logger/-/logger-0.4.1.tgz", - "integrity": "sha512-tTIixB5UJbG9ZHSGZSZdX7THr3KWOLrejZ9B7jYsm6fpwgRNngKznQKA2wgYVyvBc1ta7dGFh9NtJ8n7qfiYIw==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@firebase/logger/-/logger-0.4.2.tgz", + "integrity": "sha512-Q1VuA5M1Gjqrwom6I6NUU4lQXdo9IAQieXlujeHZWvRt1b7qQ0KwBaNAjgxG27jgF9/mUwsNmO8ptBCGVYhB0A==", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/@firebase/util": { - "version": "1.9.5", - "resolved": "https://registry.npmjs.org/@firebase/util/-/util-1.9.5.tgz", - "integrity": "sha512-PP4pAFISDxsf70l3pEy34Mf3GkkUcVQ3MdKp6aSVb7tcpfUQxnsdV7twDd8EkfB6zZylH6wpUAoangQDmCUMqw==", + "version": "1.9.6", + "resolved": "https://registry.npmjs.org/@firebase/util/-/util-1.9.6.tgz", + "integrity": "sha512-IBr1MZbp4d5MjBCXL3TW1dK/PDXX4yOGbiwRNh1oAbE/+ci5Uuvy9KIrsFYY80as1I0iOaD5oOMA9Q8j4TJWcw==", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/@google-cloud/firestore": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@google-cloud/firestore/-/firestore-7.6.0.tgz", - "integrity": "sha512-WUDbaLY8UnPxgwsyIaxj6uxCtSDAaUyvzWJykNH5rZ9i92/SZCsPNNMN0ajrVpAR81hPIL4amXTaMJ40y5L+Yg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@google-cloud/firestore/-/firestore-7.7.0.tgz", + "integrity": "sha512-41/vBFXOeSYjFI/2mJuJrDwg2umGk+FDrI/SCGzBRUe+UZWDN4GoahIbGZ19YQsY0ANNl6DRiAy4wD6JezK02g==", "optional": true, "dependencies": { "fast-deep-equal": "^3.1.1", "functional-red-black-tree": "^1.0.1", - "google-gax": "^4.3.1", + "google-gax": "^4.3.3", "protobufjs": "^7.2.6" }, "engines": { @@ -1424,23 +1420,22 @@ } }, "node_modules/@google-cloud/storage": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-7.9.0.tgz", - "integrity": "sha512-PlFl7g3r91NmXtZHXsSEfTZES5ysD3SSBWmX4iBdQ2TFH7tN/Vn/IhnVELCHtgh1vc+uYPZ7XvRYaqtDCdghIA==", + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-7.11.0.tgz", + "integrity": "sha512-W+OPOCgq7a3aAMANALbJAlEnpMV9fy681JWIm7dYe5W/+nRhq/UvA477TJT5/oPNA5DgiAdMEdiitdoLpZqhJg==", + "optional": true, "dependencies": { "@google-cloud/paginator": "^5.0.0", "@google-cloud/projectify": "^4.0.0", "@google-cloud/promisify": "^4.0.0", "abort-controller": "^3.0.0", "async-retry": "^1.3.3", - "compressible": "^2.0.12", "duplexify": "^4.1.3", - "ent": "^2.2.0", "fast-xml-parser": "^4.3.0", "gaxios": "^6.0.2", "google-auth-library": "^9.6.3", + "html-entities": "^2.5.2", "mime": "^3.0.0", - "mime-types": "^2.0.8", "p-limit": "^3.0.1", "retry-request": "^7.0.0", "teeny-request": "^9.0.0", @@ -1454,6 +1449,7 @@ "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "optional": true, "bin": { "uuid": "dist/bin/uuid" } @@ -2090,9 +2086,9 @@ } }, "node_modules/@iota/sdk/node_modules/@types/node": { - "version": "18.19.31", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.31.tgz", - "integrity": "sha512-ArgCD39YpyyrtFKIqMDvjz79jto5fcI/SVUs2HwB+f0dAzq68yqOdyaSivLiLugSziTpNXLQrVb7RZFmdZzbhA==", + "version": "18.19.33", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.33.tgz", + "integrity": "sha512-NR9+KrpSajr2qBVp/Yt5TU/rp+b5Mayi3+OlMlcg2cVCfRmcG5PWZ7S4+MG9PZ5gWBoc9Pd0BKSRViuBCRPu0A==", "dependencies": { "undici-types": "~5.26.4" } @@ -2631,18 +2627,6 @@ "node": ">=10" } }, - "node_modules/@jest/reporters/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@jest/reporters/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2656,13 +2640,10 @@ } }, "node_modules/@jest/reporters/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -2682,12 +2663,6 @@ "node": ">=8" } }, - "node_modules/@jest/reporters/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@jest/schemas": { "version": "29.6.3", "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", @@ -3044,24 +3019,10 @@ "node": ">=16.0.0" } }, - "node_modules/@metamask/utils/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@metamask/utils/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dependencies": { - "lru-cache": "^6.0.0" - }, + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "bin": { "semver": "bin/semver.js" }, @@ -3069,11 +3030,6 @@ "node": ">=10" } }, - "node_modules/@metamask/utils/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/@multiformats/dns": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@multiformats/dns/-/dns-1.0.6.tgz", @@ -3614,20 +3570,6 @@ "form-data": "^2.5.0" } }, - "node_modules/@types/got/node_modules/form-data": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", - "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, "node_modules/@types/graceful-fs": { "version": "4.1.9", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", @@ -3734,9 +3676,9 @@ "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" }, "node_modules/@types/node": { - "version": "20.12.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.9.tgz", - "integrity": "sha512-o93r47yu04MHumPBCFg0bMPBMNgtMg3jzbhl7e68z50+BMHmRMGDJv13eBlUgOdc9i/uoJXGMGYLtJV4ReTXEg==", + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", "dependencies": { "undici-types": "~5.26.4" } @@ -3767,19 +3709,6 @@ "form-data": "^2.5.0" } }, - "node_modules/@types/request/node_modules/form-data": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", - "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, "node_modules/@types/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", @@ -3921,26 +3850,11 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -3948,12 +3862,6 @@ "node": ">=10" } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@typescript-eslint/parser": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.0.2.tgz", @@ -4067,26 +3975,11 @@ } } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -4094,12 +3987,6 @@ "node": ">=10" } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@typescript-eslint/utils": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.0.2.tgz", @@ -4125,26 +4012,11 @@ "eslint": "^8.56.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -4152,12 +4024,6 @@ "node": ">=10" } }, - "node_modules/@typescript-eslint/utils/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/@typescript-eslint/visitor-keys": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.0.2.tgz", @@ -4610,6 +4476,19 @@ "proxy-from-env": "^1.1.0" } }, + "node_modules/axios/node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/babel-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", @@ -5097,9 +4976,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001616", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001616.tgz", - "integrity": "sha512-RHVYKov7IcdNjVHJFNY/78RdG4oGVjbayxv8u5IO74Wv7Hlq4PnJE6mo/OjFijjVFNy5ijnCt6H3IIo4t+wfEw==", + "version": "1.0.30001618", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001618.tgz", + "integrity": "sha512-p407+D1tIkDvsEAPS22lJxLQQaG8OTBEqo0KhzfABGk0TU4juBNDSfH0hyAp/HRyx+M8L17z/ltyhxh27FTfQg==", "dev": true, "funding": [ { @@ -5133,9 +5012,9 @@ "integrity": "sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==" }, "node_modules/cargo-cp-artifact": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/cargo-cp-artifact/-/cargo-cp-artifact-0.1.8.tgz", - "integrity": "sha512-3j4DaoTrsCD1MRkTF2Soacii0Nx7UHCce0EwUf4fHnggwiE4fbmF2AbnfzayR36DF8KGadfh7M/Yfy625kgPlA==", + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/cargo-cp-artifact/-/cargo-cp-artifact-0.1.9.tgz", + "integrity": "sha512-6F+UYzTaGB+awsTXg0uSJA1/b/B3DDJzpKVRu0UmyI7DmNeaAl2RFHuTGIN6fEgpadRxoXGb7gbC1xo4C3IdyA==", "bin": { "cargo-cp-artifact": "bin/cargo-cp-artifact.js" } @@ -5893,9 +5772,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.756", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.756.tgz", - "integrity": "sha512-RJKZ9+vEBMeiPAvKNWyZjuYyUqMndcP1f335oHqn3BEQbs2NFtVrnK5+6Xg5wSM9TknNNpWghGDUCKGYF+xWXw==", + "version": "1.4.767", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.767.tgz", + "integrity": "sha512-nzzHfmQqBss7CE3apQHkHjXW77+8w3ubGCIoEijKCJebPufREaFETgGXWTkh32t259F3Kcq+R8MZdFdOJROgYw==", "dev": true }, "node_modules/emittery": { @@ -5951,9 +5830,9 @@ } }, "node_modules/enhanced-resolve": { - "version": "5.16.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.16.0.tgz", - "integrity": "sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA==", + "version": "5.16.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.16.1.tgz", + "integrity": "sha512-4U5pNsuDl0EhuZpq46M5xPslstkviJuhrdobaRDBk2Jy2KO37FDAJl4lb2KlNabxT0m4MTK2UHNrsAcphE8nyw==", "dev": true, "dependencies": { "graceful-fs": "^4.2.4", @@ -6398,26 +6277,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-plugin-jsdoc/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-plugin-jsdoc/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -6425,12 +6289,6 @@ "node": ">=10" } }, - "node_modules/eslint-plugin-jsdoc/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/eslint-plugin-prefer-arrow": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/eslint-plugin-prefer-arrow/-/eslint-plugin-prefer-arrow-1.2.3.tgz", @@ -7317,16 +7175,16 @@ } }, "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", + "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", "dependencies": { "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", + "combined-stream": "^1.0.6", "mime-types": "^2.1.12" }, "engines": { - "node": ">= 6" + "node": ">= 0.12" } }, "node_modules/forwarded": { @@ -7535,9 +7393,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.4.tgz", - "integrity": "sha512-ofbkKj+0pjXjhejr007J/fLf+sW+8H7K5GCm+msC8q3IpvgjobpyPqSRFemNyIMxklC0zeJpi7VDFna19FacvQ==", + "version": "4.7.5", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.5.tgz", + "integrity": "sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==", "dev": true, "dependencies": { "resolve-pkg-maps": "^1.0.0" @@ -7644,9 +7502,9 @@ } }, "node_modules/google-auth-library": { - "version": "9.9.0", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.9.0.tgz", - "integrity": "sha512-9l+zO07h1tDJdIHN74SpnWIlNR+OuOemXlWJlLP9pXy6vFtizgpEzMuwJa4lqY9UAdiAv5DVd5ql0Am916I+aA==", + "version": "9.10.0", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.10.0.tgz", + "integrity": "sha512-ol+oSa5NbcGdDqA+gZ3G3mev59OHBZksBTxY/tYwjtcp1H/scAFwJfSQU9/1RALoyZ7FslNbke8j4i3ipwlyuQ==", "dependencies": { "base64-js": "^1.3.0", "ecdsa-sig-formatter": "^1.0.11", @@ -7681,6 +7539,29 @@ "node": ">=14" } }, + "node_modules/google-gax/node_modules/protobufjs": { + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", + "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/gopd": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", @@ -7885,6 +7766,22 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, + "node_modules/html-entities": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.5.2.tgz", + "integrity": "sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ], + "optional": true + }, "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", @@ -10346,26 +10243,11 @@ "node": ">=8" } }, - "node_modules/jest-snapshot/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -10385,12 +10267,6 @@ "node": ">=8" } }, - "node_modules/jest-snapshot/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/jest-util": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", @@ -10868,24 +10744,10 @@ "safe-buffer": "^5.0.1" } }, - "node_modules/jsonwebtoken/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/jsonwebtoken/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dependencies": { - "lru-cache": "^6.0.0" - }, + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "bin": { "semver": "bin/semver.js" }, @@ -10893,11 +10755,6 @@ "node": ">=10" } }, - "node_modules/jsonwebtoken/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/just-extend": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz", @@ -11261,26 +11118,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/make-dir/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/make-dir/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -11288,12 +11130,6 @@ "node": ">=10" } }, - "node_modules/make-dir/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", @@ -11746,24 +11582,10 @@ "node": ">=10" } }, - "node_modules/node-abi/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/node-abi/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dependencies": { - "lru-cache": "^6.0.0" - }, + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "bin": { "semver": "bin/semver.js" }, @@ -11771,11 +11593,6 @@ "node": ">=10" } }, - "node_modules/node-abi/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/node-fetch": { "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", @@ -11857,24 +11674,10 @@ "node": ">=10" } }, - "node_modules/normalize-package-data/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/normalize-package-data/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dependencies": { - "lru-cache": "^6.0.0" - }, + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "bin": { "semver": "bin/semver.js" }, @@ -11882,11 +11685,6 @@ "node": ">=10" } }, - "node_modules/normalize-package-data/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -12254,13 +12052,15 @@ } }, "node_modules/pg": { - "version": "8.11.5", - "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.5.tgz", - "integrity": "sha512-jqgNHSKL5cbDjFlHyYsCXmQDrfIX/3RsNwYqpd4N0Kt8niLuNoRNH+aazv6cOd43gPh9Y4DjQCtb+X0MH0Hvnw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.3.tgz", + "integrity": "sha512-+9iuvG8QfaaUrrph+kpF24cXkH1YOOUeArRNYIxq1viYHZagBxrTno7cecY1Fa44tJeZvaoG+Djpkc3JwehN5g==", "dependencies": { - "pg-connection-string": "^2.6.4", - "pg-pool": "^3.6.2", - "pg-protocol": "^1.6.1", + "buffer-writer": "2.0.0", + "packet-reader": "1.0.0", + "pg-connection-string": "^2.6.2", + "pg-pool": "^3.6.1", + "pg-protocol": "^1.6.0", "pg-types": "^2.1.0", "pgpass": "1.x" }, @@ -12326,11 +12126,6 @@ "node": ">=4" } }, - "node_modules/pg/node_modules/pg-connection-string": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.4.tgz", - "integrity": "sha512-v+Z7W/0EO707aNMaAEfiGnGL9sxxumwLl2fJvCQtMn9Fxsg+lPpPkdcyBSv/KFgpGdYkMfn+EI1Or2EHjpgLCA==" - }, "node_modules/pgpass": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", @@ -12340,9 +12135,9 @@ } }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -12615,26 +12410,11 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/prettier-eslint/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/prettier-eslint/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -12642,12 +12422,6 @@ "node": ">=10" } }, - "node_modules/prettier-eslint/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", @@ -12725,9 +12499,9 @@ } }, "node_modules/protobufjs": { - "version": "7.2.6", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", - "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", + "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -13457,24 +13231,10 @@ "@img/sharp-win32-x64": "0.33.2" } }, - "node_modules/sharp/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/sharp/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dependencies": { - "lru-cache": "^6.0.0" - }, + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "bin": { "semver": "bin/semver.js" }, @@ -13482,11 +13242,6 @@ "node": ">=10" } }, - "node_modules/sharp/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -14331,26 +14086,11 @@ } } }, - "node_modules/ts-jest/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/ts-jest/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -14358,12 +14098,6 @@ "node": ">=10" } }, - "node_modules/ts-jest/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/ts-jest/node_modules/yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", @@ -14642,9 +14376,9 @@ } }, "node_modules/uint8arrays": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.0.3.tgz", - "integrity": "sha512-6LBuKji28kHjgPJMkQ6GDaBb1lRwIhyOYq6pDGwYMoDPfImE9SkuYENVmR0yu9yGgs2clHUSY9fKDukR+AXfqQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", "dependencies": { "multiformats": "^13.0.0" } @@ -14828,26 +14562,11 @@ "eslint": ">=6.0.0" } }, - "node_modules/vue-eslint-parser/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/vue-eslint-parser/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -14855,12 +14574,6 @@ "node": ">=10" } }, - "node_modules/vue-eslint-parser/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", @@ -15153,11 +14866,45 @@ }, "devDependencies": { "@types/lodash": "4.14.202", - "dotenv": "16.4.5", "glob": "8.0.3", "typescript": "5.3.3" } }, + "packages/database/node_modules/@google-cloud/storage": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-7.9.0.tgz", + "integrity": "sha512-PlFl7g3r91NmXtZHXsSEfTZES5ysD3SSBWmX4iBdQ2TFH7tN/Vn/IhnVELCHtgh1vc+uYPZ7XvRYaqtDCdghIA==", + "dependencies": { + "@google-cloud/paginator": "^5.0.0", + "@google-cloud/projectify": "^4.0.0", + "@google-cloud/promisify": "^4.0.0", + "abort-controller": "^3.0.0", + "async-retry": "^1.3.3", + "compressible": "^2.0.12", + "duplexify": "^4.1.3", + "ent": "^2.2.0", + "fast-xml-parser": "^4.3.0", + "gaxios": "^6.0.2", + "google-auth-library": "^9.6.3", + "mime": "^3.0.0", + "mime-types": "^2.0.8", + "p-limit": "^3.0.1", + "retry-request": "^7.0.0", + "teeny-request": "^9.0.0", + "uuid": "^8.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "packages/database/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "packages/functions": { "name": "@buildcore/functions", "version": "0.0.0", @@ -15184,6 +14931,7 @@ "cors": "2.8.5", "crypto-js": "4.2.0", "dayjs": "1.11.10", + "dotenv": "^16.4.5", "ethers": "6.11.1", "express": "4.19.2", "files-from-path": "^1.0.4", @@ -15215,7 +14963,6 @@ "@typescript-eslint/parser": "7.0.2", "babel-jest": "29.7.0", "chance": "1.1.11", - "dotenv": "16.4.5", "eslint": "8.56.0", "eslint-config-google": "0.14.0", "eslint-config-prettier": "9.1.0", @@ -15250,13 +14997,6 @@ "@sideway/pinpoint": "^2.0.0" } }, - "packages/indexes": { - "name": "@buildcore/indexes", - "version": "0.0.0", - "devDependencies": { - "glob": "8.0.3" - } - }, "packages/interfaces": { "name": "@buildcore/interfaces", "version": "0.0.0", @@ -15271,7 +15011,6 @@ "license": "Apache-2.0", "dependencies": { "@google-cloud/pubsub": "4.3.3", - "dotenv": "16.4.5", "knex": "3.1.0", "pg": "8.11.3" }, @@ -15289,34 +15028,6 @@ "undici-types": "~5.26.4" } }, - "packages/notifier/node_modules/pg": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.3.tgz", - "integrity": "sha512-+9iuvG8QfaaUrrph+kpF24cXkH1YOOUeArRNYIxq1viYHZagBxrTno7cecY1Fa44tJeZvaoG+Djpkc3JwehN5g==", - "dependencies": { - "buffer-writer": "2.0.0", - "packet-reader": "1.0.0", - "pg-connection-string": "^2.6.2", - "pg-pool": "^3.6.1", - "pg-protocol": "^1.6.0", - "pg-types": "^2.1.0", - "pgpass": "1.x" - }, - "engines": { - "node": ">= 8.0.0" - }, - "optionalDependencies": { - "pg-cloudflare": "^1.1.1" - }, - "peerDependencies": { - "pg-native": ">=3.0.1" - }, - "peerDependenciesMeta": { - "pg-native": { - "optional": true - } - } - }, "packages/notifier/node_modules/typescript": { "version": "5.4.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", @@ -15370,6 +15081,19 @@ "typescript": "5.3.3" } }, + "packages/sdk/node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "packages/search": { "name": "@buildcore/search", "version": "0.0.0", @@ -15380,7 +15104,7 @@ "@iota/sdk": "1.1.5", "cors": "2.8.5", "dayjs": "1.11.10", - "dotenv": "16.4.5", + "dotenv": "^16.4.5", "express": "4.18.2", "firebase-admin": "12.0.0", "joi": "17.12.1", diff --git a/packages/database/.gitignore b/packages/database/.gitignore deleted file mode 100644 index 626c4f31ee..0000000000 --- a/packages/database/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/lib -/node_modules diff --git a/packages/database/.prettierignore b/packages/database/.prettierignore deleted file mode 100644 index 4a53192272..0000000000 --- a/packages/database/.prettierignore +++ /dev/null @@ -1,3 +0,0 @@ -/coverage -/lib -.env \ No newline at end of file diff --git a/packages/database/knexfile.ts b/packages/database/knexfile.ts deleted file mode 100644 index 942c696749..0000000000 --- a/packages/database/knexfile.ts +++ /dev/null @@ -1,15 +0,0 @@ -require('dotenv').config(); -export default { - client: 'pg', - connection: { - user: 'postgres', - password: 'postgres', - database: 'buildcore', - host: 'localhost', - port: 2345, - }, - migrations: { - directory: './migrations', - extension: 'ts', - }, -}; diff --git a/packages/database/package.json b/packages/database/package.json index 405bbaf0aa..a151fcec6a 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -28,7 +28,6 @@ }, "devDependencies": { "@types/lodash": "4.14.202", - "dotenv": "16.4.5", "glob": "8.0.3", "typescript": "5.3.3" } diff --git a/packages/database/src/pg/impl/tables/collection.ts b/packages/database/src/pg/impl/tables/collection.ts index dc2d94446d..206dad27a0 100644 --- a/packages/database/src/pg/impl/tables/collection.ts +++ b/packages/database/src/pg/impl/tables/collection.ts @@ -104,7 +104,7 @@ export class CollectionConverter implements Converter tokenSymbol: get(d, 'tokenSymbol', ''), tokenReward: get(d, 'tokenReward', 0), amount: get(d, 'amount', 0), - } as DiscountLine), + }) as DiscountLine, ), total: pg.total || 0, totalTrades: pg.totalTrades || 0, diff --git a/packages/database/src/pg/interfaces/query/query.ts b/packages/database/src/pg/interfaces/query/query.ts index 3d1d17b191..46bad11bee 100644 --- a/packages/database/src/pg/interfaces/query/query.ts +++ b/packages/database/src/pg/interfaces/query/query.ts @@ -79,7 +79,7 @@ export abstract class BaseIQuery { }; checkIndex = async (query: Knex.QueryBuilder) => { - if (process.env.ENVIRONMENT !== 'emulator') { + if (process.env.ENVIRONMENT !== 'dev') { return; } diff --git a/packages/functions/.env b/packages/functions/.env deleted file mode 100644 index 430e7f117b..0000000000 --- a/packages/functions/.env +++ /dev/null @@ -1,17 +0,0 @@ -ENVIRONMENT="emulator" -WEB3_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweEVFMjA3Qzk5YzA2NzkxMDg0QjU5NmU4NkEyMzVGNzFiNTc0NWNkMTIiLCJpc3MiOiJ3ZWIzLXN0b3JhZ2UiLCJpYXQiOjE2Njg0Njc4MDQ3NDAsIm5hbWUiOiJERVZfVE9LRU4ifQ.TB2AbWZDMk4WhWIeWKsdEKUReXUh0WUgcHAU5ccb4FA" -NFT_STORAGE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweDhiYjBGMDk4NzIzYTY5ODg1NTg3NTJCYWM0ODRlMTJCNGJlMGYxMDIiLCJpc3MiOiJuZnQtc3RvcmFnZSIsImlhdCI6MTcwNTUwMjkyMTEwMiwibmFtZSI6InNhbmRib3gifQ.a4TfMHsghXJjKQUO9zC9O0Wu_NGXVffDkw1E6-jr3hI -JWT_SECRET="mysecret" -ALGOLIA_APPID="UZXKW1YS76" -ALGOLIA_KEY="8bf460848691fae9111b6159867d6bc1" -ENCRYPTION_SALT="sa#asda!2sasd##asad" -IP_INFO_TOKEN="" -XPTOKEN_ID="0x08f800d9e15c1da60c36cb0b2d4a02366ea3e200a65fc071a9e25f09b7fb9e951f0100000000" -XPTOKEN_UID="0xcef8ddcea97a5b82921d1cadbc8ccddcd69341da" -XPTOKEN_GUARDIANID="0x45f8379c44a73fc0ee6ad56acf51bd0f69240af5" - -DB_USER="postgres" -DB_USER_PWD="postgres" -DB_NAME="buildcore" -DB_HOST="localhost" -DB_PORT=5432 \ No newline at end of file diff --git a/packages/functions/.gitignore b/packages/functions/.gitignore deleted file mode 100644 index 2c953b5114..0000000000 --- a/packages/functions/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -/interfaces -/database -/lib -/node_modules -/reports -/firestore-data -/files \ No newline at end of file diff --git a/packages/functions/deploy.script.ts b/packages/functions/deploy.script.ts index 10a67e4e5e..f0e4301be4 100644 --- a/packages/functions/deploy.script.ts +++ b/packages/functions/deploy.script.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable import/namespace */ -require('dotenv').config({ path: __dirname + '/.env' }); import fs from 'fs'; import { flattenObject } from './src/common'; import { CloudFunctions } from './src/runtime/common'; diff --git a/packages/functions/jest-setup.ts b/packages/functions/jest-setup.ts index 93486e2152..80b288e767 100644 --- a/packages/functions/jest-setup.ts +++ b/packages/functions/jest-setup.ts @@ -1,5 +1,5 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires -require('dotenv').config({ path: __dirname + '/.env' }); +require('dotenv').config(); import { PgProjectAdmins, PgProjectUpdate, PgTokenUpdate, database } from '@buildcore/database'; import { Access, diff --git a/packages/functions/jest.config.ci.js b/packages/functions/jest.config.ci.js deleted file mode 100644 index b42b9f7a99..0000000000 --- a/packages/functions/jest.config.ci.js +++ /dev/null @@ -1,23 +0,0 @@ -module.exports = { - preset: 'ts-jest', - testEnvironment: 'node', - testTimeout: 900000, - globalSetup: './test/set-up.ts', - globalTeardown: './test/teardown.ts', - reporters: [ - 'default', - 'github-actions', - ['jest-junit', { outputDirectory: 'reports/test', outputName: 'junit-report.xml' }], - ], - collectCoverage: true, - coveragePathIgnorePatterns: [ - '/test/', - '/test-tangle', - '/scripts', - '/lib', - '/reports', - '/node_modules/', - ], - coverageDirectory: 'reports/coverage', - coverageReporters: ['cobertura'], -}; diff --git a/packages/functions/migration/index.ts b/packages/functions/migration/index.ts index 39ebfabf61..bc420698ad 100644 --- a/packages/functions/migration/index.ts +++ b/packages/functions/migration/index.ts @@ -1,8 +1,3 @@ -/* eslint-disable import/namespace */ -/* eslint-disable @typescript-eslint/no-var-requires */ -import path from 'path'; -require('dotenv').config({ path: path.join(__dirname, '/../.env') }); - import initKnex from 'knex'; import { createChangeTriggers } from './create.triggers'; import { createCompositeIndexes } from './indexes/composit.indexes'; diff --git a/packages/functions/package.json b/packages/functions/package.json index e57b77ad35..e0403cdacf 100644 --- a/packages/functions/package.json +++ b/packages/functions/package.json @@ -16,13 +16,13 @@ }, "scripts": { "lint": "eslint --ext .js,.ts src", - "build": "tsc && cp .env lib/.env", - "start": "export GOOGLE_APPLICATION_CREDENTIALS=\"./sa.json\" && node lib/index.js", + "build": "tsc", + "start": "node -r dotenv/config lib/index.js", "build-start": "npm run build && npm run start", - "notifier": "export GOOGLE_APPLICATION_CREDENTIALS=\"./sa.json\" && npx ts-node ./test/notifier.ts", + "notifier": "npx ts-node -r dotenv/config ./test/notifier.ts", "serve": "run-p \"build-start\" \"notifier\"", - "test": "export GOOGLE_APPLICATION_CREDENTIALS=\"./sa.json\" && jest", - "migrate": "export GOOGLE_APPLICATION_CREDENTIALS=\"./sa.json\" && ts-node ./migration/index.ts" + "test": "jest", + "migrate": "ts-node -r dotenv/config ./migration/index.ts" }, "devDependencies": { "@google-cloud/pubsub": "4.3.3", @@ -42,7 +42,6 @@ "@typescript-eslint/parser": "7.0.2", "babel-jest": "29.7.0", "chance": "1.1.11", - "dotenv": "16.4.5", "eslint": "8.56.0", "eslint-config-google": "0.14.0", "eslint-config-prettier": "9.1.0", @@ -83,6 +82,7 @@ "cors": "2.8.5", "crypto-js": "4.2.0", "dayjs": "1.11.10", + "dotenv": "^16.4.5", "ethers": "6.11.1", "express": "4.19.2", "files-from-path": "^1.0.4", diff --git a/packages/functions/sa.json b/packages/functions/sa.json deleted file mode 100644 index 7e6ad82a2b..0000000000 --- a/packages/functions/sa.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "type": "service_account", - "project_id": "buildcore-test", - "private_key_id": "12da966f1c3fcb1e3dfb03db1cf94897847b4b79", - "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCrPoyWQ/HXORFh\nJ122n/ce3mvcTNA1R8qv/oNSaMTP1gtYIpxIRFvpWZpJ+jrmk86qw4V2YShEfbnG\n7ibu5P1690WAbuhFWNBEKxZty/BapZdYB7DYzEsNuw9jZ1AmniYp2gJ5eDDR58rI\n5OfyZjZhHCw6yyg9xGENuQBQKG1NbJX0KfK8AaSgVypjzCaLOoo+no19wplcdVjc\n6WmkuEkIy+aT9sjv5m1Wax/8UvFWejNk5K7HobbptHbCSHuRurhS+sIKqBPNHCtx\nI+ohkc9A6MDeZVBeVBxZeijdSeSO5FtiBZ2tOjBWnZGTn2Oj174eGxJeNGEOag4A\nJYEJt7RvAgMBAAECggEAAOhee3sBy8eB3HI9SlKOyKp5ZhwNu9qrd6LlaSkIWFHq\nR7MM0wGuYK0K/weVXJBDoRQUCtz9lhK6//DEMpjYEdjmsQpFCqrGJFsJDEAjHgjS\nhjBaA3YLQ56OZyz/RQ6Wd8h9+hl2nK4DuxKnpgl66I65Q0tgCDzFSaeteDv6J/qQ\n3TZ6pS8QQb95XcLVby44GA0tJJflted9nE7W8qnjLLxtk1j0m16AQcQ4+T8pPweP\nlfovVsCugYLqZvP1wmNEYbrJ8slKvs5iM60+zl/dgXtKxUSi8SZe5n1GlJmcywds\nbRLArjNlyryrzpjS/5uLTlg28SRobG1StfxYv9nouQKBgQDgaBAdRkmToiZPxFEU\ned9pNHCXZ8ejxTSmLbODsobmOfObDyNieF3nmrZ2g7kjUx3E9gUn+sbSrU6Pfghs\nW0vRgj99NQXvOLAImaiJAM10DRqsJf9BPX9K1+r812lDrilqMV2kfSkP25M6AU8c\nwnHgmT1VL2AcZQAWHZ0EeXLiyQKBgQDDWnHEol2Dt1xXEtnS/dpSSXoIoZYNZoOs\nAREI9mzENBV3OdJgVkNIHdf/MuALRKo0E6byTOs6vwN9duO3+ny6kCqu8jTXlWAY\nWJwJlVIvfv9NsC3SA7ZBfqKI1u4bJzsGh7e4tNq/RKsMYh/cSjtdE7Y09uE9l1Dj\nJvkvPEGBdwKBgQCrZO/B3DhACR2n2PJwaDEJwmKoUTx6yhlPPyKX2NgNqX91E9fb\n0sEuLs1jsXHLGCVplNoVUgVfTbzt/b3jPMuoxglF0SSqNKrGts2xbip9k7CmgRL3\nOkgp2sYAvWoJplC9adzy0CF3miZVrEBHX//oIkJk+J04sq+hNJcDntrveQKBgCq/\nbufNc9Mv25f+OwYtoImjJH4hBdnW1fdcoGKqsfBZSV02nO+R0NVGGo7wjhBJLUmK\nB108MblANT5ONtR6jrKwe3ae76tBN678LOD3+O0FyE4ywEQVpds9H8n75kywz/zE\n1BIqGTgDib6C9l/ZKpZaiuOaJn24z+11CNAqSldPAoGAPJ9Mm0pkn054f0sHmdui\nCT4kDkTlV3EAAW2bt7tI+KnnYbEQuP0x67ZIAbE61s/j5gxuZ/oZ8JM/70N0HKFo\nR02bM+l8M84RwJVK25qQEK19FpwcfLUkBiX8e3JRkLEyMVFx1ECmNzudmw40lHYc\nApHpvyNHDQXmKaUcSNxjBFY=\n-----END PRIVATE KEY-----\n", - "client_email": "643550321681-compute@developer.gserviceaccount.com", - "client_id": "103930549623534475229", - "auth_uri": "https://accounts.google.com/o/oauth2/auth", - "token_uri": "https://oauth2.googleapis.com/token", - "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", - "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/643550321681-compute%40developer.gserviceaccount.com", - "universe_domain": "googleapis.com" -} diff --git a/packages/functions/scripts/agoliaBackfil.sh b/packages/functions/scripts/agoliaBackfil.sh deleted file mode 100644 index b5e6d85691..0000000000 --- a/packages/functions/scripts/agoliaBackfil.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh - - -LOCATION=us-central1 \ -PROJECT_ID=soonaverse-test \ -ALGOLIA_APP_ID= \ -ALGOLIA_INDEX_NAME=collection \ -ALGOLIA_API_KEY= \ -COLLECTION_PATH=collection \ -GOOGLE_APPLICATION_CREDENTIALS=./.json \ -npx firestore-algolia-search - - -LOCATION=us-central1 \ -PROJECT_ID=soonaverse-test \ -ALGOLIA_APP_ID= \ -ALGOLIA_INDEX_NAME=member \ -ALGOLIA_API_KEY= \ -COLLECTION_PATH=member \ -GOOGLE_APPLICATION_CREDENTIALS=./.json \ -npx firestore-algolia-search - -LOCATION=us-central1 \ -PROJECT_ID=soonaverse-test \ -ALGOLIA_APP_ID= \ -ALGOLIA_INDEX_NAME=proposal \ -ALGOLIA_API_KEY= \ -COLLECTION_PATH=proposal \ -GOOGLE_APPLICATION_CREDENTIALS=./.json \ -npx firestore-algolia-search - -LOCATION=us-central1 \ -PROJECT_ID=soonaverse-test \ -ALGOLIA_APP_ID= \ -ALGOLIA_INDEX_NAME=space \ -ALGOLIA_API_KEY= \ -COLLECTION_PATH=space \ -GOOGLE_APPLICATION_CREDENTIALS=./.json \ -npx firestore-algolia-search - -LOCATION=us-central1 \ -PROJECT_ID=soonaverse-test \ -ALGOLIA_APP_ID= \ -ALGOLIA_INDEX_NAME=award \ -ALGOLIA_API_KEY= \ -COLLECTION_PATH=award \ -GOOGLE_APPLICATION_CREDENTIALS=./.json \ -npx firestore-algolia-search - -LOCATION=us-central1 \ -PROJECT_ID=soonaverse-test \ -ALGOLIA_APP_ID= \ -ALGOLIA_INDEX_NAME=nft \ -ALGOLIA_API_KEY= \ -COLLECTION_PATH=nft \ -GOOGLE_APPLICATION_CREDENTIALS=./.json \ -npx firestore-algolia-search diff --git a/packages/functions/scripts/balanceChecker.ts b/packages/functions/scripts/balanceChecker.ts deleted file mode 100644 index d758a78623..0000000000 --- a/packages/functions/scripts/balanceChecker.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import { WalletService } from '../src/services/wallet/wallet'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -const wallet: WalletService = new WalletService(); -db.collection('_mnemonic') - .get() - .then(async (ss) => { - console.log('address,balance,createTime'); - for (const t of ss.docs) { - let balance = 0; - try { - balance = await wallet.getBalance(t.id); - } catch (e) { - // ignore - } - if (balance > 0) { - console.log(t.id + ',' + balance + ',' + t.createTime.toDate()); - } - } - }); diff --git a/packages/functions/scripts/calcStats.ts b/packages/functions/scripts/calcStats.ts deleted file mode 100644 index e7306840fa..0000000000 --- a/packages/functions/scripts/calcStats.ts +++ /dev/null @@ -1,155 +0,0 @@ -import { COL, TransactionType } from '@buildcore/interfaces'; -import { UnitsHelper } from '@iota/iota.js'; -import dayjs from 'dayjs'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -const recs = [COL.MEMBER, COL.SPACE, COL.AWARD, COL.PROPOSAL, COL.TRANSACTION, COL.MILESTONE]; -recs.forEach((r) => { - // db.collection(r).get().then((snapshot) => { - // console.log('Total ' + r + ': ', snapshot.size); - // }); -}); - -// Export of members within space. -// 0xdf1ed923ad76de09600e88baa84327b32182288d/members -// console.log('spaceId,ETH_Address,Username,totalReputation,joined') -// db.collection('space').doc('0xdf1ed923ad76de09600e88baa84327b32182288d').collection('members').get().then(async (snapshot) => { -// for (const member of snapshot.docs) { -// const refMember: any = db.collection(COL.MEMBER).doc(member.data().uid); -// const docMember: any = await refMember.get(); -// const data: any = docMember.data(); -// console.log(member.data().parentId+','+data.uid+','+data.name+','+(data.spaces?.[member.data().parentId]?.totalReputations || 0).toString()+','+member.data().createdOn.toDate().toString()); -// } -// }); - -// Find gaps in milestones. -// db.collection('milestone').get().then(async (snapshot) => { -// let last = 0; -// console.log('----Finding Milestones with gab:') -// for (const member of snapshot.docs) { -// if ((last + 1) !== parseInt(member.id)) { -// // Create gab -// if ((parseInt(member.id) - 1) !== last && last !== 0) { -// console.log('----Another Milestone gab'); -// } -// console.log(parseInt(member.id) - 1); -// } - -// last = parseInt(member.id); -// } -// }); - -// db.collection('transaction').where('type', '==', 'PAYMENT').orderBy('createdOn', 'asc').get().then(async (snapshot) => { -// for (const t of snapshot.docs) { -// console.log(t.data().uid, t.data().member, t.data().type, t.data().payload.amount, t.data().createdOn.toDate()); -// } -// }); - -console.log('Getting data...'); -let totalPayCount = 0; -let totalPay = 0; -let totalBillCount = 0; -let totalBillRoyCount = 0; -let totalBil = 0; -let totalBilRoy = 0; -let totalCreditCount = 0; -let totalCreditPay = 0; -let totalOrderCount = 0; -db.collection('transaction') - .orderBy('createdOn', 'desc') - .limit(1) - .onSnapshot((querySnapshot) => { - querySnapshot.docChanges().forEach(async (t) => { - // Get user name - const member: any = await db.collection('member').doc(t.doc.data().member).get(); - if (t.type === 'added') { - if (t.doc.data().type === TransactionType.PAYMENT) { - totalPayCount++; - totalPay += t.doc.data().payload.amount; - console.log( - '+PAY-' + - (t.doc.data().payload.invalidPayment ? 'Y' : 'N') + - '\t\t' + - totalOrderCount + - '\t' + - totalPayCount + - '\t' + - UnitsHelper.formatBest(totalPay) + - '\t\t' + - UnitsHelper.formatBest(t.doc.data().payload.amount) + - '\t' + - dayjs(t.doc.data().createdOn.toDate()).format('DD/MM HH:mm:ss') + - '\t' + - t.doc.data().uid + - '\t' + - member.data().name + - '\t' + - 'https://soonaverse.com/member/' + - t.doc.data().member, - ); - } else if (t.doc.data().type === TransactionType.BILL_PAYMENT) { - if (t.doc.data().payload.royalty) { - totalBillRoyCount++; - totalBilRoy += t.doc.data().payload.amount; - } else { - totalBillCount++; - totalBil += t.doc.data().payload.amount; - } - console.log( - '-BILL-' + - (t.doc.data().payload.invalidPayment ? 'Y' : 'N') + - '\t\t' + - totalOrderCount + - '\t' + - (t.doc.data().payload.royalty ? totalBillRoyCount : totalBillCount) + - '\t' + - UnitsHelper.formatBest(t.doc.data().payload.royalty ? totalBilRoy : totalBil) + - '\t\t' + - UnitsHelper.formatBest(t.doc.data().payload.amount) + - '\t' + - dayjs(t.doc.data().createdOn.toDate()).format('DD/MM HH:mm:ss') + - '\t' + - t.doc.data().uid + - '\t' + - member.data().name + - '\t' + - 'https://soonaverse.com/member/' + - t.doc.data().member, - ); - } else if (t.doc.data().type === TransactionType.CREDIT) { - totalCreditCount++; - totalCreditPay += t.doc.data().payload.amount; - console.log( - '-CREDIT-' + - (t.doc.data().payload.invalidPayment ? 'Y' : 'N') + - '\t\t' + - totalOrderCount + - '\t' + - totalCreditCount + - '\t' + - UnitsHelper.formatBest(totalCreditPay) + - '\t\t' + - UnitsHelper.formatBest(t.doc.data().payload.amount) + - '\t' + - dayjs(t.doc.data().createdOn.toDate()).format('DD/MM HH:mm:ss') + - '\t' + - t.doc.data().uid + - '\t' + - member.data().name + - '\t' + - 'https://soonaverse.com/member/' + - t.doc.data().member, - ); - } else if (t.doc.data().type === TransactionType.ORDER) { - totalOrderCount++; - } - } - }); - }); diff --git a/packages/functions/scripts/changeDatesOnNft.ts b/packages/functions/scripts/changeDatesOnNft.ts deleted file mode 100644 index b6083a8760..0000000000 --- a/packages/functions/scripts/changeDatesOnNft.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import { dateToTimestamp } from '../src/utils/dateTime.utils'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collection('nft') - .where('collection', '==', '0xc95de0524b2112a36701b9d3465e61772ae6ce8e') - .get() - .then(async (snapshot) => { - for (const nft of snapshot.docs) { - if (nft.data().availableFrom) { - await db - .collection('nft') - .doc(nft.data().uid) - .update({ - availableFrom: dateToTimestamp('Mar 7, 2022 10:00:00 PM'), - }); - } - } - }); diff --git a/packages/functions/scripts/changeFeeForMembers.ts b/packages/functions/scripts/changeFeeForMembers.ts deleted file mode 100644 index 8f6e4a75bf..0000000000 --- a/packages/functions/scripts/changeFeeForMembers.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { COL } from '@buildcore/interfaces'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); - -export const rollNetwork = async (members: string[]) => { - members.forEach(async (m) => { - const ss: any = await db.collection(COL.MEMBER).doc(m).get(); - if (ss.data() && ss.data().tokenTradingFeePercentage !== 0) { - console.log(m + ' member to zero.'); - - return ss.ref.update({ - tokenTradingFeePercentage: 0, - }); - } - }); - - return undefined; -}; - -const members: string[] = []; -rollNetwork(members); diff --git a/packages/functions/scripts/checkApprovalState.ts b/packages/functions/scripts/checkApprovalState.ts deleted file mode 100644 index 6805ab8b0f..0000000000 --- a/packages/functions/scripts/checkApprovalState.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collection('collection') - .get() - .then(async (snapshot) => { - for (const col of snapshot.docs) { - db.collection('nft') - .where('collection', '==', col.data().uid) - .get() - .then(async (snapshot2) => { - let i = 0; - for (const nft of snapshot2.docs) { - const update: any = {}; - if (nft.data().approved !== col.data().approved) { - // i++; - console.log( - nft.data().approved, - col.data().approved, - nft.data().uid, - ' should be approved, collection name:', - col.data().name, - ); - update.approved = col.data().approved; - } - - if (nft.data().rejected !== col.data().rejected) { - // ii++; - console.log( - nft.data().rejected, - col.data().rejected, - nft.data().uid, - ' should be rejected', - ); - update.rejected = col.data().rejected; - } - - if (Object.keys(update).length > 0) { - i++; - // db.collection('nft').doc(nft.data().uid).update(update); - - if (i > 500) { - // Wait for two seconds every 500 records. - // await new Promise(resolve => setTimeout(resolve, 3000)); - i = 0; - } - } - } - }); - } - }); diff --git a/packages/functions/scripts/correctNftPlaceholders.ts b/packages/functions/scripts/correctNftPlaceholders.ts deleted file mode 100644 index acef0ee56b..0000000000 --- a/packages/functions/scripts/correctNftPlaceholders.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collection('collection') - .get() - .then(async (snapshot) => { - for (const col of snapshot.docs) { - db.collection('nft') - .where('collection', '==', col.data().uid) - .where('placeholderNft', '==', true) - .where('hidden', '==', false) - .get() - .then(async (snapshot2) => { - let i = 0; - for (const nft of snapshot2.docs) { - i++; - const left = col.data().total - col.data().sold; - if (left <= 0) { - console.log( - col.data().name, - '\t', - nft.data().uid, - '\t', - col.data().total - col.data().sold, - '\t', - nft.data().sold, - '\t', - nft.data().availableFrom, - ); - // db.collection('nft').doc(nft.data().uid).update({ - // sold: true, - // owner: null, - // availableFrom: null, - // soldOn: serverTime(), - // hidden: true - // }); - - if (i > 500) { - // Wait for few seconds every 500 records. - await new Promise((resolve) => setTimeout(resolve, 3000)); - i = 0; - } - } - } - }); - } - }); diff --git a/packages/functions/scripts/correctNftPositions.ts b/packages/functions/scripts/correctNftPositions.ts deleted file mode 100644 index 362652740b..0000000000 --- a/packages/functions/scripts/correctNftPositions.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collection('collection') - .get() - .then(async (snapshot) => { - for (const col of snapshot.docs) { - db.collection('nft') - .where('collection', '==', col.data().uid) - .get() - .then(async (snapshot2) => { - let i = 0; - let position = 0; - for (const nft of snapshot2.docs) { - i++; - console.log( - col.data().name, - '\t', - nft.data().uid, - '\t', - nft.data().position, - '\t', - position, - ); - db.collection('nft').doc(nft.data().uid).update({ - position: position, - }); - - if (i > 500) { - // Wait for few seconds every 500 records. - await new Promise((resolve) => setTimeout(resolve, 3000)); - i = 0; - } - - position++; - } - }); - } - }); diff --git a/packages/functions/scripts/db.upgrade.ts b/packages/functions/scripts/db.upgrade.ts deleted file mode 100644 index 668fcf037c..0000000000 --- a/packages/functions/scripts/db.upgrade.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { FirebaseApp } from '@buildcore/database'; -import { COL } from '@buildcore/interfaces'; -import crypto from 'crypto'; -import dotenv from 'dotenv'; -import admin from 'firebase-admin'; -import { getFirestore } from 'firebase-admin/firestore'; -import fs from 'fs'; -import { glob } from 'glob'; -import serviceAccount from './serviceAccountKey.json'; - -dotenv.config({ path: '../.env' }); - -const app = admin.initializeApp({ - credential: admin.credential.cert(serviceAccount as any), -}); -process.env.FIREBASE_CONFIG = JSON.stringify({ projectId: serviceAccount.project_id }); - -const execute = async () => { - const db = getFirestore(app); - const files = glob.sync(`./dbUpgrades/**/*.ts`); - for (const file of files.sort()) { - const content = fs.readFileSync(file); - const hash = crypto.createHash('sha1').update(content).digest('hex'); - - const docRef = db.doc(`${COL.DB_ROLL_FILES}/${hash}`); - const doc = await docRef.get(); - if (doc.exists) { - console.warn(`${file} script was already ran`); - continue; - } - - console.log(`Running ${file}`); - const func = await import(pathToImportFileName(file)); - await func.roll(new FirebaseApp(app)); - await docRef.create({}); - } -}; - -const pathToImportFileName = (path: string) => './' + path.replace('.ts', ''); - -execute(); diff --git a/packages/functions/scripts/drainWallets.ts b/packages/functions/scripts/drainWallets.ts deleted file mode 100644 index 31933b5499..0000000000 --- a/packages/functions/scripts/drainWallets.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import { WalletService } from '../src/services/wallet/wallet'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const add = ['iota1qq5sprmgxrgaj5jx0xvwxczceshmz8nzkmxns0w5kx54lc426mvngm4nl65']; - -const db = getFirestore(); -const wallet = await WalletService.newWallet(); -db.collection('_mnemonic') - .limit(1) - .get() - .then(async (ss) => { - for (const t of add) { - let balance = 0; - try { - balance = await wallet.getBalance(t); - } catch (e) { - // ignore - } - - console.log('Balance', t, balance); - if (balance > 0) { - console.log('Refunding...'); - const chainReference = await wallet.send( - await wallet.getAddressDetails(t), - 'iota1qrl8ldyshmvzdhjc88fmjpqkeqpylyhw03tu3gx7la0ftn3vuxp0c529f68', - balance, - { data: JSON.stringify({ drain: true }) }, - ); - - console.log('refunded: ', chainReference); - } - } - }); diff --git a/packages/functions/scripts/dummyTransfer.ts b/packages/functions/scripts/dummyTransfer.ts deleted file mode 100644 index a532879c08..0000000000 --- a/packages/functions/scripts/dummyTransfer.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { Bip32Path } from '@iota/crypto.js'; -import { - Bech32Helper, - ED25519_ADDRESS_TYPE, - Ed25519Address, - Ed25519Seed, - IKeyPair, - ISigLockedSingleOutput, - IUTXOInput, - SIG_LOCKED_SINGLE_OUTPUT_TYPE, - SingleNodeClient, - UTXO_INPUT_TYPE, - sendAdvanced, -} from '@iota/iota.js'; -import { Converter } from '@iota/util.js'; -import { generateMnemonic } from 'bip39'; -import { getRandomEthAddress } from '../src/utils/wallet.utils'; - -// MAINNET -// const API_ENDPOINT = "https://chrysalis-nodes.iota.org"; -// DEVNET -const API_ENDPOINT = 'https://api.lb-0.h.chrysalis-devnet.iota.cafe/'; - -async function run() { - const client = new SingleNodeClient(API_ENDPOINT); - const nodeInfo = await client.info(); - - // These are the default values from the Hornet alphanet configuration - // const mnemonic = "giant dynamic museum toddler six deny defense ostrich bomb access mercy blood explain muscle shoot shallow glad autumn author calm heavy hawk apple rally"; - const mnemonic = - 'bitter icon bridge age uncle drop radar cook wrap soda purse claim scrub toast day shop marble rural target island asset ethics seven picture'; // "giant dynamic museum toddler six deny defense ostrich bomb access mercy blood explain muscle shoot shallow glad autumn apple calm heavy hawk apple rally"; // atoi1qpg4tqh7vj9s7y9zk2smj8t4qgvse9um42l7apdkhw6syp5ju4w3vet6gtj - - console.log(generateMnemonic() + ' ' + generateMnemonic()); - - // Generate the seed from the Mnemonic - const genesisSeed = Ed25519Seed.fromMnemonic(mnemonic); - console.log('Genesis'); - - const genesisPath = new Bip32Path("m/44'/4218'/0'/0'/0'"); - const genesisWalletSeed = genesisSeed.generateSeedFromPath(genesisPath); - const genesisWalletKeyPair = genesisWalletSeed.keyPair(); - console.log('\tSeed', Converter.bytesToHex(genesisWalletSeed.toBytes())); - - // Get the address for the path seed which is actually the Blake2b.sum256 of the public key - // display it in both Ed25519 and Bech 32 format - const genesisEd25519Address = new Ed25519Address(genesisWalletKeyPair.publicKey); - const genesisWalletAddress = genesisEd25519Address.toAddress(); - const genesisWalletAddressHex = Converter.bytesToHex(genesisWalletAddress); - console.log('\tAddress Ed25519', genesisWalletAddressHex); - console.log( - '\tAddress Bech32', - Bech32Helper.toBech32(ED25519_ADDRESS_TYPE, genesisWalletAddress, nodeInfo.bech32HRP), - ); - - // Get HEX from target address. - const decodeBench32Target = Bech32Helper.fromBech32( - 'atoi1qpg4tqh7vj9s7y9zk2smj8t4qgvse9um42l7apdkhw6syp5ju4w3vet6gtj', - nodeInfo.bech32HRP, - ); - const newAddressHex = Converter.bytesToHex(decodeBench32Target!.addressBytes); - // console.log(newAddressHex); - - // Because we are using the genesis address we must use send advanced as the input address is - // not calculated from a Bip32 path, if you were doing a wallet to wallet transfer you can just use send - // which calculates all the inputs/outputs for you - const genesisAddressOutputs = await client.addressEd25519Outputs(genesisWalletAddressHex); - const inputsWithKeyPairs: { - input: IUTXOInput; - addressKeyPair: IKeyPair; - }[] = []; - - let totalGenesis = 0; - - for (let i = 0; i < genesisAddressOutputs.outputIds.length; i++) { - const output = await client.output(genesisAddressOutputs.outputIds[i]); - if (!output.isSpent) { - inputsWithKeyPairs.push({ - input: { - type: UTXO_INPUT_TYPE, - transactionId: output.transactionId, - transactionOutputIndex: output.outputIndex, - }, - addressKeyPair: genesisWalletKeyPair, - }); - if (output.output.type === SIG_LOCKED_SINGLE_OUTPUT_TYPE) { - totalGenesis += (output.output as ISigLockedSingleOutput).amount; - } - } - } - - const amountToSend = 90000000; - - const outputs: { - address: string; - addressType: number; - amount: number; - }[] = [ - // This is the transfer to the new address - { - address: newAddressHex, - addressType: ED25519_ADDRESS_TYPE, - amount: amountToSend, - }, - ]; - - const reminder: number = totalGenesis - amountToSend; - if (reminder > 0) { - outputs.push({ - address: genesisWalletAddressHex, - addressType: ED25519_ADDRESS_TYPE, - amount: reminder, - }); - } - - const { messageId } = await sendAdvanced(client, inputsWithKeyPairs, outputs, { - key: Converter.utf8ToBytes('Soonaverse'), - data: Converter.utf8ToBytes( - JSON.stringify({ - url: 'www.soonaverse.com/nft/12', - eth: getRandomEthAddress(), - }), - ), - }); - - console.log('Created Message Id', messageId); -} - -run() - .then(() => console.log('Done')) - .catch((err) => console.error(err)); diff --git a/packages/functions/scripts/duplicatePurchases.ts b/packages/functions/scripts/duplicatePurchases.ts deleted file mode 100644 index 0d14cba798..0000000000 --- a/packages/functions/scripts/duplicatePurchases.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -const nfts: any = {}; -db.collection('transaction') - .where('type', '==', 'BILL_PAYMENT') - .where('payload_royalty', '==', false) - .get() - .then(async (ss) => { - for (const t of ss.docs) { - // console.log(t.data().uid); - nfts[t.data().payload.nft] = nfts[t.data().payload.nft] || { - id: t.data().payload.nft, - trans: [], - dates: [], - count: 0, - }; - nfts[t.data().payload.nft].count++; - nfts[t.data().payload.nft].trans.push(t.data().uid); - nfts[t.data().payload.nft].dates.push(t.data().createdOn.toDate()); - } - - console.log('nftId, count, transactions, dates'); - for (const n of Object.values(nfts)) { - if (n.count > 1) { - console.log(n.id, ',', n.count, ',', n.trans.join(' | '), ',', n.dates.join(' | ')); - } - } - }); diff --git a/packages/functions/scripts/forceNftUpdate.ts b/packages/functions/scripts/forceNftUpdate.ts deleted file mode 100644 index 83c60cb2b8..0000000000 --- a/packages/functions/scripts/forceNftUpdate.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { NftAvailable } from '@buildcore/interfaces'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -let i = 0; -const db = getFirestore(); -db.collection('nft') - .get() - .then(async (snapshot) => { - for (const nft of snapshot.docs) { - i++; - console.log(i, '\t', nft.data().uid); - const up: any = { - available: NftAvailable.UNAVAILABLE, - isOwned: false, - }; - - if ( - !nft.data().availablePrice && - nft.data().availableFrom && - !nft.data().owner && - nft.data().price - ) { - up.availablePrice = nft.data().price; - } - - await db.collection('nft').doc(nft.data().uid).update(up); - } - }); diff --git a/packages/functions/scripts/manualRefund.ts b/packages/functions/scripts/manualRefund.ts deleted file mode 100644 index a40a2d5f00..0000000000 --- a/packages/functions/scripts/manualRefund.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { - COL, - Network, - SOON_PROJECT_ID, - Transaction, - TransactionPayloadType, - TransactionType, -} from '@buildcore/interfaces'; -import * as admin from 'firebase-admin'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); - -const tranId = ''; -const memberUid = ''; -const tokenId = ''; -const sourceAddress = ''; -// 1 RMS. -const refundAmount = 1; -db.collection(COL.MEMBER) - .doc(memberUid) - .get() - .then(async (member) => { - if (member.data()) { - await db - .collection(COL.TRANSACTION) - .doc(tranId) - .upsert({ - project: SOON_PROJECT_ID, - type: TransactionType.CREDIT, - uid: tranId, - space: '', - member: member.data()!.uid, - createdOn: admin.firestore.Timestamp.now(), - network: Network.SMR, - payload: { - type: TransactionPayloadType.TOKEN_BUY, - amount: refundAmount, - sourceAddress: sourceAddress, - targetAddress: (member.data()?.validatedAddress || {})[Network.SMR] || '', - sourceTransaction: [], - token: tokenId, - reconciled: false, - void: false, - }, - }); - - console.log('Sent ' + refundAmount + ' to ' + member.data()?.name + ', ' + memberUid); - } - }); diff --git a/packages/functions/scripts/massUpdate.ts b/packages/functions/scripts/massUpdate.ts deleted file mode 100644 index 71a7d9769b..0000000000 --- a/packages/functions/scripts/massUpdate.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { COL } from '@buildcore/interfaces'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyTest.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -const record = COL.MEMBER; -db.collection(record) - .get() - .then((snapshot) => { - console.log(snapshot.size); - // snapshot.docs.forEach(async (d) => { - // // const participant = await db.collection(record).doc(d.data().uid).collection(SUB_COL.MEMBERS).get(); - // // for (const part of participant.docs) { - // // console.log(d.data().uid, 'no issued', participant.size, 'part', part.data().uid, 'value', part.data().voted); - // // // if (!part.data().voted) { - // // // try { - // // // await db.collection(record).doc(d.data().uid).collection(SUB_COL.MEMBERS).doc(part.data().uid).update({ - // // // voted: false - // // // }); - // // // } catch(e) { - // // // console.error(e); - // // // } - // // // } - // // // console.log(d.data().uid, 'par: ', part.data().uid); - // // // await db.collection(record).doc(d.data().uid).collection(SUB_COL.PARTICIPANTS).doc(part.data().uid).delete(); - // // } - // console.log(d.data().name.replace('WEN-TEST: ', '')); - // db.collection(record).doc(d.data().uid).update({ - // name: d.data().name.replace('WEN-TEST: ', '') - // }); - // }); - }); diff --git a/packages/functions/scripts/missedTransactionFromMilestone.ts b/packages/functions/scripts/missedTransactionFromMilestone.ts deleted file mode 100644 index e8193ac5ce..0000000000 --- a/packages/functions/scripts/missedTransactionFromMilestone.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collection('transaction') - .where('type', '==', 'ORDER') - .get() - .then(async (ss) => { - const unprocessed: string[] = []; - for (const t of ss.docs) { - if (!t.data().linkedTransactions || t.data().linkedTransactions.length === 0) { - unprocessed.push(t.data().payload.targetAddress); - } - } - - console.log('Unprocessed orders', unprocessed.length); - - const tangleTransactions: any = []; - await db - .collectionGroup('transactions') - .get() - .then(async (ss) => { - for (const t of ss.docs) { - tangleTransactions.push(t.data()); - } - }); - - console.log('Tangle Transactions: ', tangleTransactions.length); - - const ignored: any = []; - for (const o of unprocessed) { - const found: any = findMatch(tangleTransactions, o); - if (found) { - ignored.push(found); - } - } - - // TODO Validate balance. - - console.log('Ignored transactions: ', ignored.length); - }); - -function findMatch(trans: any, toAddress: string): any | undefined { - let found: any | undefined; - for (const [msgId, t] of Object.entries(trans)) { - const fromAddress: any = t.inputs?.[0]; - if (fromAddress && t.outputs) { - for (const o of t.outputs) { - // Ignore output that contains input address. Remaining balance. - if ( - t.inputs.find((i: any) => { - return o.address === i.address; - }) - ) { - continue; - } - - if (o.address === toAddress) { - found = { - msgId: msgId, - from: fromAddress, - to: o, - }; - } - } - } - } - - return found; -} diff --git a/packages/functions/scripts/nullPayments.ts b/packages/functions/scripts/nullPayments.ts deleted file mode 100644 index 1e7941239a..0000000000 --- a/packages/functions/scripts/nullPayments.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { DEF_WALLET_PAY_IN_PROGRESS, SUB_COL } from '@buildcore/interfaces'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collection('transaction') - .where('payload_walletReference.chainReference', '==', null) - .where('payload_walletReference.error', '==', 'Error: You must specify some inputs') - .get() - .then(async (ss) => { - for (const t of ss.docs) { - for (const m of t.data().payload.walletReference.chainReferences || []) { - if (m && !m.startsWith(DEF_WALLET_PAY_IN_PROGRESS)) { - await db - .collectionGroup(SUB_COL.TRANSACTIONS) - .where('messageId', '==', m) - .get() - .then(async (sss) => { - if (sss.size >= 1) { - console.log(t.data().uid, t.data().payload.nft, m); - - const tran: any = t.data(); - tran.payload.walletReference.chainReference = m; - tran.payload.walletReference.error = null; - await db.collection('transaction').doc(t.data().uid).update(tran); - } - }); - } - } - } - }); diff --git a/packages/functions/scripts/recalculateCollectionTotals.ts b/packages/functions/scripts/recalculateCollectionTotals.ts deleted file mode 100644 index 240f0e6de7..0000000000 --- a/packages/functions/scripts/recalculateCollectionTotals.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collection('collection') - .where('uid', '==', '0xcbe28532602d67eec7c937c0037509d426f38223') - .get() - .then(async (snapshot) => { - for (const col of snapshot.docs) { - console.log('Coll', col.data().total, ' sold: ', col.data().sold); - // const totalOwned = await db.collection('nft').where('collection', '==', col.data().uid).where('onwer', '!=', null).get(); - // console.log('total sold: ', totalOwned.size); - const notSold = await db - .collection('nft') - .where('collection', '==', col.data().uid) - .where('soldOn', '==', null) - .get(); - console.log( - 'total not sold: ', - notSold.size, - 'should be sold: ', - col.data().total - notSold.size, - ); - } - }); diff --git a/packages/functions/scripts/refreshBigQuery.sh b/packages/functions/scripts/refreshBigQuery.sh deleted file mode 100644 index e44e3d7fcc..0000000000 --- a/packages/functions/scripts/refreshBigQuery.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -npx @firebaseextensions/fs-bq-import-collection -P soonaverse -s transaction -q false -d soonaverse -t transaction --non-interactive -l us -npx @firebaseextensions/fs-bq-import-collection -P soonaverse -s nft -q false -d soonaverse -t nft --non-interactive -l us -npx @firebaseextensions/fs-bq-import-collection -P soonaverse -s member -q false -d soonaverse -t member --non-interactive -l us -npx @firebaseextensions/fs-bq-import-collection -P soonaverse -s space -q false -d soonaverse -t space --non-interactive -l us diff --git a/packages/functions/scripts/refreshCreatedOnBasedCreateTime.ts b/packages/functions/scripts/refreshCreatedOnBasedCreateTime.ts deleted file mode 100644 index ff06748220..0000000000 --- a/packages/functions/scripts/refreshCreatedOnBasedCreateTime.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { COL } from '@buildcore/interfaces'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import { last } from 'lodash'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); - -export const fixCreatedOn = async (col: COL) => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - let lastDoc: any | undefined = undefined; - do { - let query = db.collection(col).orderBy('createdOn'); - if (lastDoc) { - query = query.startAfter(lastDoc).limit(1000); - } else { - query = query.limit(500); - } - const snap = await query.get(); - - const promises = snap.docs.map((doc) => { - if (doc.createTime) { - console.log('Updating: ' + doc.data().uid); - return doc.ref.update({ - createdOn: doc.createTime, - }); - } else { - return undefined; - } - }); - - await Promise.all(promises); - lastDoc = last(snap.docs); - } while (lastDoc !== undefined); -}; - -fixCreatedOn(COL.MEMBER); -// removeKeywords(COL.AWARD); -// removeKeywords(COL.PROPOSAL); -// removeKeywords(COL.SPACE); -// removeKeywords(COL.NFT); -// removeKeywords(COL.COLLECTION); -// removeKeywords(COL.TOKEN); diff --git a/packages/functions/scripts/reprocessMilestoneTransactions.ts b/packages/functions/scripts/reprocessMilestoneTransactions.ts deleted file mode 100644 index 8c24ed27fc..0000000000 --- a/packages/functions/scripts/reprocessMilestoneTransactions.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { SUB_COL } from '@buildcore/interfaces'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collectionGroup(SUB_COL.TRANSACTIONS) - .get() - .then(async (ss) => { - for (const t of ss.docs) { - if (t.data().milestone > 2855200 && t.data().processed !== true) { - console.log(t.data().milestone, '\t', t.data().messageId, '\t', t.id); - // await db.collection(COL.MILESTONE).doc(t.data().milestone!.toString()).collection(SUB_COL.TRANSACTIONS).doc(t.id).update({ - // processed: false - // }); - } - } - }); diff --git a/packages/functions/scripts/retryPayment.ts b/packages/functions/scripts/retryPayment.ts deleted file mode 100644 index 75b9966ff1..0000000000 --- a/packages/functions/scripts/retryPayment.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Transaction } from '@buildcore/interfaces'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyProd.json'; - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collection('transaction') - .where('payload_walletReference.confirmed', '==', false) - .where('payload_walletReference.count', '<=', 4) - .orderBy('payload.walletReference.count', 'asc') - .limit(10000) - .get() - .then(async (ss) => { - console.log(ss.size); - for (const t of ss.docs) { - const tt: Transaction = t.data(); - tt.shouldRetry = false; - console.log('Retrying ' + tt.uid + '...'); - await db.collection('transaction').doc(tt.uid).update(tt); - } - }); diff --git a/packages/functions/scripts/unpinRejectedNft.ts b/packages/functions/scripts/unpinRejectedNft.ts deleted file mode 100644 index 3e3db93035..0000000000 --- a/packages/functions/scripts/unpinRejectedNft.ts +++ /dev/null @@ -1,72 +0,0 @@ -import axios from 'axios'; -import { cert, initializeApp } from 'firebase-admin/app'; -import { getFirestore } from 'firebase-admin/firestore'; -import serviceAccount from './serviceAccountKeyTest.json'; - -const pinataConfig = { - // PROD - key: '', // functions.config()?.pinata?.key, - secret: '', // functions.config()?.pinata?.secret -}; - -function removePin(cid: string) { - const url = `https://api.pinata.cloud/pinning/unpin/` + cid; - return axios.delete(url, { - headers: { - pinata_api_key: pinataConfig.key, - pinata_secret_api_key: pinataConfig.secret, - }, - }); -} - -initializeApp({ - credential: cert(serviceAccount), -}); - -const db = getFirestore(); -db.collection('collection') - .get() - .then(async (snapshot) => { - for (const col of snapshot.docs) { - await db - .collection('nft') - .where('collection', '==', col.data().uid) - .get() - .then(async (snapshot2) => { - let i = 0; - for (const nft of snapshot2.docs) { - if (nft.data().rejected && (nft.data().ipfsMetadata || nft.data().ipfsMedia)) { - i++; - console.log( - 'Removing ' + nft.data().ipfsMetadata + ' for nft ' + nft.data().uid + '...', - ); - if (nft.data().ipfsMetadata) { - try { - await removePin(nft.data().ipfsMetadata); - } catch (e) { - console.log('...failed to remove.'); - } - } - - console.log( - 'Removing ' + nft.data().ipfsMedia + ' for nft ' + nft.data().uid + '...', - ); - if (nft.data().ipfsMedia) { - try { - await removePin(nft.data().ipfsMedia); - } catch (e) { - console.log('...failed to remove.'); - } - } - - await db.collection('nft').doc(nft.data().uid).update({ - ipfsMetadata: null, - ipfsMedia: null, - }); - } - } - - console.log('Total Rejected in col ' + col.data().uid + ': ', i); - }); - } - }); diff --git a/packages/functions/src/controls/file/file.upload.control.ts b/packages/functions/src/controls/file/file.upload.control.ts index a8f1ce1b1c..e8ed65bbe3 100644 --- a/packages/functions/src/controls/file/file.upload.control.ts +++ b/packages/functions/src/controls/file/file.upload.control.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { storage } from '@buildcore/database'; -import { Bucket, FileUploadRequest, WenError, generateRandomFileName } from '@buildcore/interfaces'; +import { FileUploadRequest, WenError, generateRandomFileName } from '@buildcore/interfaces'; import busboy from 'busboy'; import fs from 'fs'; import jwt from 'jsonwebtoken'; @@ -32,8 +32,7 @@ export const uploadFileControl = async ({ headers, rawBody }: Context diff --git a/packages/functions/src/index.ts b/packages/functions/src/index.ts index fa6ffb5a42..1ca30ae98d 100644 --- a/packages/functions/src/index.ts +++ b/packages/functions/src/index.ts @@ -1,6 +1,4 @@ /* eslint-disable import/namespace */ -/* eslint-disable @typescript-eslint/no-var-requires */ -require('dotenv').config({ path: __dirname + '/.env' }); import { BaseRecord, database } from '@buildcore/database'; import { WEN_FUNC } from '@buildcore/interfaces'; import cors from 'cors'; @@ -18,7 +16,7 @@ import * as onTriggers from './runtime/trigger/index'; import { TriggeredFunction } from './runtime/trigger/trigger'; import { tangleClients } from './services/wallet/wallet.service'; import { PgDocEvent } from './triggers/common'; -import { isEmulatorEnv } from './utils/config.utils'; +import { isDevEnv } from './utils/config.utils'; import { logger } from './utils/logger'; import { traceMiddleware } from './utils/trace'; @@ -31,7 +29,7 @@ const httpRawParser = express.raw({ type: '*/*', limit: '100mb' }); const jsonParser = express.json({ limit: '50mb' }); const loggingMiddleware = (name: string) => - isEmulatorEnv() + isDevEnv() ? (_req: express.Request, res: express.Response, next: express.NextFunction) => { const start = dayjs(); console.log(`Beginning ${name}`); diff --git a/packages/functions/src/runtime/trigger/index.ts b/packages/functions/src/runtime/trigger/index.ts index 454da53eae..6c8395fc06 100644 --- a/packages/functions/src/runtime/trigger/index.ts +++ b/packages/functions/src/runtime/trigger/index.ts @@ -12,7 +12,7 @@ import { onTokenPurchaseCreated } from '../../triggers/token-trading/token-purch import { onTokenTradeOrderWrite } from '../../triggers/token-trading/token-trade-order.trigger'; import { onTokenStatusUpdated } from '../../triggers/token.trigger'; import { onTransactionWrite } from '../../triggers/transaction-trigger/transaction.trigger'; -import { isEmulatorEnv, isProdEnv } from '../../utils/config.utils'; +import { isDevEnv, isProdEnv } from '../../utils/config.utils'; import { WEN_FUNC_TRIGGER } from '../common'; import { onCreate, onUpdate, onWrite } from './trigger'; @@ -76,7 +76,7 @@ exports[WEN_FUNC_TRIGGER.onCollectionStatsWrite] = onWrite({ handler: onCollectionStatsWrite, }); -export const algolia = (isEmulatorEnv() ? [] : ALGOLIA_COLLECTIONS).reduce( +export const algolia = (isDevEnv() ? [] : ALGOLIA_COLLECTIONS).reduce( (acc, act) => ({ ...acc, [`${WEN_FUNC_TRIGGER.algolia}${act}`]: onWrite({ diff --git a/packages/functions/src/services/joi/common.ts b/packages/functions/src/services/joi/common.ts index e3169b9136..fa5c51d805 100644 --- a/packages/functions/src/services/joi/common.ts +++ b/packages/functions/src/services/joi/common.ts @@ -1,7 +1,7 @@ import { Bucket } from '@buildcore/interfaces'; import Joi, { SchemaMap } from 'joi'; import { isEmpty } from 'lodash'; -import { isEmulatorEnv, isProdEnv } from '../../utils/config.utils'; +import { isProdEnv } from '../../utils/config.utils'; const minAddressLength = 42; const maxAddressLength = 255; @@ -28,20 +28,14 @@ export class CommonJoi { } export const isStorageUrl = (url: string | undefined) => - !isEmpty(url) && startsWithBaseUrl(url || '') && (isEmulatorEnv() || !url?.includes('?')); + !isEmpty(url) && startsWithBaseUrl(url || ''); export const BUCKET_BASE_URLS = { [Bucket.PROD]: 'https://' + Bucket.PROD + '/', [Bucket.TEST]: 'https://' + Bucket.TEST + '/', - [Bucket.DEV]: `https://storage.googleapis.com/download/storage/v1/b/${Bucket.DEV}/o/`, }; const startsWithBaseUrl = (url: string) => { - if (isEmulatorEnv()) { - return ( - url.startsWith(BUCKET_BASE_URLS[Bucket.DEV]) || url.startsWith(BUCKET_BASE_URLS[Bucket.TEST]) - ); - } if (isProdEnv()) { return url.startsWith(BUCKET_BASE_URLS[Bucket.PROD]); } diff --git a/packages/functions/src/services/wallet/wallet.service.ts b/packages/functions/src/services/wallet/wallet.service.ts index dc3e3d9b81..187bf7fe6b 100644 --- a/packages/functions/src/services/wallet/wallet.service.ts +++ b/packages/functions/src/services/wallet/wallet.service.ts @@ -14,15 +14,10 @@ export interface AddressDetails { } const NODES = { - [Network.SMR]: ['https://smr1.svrs.io/', 'https://smr3.svrs.io/'], - [Network.RMS]: ['https://rms1.svrs.io/', 'https://rms1.svrs.io/'], // Second ulr is for testing purposes, - [Network.IOTA]: [ - 'https://us3.svrs.io/', - 'https://us4.svrs.io/', - 'https://hs5.svrs.io/', - 'https://hs6.svrs.io/', - ], - [Network.ATOI]: ['https://rms1.svrs.io/'], + [Network.SMR]: process.env.SMR_NODES!.split(','), + [Network.RMS]: process.env.RMS_NODES!.split(','), + [Network.IOTA]: process.env.IOTA_NODES!.split(','), + [Network.ATOI]: process.env.ATOI_NODES!.split(','), }; export const tangleClients: { [key: string]: Client } = {}; diff --git a/packages/functions/src/triggers/transaction-trigger/transaction.trigger.ts b/packages/functions/src/triggers/transaction-trigger/transaction.trigger.ts index e944f0844b..e4eabdf145 100644 --- a/packages/functions/src/triggers/transaction-trigger/transaction.trigger.ts +++ b/packages/functions/src/triggers/transaction-trigger/transaction.trigger.ts @@ -22,7 +22,7 @@ import { Wallet, WalletParams } from '../../services/wallet/wallet'; import { WalletService } from '../../services/wallet/wallet.service'; import { getAddress } from '../../utils/address.utils'; import { getProject } from '../../utils/common.utils'; -import { isEmulatorEnv } from '../../utils/config.utils'; +import { isDevEnv } from '../../utils/config.utils'; import { serverTime } from '../../utils/dateTime.utils'; import { logger } from '../../utils/logger'; import { getRandomEthAddress } from '../../utils/wallet.utils'; @@ -447,10 +447,7 @@ const prepareTransaction = (transactionId: string) => database().runTransaction(async (transaction) => { const docRef = database().doc(COL.TRANSACTION, transactionId); const tranData = await transaction.get(docRef); - if ( - isEmulatorEnv() && - [Network.SMR, Network.IOTA].includes(tranData?.network || DEFAULT_NETWORK) - ) { + if (isDevEnv() && [Network.SMR, Network.IOTA].includes(tranData?.network || DEFAULT_NETWORK)) { return false; } const walletResponse: WalletResult = tranData?.payload?.walletReference || emptyWalletResult(); diff --git a/packages/functions/src/utils/config.utils.ts b/packages/functions/src/utils/config.utils.ts index 5482b27c3d..2a760004bb 100644 --- a/packages/functions/src/utils/config.utils.ts +++ b/packages/functions/src/utils/config.utils.ts @@ -18,7 +18,7 @@ import { invalidArgument } from './error.utils'; export const isProdEnv = () => process.env.ENVIRONMENT === 'prod'; export const isTestEnv = () => process.env.ENVIRONMENT === 'test'; -export const isEmulatorEnv = () => !['prod', 'test'].includes(process.env.ENVIRONMENT!); +export const isDevEnv = () => !['prod', 'test'].includes(process.env.ENVIRONMENT!); export const getTokenSaleConfig = isProdEnv() ? TOKEN_SALE : TOKEN_SALE_TEST; @@ -55,7 +55,7 @@ export const getBucket = () => { if (isTestEnv()) { return Bucket.TEST; } - return Bucket.DEV; + throw new Error(`Invalid env ${process.env.ENVIRONMENT}`); }; export const getJwtSecretKey = () => process.env.JWT_SECRET!; @@ -65,10 +65,6 @@ export const getCustomTokenLifetime = (func: WEN_FUNC) => CUSTOM_TOKEN_MAX_LIFET export const algoliaAppId = () => process.env.ALGOLIA_APPID!; export const algoliaKey = () => process.env.ALGOLIA_KEY!; -export const xpTokenId = () => process.env.XPTOKEN_ID!; -export const xpTokenUid = () => process.env.XPTOKEN_UID!; -export const xpTokenGuardianId = () => process.env.XPTOKEN_GUARDIANID!; - export const getStampRoyaltyAddress = (network: Network) => STAMP_ROYALTY_ADDRESS[network]; export const getDefaultNetwork = () => (isProdEnv() ? Network.IOTA : Network.ATOI); diff --git a/packages/functions/src/utils/media.utils.ts b/packages/functions/src/utils/media.utils.ts index 62b5b3e591..bb1990c486 100644 --- a/packages/functions/src/utils/media.utils.ts +++ b/packages/functions/src/utils/media.utils.ts @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { IBucket, storage } from '@buildcore/database'; import { - Bucket, COL, IMAGE_CACHE_AGE, IPFS_GATEWAY, @@ -33,13 +32,11 @@ export const migrateUriToSotrage = async ( fs.mkdirSync(workdir); const { fileName, contentType } = await downloadMedia(workdir, url, allowAnyType); const destination = `${owner}/${uid}/${fileName}`; - const response = await bucket.upload(path.join(workdir, fileName), destination, { + await bucket.upload(path.join(workdir, fileName), destination, { contentType, cacheControl: `public,max-age=${IMAGE_CACHE_AGE}`, }); - const buildcoreUrl = - bucket.getName() === Bucket.DEV ? response : `https://${bucket.getName()}/${destination}`; - return buildcoreUrl; + return `https://${bucket.getName()}/${destination}`; } catch (error: any) { logger.error('migrateUriToSotrage - error', col, uid, error); throw error.code && error.key ? error : WenError.ipfs_retrieve; @@ -90,12 +87,8 @@ export const uriToUrl = (uri: string) => { export const getRandomBuildcoreUrl = (owner: string, uid: string, extension: string) => { const bucket = storage().bucket(getBucket()); const baseUrl = BUCKET_BASE_URLS[bucket.getName()]; - - const isDev = bucket.getName() === Bucket.DEV; const destination = `${owner}/${uid}/${generateRandomFileName()}.${extension}`; - const url = `${baseUrl}${isDev ? encodeURIComponent(destination) : destination}`; - - return isDev ? url + '?alt=media' : url; + return `${baseUrl}${destination}`; }; export const downloadFile = async (url: string, workDir: string, fileName: string) => { diff --git a/packages/functions/test-tangle/stamp-tangle/Helper.ts b/packages/functions/test-tangle/stamp-tangle/Helper.ts index a62de7f2ab..0601c1456b 100644 --- a/packages/functions/test-tangle/stamp-tangle/Helper.ts +++ b/packages/functions/test-tangle/stamp-tangle/Helper.ts @@ -33,7 +33,7 @@ export class Helper { }; public beforeEach = async () => { - const bucket = storage().bucket(Bucket.DEV); + const bucket = storage().bucket(Bucket.TEST); const destination = `nft/${getRandomEthAddress()}/image.jpeg`; this.dowloadUrl = await bucket.upload('./test/puppy.jpeg', destination, { contentType: 'image/jpeg', diff --git a/packages/functions/test-tangle/stamp-tangle/stamp-tangle_5.spec.ts b/packages/functions/test-tangle/stamp-tangle/stamp-tangle_5.spec.ts index 50d9e9dfb2..9852903ebf 100644 --- a/packages/functions/test-tangle/stamp-tangle/stamp-tangle_5.spec.ts +++ b/packages/functions/test-tangle/stamp-tangle/stamp-tangle_5.spec.ts @@ -13,7 +13,7 @@ describe('Stamp tangle test', () => { beforeEach(helper.beforeEach); it('Should create and mint stamp with zip file', async () => { - const bucket = storage().bucket(Bucket.DEV); + const bucket = storage().bucket(Bucket.TEST); const destination = 'nft/test/image.zip'; const dowloadUrl = await bucket.upload('./test/puppy.zip', destination, { contentType: 'application/zip', diff --git a/packages/functions/test-tangle/withdraw-deposit-nft/deposit-withraw-nft_9.spec.ts b/packages/functions/test-tangle/withdraw-deposit-nft/deposit-withraw-nft_9.spec.ts index b8c4a08bcd..bf0444badb 100644 --- a/packages/functions/test-tangle/withdraw-deposit-nft/deposit-withraw-nft_9.spec.ts +++ b/packages/functions/test-tangle/withdraw-deposit-nft/deposit-withraw-nft_9.spec.ts @@ -43,7 +43,7 @@ describe('Collection minting', () => { const validateStorageFileCount = (owner: string, uid: string) => wait(async () => { - const bucket = storage().bucket(Bucket.DEV); + const bucket = storage().bucket(Bucket.TEST); return (await bucket.getFilesCount(`${owner}/${uid}`)) > 0; }); diff --git a/packages/functions/test/controls/collection.spec.ts b/packages/functions/test/controls/collection.spec.ts index a922f2dca8..e1d4076aba 100644 --- a/packages/functions/test/controls/collection.spec.ts +++ b/packages/functions/test/controls/collection.spec.ts @@ -96,7 +96,7 @@ describe('CollectionController: ' + WEN_FUNC.createCollection, () => { let call = testEnv.wrap(WEN_FUNC.createCollection); await expectThrow(call, WenError.invalid_params.key); mockWalletReturnValue(member, { - media: `https://storage.googleapis.com/download/storage/v1/b/${Bucket.DEV}/o`, + media: `https://${Bucket.TEST}/`, ...dummyCollection(space, 0.6), }); call = testEnv.wrap(WEN_FUNC.createCollection); diff --git a/packages/functions/test/controls/nft.spec.ts b/packages/functions/test/controls/nft.spec.ts index bef82bf08d..7a1aa31e01 100644 --- a/packages/functions/test/controls/nft.spec.ts +++ b/packages/functions/test/controls/nft.spec.ts @@ -65,10 +65,7 @@ describe('Nft controll: ' + WEN_FUNC.createCollection, () => { let nft = { media: 'some-media-url', ...dummyNft(collection.uid) }; mockWalletReturnValue(member, nft); await expectThrow(testEnv.wrap(WEN_FUNC.createNft), WenError.invalid_params.key); - nft = { - media: `https://storage.googleapis.com/download/storage/v1/b/${Bucket.DEV}/o`, - ...dummyNft(collection.uid), - }; + nft = { media: `https://${Bucket.TEST}/`, ...dummyNft(collection.uid) }; mockWalletReturnValue(member, nft); await expectThrow(testEnv.wrap(WEN_FUNC.createNft), WenError.invalid_params.key); }); diff --git a/packages/functions/test/controls/stamp.control.spec.ts b/packages/functions/test/controls/stamp.control.spec.ts index 59d8ef1709..0adf48ce86 100644 --- a/packages/functions/test/controls/stamp.control.spec.ts +++ b/packages/functions/test/controls/stamp.control.spec.ts @@ -21,11 +21,12 @@ describe('Stamp control', () => { let dowloadUrl: string; beforeEach(async () => { - const bucket = storage().bucket(Bucket.DEV); + const bucket = storage().bucket(Bucket.TEST); const destination = `nft/${wallet.getRandomEthAddress()}/image.jpeg`; - dowloadUrl = await bucket.upload('./test/puppy.jpeg', destination, { + await bucket.upload('./test/puppy.jpeg', destination, { contentType: 'image/jpeg', }); + dowloadUrl = `https://${bucket.getName()}/${destination}`; member = await testEnv.createMember(); }); @@ -43,7 +44,7 @@ describe('Stamp control', () => { expect(order.payload.stamp).toBeDefined(); expect(order.payload.aliasId).toBe(''); expect(order.payload.aliasOutputAmount).toBe(53700); - expect(order.payload.nftOutputAmount).toBe(104800); + expect(order.payload.nftOutputAmount).toBe(92000); const stampDocRef = database().doc(COL.STAMP, order.payload.stamp!); const stamp = await stampDocRef.get(); diff --git a/packages/functions/test/notifier.ts b/packages/functions/test/notifier.ts index 16e0d05208..cebf91fa3d 100644 --- a/packages/functions/test/notifier.ts +++ b/packages/functions/test/notifier.ts @@ -1,4 +1,3 @@ -require('dotenv').config({ path: (__dirname + '/.env').replace('test/', '') }); import { COL, getMilestoneCol, Network, SUB_COL } from '@buildcore/interfaces'; import { PubSub } from '@google-cloud/pubsub'; import { Client } from '@iota/sdk'; diff --git a/packages/functions/test/set-up.ts b/packages/functions/test/set-up.ts index f6aedfb260..66ad4e8f5a 100644 --- a/packages/functions/test/set-up.ts +++ b/packages/functions/test/set-up.ts @@ -1,4 +1,3 @@ -require('dotenv').config({ path: (__dirname + '/.env').replace('test/', '') }); import { database } from '@buildcore/database'; import { COL, @@ -22,7 +21,7 @@ import { getRandomEthAddress } from '../src/utils/wallet.utils'; const tokens: { [key: string]: string } = {}; export const PROJECT_API_KEY = - 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcm9qZWN0IjoiMHg0NjIyM2VkZDQxNTc2MzVkZmM2Mzk5MTU1NjA5ZjMwMWRlY2JmZDg4IiwiaWF0IjoxNjk5MjgyMTQxfQ.Bd0IZNdtc3ne--CC1Bk5qDgWl4NojAsX64K1rCj-5Co'; + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiIweDU1MWZkMmM3YzdiZjM1NmJhYzE5NDU4N2RhYjJmY2Q0NjQyMDA1NGIiLCJwcm9qZWN0IjoiMHg0NjIyM2VkZDQxNTc2MzVkZmM2Mzk5MTU1NjA5ZjMwMWRlY2JmZDg4IiwiaWF0IjoxNjk1ODUyNTk2fQ.WT9L4H9eDdFfJZMrfxTKhEq4PojNWSGNv_CbmlG9sJg'; const mockk = { address: '', diff --git a/packages/functions/test/storage/resize.img.spec.ts b/packages/functions/test/storage/resize.img.spec.ts index 00fcc0495f..2e48b8a855 100644 --- a/packages/functions/test/storage/resize.img.spec.ts +++ b/packages/functions/test/storage/resize.img.spec.ts @@ -9,7 +9,7 @@ const triggerResizer = async (name: string, contentType: string) => { try { await axios.post( 'http://localhost:8080/' + WEN_STORAGE_TRIGGER.onUploadFinalized, - { name, bucket: Bucket.DEV, contentType, metadata: {} }, + { name, bucket: Bucket.TEST, contentType, metadata: {} }, { headers: { 'Content-Type': 'application/json' } }, ); } catch (err) { @@ -24,14 +24,14 @@ describe('Resize img test', () => { const extensions = Object.values(ImageWidth) .map((size) => `_jpeg_${size}X${size}.webp`) .concat('.jpeg'); - const bucket = storage().bucket(Bucket.DEV); + const bucket = storage().bucket(Bucket.TEST); await bucket.upload('./test/puppy.jpeg', name + '.jpeg', { contentType: 'image/jpeg' }); await triggerResizer(name + '.jpeg', 'image/jpeg'); for (const extension of extensions) { await wait( async () => await storage() - .bucket(Bucket.DEV) + .bucket(Bucket.TEST) .exists(name + extension), ); } @@ -39,18 +39,18 @@ describe('Resize img test', () => { it('Should create video preview', async () => { const id = getRandomEthAddress(); - const bucket = storage().bucket(Bucket.DEV); + const bucket = storage().bucket(Bucket.TEST); const destination = `nft/test/${id}.mov`; await bucket.upload('./test/nft_video.mov', destination, { contentType: 'video/quicktime' }); await triggerResizer(destination, 'video/quicktime'); await wait( - async () => await storage().bucket(Bucket.DEV).exists(`nft/test/${id}_mov_preview.webp`), + async () => await storage().bucket(Bucket.TEST).exists(`nft/test/${id}_mov_preview.webp`), ); }); it.each(['png', 'jpeg'])('Should not override', async (extension: string) => { const name = 'nft/test/image'; - const bucket = storage().bucket(Bucket.DEV); + const bucket = storage().bucket(Bucket.TEST); await bucket.upload('./test/puppy.jpeg', 'nft/test/image.' + extension, { contentType: 'image/' + extension, }); @@ -67,7 +67,7 @@ const verifyImagesExist = async (name: string, extensions: string[]) => { await wait( async () => await storage() - .bucket(Bucket.DEV) + .bucket(Bucket.TEST) .exists(name + extension), ); } diff --git a/packages/functions/workflow.build.js b/packages/functions/workflow.build.js index a987b51c3e..48c641dc23 100644 --- a/packages/functions/workflow.build.js +++ b/packages/functions/workflow.build.js @@ -48,6 +48,7 @@ function init(outputFile) { function job(outputFile, chunk, files) { fs.appendFileSync(outputFile, ` chunk_${chunk}:\n`); fs.appendFileSync(outputFile, ` needs: npm-install\n`); + fs.appendFileSync(outputFile, ` environment: development\n`); fs.appendFileSync(outputFile, ` runs-on: ubuntu-latest\n`); fs.appendFileSync(outputFile, ` timeout-minutes: 20\n\n`); @@ -68,7 +69,6 @@ function job(outputFile, chunk, files) { fs.appendFileSync(outputFile, ' --health-retries 5\n\n'); fs.appendFileSync(outputFile, ` steps:\n`); - fs.appendFileSync(outputFile, ` - uses: actions/checkout@v4\n`); fs.appendFileSync(outputFile, ` - uses: actions/setup-node@v4\n`); fs.appendFileSync(outputFile, ` with:\n`); @@ -84,19 +84,28 @@ function job(outputFile, chunk, files) { ` key: \${{ runner.os }}-modules-\${{ hashFiles('**/package.json') }}\n`, ); + fs.appendFileSync(outputFile, ` - name: Set env vars\n`); + fs.appendFileSync(outputFile, ` working-directory: packages/functions\n`); + fs.appendFileSync(outputFile, ` run: |\n`); + fs.appendFileSync(outputFile, ` echo "$ENV_VARS" > .env\n`); + fs.appendFileSync(outputFile, ` echo "$SERVICE_ACCOUNT" > sa.json\n`); + fs.appendFileSync(outputFile, ` env:\n`); + fs.appendFileSync(outputFile, ` ENV_VARS: \${{ secrets.ENV_VARS }}\n`); + fs.appendFileSync(outputFile, ` SERVICE_ACCOUNT: \${{ secrets.SERVICE_ACCOUNT }}\n`); + fs.appendFileSync(outputFile, ` - name: Init\n`); fs.appendFileSync(outputFile, ` run: npm run build:functions\n`); fs.appendFileSync(outputFile, ` - name: Test\n`); fs.appendFileSync(outputFile, ` working-directory: packages/functions\n`); fs.appendFileSync(outputFile, ` run: |\n`); - fs.appendFileSync(outputFile, ` npm run start &\n`); - fs.appendFileSync(outputFile, ` npm run notifier &\n`); + fs.appendFileSync(outputFile, ` npm run start &\n`); + fs.appendFileSync(outputFile, ` npm run notifier &\n`); files.forEach((file, index) => { fs.appendFileSync( outputFile, - ` npm run test -- --findRelatedTests --forceExit ${file} ${index < files.length - 1 ? '&&' : ''}\n`, + ` npm run test -- --findRelatedTests --forceExit ${file} ${index < files.length - 1 ? '&&' : ''}\n`, ); }); } diff --git a/packages/indexes/.gitignore b/packages/indexes/.gitignore deleted file mode 100644 index 07e6e472cc..0000000000 --- a/packages/indexes/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/node_modules diff --git a/packages/indexes/build.js b/packages/indexes/build.js deleted file mode 100644 index 74837055c4..0000000000 --- a/packages/indexes/build.js +++ /dev/null @@ -1,26 +0,0 @@ -const glob = require('glob'); -const fs = require('fs'); - -const errorMsg = 'Creating firestore.indexes.json failed.'; -const successMsg = `firestore.indexes.json file compiled successfully.`; - -try { - const indexFileNames = glob.sync(`./src/**/*.indexes.json`); - const indexes = indexFileNames.reduce((acc, fileName) => { - const buffer = fs.readFileSync(fileName); - const json = JSON.parse(buffer.toString()); - return acc.concat(json.indexes); - }, []); - - const fieldOverrideFileNames = glob.sync(`./src/**/*.fieldOverrides.json`); - const fieldOverrides = fieldOverrideFileNames.reduce((acc, fileName) => { - const buffer = fs.readFileSync(fileName); - const json = JSON.parse(buffer.toString()); - return acc.concat(json.fieldOverrides); - }, []); - - fs.writeFileSync('../../firestore.indexes.json', JSON.stringify({ indexes, fieldOverrides })); - console.log(successMsg); -} catch (e) { - console.error(errorMsg, e); -} diff --git a/packages/indexes/package.json b/packages/indexes/package.json deleted file mode 100644 index 96da1fe966..0000000000 --- a/packages/indexes/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@buildcore/indexes", - "version": "0.0.0", - "private": "true", - "scripts": { - "build": "node ./build.js" - }, - "devDependencies": { - "glob": "8.0.3" - } -} diff --git a/packages/indexes/src/airdrop.indexes.json b/packages/indexes/src/airdrop.indexes.json deleted file mode 100644 index b1f94f69e0..0000000000 --- a/packages/indexes/src/airdrop.indexes.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "airdrop", - "queryScope": "COLLECTION", - "fields": [ - { "fieldPath": "member", "order": "ASCENDING" }, - { "fieldPath": "status", "order": "ASCENDING" }, - { "fieldPath": "token", "order": "ASCENDING" } - ] - }, - { - "collectionGroup": "airdrop", - "queryScope": "COLLECTION", - "fields": [ - { "fieldPath": "status", "order": "ASCENDING" }, - { "fieldPath": "token", "order": "ASCENDING" } - ] - }, - { - "collectionGroup": "airdrop", - "queryScope": "COLLECTION", - "fields": [ - { "fieldPath": "member", "order": "ASCENDING" }, - { "fieldPath": "status", "order": "ASCENDING" }, - { "fieldPath": "token", "order": "ASCENDING" }, - { "fieldPath": "vestingAt", "order": "ASCENDING" } - ] - }, - { - "collectionGroup": "airdrop", - "queryScope": "COLLECTION", - "fields": [ - { "fieldPath": "member", "order": "ASCENDING" }, - { "fieldPath": "status", "order": "ASCENDING" }, - { "fieldPath": "token", "order": "ASCENDING" }, - { "fieldPath": "createdOn", "order": "ASCENDING" } - ] - } - ] -} diff --git a/packages/indexes/src/award.indexes.json b/packages/indexes/src/award.indexes.json deleted file mode 100644 index 1febf2a0fa..0000000000 --- a/packages/indexes/src/award.indexes.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "award", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "completed", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "space", - "order": "ASCENDING" - }, - { - "fieldPath": "endDate", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "award", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "rejected", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "space", - "order": "ASCENDING" - }, - { - "fieldPath": "endDate", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "award", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "name", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "award", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "rank", - "order": "DESCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/airdrop.indexes.json b/packages/indexes/src/backend/airdrop.indexes.json deleted file mode 100644 index d7e98d6d9d..0000000000 --- a/packages/indexes/src/backend/airdrop.indexes.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "airdrop", - "queryScope": "COLLECTION", - "fields": [ - { "fieldPath": "member", "order": "ASCENDING" }, - { "fieldPath": "status", "order": "ASCENDING" }, - { "fieldPath": "token", "order": "ASCENDING" }, - { "fieldPath": "vestingAt", "order": "ASCENDING" } - ] - }, - { - "collectionGroup": "airdrop", - "queryScope": "COLLECTION", - "fields": [ - { "fieldPath": "member", "order": "ASCENDING" }, - { "fieldPath": "status", "order": "ASCENDING" }, - { "fieldPath": "token", "order": "ASCENDING" }, - { "fieldPath": "createdOn", "order": "ASCENDING" } - ] - } - ] -} diff --git a/packages/indexes/src/backend/auction.indexes.json b/packages/indexes/src/backend/auction.indexes.json deleted file mode 100644 index 97f95472c8..0000000000 --- a/packages/indexes/src/backend/auction.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "auction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "active", - "order": "ASCENDING" - }, - { - "fieldPath": "auctionTo", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/award.indexes.json b/packages/indexes/src/backend/award.indexes.json deleted file mode 100644 index 0367200977..0000000000 --- a/packages/indexes/src/backend/award.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "award", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "completed", - "order": "ASCENDING" - }, - { - "fieldPath": "endDate", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/nft.indexes.json b/packages/indexes/src/backend/nft.indexes.json deleted file mode 100644 index 5e4898653d..0000000000 --- a/packages/indexes/src/backend/nft.indexes.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "available", - "order": "ASCENDING" - }, - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "saleAccess", - "order": "ASCENDING" - }, - { - "fieldPath": "availablePrice", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "locked", - "order": "ASCENDING" - }, - { - "fieldPath": "placeholderNft", - "order": "ASCENDING" - }, - { - "fieldPath": "sold", - "order": "ASCENDING" - }, - { - "fieldPath": "position", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/nft_stake.indexes.json b/packages/indexes/src/backend/nft_stake.indexes.json deleted file mode 100644 index fc9aff71c2..0000000000 --- a/packages/indexes/src/backend/nft_stake.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "nft_stake", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "expirationProcessed", - "order": "ASCENDING" - }, - { - "fieldPath": "expiresAt", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/proposal.indexes.json b/packages/indexes/src/backend/proposal.indexes.json deleted file mode 100644 index 9cf53f12a7..0000000000 --- a/packages/indexes/src/backend/proposal.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "proposal", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "completed", - "order": "ASCENDING" - }, - { - "fieldPath": "settings.endDate", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/stake.indexes.json b/packages/indexes/src/backend/stake.indexes.json deleted file mode 100644 index 5c7264c89b..0000000000 --- a/packages/indexes/src/backend/stake.indexes.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "stake", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "expirationProcessed", - "order": "ASCENDING" - }, - { - "fieldPath": "expiresAt", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "stake", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "expiresAt", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/stake.reward.indexes.json b/packages/indexes/src/backend/stake.reward.indexes.json deleted file mode 100644 index 552c8caf36..0000000000 --- a/packages/indexes/src/backend/stake.reward.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "stake_reward", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "endDate", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/stamp.indexes.json b/packages/indexes/src/backend/stamp.indexes.json deleted file mode 100644 index c931f22f6a..0000000000 --- a/packages/indexes/src/backend/stamp.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "stamp", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "expired", - "order": "ASCENDING" - }, - { - "fieldPath": "expiresAt", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/token.indexes.json b/packages/indexes/src/backend/token.indexes.json deleted file mode 100644 index d0bd1fae84..0000000000 --- a/packages/indexes/src/backend/token.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "token", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "coolDownEnd", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/token_market.indexes.json b/packages/indexes/src/backend/token_market.indexes.json deleted file mode 100644 index f399a0e9b7..0000000000 --- a/packages/indexes/src/backend/token_market.indexes.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "expiresAt", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "sourceNetwork", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "sourceNetwork", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "DESCENDING" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - }, - - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "DESCENDING" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/token_purchase.indexes.json b/packages/indexes/src/backend/token_purchase.indexes.json deleted file mode 100644 index a11b2b8206..0000000000 --- a/packages/indexes/src/backend/token_purchase.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "age", - "arrayConfig": "CONTAINS" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/backend/transaction.indexes.json b/packages/indexes/src/backend/transaction.indexes.json deleted file mode 100644 index f3db86b2cc..0000000000 --- a/packages/indexes/src/backend/transaction.indexes.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "payload.reconciled", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.void", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.expiresOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "payload.sourceAddress", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.walletReference.confirmed", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.walletReference.count", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "payload.storageDepositSourceAddress", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.walletReference.confirmed", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.walletReference.count", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "payload.aliasGovAddress", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.walletReference.confirmed", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.walletReference.count", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/collection.indexes.json b/packages/indexes/src/collection.indexes.json deleted file mode 100644 index 83512817bb..0000000000 --- a/packages/indexes/src/collection.indexes.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "collection", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "rejected", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "space", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "collection", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "space", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "collection", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "updatedOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "collection", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "rejected", - "order": "ASCENDING" - }, - { - "fieldPath": "space", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "collection", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "collection", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "ipfsMedia", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "rejected", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "collection", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/distribution.indexes.json b/packages/indexes/src/distribution.indexes.json deleted file mode 100644 index 3255c2f65a..0000000000 --- a/packages/indexes/src/distribution.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "distribution", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "parentCol", - "order": "ASCENDING" - }, - { - "fieldPath": "uid", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/knockingMembers.indexes.json b/packages/indexes/src/knockingMembers.indexes.json deleted file mode 100644 index b531c88e00..0000000000 --- a/packages/indexes/src/knockingMembers.indexes.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "knockingMembers", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "parentCol", - "order": "ASCENDING" - }, - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/member.indexes.json b/packages/indexes/src/member.indexes.json deleted file mode 100644 index a72fedfc89..0000000000 --- a/packages/indexes/src/member.indexes.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "member", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "name", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "member", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "name", - "order": "ASCENDING" - }, - { - "fieldPath": "uid", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/members.indexes.json b/packages/indexes/src/members.indexes.json deleted file mode 100644 index cffed91a7d..0000000000 --- a/packages/indexes/src/members.indexes.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "members", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "parentCol", - "order": "ASCENDING" - }, - { - "fieldPath": "uid", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "members", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "parentCol", - "order": "ASCENDING" - }, - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "members", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "parentCol", - "order": "ASCENDING" - }, - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "settings.endDate", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "members", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "members", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "voted", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/mnemonic.indexes.json b/packages/indexes/src/mnemonic.indexes.json deleted file mode 100644 index d1d7b81275..0000000000 --- a/packages/indexes/src/mnemonic.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "_mnemonic", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "network", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/nft.indexes.json b/packages/indexes/src/nft.indexes.json deleted file mode 100644 index 17a935302f..0000000000 --- a/packages/indexes/src/nft.indexes.json +++ /dev/null @@ -1,584 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "isOwned", - "order": "ASCENDING" - }, - { - "fieldPath": "rejected", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "isOwned", - "order": "ASCENDING" - }, - { - "fieldPath": "rejected", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "isOwned", - "order": "ASCENDING" - }, - { - "fieldPath": "rejected", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "available", - "order": "ASCENDING" - }, - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "auctionHighestBid", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "available", - "order": "ASCENDING" - }, - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "auctionHighestBid", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "available", - "order": "ASCENDING" - }, - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "availablePrice", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "available", - "order": "ASCENDING" - }, - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "availablePrice", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "available", - "order": "ASCENDING" - }, - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "isOwned", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "isOwned", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "isOwned", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "owner", - "order": "ASCENDING" - }, - { - "fieldPath": "updatedOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "position", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "updatedOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "locked", - "order": "ASCENDING" - }, - { - "fieldPath": "placeholderNft", - "order": "ASCENDING" - }, - { - "fieldPath": "sold", - "order": "ASCENDING" - }, - { - "fieldPath": "position", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "collection", - "order": "ASCENDING" - }, - { - "fieldPath": "locked", - "order": "ASCENDING" - }, - { - "fieldPath": "placeholderNft", - "order": "ASCENDING" - }, - { - "fieldPath": "sold", - "order": "ASCENDING" - }, - { - "fieldPath": "position", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "owner", - "order": "ASCENDING" - }, - { - "fieldPath": "updatedOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "ipfsMedia", - "order": "ASCENDING" - }, - { - "fieldPath": "rejected", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "space", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "member", - "order": "ASCENDING" - }, - { - "fieldPath": "hidden", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "updatedOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "hidden", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "updatedOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "nft", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "mintingData.mintedOn", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/notifications.indexes.json b/packages/indexes/src/notifications.indexes.json deleted file mode 100644 index f5e123d60c..0000000000 --- a/packages/indexes/src/notifications.indexes.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "notification", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "member", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/participants.indexes.json b/packages/indexes/src/participants.indexes.json deleted file mode 100644 index 386615d078..0000000000 --- a/packages/indexes/src/participants.indexes.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "participants", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "completed", - "order": "ASCENDING" - }, - { - "fieldPath": "parentCol", - "order": "ASCENDING" - }, - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "participants", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "parentCol", - "order": "ASCENDING" - }, - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "participants", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "participants", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "completed", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/proposal.indexes.json b/packages/indexes/src/proposal.indexes.json deleted file mode 100644 index d3b06f7b0b..0000000000 --- a/packages/indexes/src/proposal.indexes.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "proposal", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "approved", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "space", - "order": "ASCENDING" - }, - { - "fieldPath": "settings.endDate", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "proposal", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "name", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "proposal", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "space", - "order": "ASCENDING" - }, - { - "fieldPath": "settings.endDate", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "proposal", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "settings.addRemoveGuardian", - "order": "ASCENDING" - }, - { - "fieldPath": "settings.endDate", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "proposal", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "settings.spaceUpdateData.uid", - "order": "ASCENDING" - }, - { - "fieldPath": "settings.endDate", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/space.indexes.json b/packages/indexes/src/space.indexes.json deleted file mode 100644 index 29cb3804f4..0000000000 --- a/packages/indexes/src/space.indexes.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "space", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "name", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "space", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "rank", - "order": "DESCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "space", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/stake.indexes.json b/packages/indexes/src/stake.indexes.json deleted file mode 100644 index 943da124e1..0000000000 --- a/packages/indexes/src/stake.indexes.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "stake", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "member", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "expiresAt", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "stake", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "member", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "expiresAt", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "stake", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "updatedOn", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/stakeReward.indexes.json b/packages/indexes/src/stakeReward.indexes.json deleted file mode 100644 index 5ea27f36c5..0000000000 --- a/packages/indexes/src/stakeReward.indexes.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "stake_reward", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "endDate", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "stake_reward", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "endDate", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/token.indexes.json b/packages/indexes/src/token.indexes.json deleted file mode 100644 index 48b03662b3..0000000000 --- a/packages/indexes/src/token.indexes.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "token", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "public", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "space", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "uid", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "ipfsMedia", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "rejected", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/token.purchase.indexes.json b/packages/indexes/src/token.purchase.indexes.json deleted file mode 100644 index 8e8aced5ce..0000000000 --- a/packages/indexes/src/token.purchase.indexes.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "buy", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "sell", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "tokenStatus", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "age", - "arrayConfig": "CONTAINS" - }, - { - "fieldPath": "price", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "age", - "arrayConfig": "CONTAINS" - }, - { - "fieldPath": "price", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "age", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "age", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token_purchase", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "updatedOn", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/token_market.indexes.json b/packages/indexes/src/token_market.indexes.json deleted file mode 100644 index 80bf160d3b..0000000000 --- a/packages/indexes/src/token_market.indexes.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "owner", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "token_market", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "status", - "order": "ASCENDING" - }, - { - "fieldPath": "token", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "price", - "order": "DESCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/transaction-ui.indexes.json b/packages/indexes/src/transaction-ui.indexes.json deleted file mode 100644 index 3453d83902..0000000000 --- a/packages/indexes/src/transaction-ui.indexes.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "payload.proposalId", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "member", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "member", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.nft", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "member", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "payload.type", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "isOrderType", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "updatedOn", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "payload.nft", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "transaction", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "payload.previousOwner", - "order": "ASCENDING" - }, - { - "fieldPath": "project", - "order": "ASCENDING" - }, - { - "fieldPath": "type", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "DESCENDING" - } - ] - } - ] -} diff --git a/packages/indexes/src/transactions.fieldOverrides.json b/packages/indexes/src/transactions.fieldOverrides.json deleted file mode 100644 index a45789582f..0000000000 --- a/packages/indexes/src/transactions.fieldOverrides.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "fieldOverrides": [ - { - "collectionGroup": "transactions", - "fieldPath": "blockId", - "indexes": [ - { - "order": "ASCENDING", - "queryScope": "COLLECTION" - }, - { - "order": "DESCENDING", - "queryScope": "COLLECTION" - }, - { - "arrayConfig": "CONTAINS", - "queryScope": "COLLECTION" - }, - { - "order": "ASCENDING", - "queryScope": "COLLECTION_GROUP" - } - ] - }, - { - "collectionGroup": "transactions", - "fieldPath": "messageId", - "indexes": [ - { - "order": "ASCENDING", - "queryScope": "COLLECTION" - }, - { - "order": "DESCENDING", - "queryScope": "COLLECTION" - }, - { - "arrayConfig": "CONTAINS", - "queryScope": "COLLECTION" - }, - { - "order": "ASCENDING", - "queryScope": "COLLECTION_GROUP" - } - ] - } - ] -} diff --git a/packages/indexes/src/transactions.indexes.json b/packages/indexes/src/transactions.indexes.json deleted file mode 100644 index ab51617514..0000000000 --- a/packages/indexes/src/transactions.indexes.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "indexes": [ - { - "collectionGroup": "transactions", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "processed", - "order": "ASCENDING" - }, - { - "fieldPath": "createdOn", - "order": "ASCENDING" - } - ] - } - ] -} diff --git a/packages/interfaces/.gitignore b/packages/interfaces/.gitignore deleted file mode 100644 index 97dba69de2..0000000000 --- a/packages/interfaces/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/lib -node_modules/ diff --git a/packages/interfaces/.prettierignore b/packages/interfaces/.prettierignore deleted file mode 100644 index 31dae4e582..0000000000 --- a/packages/interfaces/.prettierignore +++ /dev/null @@ -1,2 +0,0 @@ -/coverage -/lib diff --git a/packages/interfaces/src/config.ts b/packages/interfaces/src/config.ts index 1d08f83c15..1469977c2b 100644 --- a/packages/interfaces/src/config.ts +++ b/packages/interfaces/src/config.ts @@ -176,7 +176,6 @@ export const STAKE_REWARD_TEST_CRON_INTERVAL_CONFIG = 'every 5 minutes'; export enum Bucket { PROD = 'images.soonaverse.com', TEST = 'images-wen.soonaverse.com', - DEV = 'soonaverse-dev-custom-bucket', } // key - WEN_FUNC diff --git a/packages/notifier/.gitignore b/packages/notifier/.gitignore deleted file mode 100644 index f30cc924f4..0000000000 --- a/packages/notifier/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/lib -/node_modules -.env -sa.json \ No newline at end of file diff --git a/packages/notifier/.prettierignore b/packages/notifier/.prettierignore deleted file mode 100644 index 31dae4e582..0000000000 --- a/packages/notifier/.prettierignore +++ /dev/null @@ -1,2 +0,0 @@ -/coverage -/lib diff --git a/packages/notifier/package.json b/packages/notifier/package.json index 605254d5fe..f08ade28e5 100644 --- a/packages/notifier/package.json +++ b/packages/notifier/package.json @@ -5,13 +5,12 @@ "main": "lib/index.js", "scripts": { "build": "tsc", - "start": "export GOOGLE_APPLICATION_CREDENTIALS=\"./sa.json\" && node lib/index.js" + "start": "node lib/index.js" }, "author": "Boldizsar Mezei", "license": "Apache-2.0", "dependencies": { "@google-cloud/pubsub": "4.3.3", - "dotenv": "16.4.5", "knex": "3.1.0", "pg": "8.11.3" }, diff --git a/packages/notifier/src/index.ts b/packages/notifier/src/index.ts index 48349637d9..bf72c27111 100644 --- a/packages/notifier/src/index.ts +++ b/packages/notifier/src/index.ts @@ -1,8 +1,6 @@ import { PubSub, Topic } from '@google-cloud/pubsub'; import Knex from 'knex'; -import path from 'path'; import { logger } from './logger'; -require('dotenv').config({ path: path.join(__dirname, '/../.env') }); const knex = Knex({ client: 'pg', diff --git a/packages/sdk/.gitignore b/packages/sdk/.gitignore deleted file mode 100644 index 99dec66a68..0000000000 --- a/packages/sdk/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/lib -/node_modules \ No newline at end of file diff --git a/packages/sdk/package.json b/packages/sdk/package.json index aa4072ce44..955d0d60b1 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -5,12 +5,21 @@ "license": "Apache-2.0", "main": "lib/index.js", "type": "commonjs", + "directories": { + "lib": "lib" + }, + "files": [ + "lib" + ], + "publishConfig": { + "access": "public" + }, "scripts": { - "run:search": "cd ../search && export FIRESTORE_EMULATOR_HOST=\"127.0.0.1:8080\" && export FIREBASE_STORAGE_EMULATOR_HOST=\"127.0.0.1:9199\" && npm run build && node lib/index.js", + "build": "tsc", + "run:search": "cd ../search && npm run build && node lib/index.js", "run:functions": "cd ../functions && npm run serve", "serve": "run-p \"run:search\" \"run:functions\"", "lint": "eslint --ext .js,.ts src", - "build": "tsc", "test": "jest --forceExit" }, "dependencies": { diff --git a/packages/search/.env b/packages/search/.env deleted file mode 100644 index 430e7f117b..0000000000 --- a/packages/search/.env +++ /dev/null @@ -1,17 +0,0 @@ -ENVIRONMENT="emulator" -WEB3_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweEVFMjA3Qzk5YzA2NzkxMDg0QjU5NmU4NkEyMzVGNzFiNTc0NWNkMTIiLCJpc3MiOiJ3ZWIzLXN0b3JhZ2UiLCJpYXQiOjE2Njg0Njc4MDQ3NDAsIm5hbWUiOiJERVZfVE9LRU4ifQ.TB2AbWZDMk4WhWIeWKsdEKUReXUh0WUgcHAU5ccb4FA" -NFT_STORAGE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweDhiYjBGMDk4NzIzYTY5ODg1NTg3NTJCYWM0ODRlMTJCNGJlMGYxMDIiLCJpc3MiOiJuZnQtc3RvcmFnZSIsImlhdCI6MTcwNTUwMjkyMTEwMiwibmFtZSI6InNhbmRib3gifQ.a4TfMHsghXJjKQUO9zC9O0Wu_NGXVffDkw1E6-jr3hI -JWT_SECRET="mysecret" -ALGOLIA_APPID="UZXKW1YS76" -ALGOLIA_KEY="8bf460848691fae9111b6159867d6bc1" -ENCRYPTION_SALT="sa#asda!2sasd##asad" -IP_INFO_TOKEN="" -XPTOKEN_ID="0x08f800d9e15c1da60c36cb0b2d4a02366ea3e200a65fc071a9e25f09b7fb9e951f0100000000" -XPTOKEN_UID="0xcef8ddcea97a5b82921d1cadbc8ccddcd69341da" -XPTOKEN_GUARDIANID="0x45f8379c44a73fc0ee6ad56acf51bd0f69240af5" - -DB_USER="postgres" -DB_USER_PWD="postgres" -DB_NAME="buildcore" -DB_HOST="localhost" -DB_PORT=5432 \ No newline at end of file diff --git a/packages/search/.gitignore b/packages/search/.gitignore deleted file mode 100644 index 2c977f6eaa..0000000000 --- a/packages/search/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/lib -node_modules/ -sa.json \ No newline at end of file diff --git a/packages/search/.prettierignore b/packages/search/.prettierignore deleted file mode 100644 index 31dae4e582..0000000000 --- a/packages/search/.prettierignore +++ /dev/null @@ -1,2 +0,0 @@ -/coverage -/lib diff --git a/packages/search/package.json b/packages/search/package.json index 03b4d04148..8421734488 100644 --- a/packages/search/package.json +++ b/packages/search/package.json @@ -12,8 +12,8 @@ ], "private": "true", "scripts": { - "build": "tsc && cp .env lib/.env", - "start": "npm run build && export GOOGLE_APPLICATION_CREDENTIALS=\"./sa.json\" && node lib/index.js" + "build": "tsc", + "start": "node -r dotenv/config lib/index.js" }, "dependencies": { "@buildcore/database": "*", @@ -21,7 +21,7 @@ "@iota/sdk": "1.1.5", "cors": "2.8.5", "dayjs": "1.11.10", - "dotenv": "16.4.5", + "dotenv": "^16.4.5", "express": "4.18.2", "firebase-admin": "12.0.0", "joi": "17.12.1", diff --git a/packages/search/src/index.ts b/packages/search/src/index.ts index f2ff4661da..a13e2a9b7c 100644 --- a/packages/search/src/index.ts +++ b/packages/search/src/index.ts @@ -1,4 +1,3 @@ -require('dotenv').config({ path: __dirname + '/.env' }); import { ApiRoutes, WenError } from '@buildcore/interfaces'; import cors from 'cors'; import express from 'express';