Create Safe app with typescript support using yarn as a package manager.
npx create-react-app sapps_getting_started --typescript
cd sapps_getting_started
yarn add https://github.com/gnosis/safe-apps-sdk
- add
description
andiconPath
tomanifest.json
(see https://github.com/gnosis/safe-apps-sdk) - Setup cors as mentioned in the readme of https://github.com/gnosis/safe-react-apps
- Call
initSdk
with[/.*localhost.*/]
- this allows to use your local safe-react instance - Add listeners (see https://github.com/gnosis/safe-apps-sdk)
- Install ipfs (https://gist.github.com/MiguelBel/b3b5f711aa8d9362afa5f16e4e972461)
ipfs init
yarn build
ipfs add -r build