Skip to content

Commit 47fa5ec

Browse files
committed
fix: Finished getting submitRequestValue working e2e
1 parent 956c78b commit 47fa5ec

7 files changed

+714
-231
lines changed

_QUICKSTART.md

+25-6
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,31 @@ scp -r $SOURCE root@$REMOTE_IP:$DESTINATION
211211

212212
#### Terminal Tab 3
213213

214-
# RUN AFTER RELAYER STARTED
215-
```bash
216-
cd ~/nunya
217-
nvm use
218-
yarn run secret:requestValue
219-
```
214+
* RUN AFTER RELAYER STARTED
215+
216+
* Record logs from Localsecret since the output is too long otherwise. Press CTRL+C to cancel when PostExecution occurs in Ethereum Local Network logs to indicate it has finished.
217+
218+
```bash
219+
docker logs -f secretdev | tee ~/nunya/docker.log
220+
```
221+
222+
* Run end-to-end transaction
223+
224+
```bash
225+
cd ~/nunya
226+
nvm use
227+
yarn run secret:submitRequestValue
228+
```
229+
230+
* Note: `requestValue` alternative that goes via NunyaBusiness.sol is not working yet
231+
232+
* Copy Localsecret logs from remote machine to local.
233+
```bash
234+
REMOTE_IP=172.105.184.209
235+
SOURCE=/root/nunya/docker.log
236+
DESTINATION=/Users/luke/code/clones/github/svub/nunya
237+
scp -r root@$REMOTE_IP:$SOURCE $DESTINATION
238+
```
220239

221240
### Notes
222241

_SETUP.md

+34-3
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ Example previous deployment:
156156

157157
Assumes that you have already uploaded and instantiated the custom Secret contract in the [Setup Secret Contracts](#setup-secret) section.
158158

159-
Skip to the [`requestValue`](#request-value) step in the [Setup Secret Contracts](#setup-secret) section.
159+
Skip to the [`submitRequestValue`](#submit-request-value) step in the [Setup Secret Contracts](#setup-secret) section.
160+
160161

161162
8. On a third terminal, start the Nunya NextJS app:
162163

@@ -816,7 +817,7 @@ yarn run secret:instantiate
816817
* View on Secret Localhost block explorer
817818
* Reference https://docs.scrt.network/secret-network-documentation/development/readme-1/compile-and-deploy
818819
819-
* NEXT: Assuming that the EVM contracts NunyaBusiness and Gateway have already been deployed on localhost, then skip to [requestValue](#request-value), otherwise go through [Setup Frontend](#setup-frontend) first.
820+
* NEXT: Assuming that the EVM contracts NunyaBusiness and Gateway have already been deployed on localhost, then skip to [submitRequestValue](#submit-request-value), otherwise go through [Setup Frontend](#setup-frontend) first.
820821
821822
* IGNORE - Option B:
822823
```
@@ -826,6 +827,37 @@ make store-nunya-contract-local
826827
827828
* TODO: How to configure the Secret Gateway in Nunya Secret Contract?
828829
830+
#### Interact with Deployed Secret Contract via Deployed EVM Gateway to `submitRequestValue` <a id="submit-request-value"></a>
831+
832+
##### Localhost
833+
834+
* Record logs from Localsecret since the output is too long otherwise. Press CTRL+C to cancel when PostExecution occurs in Ethereum Local Network logs to indicate it has finished.
835+
```bash
836+
docker logs -f secretdev | tee ~/nunya/docker.log
837+
```
838+
839+
* Run end-to-end transaction
840+
841+
```bash
842+
cd ~/nunya
843+
nvm use
844+
yarn run secret:submitRequestValue
845+
```
846+
847+
* Note: `requestValue` alternative that goes via NunyaBusiness.sol is not working yet
848+
849+
* Copy Localsecret logs from remote machine to local.
850+
```bash
851+
REMOTE_IP=172.105.184.209
852+
SOURCE=/root/nunya/docker.log
853+
DESTINATION=/Users/luke/code/clones/github/svub/nunya
854+
scp -r root@$REMOTE_IP:$SOURCE $DESTINATION
855+
```
856+
857+
##### Testnet
858+
859+
TODO
860+
829861
#### Interact with Deployed Secret Contract via Deployed EVM Gateway to `requestValue` <a id="request-value"></a>
830862
831863
##### Localhost
@@ -891,7 +923,6 @@ make store-nunya-contract-local
891923
* ./logs_secret/requestValueLocalhostSecretLogs.log - Logs from Secret Network running locally
892924
* ./logs_secret/requestValueLocalhostEthereumLogs.log - Logs from Ethereum Network running locally
893925
894-
* TODO: Why isn't `fulfilledValueCallback` being called after `requestValue` gets called?
895926
2. Remix
896927
* If necessary, similar to how used with Testnet below
897928

0 commit comments

Comments
 (0)