Alitas Bi-Monthly Report (2023.3.01–4.30)

Alitas
2 min readMay 23, 2023

Technology Development:

1. Every module is hidden behind a feature flag in the list of used features. Install was working by accident, as for each package, the requested feature set is a superset of all features requested by all packages in the workspace, and the console used to list features that install needs. But after a change in console, we had built breakages.

2. Make the load_program method of Bank public for use in ledger-tool, add an accessor method to get a reference to built-in programs of bank, add a parameter to Bank:load_program to control debugging_features.

3. AccountSharedData: made data_mut() private. This ensures that the inner vector is never handed out. This is in preparation of enforcing that the capacity of the inner vec never shrinks, which is required for direct mapping.

4. Borrowed Account: ensures that account capacity is never reduced. Accounts can be directly mapped in address space. Their capacity can’t be reduced mid-transaction, as that would create holes in vm address space that point to invalid host memory.

5. cpi: add test_update_caller_account_data_direct_mapping and fix the bug. We used to have a bug in zeroing data when shrinking accounts, where we zeroed the spare account capacity but not the realloc padding.

6. Before we were using BorrowedAccount::get_data_mut() to get the base pointer to the account data, then we were slicing the spare capacity from it. Callingget_data_muter() doesn’t work if an account has been closed, tho, since the current program doesn’t own the account anymore and therefore get_data_muter()errors out.

Community Development:

1. Shared information about Alitas tech through infographic tweets.

2. Released the January and February 2023 Monthly Report of Alitas Tech.

🌀Website: https://alitas.tech/#line
🌀Twitter: https://twitter.com/AlitasTech
🌀Telegram: https://t.me/Alitastech

--

--

Alitas

Alitas is the underlying infrastructure of a new generation of value networks Contract address on #BSC: 0x5Ca09af27b8a4F1D636380909087536BC7e2D94D