Skip to content
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
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@jsr:registry=https://npm.jsr.io
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## 4.39.0 (staging)

- added: BitsOfGold and LibertyX ramp plugins.
- added: Added remote ramp plugin filtering from info-server rollup.
- fixed: Fixed broken `logEvent` tracking calls by adding the needed `dispatch`.
- fixed: Localized display names for payment types in new buy/sell feature.
- removed: Remove change quote tracking.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
},
"dependencies": {
"@brigad/react-native-adservices": "^0.1.3",
"@edge.app/drupe": "^0.0.6",
"@ethersproject/shims": "^5.6.0",
"@noble/curves": "^1.9.7",
"@noble/hashes": "^1.8.0",
Expand Down Expand Up @@ -109,7 +110,7 @@
"edge-currency-monero": "^2.0.0",
"edge-currency-plugins": "^3.8.8",
"edge-exchange-plugins": "^2.39.0",
"edge-info-server": "^3.9.0",
"edge-info-server": "^3.10.0",
"edge-login-ui-rn": "^3.34.1",
"ethers": "^5.7.2",
"expo": "^53.0.0",
Expand Down
15 changes: 15 additions & 0 deletions src/plugins/ramps/rampConstraints.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { drupe } from '@edge.app/drupe'

import { infoServerData } from '../../util/network'
import type {
FiatPaymentType,
FiatPluginRegionCode
Expand All @@ -16,6 +19,18 @@ export interface RampConstraintParams {
export function validateRampConstraintParams(
params: RampConstraintParams
): boolean {
try {
const rampQuoteFilter = infoServerData.rollup?.rampQuoteFilter
const isRemotePassing =
rampQuoteFilter == null ? true : drupe(rampQuoteFilter)(params)

if (!isRemotePassing) {
return false
}
} catch (error) {
console.error('Error validating ramp constraint params: ', String(error))
}

for (const constraint of constraintGenerator(params)) {
if (!constraint) {
return false
Expand Down
75 changes: 65 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,20 @@
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==

"@edge.app/drupe@^0.0.6":
version "0.0.6"
resolved "https://registry.yarnpkg.com/@edge.app/drupe/-/drupe-0.0.6.tgz#2dc8589ffb77f45a63585be6501956a8b7cf0eac"
integrity sha512-0wemuWGMeVj1fv8dd+w2uUh7/xFgW+fZgtrvuSxd8i4U6KDwBh9n6ZY1IcU2t8fTVgAL+Pnt0ccxvCqOuu0uvg==
dependencies:
pouchdb-selector-core "^9.0.0"

"@edge.app/drupe@^0.0.8":
version "0.0.8"
resolved "https://registry.yarnpkg.com/@edge.app/drupe/-/drupe-0.0.8.tgz#1bd42545702559fb2389a06fae98625bbcb1bedd"
integrity sha512-oRGHVJf6rBoIipGY+fbxr3VceUt4EKrjjwgl4jXpk2th20WMI8I2RXMHcEceGNSuwUBsZPq7C8Rkjsl2gf2pSA==
dependencies:
pouchdb-selector-core "^9.0.0"

"@egjs/hammerjs@^2.0.17":
version "2.0.17"
resolved "https://registry.yarnpkg.com/@egjs/hammerjs/-/hammerjs-2.0.17.tgz#5dc02af75a6a06e4c2db0202cae38c9263895124"
Expand Down Expand Up @@ -9554,11 +9568,12 @@ edge-exchange-plugins@^2.39.0:
regenerator-runtime "0.13.11"
xrpl "^2.10.0"

edge-info-server@^3.9.0:
version "3.9.0"
resolved "https://registry.yarnpkg.com/edge-info-server/-/edge-info-server-3.9.0.tgz#4e51151bb540476e2e221611740ae732684ccfb4"
integrity sha512-6gkitSvQ7gOUn0HfjVyQQS42StZNjKranpiAw+4hwejDqTIll6ANkyParWOgrlIqqLXdsfBzoKnJ1Ta8YqD1wQ==
edge-info-server@^3.10.0:
version "3.10.0"
resolved "https://registry.yarnpkg.com/edge-info-server/-/edge-info-server-3.10.0.tgz#76ba0a513e2a44b27f94a24070cc87dfa358e3fb"
integrity sha512-JsG4QaR+36u/ZVpyEAk3Lzw6FOA7HY250eGfG4WPtvZB14621cgM0o9FJGuHuAFUOnuh0M9TRMAiGUZ41q/CKw==
dependencies:
"@edge.app/drupe" "^0.0.8"
"@orbs-network/ton-access" "^2.3.3"
cleaners "^0.3.16"
git-refresher "^0.1.1"
Expand Down Expand Up @@ -15346,6 +15361,46 @@ posthog-react-native@^2.8.1:
resolved "https://registry.yarnpkg.com/posthog-react-native/-/posthog-react-native-2.8.1.tgz#ed29b25a8ef473f49cf5f31396e88de4b9103da7"
integrity sha512-ozaqyn2eaAwb0Wza+bFsVpEuv1vVFjtVF17m4lHN7b8RO9FGBdBPiHA6LAD+ESAB59H16y+J9SxDVmmq23ATDw==

pouchdb-binary-utils@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/pouchdb-binary-utils/-/pouchdb-binary-utils-9.0.0.tgz#eafed32c21e92ef4b253456f9e53c4cf2cfd99fd"
integrity sha512-2OMtgDZi82vqs+zNDE0YiYjOaWkYCUcZJZKK3WkRr+XYRu+2B7umJrnygJFhUwoGedBbHSrlQBLhdNV3F1AX1A==

pouchdb-collate@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/pouchdb-collate/-/pouchdb-collate-9.0.0.tgz#654f6766927ada60603ba25b6b2ae533564fa302"
integrity sha512-TrnEDNZEmIIl+W3xKUO8h+geqVLQ90oZe5ujPkl8myUzpREULWXWQBnV5EzPXVEKDBpJlb8T3I6oy/zdWGQpdA==

pouchdb-errors@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/pouchdb-errors/-/pouchdb-errors-9.0.0.tgz#f84269ce3327abef9455c0a90a51c26d7dca20c6"
integrity sha512-961PSMLhW0UqqdJ566g+CdLZ5pkBJRd6l4WWpCDdD0USvE4xYfYGzv43w7nZZBw1k3Xdy092yqPge7yX/tfnyw==

pouchdb-md5@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/pouchdb-md5/-/pouchdb-md5-9.0.0.tgz#f67a2ba627309e65f8d1ce4d4baf6a5f29164617"
integrity sha512-58xUYBvW3/s+aH0j4uOhhN8yCk0LQ254cxBzI/gbKA9PrfwHpe4zrr0L/ia5ml3A30oH1f8aTnuVMwWDkFcuww==
dependencies:
pouchdb-binary-utils "9.0.0"
spark-md5 "3.0.2"

pouchdb-selector-core@^9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/pouchdb-selector-core/-/pouchdb-selector-core-9.0.0.tgz#6fee1df82cd5ecdbd0a034b38e6c604557d2e22a"
integrity sha512-ZYHYsdoedwm8j5tYofz+3+uUSK8i+7tRCBb01T0OuqDQb17+w5mzjHF8Ppi160xdPUPaWCo1Un+nLWGJzkmA3g==
dependencies:
pouchdb-collate "9.0.0"
pouchdb-utils "9.0.0"

pouchdb-utils@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/pouchdb-utils/-/pouchdb-utils-9.0.0.tgz#b68f3259add50163998201d1a6d16e6a35d5d57f"
integrity sha512-xWZE5c+nAslgmLC8JBZbky8AYgdz7pKtv7KTSi6CD2tuQD0WyNKib0YnhZndeE84dksTeZlqlg56RQHsHoB2LQ==
dependencies:
pouchdb-errors "9.0.0"
pouchdb-md5 "9.0.0"
uuid "8.3.2"

prebuild-install@^7.1.1:
version "7.1.3"
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-7.1.3.tgz#d630abad2b147443f20a212917beae68b8092eec"
Expand Down Expand Up @@ -17347,7 +17402,7 @@ source-map@^0.6.0, source-map@^0.6.1:
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==

spark-md5@^3.0.2:
spark-md5@3.0.2, spark-md5@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc"
integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw==
Expand Down Expand Up @@ -18746,6 +18801,11 @@ uuid@3.3.2:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131"
integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==

uuid@8.3.2, uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==

uuid@^3.3.2:
version "3.4.0"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
Expand All @@ -18756,11 +18816,6 @@ uuid@^7.0.3:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.3.tgz#c5c9f2c8cf25dc0a372c4df1441c41f5bd0c680b"
integrity sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==

uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==

v8-to-istanbul@^9.0.1:
version "9.1.0"
resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz#1b83ed4e397f58c85c266a570fc2558b5feb9265"
Expand Down
Loading