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

Script tx helios emu #90

Closed
wants to merge 110 commits into from
Closed
Show file tree
Hide file tree
Changes from 108 commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
0752e56
lley154
aleeusgr Apr 18, 2023
144aaa5
add some lucid code
aleeusgr Apr 19, 2023
55f6202
test
aleeusgr Apr 19, 2023
75241c3
disable old tests, emulate-something
aleeusgr Apr 19, 2023
b17cd0a
dummy test, lucid import
aleeusgr Apr 20, 2023
f87199d
interesting error message
aleeusgr Apr 20, 2023
1bed3c4
add code from first test
aleeusgr Apr 20, 2023
9f31435
pass
aleeusgr Apr 20, 2023
6ec5a28
refactoring
aleeusgr Apr 24, 2023
580a178
testing api
aleeusgr Apr 25, 2023
853d2f8
comment
aleeusgr Apr 25, 2023
15e5cbb
add lucid code for minting nfts
aleeusgr Apr 25, 2023
6b64083
comment
aleeusgr Apr 25, 2023
c1cf2dd
enable helios test
aleeusgr Apr 25, 2023
e26ca18
error, lucid
aleeusgr Apr 25, 2023
3896a4f
revert
aleeusgr Apr 25, 2023
dbfc7f1
test: instantiate an emulator. How do I use beforeEach?
aleeusgr Apr 26, 2023
94e72cf
failed experiments
aleeusgr Apr 26, 2023
899073a
restored logging
aleeusgr Apr 26, 2023
a2f6067
add minting transaction
aleeusgr Apr 26, 2023
082fbc5
ehm,
aleeusgr Apr 26, 2023
86bad02
clean up a bit
aleeusgr Apr 27, 2023
d7c6e0c
idea
aleeusgr Apr 27, 2023
eed95ab
minting -> function, added wait interval
aleeusgr Apr 27, 2023
e30451e
goal
aleeusgr Apr 29, 2023
00b980d
create new test
aleeusgr Apr 29, 2023
5c96dd1
renaming
aleeusgr Apr 29, 2023
a9aad72
empty test
aleeusgr Apr 29, 2023
d67fd87
refactoring
aleeusgr Apr 29, 2023
d903f2d
gc
aleeusgr Apr 29, 2023
f6fb78d
clean
aleeusgr Apr 30, 2023
28c169a
seed
aleeusgr Apr 30, 2023
5039821
error object Object to BigInt
aleeusgr Apr 30, 2023
af4ea65
transaction building function
aleeusgr Apr 30, 2023
7610ef5
lucid.newTx.payToContract fails to complete
aleeusgr Apr 30, 2023
c6f32e8
clean up
aleeusgr Apr 30, 2023
732deb5
naming
aleeusgr Apr 30, 2023
1977803
doesnt make sense
aleeusgr May 1, 2023
cfb967e
dont need seed anymore
aleeusgr May 1, 2023
5d724a4
if I move mintTx out to Describe, get same error.
aleeusgr May 1, 2023
880fdc6
Merge branch 'refactor' into interact-with-plutus-script
aleeusgr May 1, 2023
62eebd2
pass
aleeusgr May 1, 2023
a9204ad
rename
aleeusgr May 1, 2023
b457c9c
look up import statement
aleeusgr May 1, 2023
5637853
pass
aleeusgr May 1, 2023
7410e23
disable passing test
aleeusgr May 1, 2023
86ae0ed
stuck
aleeusgr May 1, 2023
3f0db1e
lint
aleeusgr May 1, 2023
a5e4644
got cborHex from Helios
aleeusgr May 1, 2023
eec74e5
my utxo changes, now I need to withdraw from the contract
aleeusgr May 1, 2023
4a5284e
why my balance does not change?
aleeusgr May 1, 2023
14839bd
I am not sure what happens, but checks are passing
aleeusgr May 1, 2023
857cac2
naming
aleeusgr May 1, 2023
5875f60
naming, sanity check
aleeusgr May 1, 2023
5040e99
changelog
aleeusgr May 1, 2023
5c7981e
sanity check
aleeusgr May 2, 2023
dc03844
development will become main
aleeusgr May 2, 2023
9c9dd69
reflect
aleeusgr May 2, 2023
e5e074f
moved helios source to separate file
aleeusgr May 2, 2023
c04ffc9
removed print on passing tests
aleeusgr May 2, 2023
72d50e4
naming
aleeusgr May 2, 2023
ce9bf4b
need to look up stuff
aleeusgr May 2, 2023
b0ece42
pass
aleeusgr May 3, 2023
f313804
added redeemUtxo to integration test
aleeusgr May 3, 2023
33b40af
remove extra prints
aleeusgr May 3, 2023
ea5af2b
renaming and reflection
aleeusgr May 3, 2023
a6d681c
new test
aleeusgr May 4, 2023
25b5d80
look at vesting first
aleeusgr May 4, 2023
cac21cb
rfl
aleeusgr May 4, 2023
c11f8de
deprecate
aleeusgr May 4, 2023
11f3f98
matching keyhash
aleeusgr May 4, 2023
497b1ca
naming
aleeusgr May 4, 2023
3d8527d
testing tx
aleeusgr May 4, 2023
cf95cdb
matching keyhash pass
aleeusgr May 4, 2023
27477b8
rfl
aleeusgr May 4, 2023
d4fc662
take a look at the vesting example, can I make it work?
aleeusgr May 5, 2023
0956dcd
explore vesting contract
aleeusgr May 5, 2023
1e0f597
redeem, comment
aleeusgr May 5, 2023
3625e83
I dunno what Im doing
aleeusgr May 5, 2023
0a91d68
datum -> lockADA, redeemer -> redeemUTXO
aleeusgr May 5, 2023
f52175a
helios syntax highlighting, comments
aleeusgr May 5, 2023
6df30bb
comments -> Issue
aleeusgr May 5, 2023
852bfa6
test code, get error
aleeusgr May 9, 2023
88d955f
clean up
aleeusgr May 9, 2023
3e2f07e
run the emulator
aleeusgr May 9, 2023
ab86c1c
redeem matching keyhash
aleeusgr May 9, 2023
b89ed85
Merge branch 'redeem-vesting' into development
aleeusgr May 9, 2023
a1ad118
what is my high level story?
aleeusgr May 9, 2023
fbe3083
redundant
aleeusgr May 9, 2023
bcac31c
review repo
aleeusgr May 9, 2023
f557588
Merge branch 'helios-emulator' into development
aleeusgr May 9, 2023
53f1473
condition on emulator creation
aleeusgr May 9, 2023
358e7f6
fixed overt error
aleeusgr May 9, 2023
44ef6c6
remove print
aleeusgr May 10, 2023
5778768
clean up
aleeusgr May 10, 2023
f044000
fix
aleeusgr May 10, 2023
2ec7495
fix print
aleeusgr May 10, 2023
a8114ec
compile always-succeeds
aleeusgr May 10, 2023
904f7af
get an error
aleeusgr May 10, 2023
0397a23
renaming
aleeusgr May 10, 2023
b7fbd44
sending ada to self
aleeusgr May 10, 2023
db8c36b
indent, remove prints, change l62 to validatorAddress
aleeusgr May 10, 2023
a55a720
renaming
aleeusgr May 10, 2023
0f7c8e2
need Redeemer!
aleeusgr May 10, 2023
f3e1689
need datum
aleeusgr May 10, 2023
5fc1f3a
added Datum
aleeusgr May 10, 2023
3935871
got Datum
aleeusgr May 10, 2023
b0bf502
unexpected error finalizing tx
aleeusgr May 10, 2023
5d70e6b
comments
aleeusgr May 10, 2023
549c0cb
finalize err
aleeusgr May 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
May 9th, Tuesday

Feel better, last couple of days were hard;
Merge helios emulator?

May 5, Friday
No wind. Eat, code, sleep, repeat. No life;


May 4, Thursday
Still apathy, but I am pressing forward;
two parts: the contract, and the transactions that serve it, are inseparable; at least for now.
For vesting contract, I have the script, but I need to find transactions; or translate them from the example.
`vesting/pages/index.tsx` imports components in its top,
- [ ] index.tsx: how are components used?
- [ ] loan:

I am pretty exhausted; apathy and sleepiness on Wednesday;
Now my goal is to buid without a manual. So I will start with building with a manual and see where it gets me.

May 2, Tuesday

https://github.com/aleeusgr/potential-robot/issues/70

May 1, Monday

I am unstuck big time; now I have a nicer repo;
9 tests are passing, out of which I know 5;

Now I take a break.

29 Apr, Sat

I am stuck with both refactoring and using Helios nft minter contract to mint an nft in Lucid emulator.
- [ ] look at tutorial Lucid smart contract interaction.

25 April

- [ ] refactor test
- [ ] add nft to borrwer wallet

13 April

rethink
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# potential-robot
[source](https://github.com/koralabs/handles-personalization/tree/master/simple_example_wth_tests)

An option smart contract;
lockAda (owner Pkh, nft, deadline);
claimAda (nft): not after deadline?


A vesting smart contract locks up assets for a specific period of time and then allows
the beneficiary to access them once a deadline has passed.

- [x] https://github.com/input-output-hk/plutus-apps/tree/main/plutus-example#plutus-example
- [x] https://docs.cardano.org/static/6c366861cbc7f599ed30a07969dd1cf1/e32d8/Plutus_arch.png
- [ ] file:///home/alex/Downloads/Cardano%20Smart%20Contracts%20with%20Helios.pdf
- [ ] p 59
- [ ] https://github.com/lley154/helios-examples/blob/main/vesting/pages/index.tsx

`npm install`
`npm test`

sources:
https://github.com/koralabs/handles-personalization/tree/master/simple_example_wth_tests
https://github.com/lley154/helios-examples/tree/main/vitest
Loading