dashed-slug.net › Forums › General discussion › Giving coins to users programmatically › Reply To: Giving coins to users programmatically
Sounds great.
If I understand correctly, you want to create a coin adapter. Coin adapters conenct wallets to the plugin.
A coin adapter is a PHP object that notifies the plugin about incoming deposits in the wallet, and sends withdrawal requests to the wallet.
Unfortunately, the current coin adapters needed to be refactored. In the upcoming wallets6 release, they will be replaced with wallet adapters, a similar but different class. So, if you create a coin adapter now, it won’t work in wallets6 without modification. But the change was necessary, in order to decouple wallets from currencies, and to make it easier to declare adapter settings.
TL;DR You can look at the provided coin adapters to see how to implement a concrete subclass of Dashed_Slug_Wallets_Coin_Adapter
. It will require some, but not much, modification to work for wallets6, the upcoming major release. I can help you with this, ask me any questions.
with regards