Skip to content

Commit

Permalink
feature(links): add nmkr partner support (#3277)
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored May 30, 2024
1 parent 8b4bcb7 commit 8ca8ed2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/wallet-mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"@types/pbkdf2": "^3.1.2",
"@yoroi/api": "1.5.1",
"@yoroi/common": "1.5.2",
"@yoroi/exchange": "2.0.1",
"@yoroi/exchange": "2.1.0",
"@yoroi/explorers": "1.0.0",
"@yoroi/links": "1.5.4",
"@yoroi/portfolio": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/exchange/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yoroi/exchange",
"version": "2.0.1",
"version": "2.1.0",
"description": "The Exchange package of Yoroi SDK",
"keywords": [
"yoroi",
Expand Down
8 changes: 8 additions & 0 deletions packages/exchange/src/adapters/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ export const providers: Readonly<Record<string, Exchange.Provider>> = freeze(
supportUrl: 'https://support.encryptus.com/',
appId: '18d1545a-a59b-45cb-a180-157b110c77fe',
},
nmkr: {
id: 'nmkr',
name: 'NMKR',
logo: 'nmkr',
supportUrl: 'https://www.nmkr.io/support',
appId: 'fee6bfc1-6934-418a-aa78-5eea5cf1b576',
supportedOrders: {},
},
},
true,
)
7 changes: 3 additions & 4 deletions packages/links/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ const cardanoLink = create({

const yoroiPaymentRequestWithAdaLink = transfer.request.adaWithLink({
link: cardanoLink.link,
business: 'exchange',
partnerId: 'encryptus',
appId: 'app-id',
authorization: 'uuid-v4',
redirectTo: 'https://my.amazing.web/?amountRequested=1&session=03bf4dd213d',
})
Expand Down Expand Up @@ -142,8 +141,8 @@ Yoroi validates deeplinks and univeral links in a stricted way, missing params i
This schema is designed for adding information about how Yoroi should behave, even though all are flagged as optional, it will change how Yoroi reacts to it, and for some funnels it might block the user, or trigger some red alerts about dangerous actions. **`PartnerInfoParams` is part of all links**. It includes the following fields:

- `isSandbox`: A boolean indicating the environment, when `true` deeplinks only work on non-production builds.
- `isTestnet`: A boolean that restrics whether it should list only `mainnet` wallets or testnets wallets.
- `appId`: A string with a maximum length of 40 characters that identifies that app.
- `isTestnet`: A boolean that restrics whether it should list only `mainnet` wallets or testnets wallets.
- `appId`: A string with a maximum length of 40 characters that identifies that app.
- `redirectTo`: Yoroi may present a link button or automatic redirect the user based on funnel.
- `authorization`: All actions initiated within Yoroi will provide an authorization, that works along with the wallet used.
- `message`: Yoroi may present this message for some actions, be descriptive and concise around the action needed from Yoroi, otherwise users might reject your request.
Expand Down

0 comments on commit 8ca8ed2

Please sign in to comment.