-
Notifications
You must be signed in to change notification settings - Fork 0
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
How can I use ickbDeposit
to generate deposit transaction?
#17
Comments
until now, I feel like I should copy plenty of code from |
Hey @ashuralyk, thank you for publicly expressing your interest in iCKB as part of the integration of iCKB in NervDAO, I personally appreciate a lot!! 🙏
Yes, you can find examples of Base function in all iCKB based scripts: v1-interface, v1-bot, v1-tester... The idea is simple, Base is a function to create the base tx, this tx consumes:
A base tx with all user cells accounted for allow to account for CKB and iCKB xUDT balances easily. |
I'd like to point out one small but crucial detail about
Given how easy is to misuse, I also added a comment to the code: 55755e9 |
Not really. Base is a nice abstraction, but
Not really. Then again, you cannot disregard the underlying Lumos foundation and hope that it works. |
That's how they are supposed to be used, then again I clearly warn in the README of both lumos-utils and v1-core:
So watch out: the libraries are not stable and they will break in the future, possibly for switching to CCC.
Sure, here three alternative ideas:
Sure sure, you can copy as much as you like, feel free to credit (or not, it's ok 🤣) Just watch out, I'll not edit your copies: you are forking, you keep them up to date with the undocumented breaking changes... Love & Peace, Phroi |
from the demostration of
v1-interface
, I saw you used a function namedbase
to build a basic transaction, which contains some order melt instructions, and then use this generated basic transaction to callickbDeposit
function in this repo.so, I guess this
ickbDeposit
interface only works withbase
function together, which means this function isn't independent for integration of other apps, is that right?note: https://github.com/ickb/v1-interface/blob/master/src/transaction.ts#L38
need help: I only decide to use
v1-core
andlumos-utils
repos to make integration, please give me some ideas.The text was updated successfully, but these errors were encountered: