From c6652e265424cface02c207bc4e1340338c57522 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:19:24 +0100 Subject: [PATCH 01/18] WIP --- .github/workflows/simple_test.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/simple_test.yaml diff --git a/.github/workflows/simple_test.yaml b/.github/workflows/simple_test.yaml new file mode 100644 index 00000000..e69de29b From 76c0a93990e56a97563ed3da367a6927674b3cba Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:26:03 +0100 Subject: [PATCH 02/18] Add minimal test job to simple_test workflow --- .github/workflows/simple_test.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/simple_test.yaml b/.github/workflows/simple_test.yaml index e69de29b..dec0136b 100644 --- a/.github/workflows/simple_test.yaml +++ b/.github/workflows/simple_test.yaml @@ -0,0 +1,29 @@ +name: simple_test + +on: + push: + branches: + - conor/com-6015-run-a-single-workflow-against-staging + workflow_dispatch: + inputs: + environment: + description: "Environment to test" + required: true + type: string + + +permissions: + id-token: write + contents: write + +env: + AWS_ECR_STS_ROLE: arn:aws:iam::688567264391:role/DojoApiCIRole + + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Test + run: echo "Hello World" + \ No newline at end of file From 9913ba805495079cde9c793c08306e43e9871ed2 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:29:52 +0100 Subject: [PATCH 03/18] Add test_usecases_v0.yml workflow --- .github/workflows/test_usecases_v0.yml | 38 +- .github/workflows/test_usecases_v1.yml | 1398 ++++++++++++------------ v1/test_sdk_snippets/01.py | 64 ++ v1/test_sdk_snippets/snippet.py | 11 + v1/test_sdk_snippets/snippet.ts | 11 + 5 files changed, 804 insertions(+), 718 deletions(-) create mode 100644 v1/test_sdk_snippets/01.py create mode 100644 v1/test_sdk_snippets/snippet.py create mode 100644 v1/test_sdk_snippets/snippet.ts diff --git a/.github/workflows/test_usecases_v0.yml b/.github/workflows/test_usecases_v0.yml index 57e35d68..91c3aac3 100644 --- a/.github/workflows/test_usecases_v0.yml +++ b/.github/workflows/test_usecases_v0.yml @@ -1,23 +1,23 @@ -name: test_usecases_v_zero +# name: test_usecases_v_zero -on: - schedule: - # Runs at 00:00 UTC every day - - cron: "0 0 * * *" - pull_request: - branches: - - main - workflow_dispatch: +# on: +# schedule: +# # Runs at 00:00 UTC every day +# - cron: "0 0 * * *" +# pull_request: +# branches: +# - main +# workflow_dispatch: -permissions: - id-token: write - contents: write +# permissions: +# id-token: write +# contents: write -jobs: - do-nothing: - runs-on: ubuntu-latest +# jobs: +# do-nothing: +# runs-on: ubuntu-latest - steps: - - name: Do nothing - run: | - echo "I am doing nothing" +# steps: +# - name: Do nothing +# run: | +# echo "I am doing nothing" diff --git a/.github/workflows/test_usecases_v1.yml b/.github/workflows/test_usecases_v1.yml index b0d08099..81efa176 100644 --- a/.github/workflows/test_usecases_v1.yml +++ b/.github/workflows/test_usecases_v1.yml @@ -1,711 +1,711 @@ -name: test_usecases_v_one - -on: - schedule: - # Runs at 00:00 UTC every day - - cron: "0 0 * * *" - pull_request: - branches: - - main - workflow_dispatch: - inputs: - environment: - description: "Environment to test" - required: true - type: string - - workflow_call: - inputs: - environment: - description: "Environment to test" - required: true - type: string - -permissions: - id-token: write - contents: write - -env: - AWS_ECR_STS_ROLE: arn:aws:iam::688567264391:role/DojoApiCIRole - -jobs: - validate-environment: - runs-on: ubuntu-latest - outputs: - environment: ${{ steps.validate.outputs.environment }} - steps: - - name: Validate environment input - id: validate - run: | - if [[ "${{ github.event_name }}" == "workflow_dispatch" || "${{ github.event_name }}" == "workflow_call" ]]; then - ENVIRONMENT="${{ inputs.environment }}" - else - ENVIRONMENT="local" - fi - if [[ "$ENVIRONMENT" != "staging" && "$ENVIRONMENT" != "prod" && "$ENVIRONMENT" != "local" ]]; then - echo "❌ Error: Invalid environment '$ENVIRONMENT'. Must be 'staging' or 'prod' or 'local'." - exit 1 - fi - echo "✅ Environment '$ENVIRONMENT' is valid" - echo "environment=$ENVIRONMENT" >> $GITHUB_OUTPUT +# name: test_usecases_v_one + +# on: +# schedule: +# # Runs at 00:00 UTC every day +# - cron: "0 0 * * *" +# pull_request: +# branches: +# - main +# workflow_dispatch: +# inputs: +# environment: +# description: "Environment to test" +# required: true +# type: string + +# workflow_call: +# inputs: +# environment: +# description: "Environment to test" +# required: true +# type: string + +# permissions: +# id-token: write +# contents: write + +# env: +# AWS_ECR_STS_ROLE: arn:aws:iam::688567264391:role/DojoApiCIRole + +# jobs: +# validate-environment: +# runs-on: ubuntu-latest +# outputs: +# environment: ${{ steps.validate.outputs.environment }} +# steps: +# - name: Validate environment input +# id: validate +# run: | +# if [[ "${{ github.event_name }}" == "workflow_dispatch" || "${{ github.event_name }}" == "workflow_call" ]]; then +# ENVIRONMENT="${{ inputs.environment }}" +# else +# ENVIRONMENT="local" +# fi +# if [[ "$ENVIRONMENT" != "staging" && "$ENVIRONMENT" != "prod" && "$ENVIRONMENT" != "local" ]]; then +# echo "❌ Error: Invalid environment '$ENVIRONMENT'. Must be 'staging' or 'prod' or 'local'." +# exit 1 +# fi +# echo "✅ Environment '$ENVIRONMENT' is valid" +# echo "environment=$ENVIRONMENT" >> $GITHUB_OUTPUT - set-versions: - needs: [validate-environment] - runs-on: ubuntu-latest - outputs: - npm_package_version: ${{ steps.set-versions.outputs.npm_package_version }} - uv_package_version: ${{ steps.set-versions.outputs.uv_package_version }} - steps: - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "20" - - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - - - name: Set versions - id: set-versions - run: | - if [[ "${{ needs.validate-environment.outputs.environment }}" == "staging" ]]; then - NPM_PACKAGE_VERSION=$(npm view @compass-labs/api-sdk versions --json | jq -r '.[]' | grep -E 'rc|alpha|beta' | sort -V | tail -1) - UV_PACKAGE_VERSION="$(curl -s https://pypi.org/pypi/compass-api-sdk/json | jq -r '.releases | keys | .[]' | grep -E 'rc|a|b|dev' | sort -V | tail -1)" - else - NPM_PACKAGE_VERSION="latest" - UV_PACKAGE_VERSION="latest" - fi - - echo "npm_package_version=$NPM_PACKAGE_VERSION" >> $GITHUB_OUTPUT - echo "uv_package_version=$UV_PACKAGE_VERSION" >> $GITHUB_OUTPUT - - - run-pendle-typescript: - needs: [validate-environment, set-versions] +# set-versions: +# needs: [validate-environment] +# runs-on: ubuntu-latest +# outputs: +# npm_package_version: ${{ steps.set-versions.outputs.npm_package_version }} +# uv_package_version: ${{ steps.set-versions.outputs.uv_package_version }} +# steps: +# - name: Set up Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: "20" + +# - name: Install uv +# run: curl -LsSf https://astral.sh/uv/install.sh | sh + +# - name: Set versions +# id: set-versions +# run: | +# if [[ "${{ needs.validate-environment.outputs.environment }}" == "staging" ]]; then +# NPM_PACKAGE_VERSION=$(npm view @compass-labs/api-sdk versions --json | jq -r '.[]' | grep -E 'rc|alpha|beta' | sort -V | tail -1) +# UV_PACKAGE_VERSION="$(curl -s https://pypi.org/pypi/compass-api-sdk/json | jq -r '.releases | keys | .[]' | grep -E 'rc|a|b|dev' | sort -V | tail -1)" +# else +# NPM_PACKAGE_VERSION="latest" +# UV_PACKAGE_VERSION="latest" +# fi + +# echo "npm_package_version=$NPM_PACKAGE_VERSION" >> $GITHUB_OUTPUT +# echo "uv_package_version=$UV_PACKAGE_VERSION" >> $GITHUB_OUTPUT + + +# run-pendle-typescript: +# needs: [validate-environment, set-versions] - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - ARBITRUM_RPC_URL: http://localhost:8547 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "20" - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - - name: Install dependencies - working-directory: v1/pendle/typescript - run: | - npm install - if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then - npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION - fi - npm list - - - name: Build application - working-directory: v1/pendle/typescript - run: npm run build - - - name: Run application - working-directory: v1/pendle/typescript - run: npm run start - - run-pendle-python: - needs: [validate-environment, set-versions] +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# ARBITRUM_RPC_URL: http://localhost:8547 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Set up Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: "20" + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + +# - name: Install dependencies +# working-directory: v1/pendle/typescript +# run: | +# npm install +# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then +# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION +# fi +# npm list + +# - name: Build application +# working-directory: v1/pendle/typescript +# run: npm run build + +# - name: Run application +# working-directory: v1/pendle/typescript +# run: npm run start + +# run-pendle-python: +# needs: [validate-environment, set-versions] - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - ARBITRUM_RPC_URL: http://localhost:8547 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/pendle/python - run: | - if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then - echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" - uv add compass-api-sdk==$UV_PACKAGE_VERSION - fi - uv sync - uv pip freeze - - - name: Run example - working-directory: v1/pendle/python - run: ./.venv/bin/python src/main.py - - run-typescript-basic-examples-deposit-on-morpho: # - needs: [validate-environment, set-versions] - - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - BASE_RPC_URL: http://localhost:8546 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "20" - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/basic_examples/deposit_on_morpho/typescript - run: | - npm install - if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then - npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION - fi - npm list - - - name: Build application - working-directory: v1/basic_examples/deposit_on_morpho/typescript - run: npm run build - - - name: Run application - working-directory: v1/basic_examples/deposit_on_morpho/typescript - run: npm run start - - - run-python----basic-examples-deposit-on-morpho: # - needs: [validate-environment, set-versions] +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# ARBITRUM_RPC_URL: http://localhost:8547 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Install uv +# run: curl -LsSf https://astral.sh/uv/install.sh | sh + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/pendle/python +# run: | +# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then +# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" +# uv add compass-api-sdk==$UV_PACKAGE_VERSION +# fi +# uv sync +# uv pip freeze + +# - name: Run example +# working-directory: v1/pendle/python +# run: ./.venv/bin/python src/main.py + +# run-typescript-basic-examples-deposit-on-morpho: # +# needs: [validate-environment, set-versions] + +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# BASE_RPC_URL: http://localhost:8546 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Set up Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: "20" + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/basic_examples/deposit_on_morpho/typescript +# run: | +# npm install +# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then +# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION +# fi +# npm list + +# - name: Build application +# working-directory: v1/basic_examples/deposit_on_morpho/typescript +# run: npm run build + +# - name: Run application +# working-directory: v1/basic_examples/deposit_on_morpho/typescript +# run: npm run start + + +# run-python----basic-examples-deposit-on-morpho: # +# needs: [validate-environment, set-versions] - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - BASE_RPC_URL: http://localhost:8546 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/basic_examples/deposit_on_morpho/python - run: | - if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then - echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" - uv add compass-api-sdk==$UV_PACKAGE_VERSION - fi - uv sync - uv pip freeze - - - name: Run example - working-directory: v1/basic_examples/deposit_on_morpho/python - run: ./.venv/bin/python main.py #src/main.py +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# BASE_RPC_URL: http://localhost:8546 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Install uv +# run: curl -LsSf https://astral.sh/uv/install.sh | sh + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/basic_examples/deposit_on_morpho/python +# run: | +# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then +# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" +# uv add compass-api-sdk==$UV_PACKAGE_VERSION +# fi +# uv sync +# uv pip freeze + +# - name: Run example +# working-directory: v1/basic_examples/deposit_on_morpho/python +# run: ./.venv/bin/python main.py #src/main.py - run-typescript-basic-examples-deposit-on-aave: - needs: [validate-environment, set-versions] +# run-typescript-basic-examples-deposit-on-aave: +# needs: [validate-environment, set-versions] - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - BASE_RPC_URL: http://localhost:8546 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "20" - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/basic_examples/deposit_on_aave/typescript - run: | - npm install - if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then - npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION - fi - npm list - - - name: Build application - working-directory: v1/basic_examples/deposit_on_aave/typescript - run: npm run build - - - name: Run application - working-directory: v1/basic_examples/deposit_on_aave/typescript - run: npm run start - - - run-python----basic-examples-deposit-on-aave: - needs: [validate-environment, set-versions] - - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - BASE_RPC_URL: http://localhost:8546 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/basic_examples/deposit_on_aave/python - run: | - if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then - echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" - uv add compass-api-sdk==$UV_PACKAGE_VERSION - fi - uv sync - uv pip freeze - - - name: Run example - working-directory: v1/basic_examples/deposit_on_aave/python - run: ./.venv/bin/python main.py #src/main.py - - run-typescript-transaction_bundler_embed_a_fee_in_tx: # - needs: [validate-environment, set-versions] - - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - BASE_RPC_URL: http://localhost:8546 - #ETHEREUM_RPC_URL: http://localhost:8545 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "20" - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript - run: | - npm install - if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then - npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION - fi - npm list - - - name: Build application - working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript - run: npm run build - - - name: Run application - working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript - run: npm run start - - run-python----transaction_bundler_embed_a_fee_in_tx: # - needs: [validate-environment, set-versions] +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# BASE_RPC_URL: http://localhost:8546 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Set up Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: "20" + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/basic_examples/deposit_on_aave/typescript +# run: | +# npm install +# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then +# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION +# fi +# npm list + +# - name: Build application +# working-directory: v1/basic_examples/deposit_on_aave/typescript +# run: npm run build + +# - name: Run application +# working-directory: v1/basic_examples/deposit_on_aave/typescript +# run: npm run start + + +# run-python----basic-examples-deposit-on-aave: +# needs: [validate-environment, set-versions] + +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# BASE_RPC_URL: http://localhost:8546 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Install uv +# run: curl -LsSf https://astral.sh/uv/install.sh | sh + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/basic_examples/deposit_on_aave/python +# run: | +# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then +# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" +# uv add compass-api-sdk==$UV_PACKAGE_VERSION +# fi +# uv sync +# uv pip freeze + +# - name: Run example +# working-directory: v1/basic_examples/deposit_on_aave/python +# run: ./.venv/bin/python main.py #src/main.py + +# run-typescript-transaction_bundler_embed_a_fee_in_tx: # +# needs: [validate-environment, set-versions] + +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# BASE_RPC_URL: http://localhost:8546 +# #ETHEREUM_RPC_URL: http://localhost:8545 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Set up Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: "20" + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript +# run: | +# npm install +# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then +# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION +# fi +# npm list + +# - name: Build application +# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript +# run: npm run build + +# - name: Run application +# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript +# run: npm run start + +# run-python----transaction_bundler_embed_a_fee_in_tx: # +# needs: [validate-environment, set-versions] - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - BASE_RPC_URL: http://localhost:8546 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/python - run: | - if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then - echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" - uv add compass-api-sdk==$UV_PACKAGE_VERSION - fi - uv sync - uv pip freeze - - - name: Run example - working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/python - run: ./.venv/bin/python main.py #src/main.py - - - run-transaction-bundler-typescript: - needs: [validate-environment, set-versions] +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# BASE_RPC_URL: http://localhost:8546 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Install uv +# run: curl -LsSf https://astral.sh/uv/install.sh | sh + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/python +# run: | +# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then +# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" +# uv add compass-api-sdk==$UV_PACKAGE_VERSION +# fi +# uv sync +# uv pip freeze + +# - name: Run example +# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/python +# run: ./.venv/bin/python main.py #src/main.py + + +# run-transaction-bundler-typescript: +# needs: [validate-environment, set-versions] - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - ETHEREUM_RPC_URL: http://localhost:8545 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "20" - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/transaction_bundler/typescript - run: | - npm install - if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then - npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION - fi - npm list - - - name: Build application - working-directory: v1/transaction_bundler/typescript - run: npm run build - - - name: Run application - working-directory: v1/transaction_bundler/typescript - run: npm run start - - run-transaction-bundler-python: - needs: [validate-environment, set-versions] +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# ETHEREUM_RPC_URL: http://localhost:8545 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Set up Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: "20" + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/transaction_bundler/typescript +# run: | +# npm install +# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then +# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION +# fi +# npm list + +# - name: Build application +# working-directory: v1/transaction_bundler/typescript +# run: npm run build + +# - name: Run application +# working-directory: v1/transaction_bundler/typescript +# run: npm run start + +# run-transaction-bundler-python: +# needs: [validate-environment, set-versions] - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - ETHEREUM_RPC_URL: http://localhost:8545 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/transaction_bundler/python - run: | - if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then - echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" - uv add compass-api-sdk==$UV_PACKAGE_VERSION - fi - uv sync - uv pip freeze - - - name: Run example - working-directory: v1/transaction_bundler/python - run: ./.venv/bin/python src/main.py - - run-aave-looping-typescript: - needs: [validate-environment, set-versions] +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# ETHEREUM_RPC_URL: http://localhost:8545 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Install uv +# run: curl -LsSf https://astral.sh/uv/install.sh | sh + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/transaction_bundler/python +# run: | +# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then +# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" +# uv add compass-api-sdk==$UV_PACKAGE_VERSION +# fi +# uv sync +# uv pip freeze + +# - name: Run example +# working-directory: v1/transaction_bundler/python +# run: ./.venv/bin/python src/main.py + +# run-aave-looping-typescript: +# needs: [validate-environment, set-versions] - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - ETHEREUM_RPC_URL: http://localhost:8545 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "20" - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/aave_looping/typescript - run: | - npm install - if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then - npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION - fi - npm list - - - name: Build application - working-directory: v1/aave_looping/typescript - run: npm run build - - - name: Run application - working-directory: v1/aave_looping/typescript - run: npm run start - - run-aave-looping-python: - needs: [validate-environment, set-versions] +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# ETHEREUM_RPC_URL: http://localhost:8545 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Set up Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: "20" + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/aave_looping/typescript +# run: | +# npm install +# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then +# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION +# fi +# npm list + +# - name: Build application +# working-directory: v1/aave_looping/typescript +# run: npm run build + +# - name: Run application +# working-directory: v1/aave_looping/typescript +# run: npm run start + +# run-aave-looping-python: +# needs: [validate-environment, set-versions] - runs-on: ubuntu-latest - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - ETHEREUM_RPC_URL: http://localhost:8545 - SERVER_URL: http://localhost:80 - NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} - UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - - - name: Start up full local API and anvil - uses: ./.github/actions/local_anvil_and_api - id: local_anvil_and_api - with: - ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} - arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} - base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} - private_key: ${{ secrets.PRIVATE_KEY }} - mono_app_id: ${{ secrets.MONOREPOAPP_ID }} - mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} - fund_amount_eth: "10" - environment: ${{ needs.validate-environment.outputs.environment }} - aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} - ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - - name: Install dependencies - working-directory: v1/aave_looping/python - run: | - if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then - echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" - uv add compass-api-sdk==$UV_PACKAGE_VERSION - fi - uv sync - uv pip freeze - - - name: Run example - working-directory: v1/aave_looping/python - run: ./.venv/bin/python src/main.py - - failure-alert: - if: failure() && github.event_name == 'schedule' # Runs only if a previous job failed & triggered by cron - runs-on: ubuntu-latest - needs: - [ - run-pendle-typescript, - run-pendle-python, - run-transaction-bundler-typescript, - run-transaction-bundler-python, - run-aave-looping-typescript, - run-aave-looping-python, - ] - steps: - - name: Send failure notification - run: | - curl -X POST "https://allquiet.app/api/webhook/829f846c-4dfa-4a58-ab33-eafae34a57c9" \ - -H "Content-Type: application/json" \ - -d '{"status": "Open", "severity": "Critical", "message": "GitHub workflow failed", "run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' +# runs-on: ubuntu-latest +# env: +# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} +# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} +# ETHEREUM_RPC_URL: http://localhost:8545 +# SERVER_URL: http://localhost:80 +# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} +# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Install uv +# run: curl -LsSf https://astral.sh/uv/install.sh | sh + +# - name: Start up full local API and anvil +# uses: ./.github/actions/local_anvil_and_api +# id: local_anvil_and_api +# with: +# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} +# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} +# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} +# private_key: ${{ secrets.PRIVATE_KEY }} +# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} +# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} +# fund_amount_eth: "10" +# environment: ${{ needs.validate-environment.outputs.environment }} +# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} +# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + +# - name: Install dependencies +# working-directory: v1/aave_looping/python +# run: | +# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then +# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" +# uv add compass-api-sdk==$UV_PACKAGE_VERSION +# fi +# uv sync +# uv pip freeze + +# - name: Run example +# working-directory: v1/aave_looping/python +# run: ./.venv/bin/python src/main.py + +# failure-alert: +# if: failure() && github.event_name == 'schedule' # Runs only if a previous job failed & triggered by cron +# runs-on: ubuntu-latest +# needs: +# [ +# run-pendle-typescript, +# run-pendle-python, +# run-transaction-bundler-typescript, +# run-transaction-bundler-python, +# run-aave-looping-typescript, +# run-aave-looping-python, +# ] +# steps: +# - name: Send failure notification +# run: | +# curl -X POST "https://allquiet.app/api/webhook/829f846c-4dfa-4a58-ab33-eafae34a57c9" \ +# -H "Content-Type: application/json" \ +# -d '{"status": "Open", "severity": "Critical", "message": "GitHub workflow failed", "run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' diff --git a/v1/test_sdk_snippets/01.py b/v1/test_sdk_snippets/01.py new file mode 100644 index 00000000..e88bb05b --- /dev/null +++ b/v1/test_sdk_snippets/01.py @@ -0,0 +1,64 @@ +# v1/test_sdk_snippets/run_endpoint.py + +from compass_api_sdk import CompassAPI, models + + +with CompassAPI( + api_key_auth="Zp69nDSOYw9P02FiVnhZBaJkvkRcz0Pg1U7cjnhr", +) as compass_api: + + res = compass_api.aave_v3.aave_aave_supported_tokens(chain=models.V1AaveAaveSupportedTokensChain.ARBITRUM) + + # Handle response + print(res) + + +import os +import sys +import requests +from dotenv import load_dotenv +import subprocess +import shlex + +load_dotenv() + +COMPASS_API_KEY = os.getenv("COMPASS_API_KEY") +ENDPOINT = os.getenv("ENDPOINT") +print([ENDPOINT]) +API_URL = "https://spec.speakeasy.com/compasslabs/api/compass-api-with-code-samples" +SPEC = requests.get(API_URL).json() + +# get python code sample for given path +methods = SPEC["paths"].get(ENDPOINT) +if not methods: + raise ValueError(f"Endpoint not found in spec: {ENDPOINT!r}") + +SNIPPET = None +for method in ("get", "post"): + samples = (methods.get(method, {}) or {}).get("x-codeSamples") or [] + for s in samples: + if (s.get("lang") or "").lower().startswith("python"): + SNIPPET = s["source"] + break + if SNIPPET: + break + +if not SNIPPET: + raise ValueError(f"No Python code sample found for endpoint: {ENDPOINT!r}") + + +print(f"--- Running python SDK snippet for {ENDPOINT} ---") + +SNIPPET = SNIPPET.replace("", COMPASS_API_KEY) +# Write snippet to a simple file and run it +script_path = os.path.join(os.getcwd(), "snippet.py") +with open(script_path, "w", encoding="utf-8") as f: + f.write(SNIPPET) + +try: + cmd = f"{shlex.quote(sys.executable)} {shlex.quote(script_path)}" + subprocess.run(cmd, shell=True, check=True) + print(f"✅ PASS: {ENDPOINT}") +except subprocess.CalledProcessError as e: + print(f"❌ FAIL: {ENDPOINT} – exit code {e.returncode}", file=sys.stderr) + sys.exit(e.returncode) diff --git a/v1/test_sdk_snippets/snippet.py b/v1/test_sdk_snippets/snippet.py new file mode 100644 index 00000000..ac791313 --- /dev/null +++ b/v1/test_sdk_snippets/snippet.py @@ -0,0 +1,11 @@ +from compass_api_sdk import CompassAPI, models + + +with CompassAPI( + api_key_auth="Zp69nDSOYw9P02FiVnhZBaJkvkRcz0Pg1U7cjnhr", +) as compass_api: + + res = compass_api.aave_v3.aave_aave_supported_tokens(chain=models.V1AaveAaveSupportedTokensChain.ARBITRUM) + + # Handle response + print(res) \ No newline at end of file diff --git a/v1/test_sdk_snippets/snippet.ts b/v1/test_sdk_snippets/snippet.ts new file mode 100644 index 00000000..ac791313 --- /dev/null +++ b/v1/test_sdk_snippets/snippet.ts @@ -0,0 +1,11 @@ +from compass_api_sdk import CompassAPI, models + + +with CompassAPI( + api_key_auth="Zp69nDSOYw9P02FiVnhZBaJkvkRcz0Pg1U7cjnhr", +) as compass_api: + + res = compass_api.aave_v3.aave_aave_supported_tokens(chain=models.V1AaveAaveSupportedTokensChain.ARBITRUM) + + # Handle response + print(res) \ No newline at end of file From 1ee098702d8ee539a7d2cd645cef269b33103169 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:32:47 +0100 Subject: [PATCH 04/18] Update simple_test workflow to use uv and run test/main.py --- .github/workflows/simple_test.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple_test.yaml b/.github/workflows/simple_test.yaml index dec0136b..4cdb40db 100644 --- a/.github/workflows/simple_test.yaml +++ b/.github/workflows/simple_test.yaml @@ -24,6 +24,19 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Test - run: echo "Hello World" + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install uv + run: pip install uv + - name: Install dependencies + run: | + cd test + uv sync + - name: Run test + run: | + cd test + uv run python main.py \ No newline at end of file From 689a237128c26272565588701283cd92547b3d35 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:34:00 +0100 Subject: [PATCH 05/18] Add test directory with uv project --- test/README.md | 0 test/main.py | 6 ++++++ test/pyproject.toml | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100644 test/README.md create mode 100644 test/main.py create mode 100644 test/pyproject.toml diff --git a/test/README.md b/test/README.md new file mode 100644 index 00000000..e69de29b diff --git a/test/main.py b/test/main.py new file mode 100644 index 00000000..81ff7556 --- /dev/null +++ b/test/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello from test!") + + +if __name__ == "__main__": + main() diff --git a/test/pyproject.toml b/test/pyproject.toml new file mode 100644 index 00000000..0a57c4cc --- /dev/null +++ b/test/pyproject.toml @@ -0,0 +1,7 @@ +[project] +name = "test" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.9" +dependencies = [] From dfa2650935a09a273663d0fa728279071c0eadc9 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:34:24 +0100 Subject: [PATCH 06/18] Trigger workflow run From 005dba90ddacec1b12ec9297b79644695458313a Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:36:13 +0100 Subject: [PATCH 07/18] Add COMPASS_API_KEY secret to workflow and test in main.py --- .github/workflows/simple_test.yaml | 2 ++ test/main.py | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/simple_test.yaml b/.github/workflows/simple_test.yaml index 4cdb40db..13c45f18 100644 --- a/.github/workflows/simple_test.yaml +++ b/.github/workflows/simple_test.yaml @@ -36,6 +36,8 @@ jobs: cd test uv sync - name: Run test + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} run: | cd test uv run python main.py diff --git a/test/main.py b/test/main.py index 81ff7556..32ce6565 100644 --- a/test/main.py +++ b/test/main.py @@ -1,5 +1,14 @@ +import os + def main(): print("Hello from test!") + + # Load and print the API key + api_key = os.getenv("COMPASS_API_KEY") + if api_key: + print(f"API Key loaded: {api_key[:10]}...") + else: + print("No API key found") if __name__ == "__main__": From 26af0f211be08edc5e6ce24e108c944890db390d Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:37:29 +0100 Subject: [PATCH 08/18] Add Compass API test - Aave supported tokens --- test/main.py | 14 ++++++++++++++ test/pyproject.toml | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/test/main.py b/test/main.py index 32ce6565..6d4bb2d0 100644 --- a/test/main.py +++ b/test/main.py @@ -1,4 +1,5 @@ import os +from compass_api_sdk import CompassAPI, models def main(): print("Hello from test!") @@ -7,6 +8,19 @@ def main(): api_key = os.getenv("COMPASS_API_KEY") if api_key: print(f"API Key loaded: {api_key[:10]}...") + + # Test Compass API - Aave Supported Tokens + try: + with CompassAPI( + api_key_auth=api_key, + ) as compass_api: + res = compass_api.aave_v3.aave_aave_supported_tokens(chain=models.V1AaveAaveSupportedTokensChain.ARBITRUM) + print("API call successful!") + print(f"Found {len(res.tokens)} supported tokens") + if res.tokens: + print(f"First token: {res.tokens[0].symbol} - {res.tokens[0].address}") + except Exception as e: + print(f"API call failed: {e}") else: print("No API key found") diff --git a/test/pyproject.toml b/test/pyproject.toml index 0a57c4cc..758995db 100644 --- a/test/pyproject.toml +++ b/test/pyproject.toml @@ -4,4 +4,6 @@ version = "0.1.0" description = "Add your description here" readme = "README.md" requires-python = ">=3.9" -dependencies = [] +dependencies = [ + "compass-api-sdk" +] From 16ada7f602be841cef73e6cc494081f06ad1eec5 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:44:57 +0100 Subject: [PATCH 09/18] Add environment parameter print to workflow --- .github/workflows/simple_test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/simple_test.yaml b/.github/workflows/simple_test.yaml index 13c45f18..aa87c040 100644 --- a/.github/workflows/simple_test.yaml +++ b/.github/workflows/simple_test.yaml @@ -25,6 +25,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Print environment parameter + run: echo "Environment parameter: ${{ inputs.environment }}" - name: Setup Python uses: actions/setup-python@v4 with: From ad7edae8ed7ce5bad122dba064a3f945974115bf Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:46:41 +0100 Subject: [PATCH 10/18] Add separate print-env job to display environment parameter --- .github/workflows/simple_test.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple_test.yaml b/.github/workflows/simple_test.yaml index aa87c040..40cd3d81 100644 --- a/.github/workflows/simple_test.yaml +++ b/.github/workflows/simple_test.yaml @@ -21,12 +21,19 @@ env: jobs: + print-env: + runs-on: ubuntu-latest + steps: + - name: Print environment parameter + run: | + echo "Environment parameter: ${{ github.event.inputs.environment }}" + echo "Workflow triggered with environment: ${{ github.event.inputs.environment || 'default' }}" + test: runs-on: ubuntu-latest + needs: print-env steps: - uses: actions/checkout@v4 - - name: Print environment parameter - run: echo "Environment parameter: ${{ inputs.environment }}" - name: Setup Python uses: actions/setup-python@v4 with: From 50c29c9b191c53fa43399a2780a75c2654acd4a6 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Wed, 24 Sep 2025 16:51:03 +0100 Subject: [PATCH 11/18] Add emojis and comments to workflow --- .github/workflows/simple_test.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple_test.yaml b/.github/workflows/simple_test.yaml index 40cd3d81..04acca27 100644 --- a/.github/workflows/simple_test.yaml +++ b/.github/workflows/simple_test.yaml @@ -21,13 +21,16 @@ env: jobs: + # Print environment parameter with emojis print-env: runs-on: ubuntu-latest steps: - name: Print environment parameter run: | - echo "Environment parameter: ${{ github.event.inputs.environment }}" - echo "Workflow triggered with environment: ${{ github.event.inputs.environment || 'default' }}" + echo "🚀 Starting workflow..." + echo "📋 Environment parameter: ${{ github.event.inputs.environment }}" + echo "⚙️ Workflow triggered with environment: ${{ github.event.inputs.environment || 'default' }}" + echo "✅ Environment validation complete!" test: runs-on: ubuntu-latest From c2f1c9f4c165e79b20c4140068ce0da96d37462e Mon Sep 17 00:00:00 2001 From: ccosnett Date: Thu, 25 Sep 2025 11:11:25 +0100 Subject: [PATCH 12/18] STAGING --- .github/workflows/simple_test__staging.yaml | 115 ++++++++++++++++++++ test/main.py | 44 ++++---- 2 files changed, 136 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/simple_test__staging.yaml diff --git a/.github/workflows/simple_test__staging.yaml b/.github/workflows/simple_test__staging.yaml new file mode 100644 index 00000000..f22bc199 --- /dev/null +++ b/.github/workflows/simple_test__staging.yaml @@ -0,0 +1,115 @@ +name: simple_test + +on: + push: + branches: + - conor/com-6015-run-a-single-workflow-against-staging + + workflow_dispatch: + inputs: + environment: + description: "Environment to test" + required: true + type: string + + workflow_call: + inputs: + environment: + description: "Environment to test" + required: true + type: string + + +permissions: + id-token: write + contents: write + +env: + AWS_ECR_STS_ROLE: arn:aws:iam::688567264391:role/DojoApiCIRole + + +jobs: + # Print environment parameter with emojis + print-env: + runs-on: ubuntu-latest + steps: + - name: Print environment parameter + run: | + echo "🚀 Starting workflow..." + echo "📋 Environment parameter: ${{ github.event.inputs.environment }}" + echo "⚙️ Workflow triggered with environment: ${{ github.event.inputs.environment || 'default' }}" + echo "✅ Environment validation complete!" + + validate-environment: + runs-on: ubuntu-latest + outputs: + environment: ${{ steps.validate.outputs.environment }} + steps: + - name: Validate environment input + id: validate + run: | + if [[ "${{ github.event_name }}" == "workflow_dispatch" || "${{ github.event_name }}" == "workflow_call" ]]; then + ENVIRONMENT="${{ inputs.environment }}" + else + ENVIRONMENT="local" + fi + if [[ "$ENVIRONMENT" != "staging" && "$ENVIRONMENT" != "prod" && "$ENVIRONMENT" != "local" ]]; then + echo "❌ Error: Invalid environment '$ENVIRONMENT'. Must be 'staging' or 'prod' or 'local'." + exit 1 + fi + echo "✅ Environment '$ENVIRONMENT' is valid" + echo "environment=$ENVIRONMENT" >> $GITHUB_OUTPUT + + set-versions: + needs: [validate-environment] + runs-on: ubuntu-latest + outputs: + npm_package_version: ${{ steps.set-versions.outputs.npm_package_version }} + uv_package_version: ${{ steps.set-versions.outputs.uv_package_version }} + steps: + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Set versions + id: set-versions + run: | + if [[ "${{ needs.validate-environment.outputs.environment }}" == "staging" ]]; then + NPM_PACKAGE_VERSION=$(npm view @compass-labs/api-sdk versions --json | jq -r '.[]' | grep -E 'rc|alpha|beta' | sort -V | tail -1) + UV_PACKAGE_VERSION="$(curl -s https://pypi.org/pypi/compass-api-sdk/json | jq -r '.releases | keys | .[]' | grep -E 'rc|a|b|dev' | sort -V | tail -1)" + else + NPM_PACKAGE_VERSION="latest" + UV_PACKAGE_VERSION="latest" + fi + + echo "npm_package_version=$NPM_PACKAGE_VERSION" >> $GITHUB_OUTPUT + echo "uv_package_version=$UV_PACKAGE_VERSION" >> $GITHUB_OUTPUT + + + + test: + runs-on: ubuntu-latest + needs: print-env + steps: + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install uv + run: pip install uv + - name: Install dependencies + run: | + cd test + uv sync + - name: Run test + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + run: | + cd test + uv run python main.py + \ No newline at end of file diff --git a/test/main.py b/test/main.py index 6d4bb2d0..c0cb3ece 100644 --- a/test/main.py +++ b/test/main.py @@ -1,29 +1,27 @@ import os from compass_api_sdk import CompassAPI, models -def main(): - print("Hello from test!") +print("Hello from test!") + +# Load and print the API key +COMPASS_API_KEY = os.getenv("COMPASS_API_KEY") +if COMPASS_API_KEY: + print(f"API Key loaded: {COMPASS_API_KEY[:10]}...") + +SERVER_URL = os.getenv("COMPASS_API_KEY") +if SERVER_URL: + print(f"API Key loaded: {SERVER_URL[:10]}...") + + # Test Compass API - Aave Supported Tokens] - # Load and print the API key - api_key = os.getenv("COMPASS_API_KEY") - if api_key: - print(f"API Key loaded: {api_key[:10]}...") - - # Test Compass API - Aave Supported Tokens - try: - with CompassAPI( - api_key_auth=api_key, - ) as compass_api: - res = compass_api.aave_v3.aave_aave_supported_tokens(chain=models.V1AaveAaveSupportedTokensChain.ARBITRUM) - print("API call successful!") - print(f"Found {len(res.tokens)} supported tokens") - if res.tokens: - print(f"First token: {res.tokens[0].symbol} - {res.tokens[0].address}") - except Exception as e: - print(f"API call failed: {e}") - else: - print("No API key found") +compass = CompassAPI(api_key_auth=COMPASS_API_KEY, server_url=SERVER_URL) + +res = compass.aave_v3.aave_aave_supported_tokens( + chain=models.V1AaveAaveSupportedTokensChain.ARBITRUM, + server_url=SERVER_URL +) +print("API call successful!") +print(f"Found {len(res.tokens)} supported tokens") +print(res.json()) -if __name__ == "__main__": - main() From df86850791648dba3516ff78b25ea88d90a078b4 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Thu, 25 Sep 2025 11:18:31 +0100 Subject: [PATCH 13/18] STAGING --- .github/workflows/simple_test__staging.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple_test__staging.yaml b/.github/workflows/simple_test__staging.yaml index f22bc199..ee2e6cd0 100644 --- a/.github/workflows/simple_test__staging.yaml +++ b/.github/workflows/simple_test__staging.yaml @@ -1,4 +1,4 @@ -name: simple_test +name: simple_test_on_staging on: push: From 6a85b0e652959b94dbf2fd0c034cfa40d5e2564e Mon Sep 17 00:00:00 2001 From: ccosnett Date: Thu, 25 Sep 2025 11:27:41 +0100 Subject: [PATCH 14/18] STAGING --- .github/workflows/simple_test__staging.yaml | 59 ++++++++++++++++----- 1 file changed, 45 insertions(+), 14 deletions(-) diff --git a/.github/workflows/simple_test__staging.yaml b/.github/workflows/simple_test__staging.yaml index ee2e6cd0..c4b85e95 100644 --- a/.github/workflows/simple_test__staging.yaml +++ b/.github/workflows/simple_test__staging.yaml @@ -92,24 +92,55 @@ jobs: test: + needs: [validate-environment, set-versions, print-env] runs-on: ubuntu-latest - needs: print-env + + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + ARBITRUM_RPC_URL: http://localhost:8547 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + steps: - - uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: '3.11' + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install uv - run: pip install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + - name: Install dependencies + working-directory: v1/pendle/python run: | - cd test + if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then + echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" + uv add compass-api-sdk==$UV_PACKAGE_VERSION + fi uv sync - - name: Run test - env: - COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} - run: | - cd test - uv run python main.py + uv pip freeze + + - name: Run example + working-directory: v1/pendle/python + run: ./.venv/bin/python src/main.py + + +# run: | +# cd test +# uv run python main.py \ No newline at end of file From 394ac326a243c0f4f78129b9a2a13b88b3a139e3 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Thu, 25 Sep 2025 11:29:47 +0100 Subject: [PATCH 15/18] STAGING --- .github/workflows/simple_test__staging.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple_test__staging.yaml b/.github/workflows/simple_test__staging.yaml index c4b85e95..91aa4d82 100644 --- a/.github/workflows/simple_test__staging.yaml +++ b/.github/workflows/simple_test__staging.yaml @@ -136,7 +136,7 @@ jobs: uv pip freeze - name: Run example - working-directory: v1/pendle/python + working-directory: test run: ./.venv/bin/python src/main.py From a4b2931f1b2906c422095797972e39db2a044759 Mon Sep 17 00:00:00 2001 From: ccosnett Date: Thu, 25 Sep 2025 11:29:53 +0100 Subject: [PATCH 16/18] STAGING --- .github/workflows/simple_test__staging.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple_test__staging.yaml b/.github/workflows/simple_test__staging.yaml index 91aa4d82..3bc76a85 100644 --- a/.github/workflows/simple_test__staging.yaml +++ b/.github/workflows/simple_test__staging.yaml @@ -137,7 +137,7 @@ jobs: - name: Run example working-directory: test - run: ./.venv/bin/python src/main.py + run: ./.venv/bin/python main.py # run: | From e4637ea331124de403e78e61837dc14597feb07d Mon Sep 17 00:00:00 2001 From: ccosnett Date: Thu, 25 Sep 2025 11:42:05 +0100 Subject: [PATCH 17/18] STAGING --- .github/workflows/simple_test__staging.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple_test__staging.yaml b/.github/workflows/simple_test__staging.yaml index 3bc76a85..c2414e2d 100644 --- a/.github/workflows/simple_test__staging.yaml +++ b/.github/workflows/simple_test__staging.yaml @@ -126,7 +126,7 @@ jobs: ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - name: Install dependencies - working-directory: v1/pendle/python + working-directory: test run: | if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" @@ -137,7 +137,7 @@ jobs: - name: Run example working-directory: test - run: ./.venv/bin/python main.py + run: uv run python main.py # run: | From 16f0da38963ef6e66efa1b414da21193eb54c3bc Mon Sep 17 00:00:00 2001 From: ccosnett Date: Thu, 25 Sep 2025 11:45:21 +0100 Subject: [PATCH 18/18] STAGING --- .github/workflows/test_usecases_v1.yml | 1398 ++++++++++++------------ test/main.py | 2 +- 2 files changed, 700 insertions(+), 700 deletions(-) diff --git a/.github/workflows/test_usecases_v1.yml b/.github/workflows/test_usecases_v1.yml index 81efa176..baf77522 100644 --- a/.github/workflows/test_usecases_v1.yml +++ b/.github/workflows/test_usecases_v1.yml @@ -1,711 +1,711 @@ -# name: test_usecases_v_one - -# on: -# schedule: -# # Runs at 00:00 UTC every day -# - cron: "0 0 * * *" -# pull_request: -# branches: -# - main -# workflow_dispatch: -# inputs: -# environment: -# description: "Environment to test" -# required: true -# type: string - -# workflow_call: -# inputs: -# environment: -# description: "Environment to test" -# required: true -# type: string - -# permissions: -# id-token: write -# contents: write - -# env: -# AWS_ECR_STS_ROLE: arn:aws:iam::688567264391:role/DojoApiCIRole - -# jobs: -# validate-environment: -# runs-on: ubuntu-latest -# outputs: -# environment: ${{ steps.validate.outputs.environment }} -# steps: -# - name: Validate environment input -# id: validate -# run: | -# if [[ "${{ github.event_name }}" == "workflow_dispatch" || "${{ github.event_name }}" == "workflow_call" ]]; then -# ENVIRONMENT="${{ inputs.environment }}" -# else -# ENVIRONMENT="local" -# fi -# if [[ "$ENVIRONMENT" != "staging" && "$ENVIRONMENT" != "prod" && "$ENVIRONMENT" != "local" ]]; then -# echo "❌ Error: Invalid environment '$ENVIRONMENT'. Must be 'staging' or 'prod' or 'local'." -# exit 1 -# fi -# echo "✅ Environment '$ENVIRONMENT' is valid" -# echo "environment=$ENVIRONMENT" >> $GITHUB_OUTPUT +name: test_usecases_v_one + +on: + schedule: + # Runs at 00:00 UTC every day + - cron: "0 0 * * *" +# pull_request: +# branches: +# - main + workflow_dispatch: + inputs: + environment: + description: "Environment to test" + required: true + type: string + + workflow_call: + inputs: + environment: + description: "Environment to test" + required: true + type: string + +permissions: + id-token: write + contents: write + +env: + AWS_ECR_STS_ROLE: arn:aws:iam::688567264391:role/DojoApiCIRole + +jobs: + validate-environment: + runs-on: ubuntu-latest + outputs: + environment: ${{ steps.validate.outputs.environment }} + steps: + - name: Validate environment input + id: validate + run: | + if [[ "${{ github.event_name }}" == "workflow_dispatch" || "${{ github.event_name }}" == "workflow_call" ]]; then + ENVIRONMENT="${{ inputs.environment }}" + else + ENVIRONMENT="local" + fi + if [[ "$ENVIRONMENT" != "staging" && "$ENVIRONMENT" != "prod" && "$ENVIRONMENT" != "local" ]]; then + echo "❌ Error: Invalid environment '$ENVIRONMENT'. Must be 'staging' or 'prod' or 'local'." + exit 1 + fi + echo "✅ Environment '$ENVIRONMENT' is valid" + echo "environment=$ENVIRONMENT" >> $GITHUB_OUTPUT -# set-versions: -# needs: [validate-environment] -# runs-on: ubuntu-latest -# outputs: -# npm_package_version: ${{ steps.set-versions.outputs.npm_package_version }} -# uv_package_version: ${{ steps.set-versions.outputs.uv_package_version }} -# steps: -# - name: Set up Node.js -# uses: actions/setup-node@v3 -# with: -# node-version: "20" - -# - name: Install uv -# run: curl -LsSf https://astral.sh/uv/install.sh | sh - -# - name: Set versions -# id: set-versions -# run: | -# if [[ "${{ needs.validate-environment.outputs.environment }}" == "staging" ]]; then -# NPM_PACKAGE_VERSION=$(npm view @compass-labs/api-sdk versions --json | jq -r '.[]' | grep -E 'rc|alpha|beta' | sort -V | tail -1) -# UV_PACKAGE_VERSION="$(curl -s https://pypi.org/pypi/compass-api-sdk/json | jq -r '.releases | keys | .[]' | grep -E 'rc|a|b|dev' | sort -V | tail -1)" -# else -# NPM_PACKAGE_VERSION="latest" -# UV_PACKAGE_VERSION="latest" -# fi - -# echo "npm_package_version=$NPM_PACKAGE_VERSION" >> $GITHUB_OUTPUT -# echo "uv_package_version=$UV_PACKAGE_VERSION" >> $GITHUB_OUTPUT - - -# run-pendle-typescript: -# needs: [validate-environment, set-versions] + set-versions: + needs: [validate-environment] + runs-on: ubuntu-latest + outputs: + npm_package_version: ${{ steps.set-versions.outputs.npm_package_version }} + uv_package_version: ${{ steps.set-versions.outputs.uv_package_version }} + steps: + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Set versions + id: set-versions + run: | + if [[ "${{ needs.validate-environment.outputs.environment }}" == "staging" ]]; then + NPM_PACKAGE_VERSION=$(npm view @compass-labs/api-sdk versions --json | jq -r '.[]' | grep -E 'rc|alpha|beta' | sort -V | tail -1) + UV_PACKAGE_VERSION="$(curl -s https://pypi.org/pypi/compass-api-sdk/json | jq -r '.releases | keys | .[]' | grep -E 'rc|a|b|dev' | sort -V | tail -1)" + else + NPM_PACKAGE_VERSION="latest" + UV_PACKAGE_VERSION="latest" + fi + + echo "npm_package_version=$NPM_PACKAGE_VERSION" >> $GITHUB_OUTPUT + echo "uv_package_version=$UV_PACKAGE_VERSION" >> $GITHUB_OUTPUT + + + run-pendle-typescript: + needs: [validate-environment, set-versions] -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# ARBITRUM_RPC_URL: http://localhost:8547 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Set up Node.js -# uses: actions/setup-node@v3 -# with: -# node-version: "20" - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - - -# - name: Install dependencies -# working-directory: v1/pendle/typescript -# run: | -# npm install -# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then -# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION -# fi -# npm list - -# - name: Build application -# working-directory: v1/pendle/typescript -# run: npm run build - -# - name: Run application -# working-directory: v1/pendle/typescript -# run: npm run start - -# run-pendle-python: -# needs: [validate-environment, set-versions] + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + ARBITRUM_RPC_URL: http://localhost:8547 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + + - name: Install dependencies + working-directory: v1/pendle/typescript + run: | + npm install + if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then + npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION + fi + npm list + + - name: Build application + working-directory: v1/pendle/typescript + run: npm run build + + - name: Run application + working-directory: v1/pendle/typescript + run: npm run start + + run-pendle-python: + needs: [validate-environment, set-versions] -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# ARBITRUM_RPC_URL: http://localhost:8547 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Install uv -# run: curl -LsSf https://astral.sh/uv/install.sh | sh - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/pendle/python -# run: | -# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then -# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" -# uv add compass-api-sdk==$UV_PACKAGE_VERSION -# fi -# uv sync -# uv pip freeze - -# - name: Run example -# working-directory: v1/pendle/python -# run: ./.venv/bin/python src/main.py - -# run-typescript-basic-examples-deposit-on-morpho: # -# needs: [validate-environment, set-versions] - -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# BASE_RPC_URL: http://localhost:8546 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Set up Node.js -# uses: actions/setup-node@v3 -# with: -# node-version: "20" - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/basic_examples/deposit_on_morpho/typescript -# run: | -# npm install -# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then -# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION -# fi -# npm list - -# - name: Build application -# working-directory: v1/basic_examples/deposit_on_morpho/typescript -# run: npm run build - -# - name: Run application -# working-directory: v1/basic_examples/deposit_on_morpho/typescript -# run: npm run start - - -# run-python----basic-examples-deposit-on-morpho: # -# needs: [validate-environment, set-versions] + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + ARBITRUM_RPC_URL: http://localhost:8547 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/pendle/python + run: | + if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then + echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" + uv add compass-api-sdk==$UV_PACKAGE_VERSION + fi + uv sync + uv pip freeze + + - name: Run example + working-directory: v1/pendle/python + run: ./.venv/bin/python src/main.py + + run-typescript-basic-examples-deposit-on-morpho: # + needs: [validate-environment, set-versions] + + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + BASE_RPC_URL: http://localhost:8546 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/basic_examples/deposit_on_morpho/typescript + run: | + npm install + if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then + npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION + fi + npm list + + - name: Build application + working-directory: v1/basic_examples/deposit_on_morpho/typescript + run: npm run build + + - name: Run application + working-directory: v1/basic_examples/deposit_on_morpho/typescript + run: npm run start + + + run-python----basic-examples-deposit-on-morpho: # + needs: [validate-environment, set-versions] -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# BASE_RPC_URL: http://localhost:8546 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Install uv -# run: curl -LsSf https://astral.sh/uv/install.sh | sh - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/basic_examples/deposit_on_morpho/python -# run: | -# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then -# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" -# uv add compass-api-sdk==$UV_PACKAGE_VERSION -# fi -# uv sync -# uv pip freeze - -# - name: Run example -# working-directory: v1/basic_examples/deposit_on_morpho/python -# run: ./.venv/bin/python main.py #src/main.py + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + BASE_RPC_URL: http://localhost:8546 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/basic_examples/deposit_on_morpho/python + run: | + if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then + echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" + uv add compass-api-sdk==$UV_PACKAGE_VERSION + fi + uv sync + uv pip freeze + + - name: Run example + working-directory: v1/basic_examples/deposit_on_morpho/python + run: ./.venv/bin/python main.py #src/main.py -# run-typescript-basic-examples-deposit-on-aave: -# needs: [validate-environment, set-versions] + run-typescript-basic-examples-deposit-on-aave: + needs: [validate-environment, set-versions] -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# BASE_RPC_URL: http://localhost:8546 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Set up Node.js -# uses: actions/setup-node@v3 -# with: -# node-version: "20" - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/basic_examples/deposit_on_aave/typescript -# run: | -# npm install -# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then -# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION -# fi -# npm list - -# - name: Build application -# working-directory: v1/basic_examples/deposit_on_aave/typescript -# run: npm run build - -# - name: Run application -# working-directory: v1/basic_examples/deposit_on_aave/typescript -# run: npm run start - - -# run-python----basic-examples-deposit-on-aave: -# needs: [validate-environment, set-versions] - -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# BASE_RPC_URL: http://localhost:8546 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Install uv -# run: curl -LsSf https://astral.sh/uv/install.sh | sh - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/basic_examples/deposit_on_aave/python -# run: | -# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then -# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" -# uv add compass-api-sdk==$UV_PACKAGE_VERSION -# fi -# uv sync -# uv pip freeze - -# - name: Run example -# working-directory: v1/basic_examples/deposit_on_aave/python -# run: ./.venv/bin/python main.py #src/main.py - -# run-typescript-transaction_bundler_embed_a_fee_in_tx: # -# needs: [validate-environment, set-versions] - -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# BASE_RPC_URL: http://localhost:8546 -# #ETHEREUM_RPC_URL: http://localhost:8545 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Set up Node.js -# uses: actions/setup-node@v3 -# with: -# node-version: "20" - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript -# run: | -# npm install -# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then -# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION -# fi -# npm list - -# - name: Build application -# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript -# run: npm run build - -# - name: Run application -# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript -# run: npm run start - -# run-python----transaction_bundler_embed_a_fee_in_tx: # -# needs: [validate-environment, set-versions] + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + BASE_RPC_URL: http://localhost:8546 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/basic_examples/deposit_on_aave/typescript + run: | + npm install + if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then + npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION + fi + npm list + + - name: Build application + working-directory: v1/basic_examples/deposit_on_aave/typescript + run: npm run build + + - name: Run application + working-directory: v1/basic_examples/deposit_on_aave/typescript + run: npm run start + + + run-python----basic-examples-deposit-on-aave: + needs: [validate-environment, set-versions] + + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + BASE_RPC_URL: http://localhost:8546 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/basic_examples/deposit_on_aave/python + run: | + if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then + echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" + uv add compass-api-sdk==$UV_PACKAGE_VERSION + fi + uv sync + uv pip freeze + + - name: Run example + working-directory: v1/basic_examples/deposit_on_aave/python + run: ./.venv/bin/python main.py #src/main.py + + run-typescript-transaction_bundler_embed_a_fee_in_tx: # + needs: [validate-environment, set-versions] + + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + BASE_RPC_URL: http://localhost:8546 + #ETHEREUM_RPC_URL: http://localhost:8545 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript + run: | + npm install + if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then + npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION + fi + npm list + + - name: Build application + working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript + run: npm run build + + - name: Run application + working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/typescript + run: npm run start + + run-python----transaction_bundler_embed_a_fee_in_tx: # + needs: [validate-environment, set-versions] -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# BASE_RPC_URL: http://localhost:8546 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Install uv -# run: curl -LsSf https://astral.sh/uv/install.sh | sh - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/python -# run: | -# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then -# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" -# uv add compass-api-sdk==$UV_PACKAGE_VERSION -# fi -# uv sync -# uv pip freeze - -# - name: Run example -# working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/python -# run: ./.venv/bin/python main.py #src/main.py - - -# run-transaction-bundler-typescript: -# needs: [validate-environment, set-versions] + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + BASE_RPC_URL: http://localhost:8546 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/python + run: | + if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then + echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" + uv add compass-api-sdk==$UV_PACKAGE_VERSION + fi + uv sync + uv pip freeze + + - name: Run example + working-directory: v1/transaction_bundler/embed_a_fee_in_bundle/python + run: ./.venv/bin/python main.py #src/main.py + + + run-transaction-bundler-typescript: + needs: [validate-environment, set-versions] -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# ETHEREUM_RPC_URL: http://localhost:8545 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Set up Node.js -# uses: actions/setup-node@v3 -# with: -# node-version: "20" - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/transaction_bundler/typescript -# run: | -# npm install -# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then -# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION -# fi -# npm list - -# - name: Build application -# working-directory: v1/transaction_bundler/typescript -# run: npm run build - -# - name: Run application -# working-directory: v1/transaction_bundler/typescript -# run: npm run start - -# run-transaction-bundler-python: -# needs: [validate-environment, set-versions] + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + ETHEREUM_RPC_URL: http://localhost:8545 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/transaction_bundler/typescript + run: | + npm install + if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then + npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION + fi + npm list + + - name: Build application + working-directory: v1/transaction_bundler/typescript + run: npm run build + + - name: Run application + working-directory: v1/transaction_bundler/typescript + run: npm run start + + run-transaction-bundler-python: + needs: [validate-environment, set-versions] -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# ETHEREUM_RPC_URL: http://localhost:8545 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Install uv -# run: curl -LsSf https://astral.sh/uv/install.sh | sh - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/transaction_bundler/python -# run: | -# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then -# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" -# uv add compass-api-sdk==$UV_PACKAGE_VERSION -# fi -# uv sync -# uv pip freeze - -# - name: Run example -# working-directory: v1/transaction_bundler/python -# run: ./.venv/bin/python src/main.py - -# run-aave-looping-typescript: -# needs: [validate-environment, set-versions] + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + ETHEREUM_RPC_URL: http://localhost:8545 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/transaction_bundler/python + run: | + if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then + echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" + uv add compass-api-sdk==$UV_PACKAGE_VERSION + fi + uv sync + uv pip freeze + + - name: Run example + working-directory: v1/transaction_bundler/python + run: ./.venv/bin/python src/main.py + + run-aave-looping-typescript: + needs: [validate-environment, set-versions] -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# ETHEREUM_RPC_URL: http://localhost:8545 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Set up Node.js -# uses: actions/setup-node@v3 -# with: -# node-version: "20" - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/aave_looping/typescript -# run: | -# npm install -# if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then -# npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION -# fi -# npm list - -# - name: Build application -# working-directory: v1/aave_looping/typescript -# run: npm run build - -# - name: Run application -# working-directory: v1/aave_looping/typescript -# run: npm run start - -# run-aave-looping-python: -# needs: [validate-environment, set-versions] + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + ETHEREUM_RPC_URL: http://localhost:8545 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/aave_looping/typescript + run: | + npm install + if [[ "$NPM_PACKAGE_VERSION" != "latest" ]]; then + npm install @compass-labs/api-sdk@$NPM_PACKAGE_VERSION + fi + npm list + + - name: Build application + working-directory: v1/aave_looping/typescript + run: npm run build + + - name: Run application + working-directory: v1/aave_looping/typescript + run: npm run start + + run-aave-looping-python: + needs: [validate-environment, set-versions] -# runs-on: ubuntu-latest -# env: -# COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} -# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} -# ETHEREUM_RPC_URL: http://localhost:8545 -# SERVER_URL: http://localhost:80 -# NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} -# UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 - -# - name: Install uv -# run: curl -LsSf https://astral.sh/uv/install.sh | sh - -# - name: Start up full local API and anvil -# uses: ./.github/actions/local_anvil_and_api -# id: local_anvil_and_api -# with: -# ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} -# arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} -# base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} -# private_key: ${{ secrets.PRIVATE_KEY }} -# mono_app_id: ${{ secrets.MONOREPOAPP_ID }} -# mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} -# fund_amount_eth: "10" -# environment: ${{ needs.validate-environment.outputs.environment }} -# aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} -# ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api - -# - name: Install dependencies -# working-directory: v1/aave_looping/python -# run: | -# if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then -# echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" -# uv add compass-api-sdk==$UV_PACKAGE_VERSION -# fi -# uv sync -# uv pip freeze - -# - name: Run example -# working-directory: v1/aave_looping/python -# run: ./.venv/bin/python src/main.py - -# failure-alert: -# if: failure() && github.event_name == 'schedule' # Runs only if a previous job failed & triggered by cron -# runs-on: ubuntu-latest -# needs: -# [ -# run-pendle-typescript, -# run-pendle-python, -# run-transaction-bundler-typescript, -# run-transaction-bundler-python, -# run-aave-looping-typescript, -# run-aave-looping-python, -# ] -# steps: -# - name: Send failure notification -# run: | -# curl -X POST "https://allquiet.app/api/webhook/829f846c-4dfa-4a58-ab33-eafae34a57c9" \ -# -H "Content-Type: application/json" \ -# -d '{"status": "Open", "severity": "Critical", "message": "GitHub workflow failed", "run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' + runs-on: ubuntu-latest + env: + COMPASS_API_KEY: ${{ secrets.COMPASS_API_KEY }} + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + ETHEREUM_RPC_URL: http://localhost:8545 + SERVER_URL: http://localhost:80 + NPM_PACKAGE_VERSION: ${{ needs.set-versions.outputs.npm_package_version }} + UV_PACKAGE_VERSION: ${{ needs.set-versions.outputs.uv_package_version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Start up full local API and anvil + uses: ./.github/actions/local_anvil_and_api + id: local_anvil_and_api + with: + ethereum_rpc_url: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + arbitrum_rpc_url: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + base_rpc_url: ${{ secrets.BASE_MAINNET_RPC_URL }} + private_key: ${{ secrets.PRIVATE_KEY }} + mono_app_id: ${{ secrets.MONOREPOAPP_ID }} + mono_app_private_key: ${{ secrets.MONOREPOAPP_PRIVATE_KEY }} + fund_amount_eth: "10" + environment: ${{ needs.validate-environment.outputs.environment }} + aws_ecr_sts_role: ${{ env.AWS_ECR_STS_ROLE }} + ecr_image_uri: 688567264391.dkr.ecr.eu-west-2.amazonaws.com/dojo_api + + - name: Install dependencies + working-directory: v1/aave_looping/python + run: | + if [[ "$UV_PACKAGE_VERSION" != "latest" ]]; then + echo "Installing compass-api-sdk==$UV_PACKAGE_VERSION" + uv add compass-api-sdk==$UV_PACKAGE_VERSION + fi + uv sync + uv pip freeze + + - name: Run example + working-directory: v1/aave_looping/python + run: ./.venv/bin/python src/main.py + + failure-alert: + if: failure() && github.event_name == 'schedule' # Runs only if a previous job failed & triggered by cron + runs-on: ubuntu-latest + needs: + [ + run-pendle-typescript, + run-pendle-python, + run-transaction-bundler-typescript, + run-transaction-bundler-python, + run-aave-looping-typescript, + run-aave-looping-python, + ] + steps: + - name: Send failure notification + run: | + curl -X POST "https://allquiet.app/api/webhook/829f846c-4dfa-4a58-ab33-eafae34a57c9" \ + -H "Content-Type: application/json" \ + -d '{"status": "Open", "severity": "Critical", "message": "GitHub workflow failed", "run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' \ No newline at end of file diff --git a/test/main.py b/test/main.py index c0cb3ece..a8910aea 100644 --- a/test/main.py +++ b/test/main.py @@ -8,7 +8,7 @@ if COMPASS_API_KEY: print(f"API Key loaded: {COMPASS_API_KEY[:10]}...") -SERVER_URL = os.getenv("COMPASS_API_KEY") +SERVER_URL = os.getenv("SERVER_URL") if SERVER_URL: print(f"API Key loaded: {SERVER_URL[:10]}...")