Commit Graph

19 Commits

Author SHA1 Message Date
ec437c6a45
Switch license to https://unlicense.org/ 2025-08-27 23:33:56 +03:00
4d0a219f07
change uuid to vm_id and app_id 2025-07-18 04:41:41 +03:00
bc09a128af
enable multiple offers per VM node 2025-07-06 21:50:05 +03:00
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
9bff01a440
add Apache-2.0 license 2025-06-14 03:40:13 +03:00
ff72ff6c1e
fixed pub_sub_node field error on re registration 2025-06-12 19:29:14 +05:30
9363750d5b
implemented redirect vm methods
Introduces new environment variable to set public endpoint of the brain
refactor redirect validation to db module
validating pubsub node on all vm
fixed some vm tests
2025-06-12 18:44:45 +05:30
5de6bd7cbf
WIP fixed redirect returning internal error
Refactors the `check_pubsub_node` function to return an `Option<Status>`
to indicate whether a redirect is needed.
2025-06-11 13:12:03 +05:30
786489fcbd
WIP on impl redirect use remote addr
using remote address on daemon registration as pubsub endpoint
validating pubsub node using client req remote address
remove fetching public ip
2025-06-10 21:02:54 +05:30
af7d4157ee
WIP on implementing redirect
implement public IP handling
Add pub_sub_node field to vm_node table in SQL schema
Refactor BRAIN_GRPC_ADDR to use LazyLock for dynamic IP assignment
Implement current_brain_endpoint function to retrieve public IP
2025-06-10 16:45:16 +05:30
479b9b6fa4 Implement refund on delete app and vm
fix authentication and refund on delete vm
refactor app daemon register to get delete app req
db function for delete app
sample environment variable
extensive tests for delete app and vm
refactor test utilities
2025-06-04 16:01:42 +00:00
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
5ccd432566
feat extend vm locked amount
extensive test for extend_vm feature
error handling for db transaction limits
mock data for test extend_vm
todo marking for refund tmp_locked
2025-05-27 21:03:53 +05:30
6a85acda9e
when node reconnects, send deleted VMs
previously, active VMs were sent
2025-05-20 01:45:31 +03:00
0fc9b8003a
adding payments for VM contracts 2025-05-18 16:08:18 +03:00
5c74962ac6
Enhance contract inspect
Allow operators to access app and VM contracts to inspect
2025-05-14 20:58:19 +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
079b4a02aa
Major code refactor
vm, app and general modules sperated from db and grpc
common module for share methods and types
2025-05-05 19:56:23 +05:30