Skip to content

Commit

Permalink
Merge pull request #779 from safe-global/development
Browse files Browse the repository at this point in the history
chore: new release
  • Loading branch information
schmanu authored Nov 29, 2023
2 parents a36aacf + 87fd5eb commit d6e6bd9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion apps/ramp-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"@gnosis.pm/safe-react-components": "^0.9.7",
"@material-ui/core": "^4.12.4",
"@ramp-network/ramp-instant-sdk": "^3.0.0"
"@ramp-network/ramp-instant-sdk": "^4.0.4"
},
"scripts": {
"start": "react-app-rewired start",
Expand Down
3 changes: 1 addition & 2 deletions apps/ramp-network/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSafeAppsSDK } from '@safe-global/safe-apps-react-sdk'
import { Title, Loader, Text } from '@gnosis.pm/safe-react-components'
import { ChainInfo } from '@safe-global/safe-apps-sdk'
import { goBack } from './utils'
import { ASSETS_BY_CHAIN, getRampWidgetUrl, initializeRampWidget } from './ramp'
import { ASSETS_BY_CHAIN, initializeRampWidget } from './ramp'
import styled from 'styled-components'

const Container = styled.div`
Expand Down Expand Up @@ -45,7 +45,6 @@ const SafeApp = (): React.ReactElement | null => {
useEffect(() => {
if (chainInfo && safe && isChainSupported) {
initializeRampWidget({
url: getRampWidgetUrl(chainInfo),
address: safe.safeAddress,
assets: ASSETS_BY_CHAIN[chainInfo.chainId],
onClose: goBack,
Expand Down
4 changes: 1 addition & 3 deletions apps/ramp-network/src/ramp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ export const getRampWidgetUrl = (chainInfo: ChainInfo) => {
}

type RampWidgetInitializer = {
url?: string
assets: string
address: string
onClose?: () => void
}

export const initializeRampWidget = ({ url, assets, address, onClose }: RampWidgetInitializer) => {
export const initializeRampWidget = ({ assets, address, onClose }: RampWidgetInitializer) => {
return new RampInstantSDK({
url,
hostAppName: 'Ramp Network Safe App',
hostLogoUrl: 'https://docs.ramp.network/img/logo-1.svg',
swapAsset: assets,
Expand Down
2 changes: 1 addition & 1 deletion apps/tx-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@material-ui/lab": "^4.0.0-alpha.60",
"@safe-global/safe-apps-provider": "^0.18.0",
"@safe-global/safe-deployments": "^1.26.0",
"axios": "^1.4.0",
"axios": "^1.6.0",
"evm-proxy-detection": "1.0.0",
"localforage": "^1.10.0",
"react-beautiful-dnd": "^13.1.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"assert": "^2.0.0",
"axios": "^1.4.0",
"axios": "^1.6.0",
"buffer": "^6.0.3",
"commitizen": "^4.3.0",
"crypto-browserify": "^3.12.0",
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2845,12 +2845,12 @@
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.6.tgz#cee20bd55e68a1720bdab363ecf0c821ded4cd45"
integrity sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==

"@ramp-network/ramp-instant-sdk@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@ramp-network/ramp-instant-sdk/-/ramp-instant-sdk-3.0.0.tgz#b4553d80563f98952ef28df42d266ca2d3fe53a9"
integrity sha512-wkP87bkTabPs6VPeuRe4tVB1M4NF5NdhgkglExC38LYZXOmyfw0UF5MVpLiIAezUDiDqOhzgBnJxX3QvbeS2kA==
"@ramp-network/ramp-instant-sdk@^4.0.4":
version "4.0.4"
resolved "https://registry.yarnpkg.com/@ramp-network/ramp-instant-sdk/-/ramp-instant-sdk-4.0.4.tgz#25e1327ff2aead8bbab3c1cb5257da9041867442"
integrity sha512-Kkn+xwc4EbD2YqXOOQChZCqRT8/DM8sh9Qnz1nI2+/ACdo3INc42FMubgw5aZlyBzuF32XL/xdZyWBGPF4vECg==
dependencies:
body-scroll-lock "^2.6.4"
body-scroll-lock "^3.1.5"

"@remix-run/[email protected]":
version "1.0.3"
Expand Down Expand Up @@ -4988,10 +4988,10 @@ axios@^0.21.1:
dependencies:
follow-redirects "^1.14.0"

axios@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.4.0.tgz#38a7bf1224cd308de271146038b551d725f0be1f"
integrity sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==
axios@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.0.tgz#f1e5292f26b2fd5c2e66876adc5b06cdbd7d2102"
integrity sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==
dependencies:
follow-redirects "^1.15.0"
form-data "^4.0.0"
Expand Down Expand Up @@ -5299,10 +5299,10 @@ [email protected], body-parser@^1.16.0:
raw-body "2.4.3"
type-is "~1.6.18"

body-scroll-lock@^2.6.4:
version "2.7.1"
resolved "https://registry.yarnpkg.com/body-scroll-lock/-/body-scroll-lock-2.7.1.tgz#caf3f9c91773af1ffb684cd66ed9137b5b737014"
integrity sha512-hS53SQ8RhM0e4DsQ3PKz6Gr2O7Kpdh59TWU98GHjaQznL7y4dFycEPk7pFQAikqBaUSCArkc5E3pe7CWIt2fZA==
body-scroll-lock@^3.1.5:
version "3.1.5"
resolved "https://registry.yarnpkg.com/body-scroll-lock/-/body-scroll-lock-3.1.5.tgz#c1392d9217ed2c3e237fee1e910f6cdd80b7aaec"
integrity sha512-Yi1Xaml0EvNA0OYWxXiYNqY24AfWkbA6w5vxE7GWxtKfzIbZM+Qw+aSmkgsbWzbHiy/RCSkUZBplVxTA+E4jJg==

bonjour@^3.5.0:
version "3.5.0"
Expand Down

0 comments on commit d6e6bd9

Please sign in to comment.