Open extra topbar

alexg (page 3)

I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

alexg

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 2,097 total)
  • Author
    Posts
  • in reply to: Is version 6 in progress? :) #11763
    alexg
    Keymaster

    Hello, hope you are well!

    Thank you for asking about the development, it’s going well!

    I actually have recently completed all development, and documentation is also finished. I have focused on writing more clear PHP code and more clear and simple English text at the same time. Hopefully the plugin and its features will be more accessible and less obscure, thanks to the improved documentation. I haven’t yet started improving the website texts but I plan to do this next.

    I still have quite a few tickets in my backlog, but it’s all integration testing tickets. I’m trying to anticipate as many problems as possible before the release. I had high hopes of improving correctness with better unit test coverage. But I am quickly gaining more practical experience on this. Contrary to what they teach you in university, unit tests are not all that useful, at least compared to integration tests. If you know how to code defensively, defects are rarely due to errors in the system, usually defects arise at the interface between systems (WordPress API, other plugins, themes, web browser, web server limitations, database peculiarities, etc).

    After every major software release, there’s an avalanche of defects that will surface, once more people test on different environments with other themes and plugins. I am trying to mitigate that effort and make the transition smooth for all of us, by formulating a rational release plan.

    So for now, I continue testing and preparing the necessary website changes for a few more weeks, then I’ll upload an RC1 version on the dashed-slug website. Then people can test again, likely leading to more Release Candidates. When a release candidate looks stable enough, I’ll upload it to wordpress.org and focus on the complaints that users will inevitably have.

    Once support requests die down (sometime in the summer, hopefully right in the middle of the bear market), I will focus on more improvements and will resume advertising and promotion campaigns.

    I know I said earlier that I would put my focus on ERC-20, and it might still make sense to do so. My gut feeling is that Eth2 will come out and scale and will displace all the “ethereum killers”. But with the recent Luna fiasco and upcoming regulation, interest in tokens will inevitably deflate somewhat. I believe Bitcoin emerges again as the king of crypto, and maybe I should focus first on interconnection with the Lightning Network before anything else.

    On the app side, I have ideas about a paywall extension. This would be similar to the *Tip the Author* extension: it would let you see a page or article only after you pay for it. It should be a simple extension to develop, but with many commercial applications.

    I realize that this transition has taken way too long, much longer than expected, and that I have become less responsive to feature requests. But as I work on this project, I am evolving my thinking in terms of what a business is, how to provide a good quality product, and the economics of it all. I’m now trying to take things slow and focus on quality and correctness. Let’s see how it goes.

    I know some of you are anxious to see wallets6, I have hyped it a lot lately, because I am excited with it as well.

    As always, it will be ready “soon”™ 🙂

    with regards

    in reply to: Tables in Mobile view #11683
    alexg
    Keymaster

    Thank you @Plug for sharing your success with YellowPencil. I have never tried it but it looks cool.


    @timah1993
    , if you decide to write CSS directly, instead of using a styling tool, just be mindful of rule specificity. If you are trying to do something specific with CSS, perhaps I can help with the rules.

    in reply to: Tables in Mobile view #11679
    alexg
    Keymaster

    Hello,

    Sorry about this. The UIs are not meant to be used on mobile, since I am not a mobile developer! The UIs simply output some markup and you, the web developer, can style them any way you want. The UIs have all the classes you need to apply CSS easily.

    The way I see it there are two ways to approach this problem:

    1. One is to reduce the font size and reduce the padding size, hoping that all the information will fit on the screen. The easiest way to control the text and padding sizes is via the Customizer, but you can also use CSS for this.

    2. The other way would be to display the balances first, then display the available balances in another UI. You can do this by using the shortcode twice, consecutively: First hide one column in the first UI, then hide the other column in the second UI.

    Here’s how you would hide the available balance from one UI and the total balance from the other UI:

    .dashed-slug-wallets.balance.balance-list:nth-child(odd) table .available_balance {
    	display: none;
    }
    .dashed-slug-wallets.balance.balance-list:nth-child(even) table .balance {
    	display: none;
    }

    You can always add your CSS rules in: “Customizer” -> “Additional CSS”.

    Of course, the UIs are overridable, in case you want to provide your own markup. The documentation discusses this in the section: “Frontend” -> “Template modifications” -> “Modifying markup”.

    Hope this helps.

    with regards

    in reply to: Default timeframe for exchange chart #11678
    alexg
    Keymaster

    No, this is what the chart looks like.

    in reply to: Some capabilities not listed in settings #11663
    alexg
    Keymaster

    Hello,

    The matrix shows the editable roles. Normally for an admin this should be all the roles.

    Are you logged in with a user that does not have the edit_users capability?

    alexg
    Keymaster

    Hello @timah1993,

    There’s quite a bit of JavaScript bound to these buttons (wp-contents/plugins/wallets-exchange/assets/scripts/wallets-exchange-admin.js. If the code didn’t load, or if it caused a plugin conflict, like @plug suggested, this should be visible in the browser’s developer tools.

    Please open the JavaScript console (F12), go to the console tab, and refresh the page. There should be several warnings, but are there any errors? Can you show me the errors if any?

    with regards

    in reply to: Default timeframe for exchange chart #11643
    alexg
    Keymaster

    An alternative to the above would be to simply add the following in your child theme’s functions.php:

    add_action(
    	'wp_enqueue_scripts',
    	function() {
    
    		wp_add_inline_script(
    			'wallets-exchange',
    			<<<JS
    
    				jQuery('html').on(
    					'wallets_ready',
    					function( event, coins, nonces ) {
    						wp.wallets.viewModels.walletsExchangeChart.selectedTimeframe('1d');
    					}
    				);
    JS
    		);
    	}
    );

    The JS characters must be the first characters on the line, because they close a heredoc string.

    in reply to: Default timeframe for exchange chart #11641
    alexg
    Keymaster

    I forgot to mention, delete the minified JavaScript file wallets-exchange-{version}.min.js so that the plugin will fall back to the code you’ve edited.

    in reply to: Default timeframe for exchange chart #11640
    alexg
    Keymaster

    Hello,

    It is unfortunately not currently possible to change the defaults. (This will be easy in the upcoming release, since the JavaScript code attached to the views will be overridable.)

    For now, you can go ahead and edit the file wp-content/plugins/wallets-exchange/assets/scripts/wallets-exchange.js on line 1260:

    self.selectedTimeframe = ko.observable( '30m' );

    It’s safe to edit this file because I don’t expect to be releasing any more exchange versions before the wallets6 release.

    The chart already uses the TradingView library.

    with regards

    in reply to: hi, it seems i cant download the plugins again? #11624
    alexg
    Keymaster

    Hello,

    According to my records, your membership was expired because the latest payment was more than one month ago. If you want to discuss this further, please contact me over email, I’ll be able to show you the details I have. If you believe there has been a mistake we can sort it out.

    with regards

    in reply to: Crowdfunding #11611
    alexg
    Keymaster

    Hello,

    I would first look to see if there is an existing solution for this. If not, I’d develop one myself.

    with regards

    in reply to: Incorrect amount display 10 instead 1000 #11589
    alexg
    Keymaster

    Great to hear that you fixed it!

    in reply to: Giving coins to users programmatically #11579
    alexg
    Keymaster

    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

    in reply to: Giving coins to users programmatically #11568
    alexg
    Keymaster

    Hello,

    Glad you figured the issue out.

    The admin’s user_id is not 0, it should be 1 by default.

    I think WordPress starts counting from 1 because in MySQL, the primary keys for users, posts, etc are defined as AUTO_INCREMENT columns, and AUTO_INCREMENT columns start from 1.

    In fact, if you are certain that the user_id of the admin is 0, you may be facing bigger problems, caused by improperly exporting and reimporting a database via phpMyAdmin. I have blogged about it here. Are you able to create new posts? If not, you may be ecountering this issue.

    Hope this helps.

    in reply to: adding custom token #11553
    alexg
    Keymaster

    Yes, the other coin adapters are for connecting to full node wallets. Don’t use the block.io adapter, the CoinPayments adapter is better in every way. I have added a warning about this on the website. You can see the complete list of existing coin adapters.

    Coin adapters will soon be retired in favor of wallet adapters: Since I started the plugin it has become apparent that currencies need to be decoupled from wallets. Therefore, with the upcoming release, new wallet adapters will replace the old coin adapters. See attached image to get an idea of what I’m building.

    There will be wallet adapters for CoinPayments, Bitcoin-like wallets, Monero-like wallets, and TurtleCoin-like wallets. The fiat coin adapter will be merged into the parent plugin.

    The code and documentation will be a lot better, so hopefully independent developers will choose to build wallet adapters for other types of wallets. I, for one, will focus my efforts on Ethereum and ERC-20, which should then be easily translatable to BSC chain and friends. The difficulty (and the reason I’m not currently using the Infura API as many have suggested) is that funds must be collected in one wallet, to allow for off-chain transactions.

    Other plugins have connectivity with remote custodial services, or with non-custodial wallets. I plan to expand this plugin towards admins who are interested in a custodial solution, backed with their own full node wallet. But the CoinPayments platform will continue to be supported, as it has been a success and many people use it.

    In wallets6 you will be able to define custom tokens via the WordPress admin screens, just like any other currency. Custom tokens will simply be currencies that are not connected to a wallet (i.e. no wallet adapter).

    Hope this makes sense. Let me know if you have more questions about adapters. But please open a new thread if your new questions are not related to your original question about creating custom tokens.

    with regards

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 31 through 45 (of 2,097 total)