ickb / v1-core

iCKB scripts and utilities for interacting with them
MIT License
2 stars 0 forks source link

How can I use `ickbDeposit` to generate deposit transaction? #17

Open ashuralyk opened 3 hours ago

ashuralyk commented 3 hours ago

from the demostration of v1-interface, I saw you used a function named base to build a basic transaction, which contains some order melt instructions, and then use this generated basic transaction to call ickbDeposit function in this repo.

so, I guess this ickbDeposit interface only works with base 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 and lumos-utils repos to make integration, please give me some ideas.

ashuralyk commented 3 hours ago

until now, I feel like I should copy plenty of code from v1-interface to do integration, if you @phroi have a better plan which is more simple, please tell me.