Latest posts

Browse topics

How To Buy TerraM Token Using USDC coin and Phantom wallet

At the start of December 2022, I minted 10,000 TerraM tokens on the Solana blockchain, tokens are available for sale on the Raydium decentralized market. 

Update: A Step-by-Step Guide to Buying TerraM Tokens via Raydium AMM

In this article, I will provide a brief tutorial on how some, perhaps you, could buy TerraM tokens online. 

Things you will need: USDC coin, Phantom wallet, few SOLs as a network fee

First things first - TerraM coin runs on the Solana network and it is available to buy with USDC token at the moment. If you already have USDC coin, skip this part, if you don't have yet any USDC, keep reading.

For my cryptobuys I prefer Coinbase over other exchanges, but you should be able to buy USDC coins from any reputable centralized exchange. If you are a first-time buyer, I would recommend starting small, by purchasing some 10 USDC at the begging. 

Buying USDC coin on Coinbase

Once you have bought some amount of USDC on Coinbase or your exchange of choice you are ready to transfer them to Phantom wallet and then buy TerraM coin on Raydium

Again you could use some other wallet that supports Solana tokens, Phantom is quite popular. I would recommend installing the Phantom Chrome browser extension

You will be asked to create a password and store a secret key, just in case you ever lose access to your wallet.

Once your wallet is up, you are ready to deposit the USDC coin, you just bought at Coinbase or at the exchange of your choice

Phantom web wallet

From the exchange, you bought USDC send them to your Phantom wallet address

Once USDC have arrived at your phantom wallet you are almost there. 

Next stop, visit TerraM / USDC swap page on Raydium

Connecting Phantom Wallet to Raydium network

After you have installed Phantom wallet Google Chrome extension, click on the Connect Wallet button from the top right of the page, the rest should be automatically.

Now fill in how many USDC you are willing to spend for buying TerraM token (my recommendation would be test with small amount some 10 USDC before scalling up),

N.B. make sure you have a some SOL in your wallet to cover the network fee.

Swapping USDC for TerraM token on Raydium network

After the purchase, you should see TerraM tokens in your wallet. You can keep in your wallet and watch it grow over time ot you could help with providing TerraM coin liquidty and stake some TerraM. You also can sell the coin back to USDC whenever you want.

If you have any question, please drop a comment or contact me. 

How To update SPL Token Metadata

It has been recently since I minted the first 10,000 tokens for TerraM coin on the Solana network.

The launch has been very successful and the token is growing, so far we have been able to list it already on the Raydium pool, also tried to list it on CoinGeckom but due to the lack of trading activity got rejected so far. No regrets here, as the token is growing and eventually we will get there.

How To Create Custom Token on Solana Blockchain without Coding - Part 1

Besides that, TerraM token asks for some upkeeping work, for example, when minting the TerraM coin I didn't pay much attention to the ico style image, I uploaded for the ico, I just used some randomly generated ico from online ico generators.

Now, once the coin started growing I was not quite happy with the visual presentation and decided it would be good to update the custom image and also change the coin name.

So far I have found two working solutions (services) to update the SPL token:

  • https://sol-tools.tonyboyle.io/token-tools/edit-token
  • https://app.strataprotocol.com/edit-metadata

Updating from the Google Chrome browser is quite easy, make sure your SOL wallet is connected (I use Phantom), copy the mint address and you are good. These solutions will help to update SPL token image and Token name.

After updates, Solscan.io and the rest of the services picked up the updated info almost instantly. I'm still facing issue to show actual coin price inside Phantom wallet, but it seems to solve this issue, the coin have to be listed on CoinGecko.

Interested to learn more about the token? Visit the official TerraM token page

How To Fix Drupal AMP Error with Google Analytics

AMP for Drupal is a really powerful module, that can give your Drupal-powered website an impressive website traffic boost. But it will only work if there are no AMP-related issues - like Custom Javascript error from the Google Analytics module. 

I have been using Drupal AMP since 2016 or 2017 but stopped using it after upgrading my Drupal version from 7 to 9, as there were some bugs with the Drupal AMP module - it just didn't work.  

At the end of 2022, I decided to fix it and get AMP back for Drupal - it took me several days and nights, a lot of clean state servers, MySQL dumps.. but in the end, turned out just a line of code in amp module. Victory, I thought, when noticed ?amp pages working out. Just a few days later I noticed that despite ?amp being up and running it is far from perfect - there was zillions of errors and AMP was just not valid.

turned out I didn't have enabled (or built) an AMP theme. Which I did. Then fixed some minor things with the Advanced Aggregation Module, till was left with the last error standing - custom Javascript from Google.

After several hours of research, I found a working solution (Drupal 9.4 and AMP 8.3.50) 

it involved enabling the Bartik AMP theme and adding the following code to the bartik_amp.theme file

function my_theme_preprocess_html(&$variables) {
  foreach ($variables['page']['#attached']['html_head'] as $key => $value) {
    // Remove any other scripts that are being attached to the page.
    if ($value[0]['#tag'] == 'script' && (!isset($value[0]['#attributes']['type']) || $value[0]['#attributes']['type'] != 'application/ld+json')) {
      unset($variables['page']['#attached']['html_head'][$key]);
    }
  }
}

Warning: this is not part of bartik_amp, hence the "my_theme" prefix in the code sample; it must be adapted to your particular theme machine name. Also, if using the snippet for adjusting AMP Toolbar classes (see below), make sure to put it all under a single "my_theme_preprocess_html" function.

here is a full working bartik_amp.theme file

<?php

 

use Drupal\Core\Template\Attribute;

 

/**

* Implements hook_library_info_alter().

*/

