Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update test data script for new datum format #75

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

agaffney
Copy link
Contributor

Fixes #74

@agaffney
Copy link
Contributor Author

$ MAESTRO_API_KEY=xxxxxx scripts/create-test-data/create-test-data -D foo.cardano -r foo.cardano,ns,ns1.foo.cardano -r foo.cardano,ns,ns2.foo.cardano -r ns1.foo.cardano,a,172.28.0.2 -r ns2.foo.cardano,123,a,1.2.3.4 -s addr_test1qrldjljcfh6e8cg4z5uu6l7s7dccx5kyk0vppny2yldxqd0uts9m9rn7fhqnm3eluw8m8ytuupw4sjlrcnp2jlc2g8qsn9p8p0 -d addr_test1wpf6lxntd3dztphew0m5dagrs7ptjcg9g6vgjyazt7mw44gdnwq0h
Building transaction...

TX (unsigned):

{"type":"Tx BabbageEra","description":"unsigned","cborHex":"84a4008182582045f25132d66c56e2ce075631e5ec06065a132ed2f2d7be03ca00ab21bee8a38f010182a300581d7053af9a6b6c5a2586f973f746f5038782b9610546988913a25fb6ead5011a001e8480028201d8185899d87a9f4b666f6f2e63617264616e6f9fd87a9f4b666f6f2e63617264616e6f426e734f6e73312e666f6f2e63617264616e6fffd87a9f4b666f6f2e63617264616e6f426e734f6e73322e666f6f2e63617264616e6fffd87a9f4f6e73312e666f6f2e63617264616e6f41614a3137322e32382e302e32ffd87a9f4f6e73322e666f6f2e63617264616e6f187b416147312e322e332e34ffffff82583900fed97e584df593e1151539cd7fd0f3718352c4b3d810cc8a27da6035fc5c0bb28e7e4dc13dc73fe38fb3917ce05d584be3c4c2a97f0a41c11a05cc0512021a0002a885031a02a651fba0f5f6"}

NOTE: you must import this transaction into a wallet such as Eternl to sign and submit it

This produces a datum that looks like:

d8 7a                                            # tag(122)
   9f                                            #   array(*)
      4b                                         #     bytes(11)
         666f6f2e63617264616e6f                  #       "foo.cardano"
      9f                                         #     array(*)
         d8 7a                                   #       tag(122)
            9f                                   #         array(*)
               4b                                #           bytes(11)
                  666f6f2e63617264616e6f         #             "foo.cardano"
               42                                #           bytes(2)
                  6e73                           #             "ns"
               4f                                #           bytes(15)
                  6e73312e666f6f2e63617264616e6f #             "ns1.foo.cardano"
               ff                                #           break
         d8 7a                                   #       tag(122)
            9f                                   #         array(*)
               4b                                #           bytes(11)
                  666f6f2e63617264616e6f         #             "foo.cardano"
               42                                #           bytes(2)
                  6e73                           #             "ns"
               4f                                #           bytes(15)
                  6e73322e666f6f2e63617264616e6f #             "ns2.foo.cardano"
               ff                                #           break
         d8 7a                                   #       tag(122)
            9f                                   #         array(*)
               4f                                #           bytes(15)
                  6e73312e666f6f2e63617264616e6f #             "ns1.foo.cardano"
               41                                #           bytes(1)
                  61                             #             "a"
               4a                                #           bytes(10)
                  3137322e32382e302e32           #             "172.28.0.2"
               ff                                #           break
         d8 7a                                   #       tag(122)
            9f                                   #         array(*)
               4f                                #           bytes(15)
                  6e73322e666f6f2e63617264616e6f #             "ns2.foo.cardano"
               18 7b                             #           unsigned(123)
               41                                #           bytes(1)
                  61                             #             "a"
               47                                #           bytes(7)
                  312e322e332e34                 #             "1.2.3.4"
               ff                                #           break
         ff                                      #       break
      ff                                         #     break

@agaffney agaffney merged commit 53dcc35 into main Nov 16, 2023
6 checks passed
@agaffney agaffney deleted the feat/datum-format-update branch November 16, 2023 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update datum format in test scripts
2 participants