Commit Graph

22 Commits

Author SHA1 Message Date
c4c9508c5b
enable multiple offers per VM node 2025-07-06 19:23:35 +03:00
871e26edc2
fix app price calculation
fix overflow when calculating account escrow
calculates app price per minute based on resource usage
2025-07-01 19:21:26 +05:30
2b6151d12f
Adds vcpus, memory_mib, and disk_mib fields to the AppNodeListResp 2025-06-26 18:28:40 +05:30
547246629b
cargo fmt 2025-06-25 18:57:01 +05:30
46ba0961bf
Refactor app engine resource units
updated app proto file to mib
fixed all tests and migrations
removed unused price calculation functions
modified mock data
2025-06-25 18:51:22 +05:30
1ca66f3bc3
switch from LP to credits
As part of open sourcing the software product, we should consider that
loyalty points are not the best language. Switching to "credits" makes
sense from a lot of points of view.

At the same time, this change allows an achitectural change towards
slots. Slots allow daemon resources to get booked based on the HW ratio
configured in the daemon config.
2025-06-25 03:51:02 +03:00
8d1721ca11
Minor bug fixes
Updates ActiveApp with IP and fixes hratls_pubkey mapping
reduced rustls logging to debug
2025-06-17 15:23:56 +05:30
39ee3cd84b
Merge bug-fix: Fixes on app engine
fixed app node filter query
updated proto change mb to gb on app node resource
tests for get one node for app and vm
tests for node resource updates on vm and app
fix test for app node filtering implemented ip based node filtering
mocking random public ip for node
local brain binary for test without tls
refactor test grpc services to use grpc only stream
2025-06-16 18:39:07 +05:30
7b1bb98074
Update app proto
update storage unit to GB in AppNodeResources and related files
2025-06-16 17:46:29 +05:30
9bff01a440
add Apache-2.0 license 2025-06-14 03:40:13 +03:00
d398198f63
fixes app node resource update
tests for node resource updates on vm and app
fix test for app node filtering implemented ip based node filtering
mocking random public ip for node
local brain binary for test without tls
refactor test grpc services to use grpc only stream
2025-06-09 18:29:00 +05:30
d1921eb838
fix get one app node
fixed app node filter query
updated proto change mb to gb on app node resource
tests for get one node for app and vm
2025-06-06 16:44:17 +05:30
e59a3c8fd8 Implement new app contract balance locking
minimum locking balance on deployment
locking balance on app deployment
refunding locked nano while error on daemon
returning appropreate error on app deployment
fixed some typos on logging
new timeout constants for daemon respose
minor change in schema and proto
extensive tests on app deployments
fixed some vm tests
2025-06-04 16:01:42 +00:00
0ec1b61d8b
Admin and opertor features (#3)
all admin features listing accounts and contracts with access controll and test
ban a user by operator
tests for all features
mock data for test

Reviewed-on: #3
Co-authored-by: Noor <noormohammedb@protonmail.com>
Co-committed-by: Noor <noormohammedb@protonmail.com>
Signed-off-by: Noor <noormohammedb@protonmail.com>
2025-05-26 03:17:27 +05:30
d1e85ec03e
Kick Contract (#2)
Production grade kick contract code for financial transaction tested for both vm and app
modified schema to include node in kick, default time for deleted_app and removed unwanted fields
app data migration for testing kick contract for active_app
fixed some tests
register operator

Reviewed-on: #2
Co-authored-by: Noor <noormohammedb@protonmail.com>
Co-committed-by: Noor <noormohammedb@protonmail.com>
Signed-off-by: Noor <noormohammedb@protonmail.com>
2025-05-26 03:17:00 +05:30
8caa55e325
App deployment
rename rpc method app deploy to new_app
improved is_banned_by_node checking app nodes also
moved common ErrorFromTable type to db module
2025-05-14 20:55:13 +05:30
6f40a9c770
App daemon message
activate new app in db
update node resource in db
2025-05-12 18:09:30 +05:30
f831e31d8f
App brain message
new app req and delete app message
schema for new_app_req
improve error handling on live select
2025-05-12 13:05:38 +05:30
7807e14167
WIP App: daemon register
enhance logging levels
2025-05-09 17:11:34 +05:30
71720ed4c5
refactor mapped port into common_proto 2025-05-09 16:14:48 +05:30
cd44d82463
VM updates and VM deletion 2025-05-08 02:59:27 +03:00
cf232f83b3
simplified folder structure 2025-05-06 01:00:42 +03:00