• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Easier Smart Contracts with Lua (2 Viewers)

bernardo

Newcomer
Joined
Aug 15, 2022
Messages
3
Reaction score
1
Hello Lua Community!

I suspect that most of you do not know yet that it is possible to write smart contracts in Lua.

It is waaay easier than coding in Solidity (used in Ethereum, Polygon, Binance Smart Chain, etc.)

Most people think that smart contracts must use static typing, but it is just a myth. For currency amounts we use the bignum module, that is like a big integer. If we accidentally mix it with another type, like number, it just throws an error. So there is no "loss of precision". You just need to use the bignum when you need computation without losses.

The blockchain is named Aergo and it is used mainly in South Korea, with lots of companies using it, like Samsung, LG, Hyundai, Kia Motors... Also financial institutions (including one in UAE), Central bank and stock exchange. It is used mainly for corporate use, but DeFi is coming soon.

If you are interested in trying to create your smart contract (it can be a simple Hello World to start) you can check this video:


After you coded, you need to deploy it to the blockchain. Here is how to do it:


And the IDE is here: ide.aergo.io

We can use the test network (testnet) to learn and deploy "toy contracts". Also for testing real contracts before deploying it to the mainnet.

What do you think?

If you work in a company or institution that has interest in using blockchain, now you can be the badass blockchain developer! \o/
 

Eclecticlly

Newcomer
Joined
Sep 3, 2022
Messages
2
Reaction score
0
Location
Italy
Hello Lua Community!

I suspect that most of you do not know yet that it is possible to write smart contracts in Lua.

It is waaay easier than coding in Solidity (used in Ethereum, Polygon, Binance Smart Chain, etc.)

Most people think that smart contracts must use static typing, but it is just a myth. For currency amounts we use the bignum module, that is like a big integer. If we accidentally mix it with another type, like number, it just throws an error. So there is no "loss of precision". You just need to use the bignum when you need computation without losses.

The blockchain is named Aergo and it is used mainly in South Korea, with lots of companies using it, like Samsung, LG, Hyundai, Kia Motors... Also financial institutions (including one in UAE), Central bank and stock exchange. It is used mainly for corporate use, but DeFi is coming soon.

If you are interested in trying to create your smart contract (it can be a simple Hello World to start) you can check this video:


After you coded, you need to deploy it to the blockchain. Here is how to do it:


And the IDE is here: ide.aergo.io

We can use the test network (testnet) to learn and deploy "toy contracts". Also for testing real contracts before deploying it to the mainnet.

What do you think?

If you work in a company or institution that has interest in using blockchain, now you can be the badass blockchain developer! \o/

Why there's no SDK for Lua for develop the Dapps?
 

bernardo

Newcomer
Joined
Aug 15, 2022
Messages
3
Reaction score
1
Hello,
Sorry for the delay, I did not receive a notification about the post.
I suppose the main reason is demand. If there is enough demand for that, than it can be implemented.
Aergo is mainly used by companies, and so the support for languages fits their requests.
Currently there is support for Javascript, Python, Java, Swift, Ruby, PHP, C#, C++ & C.
Lua support can be implemented using grpc-lua or interfacing with libaergo
 
Top