diff --git a/stack_orchestrator/data/stacks/mobymask-v3-demo/README.md b/stack_orchestrator/data/stacks/mobymask-v3-demo/README.md index 6fceaa95..11623d02 100644 --- a/stack_orchestrator/data/stacks/mobymask-v3-demo/README.md +++ b/stack_orchestrator/data/stacks/mobymask-v3-demo/README.md @@ -32,7 +32,7 @@ Instructions to setup and deploy an end-to-end MobyMask v3 stack (fixturenet-opt laconic-so --stack mobymask-v3-demo deploy create --spec-file mobymask-v3-demo-spec.yml --deployment-dir mobymask-v3-demo-deployment ``` -* Copy over the demo config to place it at the appropriate path: +* Copy over the demo config to place it at an appropriate path: ```bash cp mobymask-v3-demo-deployment/config/watcher-mobymask-v3-demo/local/config.env mobymask-v3-demo-deployment/ diff --git a/stack_orchestrator/data/stacks/mobymask-v3-demo/demo.md b/stack_orchestrator/data/stacks/mobymask-v3-demo/demo.md index 7a448e88..297de9f1 100644 --- a/stack_orchestrator/data/stacks/mobymask-v3-demo/demo.md +++ b/stack_orchestrator/data/stacks/mobymask-v3-demo/demo.md @@ -38,7 +38,7 @@ Switch to the newly added network -* Import a account using private key pre-funded for Nitro client in the MobyMask app: +* Import a pre-funded account (using it's private key) for Nitro client in the MobyMask app: ```bash # PK: 689af8efa8c651a91ad287602527f3af2fe9f6501a7ac4b061667b5a93e037fd @@ -91,8 +91,8 @@ * Click on `Connect Snap` to install / connect snap; the watcher Nitro clients should show up in the `NITRO` tab * Click on `DIRECT FUND` button against watcher-1's Nitro account (`0xAAA6628Ec44A8a742987EF3A114dDFE2D4F7aDCE`) to create a ledger channel with the pre-set amount - * Confirm the tx in MetaMask popup - * Wait some time for the tx to be confirmed + * Confirm the tx in MetaMask popup; wait some time for the tx to be confirmed and ledger channel to be created + * The progress can be followed from watcher-1's logs * The created ledger channel should now be visible in the `NITRO` tab; click on `REFRESH` button otherwise * Change amount to `10000` and click on `VIRTUAL FUND` button to create a virtual payment channel @@ -122,6 +122,7 @@ * Rate for mutations is set to `100` in the watcher; go back to the `NITRO` tab in the debug panel and change amount value besides `PAY` button to >=100 * Perform a phisher report + * Enter a new record(s) and click on `Submit batch to p2p network` button * Among all three watchers running in consensus, whoever is the `LEADER` at time of reporting sends a tx to the chain * Check all the watchers' logs: @@ -157,33 +158,33 @@ ```bash # On watcher 1 (payment received + tx not sent) - ... - 2024-02-21T11:46:52.049Z vulcanize:libp2p-utils [11:46:52] Received a message on mobymask P2P network from peer: 12D3KooWGXxcwevUY7KCfw8fcGhxqxPaiFMGSU4tgJDjE54QGKzf - 2024-02-21T11:46:52.051Z vulcanize:libp2p-utils Not a leader, skipped sending L2 tx - 2024-02-21T11:46:52.074Z ts-nitro:engine {"msg":"Received message","_msg":{"to":"0xAAA662","from":"0x5D12ac","payloadSummaries":[],"proposalSummaries":[],"payments":[{"amount":450,"channelId":"0x654a85725442828f89b497e3973640613c03b5f5ec47302bfa4402d42c07de30"}],"rejectedObjectives":[]}} - 2024-02-21T11:46:52.097Z laconic:payments Received a payment voucher of 100 from 0x5D12acfbBB1caD65fD61983003a50E0CB6900Fd3 - 2024-02-21T11:46:52.097Z vulcanize:libp2p-utils Payment received for a mutation request from 0x5D12acfbBB1caD65fD61983003a50E0CB6900Fd3 - ... + # ... + # 2024-02-21T11:46:52.049Z vulcanize:libp2p-utils [11:46:52] Received a message on mobymask P2P network from peer: 12D3KooWGXxcwevUY7KCfw8fcGhxqxPaiFMGSU4tgJDjE54QGKzf + # 2024-02-21T11:46:52.051Z vulcanize:libp2p-utils Not a leader, skipped sending L2 tx + # 2024-02-21T11:46:52.074Z ts-nitro:engine {"msg":"Received message","_msg":{"to":"0xAAA662","from":"0x5D12ac","payloadSummaries":[],"proposalSummaries":[],"payments":[{"amount":450,"channelId":"0x654a85725442828f89b497e3973640613c03b5f5ec47302bfa4402d42c07de30"}],"rejectedObjectives":[]}} + # 2024-02-21T11:46:52.097Z laconic:payments Received a payment voucher of 100 from 0x5D12acfbBB1caD65fD61983003a50E0CB6900Fd3 + # 2024-02-21T11:46:52.097Z vulcanize:libp2p-utils Payment received for a mutation request from 0x5D12acfbBB1caD65fD61983003a50E0CB6900Fd3 + # ... # On the leader watcher (payment not received + tx sent) - ... - 2024-02-21T11:46:40.111Z vulcanize:libp2p-utils Payment not received - 2024-02-21T11:46:52.048Z vulcanize:libp2p-utils [11:46:52] Received a message on mobymask P2P network from peer: 12D3KooWGXxcwevUY7KCfw8fcGhxqxPaiFMGSU4tgJDjE54QGKzf - 2024-02-21T11:46:56.048Z vulcanize:libp2p-utils Transaction receipt for invoke message { - to: '0xAFA36c47E130d89bcE4470a9030d99f3CEcaD146', - blockNumber: 4757, - blockHash: '0x859aa54cb02e8a3f910a01b85c2a7bf9bff7540e83018e7e846f87ca1770e55e', - transactionHash: '0x92f087e4b6ac5604c9d4ecd823d526ca5f8f1bf5c2a92861d6b0f69bd899ba83', - effectiveGasPrice: '1500000050', - gasUsed: '136438' - } + # ... + # 2024-02-21T11:46:40.111Z vulcanize:libp2p-utils Payment not received + # 2024-02-21T11:46:52.048Z vulcanize:libp2p-utils [11:46:52] Received a message on mobymask P2P network from peer: 12D3KooWGXxcwevUY7KCfw8fcGhxqxPaiFMGSU4tgJDjE54QGKzf + # 2024-02-21T11:46:56.048Z vulcanize:libp2p-utils Transaction receipt for invoke message { + # to: '0xAFA36c47E130d89bcE4470a9030d99f3CEcaD146', + # blockNumber: 4757, + # blockHash: '0x859aa54cb02e8a3f910a01b85c2a7bf9bff7540e83018e7e846f87ca1770e55e', + # transactionHash: '0x92f087e4b6ac5604c9d4ecd823d526ca5f8f1bf5c2a92861d6b0f69bd899ba83', + # effectiveGasPrice: '1500000050', + # gasUsed: '136438' + # } ``` -* Check the phisher status for the reported phishers to confirm state update +* Check phisher status for the reported phishers to confirm state update ## Clean up -* From the `NITRO` tab in debug panel, perform `VIRTUAL DEFUND` and `DIRECT DEFUND` for any payment channels created +* From the `NITRO` tab in debug panel, perform `VIRTUAL DEFUND` and `DIRECT DEFUND` (in order) for any payment channels created * In the browser's console, delete all indexedDBs: