This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Cloud Ninja's profile picture

Smallet | Lightweight basic computer compatible wallet for krist!

Started by Cloud Ninja, 05 July 2016 - 09:48 PM
Cloud Ninja #1
Posted 05 July 2016 - 11:48 PM
SMALLET

Smallet is a lightweight, basic computer compatible (with graphics for advanced computers)

wallet for Krist. Currently, it allows name buying and lookups, as well as

basic transactions.



pastebin get vjEdFgrx smallet

It's self explanatory in the basic computer version, but click T or N on the advanced version to go to Transactions or Names

and click on the red "smallet" on the left to go home.


Enjoy!



Credits:

Smallet Code: Me

Help with API: Lemmmy

Krist HTTP API: the folks at http://krist.ceriat.net/
Edited on 05 July 2016 - 09:49 PM
Lemmmy #2
Posted 05 July 2016 - 11:52 PM
Looks awesome! One bug I noticed is going from T to N gives this error:



Edit: Looks like its because you're calling names() before it was defined - you can solve this by forward declaring the functions.
Edited on 05 July 2016 - 09:53 PM
Cloud Ninja #3
Posted 06 July 2016 - 12:00 AM
Looks awesome! One bug I noticed is going from T to N gives this error:



Edit: Looks like its because you're calling names() before it was defined - you can solve this by forward declaring the functions.
Oh, shoot. Fixed. Thanks lemmmy, not only for that but helping me with the API calls :D/>

Also, note to anybody wondering: I will be eventually (once i fix some of the calls in it and make it more efficient) releasing KLua, a lua implimentation of the HTTP Krist API.
Edited on 05 July 2016 - 10:02 PM