Skip to content

Conversation

@diegoxter
Copy link
Contributor

No description provided.

If the smart contract is handling simple types of data, it would not be difficult to implement using only the basic APIs (getItem(), setItem()). However, complex data structures, data association, scope queries, filtering, sorting, and other features require the complexity and size of the data logic so developers can not focus on critical business logic. To solve this problem, Aergo supports SQL. This section details the types and usage of SQL APIs available in smart contracts

> Note: The db package is currently only available on private networks and publicly on [SQL TestNet](https://sqltestnet.aergoscan.io/).
> Note: The db package is currently only available on private networks and publicly on [SQL TestNet](https://sqltestnet.aergoscan.io/) (currently unavailable).
Copy link
Member

@kroggen kroggen Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: The db package is currently only available on private networks and publicly on AlphaNet (test network for private chains)

Aergo smart contract has `db` library that supports SQL features.

> Note: The db package is currently only available on private networks and publicly on [SQL TestNet](https://sqltestnet.aergoscan.io/).
> Note: The db package is currently only available on private networks and publicly on [SQL TestNet](https://sqltestnet.aergoscan.io/) (currently unavailable).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: The db package is currently only available on private networks and publicly on AlphaNet (test network for private chains)

All nodes producing blocks and syncing with the network need to use the same genesis block.

You can find an example genesis configuration json file `here <https://github.com/aergoio/aergo-docker/blob/1ad16cf7881d9ba8f2efc350cf609c9416e76666/node/testnet-genesis.json>`_.
You can find an example genesis configuration json file `here <https://github.com/aergoio/aergo-docker/blob/1ad16cf7881d9ba8f2efc350cf609c9416e76666/node/testnet-genesis.json>`_ (dead).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, the repo is private. This is why it works for us internally.
We will solve it. Thanks for sharing


Code is hexadecimal number.
Refer to `Subprotocols <subprotocols.html>`_ for detailed information of each subprotocol.
Refer to `Subprotocols <subprotocols.html>`_ (dead) for detailed information of each subprotocol.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that this line can be removed

@kroggen
Copy link
Member

kroggen commented Dec 6, 2024

The BlockProducedNotice appears twice. One of them can be removed.
Also the display is incorrect with the last one, probably because it lacks the lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants