Commit Graph

29 Commits

Author SHA1 Message Date
ea7da9145a
enable multiple offers per VM node 2025-07-06 21:44:36 +03:00
2b6151d12f
Adds vcpus, memory_mib, and disk_mib fields to the AppNodeListResp 2025-06-26 18:28:40 +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
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
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
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
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
6a85acda9e
when node reconnects, send deleted VMs
previously, active VMs were sent
2025-05-20 01:45:31 +03:00
32b587c6c5
merged proto branch 2025-05-20 00:19:04 +03:00
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
0ccaa4840c
App nodes list
modified AppNode filtering proto
improve logging in signature checking
2025-05-13 13:10:42 +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
af18e4ee77
fixes and tests
admin keys from env
test operator inspection
test vm creation timeout
extensive tests on airdrop
refactor db module imports
fix register vm_node creates operator account in db
modularised test into its module and reusable method
fix test brain message add ssh port on mock daemon while new vm
improved error handling on tests unwraping only on top level method
test utils methods accepts refs to remove clone() on top level methods
2025-05-08 15:12:58 +05:30
28ff8dcd81
dotenv support
database credentials loading from .env
removed db cred from constants
updated tests accordingly
2025-05-02 20:05:22 +05:30
c424d07cc3
test with new keys
create new keys for each test
deleted static key
2025-04-28 20:28:11 +05:30
c74eab51ef
refactor test environment
removing unused gRPC server/client setup
simplifying database preparation
seperate server for normal call and grpc stream
2025-04-28 18:12:58 +05:30
77efe3ad63
basic test setup
modified migration
fake grpc server in tokio
fake db migration for testing
test utilities for signing grpc req
2025-04-28 16:57:14 +05:30
6f9cb36bea
added code to create new VM
compiles but not tested yet
2025-04-26 22:13:42 +03:00
f51e29fc4b
inspecting and listing contracts with node info 2025-04-23 04:12:35 +03:00
1cf091d801
get_balance working 2025-04-22 18:34:21 +03:00
bbdceb713e
added a lot of stuff that needs to get migrated 2025-04-21 02:51:48 +03:00
1074942e96
migration working 2025-04-20 03:41:48 +03:00