This is a web application that uses Next.js and is intended to be integrated within ledger products, enabling users to seamlessly connect to dapps supporting the walletconnect wallet adapter.
This live app is currently hosted at "TO BE DEFINED"
First, create an .env.local
file locally at the root of the repository. You can duplicate .env.example
and name the new copy .env.local
.
proto
toolchain manager.
Please follow the instructions on the proto website to install it.
Once you have installed proto
, please run the following command:
# Will download and install the supported versions of nodejs, npm and pnpm.
# Run it from the root or a subfolder of the repository.
proto use
First, you should install dependencies
yarn
Secondly, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
All Live apps are defined with a manifest. Here is one that can be used for local development:
{
"id": "ledger-cex-deposit",
"name": "Ledger Exchange Connect",
"url": "http://localhost:3000/",
"params": {},
"homepageUrl": "https://ledger.com/",
"icon": "https://refer-a-friend-frontend-stg.aws.stg.ldg-tech.com/referral-ll/assets/images/referral.png",
"platform": "all",
"apiVersion": "^2.0.0",
"manifestVersion": "1",
"branch": "stable",
"categories": ["bridge", "defi"],
"currencies": ["*"],
"content": {
"shortDescription": {
"en": "This is a short description"
},
"description": {
"en": "This is a long description"
}
},
"permissions": [
"account.list",
"account.request",
"message.sign",
"transaction.sign",
"transaction.signAndBroadcast",
"wallet.userId",
"wallet.info"
],
"domains": ["http://*", "https://*"]
}
We use Jest
and
React Testing Library
The live-app contains unit tests and integration tests. To run tests :
yarn test:unit
To run tests and coverage :
yarn test:coverage
To create a simple unit test, use the *.test.ts(x)
pattern.
To create an integration test, use the *.integration.test.ts
pattern.