|
| 1 | +# Instructions |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +AddressOwnership tool consists of two components: |
| 6 | + |
| 7 | +1. *Console application* - used to generate swap claims, burn claims and distribution files. |
| 8 | +2. *Web application* - for distributing all claimed tokens from burns and manual claims. |
| 9 | + |
| 10 | +## Running from source code |
| 11 | + |
| 12 | +Clone solution from this repository and compile it using dotnet tools. |
| 13 | + |
| 14 | +Run the executable with help options |
| 15 | + |
| 16 | +``` |
| 17 | +./AddressOwnershipTool.exe --help |
| 18 | +``` |
| 19 | + |
| 20 | +There will be 3 operations available: |
| 21 | + |
| 22 | +1. *Claim* - this will scan your current wallet for available funds to be swapped to a new token. Once you run it, it will generate a claim file that can be sent to Stratis team for validation and distribution |
| 23 | +2. *Validate* - this will validate claim files and will generate a distribution file. This one will be mainly used by Stratis team. |
| 24 | +3. *Scan* - this operation will scan Strax and Cirrus network for any burn claims and will also generate a distribution file. |
| 25 | + |
| 26 | +See see parameters required for each command, run `./AddressOwnershipTool.exe <command> --help` |
| 27 | + |
| 28 | +For example: |
| 29 | + |
| 30 | +``` |
| 31 | +./AddressOwnershipTool.exe claim --help |
| 32 | +``` |
| 33 | + |
| 34 | +This will show you required and optional parameters that you need to pass. |
| 35 | + |
| 36 | +### Claim |
| 37 | + |
| 38 | +Run a claim, there are number of options available. The most common way to claim your tokens is to have Strax or Cirrus wallet running locally on your machine and then running the follwoing command: |
| 39 | + |
| 40 | +``` |
| 41 | +./AddressOwnershipTool.exe claim --walletname=your_wallet_name --destination=your_stratisevm_address --walletpassword=your_wallet_password |
| 42 | +``` |
| 43 | + |
| 44 | +You can also optionally supply destination path `--outputFolder=yourpath` where the file will be generated, otherwise claim file will be created in the same location as AddressOwnershipTool. |
| 45 | + |
| 46 | +### Validate |
| 47 | + |
| 48 | +This step is to be used to validate all claim files and generate a token distribution file |
| 49 | + |
| 50 | +A typical run would look like this: |
| 51 | + |
| 52 | +``` |
| 53 | +./AddressOwnershipTool.exe validate --sigfolder=path_to_folder_containing_claim_files |
| 54 | +``` |
| 55 | + |
| 56 | +This command will scan all claim `.csv` files in specified sigfolder location and output distribution file to be used by a web app. |
| 57 | + |
| 58 | +### Scan |
| 59 | + |
| 60 | +Scan command scans Strax or Cirrus snapshot for any token burns and creates a distribution file from it. A typical run would look like: |
| 61 | + |
| 62 | +``` |
| 63 | +./AddressOwnershipTool.exe scan --start=2062730 |
| 64 | +``` |
| 65 | + |
| 66 | +where `start` is the block number to start scan from. You can optionally supply `end` parameter to specify an end block. Please note, this oeration will take a while to process depending on number of blocks it needs to scan. |
| 67 | + |
| 68 | +Upon completion of this command, a distribution file will be created. |
| 69 | + |
| 70 | +### Distribution |
| 71 | + |
| 72 | +For distribution, please use Web app *AddressOwnershipTool.Web*. It is a web app with ASP.NET backend and Angular frontend. |
| 73 | + |
| 74 | +**Prerequisites**: |
| 75 | + |
| 76 | +1. Chrome browser |
| 77 | +2. Metamask |
| 78 | +3. Ledger device (optional) |
| 79 | + |
| 80 | +**App usage**: |
| 81 | + |
| 82 | +1. Run web app |
| 83 | +2. Connect to the tool using MetaMask, you will be prompted. |
| 84 | +3. Once signed in, select a folder containing all your distribution `.csv` files from **Scan** and **Validate** steps above. |
| 85 | +4. Select claims to process and validate each transaction with MetaMask. |
| 86 | + |
0 commit comments