This commit is contained in:
2024-12-30 08:01:17 +01:00
parent dfafeecf2c
commit 7894f7d420
218 changed files with 8981 additions and 20 deletions

View File

@@ -0,0 +1,31 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.gridproxy
import freeflowuniverse.herolib.ui.console
mut gp_client := gridproxy.new(net:.test, cache:true)!
// get twin list
twins := gp_client.get_twins()!
console.print_debug('${twins}')
// get farm list
farms := gp_client.get_farms()!
console.print_debug('${farms}')
// get node list
nodes := gp_client.get_nodes()!
console.print_debug('${nodes}')
// get gateway list
gateways := gp_client.get_gateways()!
console.print_debug('${gateways}')
// get contract list
contracts := gp_client.get_contracts()!
console.print_debug('${contracts}')
// get grid stats
stats := gp_client.get_stats()!
console.print_debug('${stats}')