Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

chore: New release #772

Merged
merged 6 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ inputs:
react-app-walletconnect-project-id:
description: WalletConnect Project ID
required: true
react-app-ramp-api:
description: Ramp network API Key
required: true

runs:
using: composite
Expand Down Expand Up @@ -66,6 +69,7 @@ runs:
REACT_APP_MMI_BACKEND_BASE_URL: ${{ inputs.react-app-mmi-backend-base-url }}
REACT_APP_MMI_ENVIRONMENT: ${{ inputs.react-app-mmi-environment }}
REACT_APP_WALLETCONNECT_PROJECT_ID: ${{ inputs.react-app-walletconnect-project-id }}
REACT_APP_RAMP_APIKEY: ${{ inputs.react-app-ramp-api }}

- name: Push changes
uses: ad-m/github-push-action@8407731efefc0d8f72af254c74276b7a90be36e1
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
REACT_APP_MMI_BACKEND_BASE_URL: ${{ secrets.MMI_BACKEND_BASE_URL }}
REACT_APP_MMI_ENVIRONMENT: ${{ secrets.MMI_ENVIRONMENT }}
REACT_APP_WALLETCONNECT_PROJECT_ID: ${{ secrets.REACT_APP_WALLETCONNECT_PROJECT_ID_DEVSTAGING }}
REACT_APP_RAMP_APIKEY: ${{ secrets.REACT_APP_RAMP_APIKEY }}

- name: 'PRaul: Comment PR with app URLs'
if: success() && github.event.number
Expand Down Expand Up @@ -95,6 +96,7 @@ jobs:
REACT_APP_MMI_BACKEND_BASE_URL: ${{ secrets.MMI_BACKEND_BASE_URL }}
REACT_APP_MMI_ENVIRONMENT: ${{ secrets.MMI_ENVIRONMENT }}
REACT_APP_WALLETCONNECT_PROJECT_ID: ${{ secrets.REACT_APP_WALLETCONNECT_PROJECT_ID_DEVSTAGING }}
REACT_APP_RAMP_APIKEY: ${{ secrets.REACT_APP_RAMP_APIKEY }}

# Script to deploy to the dev environment
- name: 'Deploy to S3: Develop'
Expand Down Expand Up @@ -140,3 +142,4 @@ jobs:
react-app-mmi-backend-base-url: ${{ secrets.MMI_BACKEND_BASE_URL }}
react-app-mmi-environment: ${{ secrets.MMI_ENVIRONMENT }}
react-app-walletconnect-project-id: ${{ secrets.REACT_APP_WALLETCONNECT_PROJECT_ID }}
react-app-ramp-api: ${{ secrets.REACT_APP_RAMP_APIKEY }}
1 change: 1 addition & 0 deletions apps/ramp-network/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_RAMP_APIKEY=
1 change: 1 addition & 0 deletions apps/ramp-network/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const RAMP_API_KEY = process.env.REACT_APP_RAMP_APIKEY
2 changes: 2 additions & 0 deletions apps/ramp-network/src/ramp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ChainInfo } from '@safe-global/safe-apps-sdk'
import { RampInstantEvent, RampInstantSDK } from '@ramp-network/ramp-instant-sdk'
import { RAMP_API_KEY } from './constants'

const RINKEBY_STAGING_URL = 'https://ri-widget-staging.firebaseapp.com/'
const WIDGET_CLOSE_EVENT = 'WIDGET_CLOSE'
Expand Down Expand Up @@ -32,6 +33,7 @@ export const initializeRampWidget = ({ url, assets, address, onClose }: RampWidg
hostLogoUrl: 'https://docs.ramp.network/img/logo-1.svg',
swapAsset: assets,
userAddress: address,
hostApiKey: RAMP_API_KEY,
})
.on('*', (event: RampInstantEvent) => {
if (event.type === WIDGET_CLOSE_EVENT) {
Expand Down
Loading
Loading