Commit Graph

17 Commits

Author SHA1 Message Date
9d88cd7cc0
enable multiple offers per VM node 2025-07-06 04:47:34 +03:00
2fe8d38156
Merge branch 'app_payment' into credits_app 2025-07-01 12:23:05 +05:30
30eef43aa5
Merge branch 'credits-v2' into credits_app
fixed all mb gb issues on migration and test
2025-06-30 23:32:01 +05:30
ddba7a4f95
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-27 15:47:42 +03:00
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
41b6b9b9d0
Minor fix on app node fields
Remove offline_minutes from AppNodeWithReports and update query condition for active app node filter
2025-06-23 15:46:49 +05:30
dcacd7b6b0
App contract payment
implement online/offline status updates
add timer to charge app contract
modified app_node in schema
2025-06-20 16:08:06 +05:30
9bff01a440
add Apache-2.0 license 2025-06-14 03:40:13 +03:00
6bd30bf87c
implemented pubsub node redirect to app methods
fix app_node schema
improved query handling with bind on check pubsub node
test for app pubsub node
2025-06-13 20:12:21 +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
965ac90319
adapt deploy script to the new brain infra 2025-06-01 03:16:55 +03: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
0fc9b8003a
adding payments for VM contracts 2025-05-18 16:08:18 +03:00