aleeusgr / gimbalabs-dandelion-pbl

Test Driven Development of dApps on Cardano
MIT License
1 stars 1 forks source link

Complete user test #4

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago

@GabriIT offered to do a project together, complete 303

aleeusgr commented 1 year ago

From @GabriIT:

I can send to your wallet addr the contribution token I created 'coDSET', hex: 636f44534554 The bounty token I created is DSET , hex: 44534554 and related JSON files and bounty-treasury and bounty-escrow as well. The issuer addr: `addr_test1qqmqsq0jzrql36lte2de9jw5z2pds6dlt44elne0yntdm7hwnaj3wn65mq5yhv4yd9h800aar7lf8g0u3grkpnxlxu2qnvzyfw` -Bounty Escrow Contract address: `addr_test1wz5y9gq4zemhm8lp343vguz487ful45zdedls9k7fhg6z9qm6h9hr` -Bounty Treasury Contract address: `addr_test1wrq28lmgudwkwvpvj5uszepttsttk5q99tvxwrdfn8agsggrfa02a` ~~Mint an NFT or a token which it will work as State NFT, obtain its TokenName and CurrencySymbol and inside Game.GameComplier.hs file replace nftCurrencySymbol and nftTokenName values with the values you've obtained.~~

To complete:

  1. unit test cardano-node and cardano-cli

  2. Create a wallet, obtain its address;

  3. Recieve Kontributor token

    Hi Alex, I just sent to you contribution token coDSET with Tx 4f8962fc94718bd516e22d8ad72bdd25f14ad62ecbdc3ad0159be4db7151e6dc

  4. build a transaction?? for the second point, I need to tell you them as follows: lovelace-> 6500000 (6.5 ADA); DSET: 10 (not tGimbals, because DSET is my token)

DSET token: 02aa7e9d83f43ad54ab2585900292db7280ec43410e7563dac934d17.44534554

coDSET token: https://preprod.cardanoscan.io/token/9a14207c494a43dc2d30eebda683b1dcf2c8b42c48dc6195c4b5e948.636f44534554

aleeusgr commented 1 year ago
Command failed: transaction build Error: /home/alex/workshop/gimbalabs/ppbl-course-02/project-303/bounty-treasury-escrow/output/example-bounty-treasury-new-preprod.plutus: /home/alex/workshop/gimbalabs/ppbl-course-02/project-303/bounty-treasury-escrow/output/example-bounty-treasury-new-preprod.plutus: openBinaryFile: does not exist (No such file or directory) Invalid argument `1'
aleeusgr commented 1 year ago

query-utxo.sh treasury

07:55 $ . query-utxo.sh                             TxHash                                 TxIx        Amount
--------------------------------------------------------------------------------------
c09aed80866bd5387ff221e0ca8458ef953b573e39ca682cf83110ca73ebb355     2        1500000 lovelace + 9999990 02aa7e9d83f43ad54ab2585900292db7280ec43410e7563dac934d17.44534554 + TxOutDatumHash ScriptDataInBabbageEra "ae053a03ff5f03d9554e4e279fa2d8534c4be7b7549563010fa36868842f5467"
aleeusgr commented 1 year ago

query-utxo.sh myself

07:58 $ . query-utxo.sh 
                           TxHash                                 TxIx        Amount
--------------------------------------------------------------------------------------
4f8962fc94718bd516e22d8ad72bdd25f14ad62ecbdc3ad0159be4db7151e6dc     0        1146460 lovelace + 1 9a14207c494a43dc2d30eebda683b1dcf2c8b42c48dc6195c4b5e948.636f44534554 + TxOutDatumNone
db3fa2dcb77e1a935705fd85bf8a46ee796a3cec447b6343c62680eebea92f94     0        500000000 lovelace + TxOutDatumNone
aleeusgr commented 1 year ago

🛑

15:48 $ . tx-build-commit-to-bounty.sh                                                                                 

Invalid argument ` '                                                                                                   

Did you mean this?                                                                                                     
    -h                                                                                                                 

Usage: cardano-cli transaction build

https://github.com/aleeusgr/gimbalabs-dandelion-pbl/blob/298257da1930d96bd717be3c72856e7764077183/scripts/tx-build-commit-to-bounty.sh#L42-L46

✔ ~/workshop/gimbalabs/gimbalabs-dandelion-pbl/scripts [main|…2]                                                       
16:55 $ . tx-build-commit-to-bounty.sh                                                                                 
Contributor address:                                                                                                   
addr_test1vzk6s7tzh8aqc6qdyy9nzgyu6vcayhfv7ks20duqt7eellgsrlveg                                                        
+: command not found                                                                                                   
What goes into --tx-out                                                                                                
addr_test1wz5y9gq4zemhm8lp343vguz487ful45zdedls9k7fhg6z9qm6h9hr+6500000 + 1 9a14207c494a43dc2d30eebda683b1dcf2c8b42c48d
c6195c4b5e948.636f44534554 + 10 02aa7e9d83f43ad54ab2585900292db7280ec43410e7563dac934d17.44534554                      
option --tx-out:                                                                                                       
unexpected end of input                                                                                                
expecting white space, "+" or multi-asset value expression
aleeusgr commented 1 year ago

[SOLVED] https://github.com/aleeusgr/gimbalabs-dandelion-pbl/blob/5204ce3f5f723fafc15ddc8b2a37b0f833e47c60/scripts/tx-build-commit-to-bounty.sh#L18

I need copy of the compiled transaction to commit to bounty.

Is that true?

aleeusgr commented 1 year ago

The goal of the project for me is to commit to a transaction. I failed to debug my shell script before deadline.