github oraichain/orai v0.2-beta
Mainnet release

latest releases: v0.42.0, v0.42.0-rc2, v0.42.0-rc1...
3 years ago

Breaking changes:

Change the way to charge AI request fees

The previous version will charge an AI request in the next block. However, this makes it unclear and difficult to handle different requests at once. Instead, this version charges the request immediately after all the validation processes, before storing the request into the blockchain.

Add Oraivisor

Oraivisor which is derived from Cosmovisor is a helper tool that automatically upgrades Oraichain binaries when there is a software upgrade proposal. This allows nodes to upgrade their nodes without downtime, and they do not have to worry about all the commands that they need to do to upgrade the nodes.

Add user input filter and remove the reporter messages

We enhance the network security by adding filters for almost all the input messages coming from the users, from every character to only alphabet, numbers, underscore and space characters.

The reporter structure is no longer needed since we have used the exact validator wallet as a reporter to report messages back to the network.

Update random validator algorithm

The random validator algorithm has been optimized with a simpler method to collect a list of random validators for an AI Request

Bugs fixed

Add divisor by 0 and negative coins checks

When calculating fees and rewards, some code blocks contain possible divisor by 0 and negative coins errors. We have fixed them in this release.

Fix websocket client does not catch correct event attributes

Due to a bug that used a temporary variable to collect the event attributes from the node, the websocket client was unable to execute an AI request with correct values. We have changed it to a persistent variable instead.

Fix edit provider scripts

The edit provider data source, test case, and oracle script had invalid validation processes, which prevented users from editing a provider script. We have fixed them in this release.

Remove stop executing AI request when there's an error coming from the smart contracts

If a smart contract returns an error, the websocket client now does not stop the whole AI request processing.

Updates

Add querying minimum gas prices of a validator

Cosmos SDK and Tendermint do not support this feature, so we add a custom query to create our Oraichain gas station. Validators also can use it to check their current gas prices.

Don't miss a new orai release

NewReleases is sending notifications on new releases.