diff --git a/.gitignore b/.gitignore index d44844b..840b17d 100644 --- a/.gitignore +++ b/.gitignore @@ -490,4 +490,5 @@ BeaconSdk/.idea/.idea.BeaconSdk/.idea/misc.xml .idea/.idea.Beacon.Sdk/.idea/.name .idea/ -.DS_Store \ No newline at end of file +.DS_Store +*.db \ No newline at end of file diff --git a/LICENSE b/LICENSE index b5255ac..2cb4844 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Baking Bad +Copyright (c) 2022 PK Lab Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile index f706496..55e0366 100644 --- a/Makefile +++ b/Makefile @@ -4,5 +4,8 @@ install: clean: dotnet clean -sample: - dotnet run -p Beacon.Sdk.Sample.Console -v normal \ No newline at end of file +wallet-sample: + dotnet run -p Beacon.Sdk.Sample.Wallet -v normal + +dapp-sample: + dotnet run -p Beacon.Sdk.Sample.Dapp -v normal \ No newline at end of file diff --git a/README.md b/README.md index 604f8e3..2a18c45 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ Follow these steps to reproduce the typical wallet workflow: 2. Open Beacon [playground](https://docs.walletbeacon.io/getting-started/first-dapp#setup), scroll to Setup and press " Run Code" 3. Choose "Pair wallet on another device" and click on the QR code to copy -4. Start `Beacon.Sdk.Sample.Wallet` sample project +4. Start `Beacon.Sdk.Sample.Wallet` sample project (`make wallet-sample`) 5. Paste copied QR code to console 6. In the browser you should see "Got permissions" message, sample project response with all requested permissions to dApp @@ -336,10 +336,11 @@ beaconDappClient.Disconnect(); Follow these steps to reproduce a typical dapp workflow: 1. Clone this repo and restore nuget packages -2. Start `Beacon.Sdk.Sample.Dapp` project -3. Copy pairing data string from console and paste it to Beacon wallet -4. You should see that Beacon wallet received permissions from `Beacon.Sdk.Sample.Dapp` -5. You can print `sign` command in console to send `sign request` to the wallet -6. You can print `operation` command in console to send `operation request` to the wallet +2. Start `Beacon.Sdk.Sample.Dapp` project (`make dapp-sample`) +3. Go to https://debug.walletbeacon.io/ and create account (or connect your wallet) +4. Copy pairing data string from console, paste it to the site, and press "Connect" +5. You should see that Beacon wallet received permissions from `Beacon.Sdk.Sample.Dapp` ("Messages" section) +6. You can print `sign` command in console to send `sign request` to the wallet +7. You can print `operation` command in console to send `operation request` to the wallet Take a look at the [`Dapp sample`](https://github.com/baking-bad/beacon-dotnet-sdk/blob/main/Beacon.Sdk.Sample.Dapp/Sample.cs) project.