function bartik_amp_library_info_alter(&$libraries, $extension) {

  // This library persists even if listed in libraries-override.

  // This code will pull it out for good.

  if ($extension == 'core' && isset($libraries['html5shiv'])) {

    unset($libraries['html5shiv']);

  }

 

}

 

/**

* Implements hook_preprocess_html().

*

* Reset toolbar classes and add sidebar toggle button to the header.

*/

function bartik_amp_preprocess_html(&$variables) {

foreach ($variables['page']['#attached']['html_head'] as $key => $value) {

    // Remove any other scripts that are being attached to the page.

    if ($value[0]['#tag'] == 'script' && (!isset($value[0]['#attributes']['type']) || $value[0]['#attributes']['type'] != 'application/ld+json')) {

      unset($variables['page']['#attached']['html_head'][$key]);

    }

  }

 

// AMP Toolbar wrapped the toolbar in amp-sidebar, which is always

  // vertical. Change the page classes to reflect that.

  // @see toolbar.html.twig.

  if (!empty($variables['page_top']['toolbar'])) {

    if (!empty($variables['attributes']) && $variables['attributes'] instanceof Attribute) {

      $variables['attributes']->removeClass('toolbar-horizontal');

      $variables['attributes']->addClass('toolbar-vertical');

    }

    else {

      $variables['attributes'] = new Attribute($variables['attributes']);

      $variables['attributes']->addClass(['toolbar-tray-open', 'toolbar-vertical', 'toolbar-fixed', 'toolbar-loading']);

    }

}

}

 

Hope it helps!

Life and Business in Georgia

Life and Business in Georgia - or another awesome weekend has been recorded - Together with a business partner from Canada exploring construction sites in Tbilisi, building relationships while hiking around Turtle lake, and sipping hot wine with Guliani.

Fun with Santa and his socks. Thumbs up and enjoy!

How To Buy (or not) Real Estate in Tbilisi - Samgori EcoCity December 2022 Update

At the start of December 2022, Uday, a business partner from Canada arrived in Tbilisi, and we went together to the Meti office in Saburtalo to meet with the developers and sign the documents on-site (we already had them electronically). After the meeting with the developers, we went to the actual construction site in Samgori.

I have been eyeing real estate in Georgia since I originally come up with my idea - buying black frame projects in Batumi, I wanted to raise the capital using a token (and I'm still open) until at the start of September Uday contacted me and showed his keen interest investing in more classical FIAT way.

After some longer e-mail correspondence, one Zoom call, and several meetings with contractors both in Batumi and Tbilisi, we narrowed down to one apartment at the Samgori EcoCity project by Meti.

Timeline

Uday checked at the Marriott Courtyard hotel next to Liberty Square and followed my suggestion for opening a bank account at the Bank of Georgia, it turned out his international phone number is not working for receiving sms from the Bank of Georgia, and I kindly provided one of my numbers. That's what business partners are for, right?

It was Friday morning and after a cup of cappuccino at the hotel's lobby, we took a taxi (or a cab, as Uday likes to call it) and headed to Meti Office in Saburtalo. 

We arrived a little bit early and spent some time talking about projects in Tbilisi, Batumi, Antalya (Turkey), and more.

At one point I realized that we are actually not buying an apartment in an already built house, but we might be buying a new, built from the ground. The wording "shall be built" in a contract confused me

We decided to check this first with the developer. 

Turned out to be true. I was falsely believing that we are buying in an almost finished 12-storey apartment building. Or I was left to believe during the previous times when meeting with Meti. Instead, we are buying a 47m2 apartment in a planned 15-storey building that is still going to be built from the ground. 

I truly understood this is my fault, for not checking out everything properly. I said to Uday - look, you have come here to Tbilisi from the other part of the globe just because you believed my word and I have let you down. 

The business partner felt disappointed for about 5 minutes, but then we started to work out our options, decided to visit the actual construction site, talk to contractors and then decide.

So we took a cab again and traveled from Saburtalo to Samgori.

Here we met with a contractor from Meti who let us into the actual planned construction site and we had a chance to see, the foundation laid about 1 year ago.

Samgori EcoCity construction site in Tbilisi December 2022

Also, we learned, the developer is having some issues with the construction permit (general redesign plan?), and they are waiting for the issue to be cleared in about a month (January 2023) - it didn't sound encouraging, but also didn't sound false and didn't give us a reason to mistrust this project, just to be more cautious.

Navtlugi farmers market next to the Samgori EcoCity

We negotiated our 20% downpayment down to 0% (that increased our price from $580 to $600 per sqm), but at least we spread the risk by not going all in today to find out that we are in trouble just a month later. Smaller monthly payments now will give us more confidence in the future, if some delays happen  (the chance that there will be delays still is high)

Construction site started in a neighboring land plot

When talking with Uday, we concluded that this deal is still very good, despite seems will take us at least 36 months to exit with a profit (the developer insists on 20).

Anyhow, more confidence will be gained on the day the developer will get a construction permit or when we will see the construction works started. 

In case, the construction project starts soon, we except it to actually be finished by the end of 2025, but we also are concidering early exit strategies, as we believe that the buying price will increase from $600 to $700 per sqm on the day when the actuall construction works will start. As we have secured agreement with a payment of $600 (and developer also agreed to lower it to $580 on the day when we will make increased 20% downpayment.)

i'm confident in the project, the developers seems reputable, but I also acknoweledge, delays might happen and 36 month term might turn out quite optimistic.

Interested to learn more or invest with us? See: Ecocity Samgori, Tbilisi


Samgori EcoCity updates: This followed my October 2022 scouting article. For the next chapter, see my January 2023 EcoCity Samgori update.

Interested in property or life in Georgia? If you have a serious question, partnership idea or something specific you would like to discuss, you can contact me here.