An open API service indexing awesome lists of open source software.

https://github.com/The-Extra-Project/Gadius-CLI

:fishing_pole_and_fish: Submission for ethglobal paris hackathon, building Swiss knife to operate compute over data for geospatial data usecases.
https://github.com/The-Extra-Project/Gadius-CLI

Last synced: about 1 year ago
JSON representation

:fishing_pole_and_fish: Submission for ethglobal paris hackathon, building Swiss knife to operate compute over data for geospatial data usecases.

Awesome Lists containing this project

README

          

# Gadius CLI: :fishing_pole_and_fish:

CLI for orchestrating jobs for geospatial analysis on onchain [COD](https://www.cod.cloud)) protocol network called [lilypad](). some other characterstics
- [ ] Able to build wallet, pay and instantiate the compute operations onchain.
- [ ] visualize the results of the surface reconstruction, citygml models etc.
## packages:

- CLI: This is the core package that implements the CLI for client in order to run the compute jobs as the wrapper on the lilypad-cli compute jobs or via the lilypad onchain adapter contracts.

- Contracts: This is WIP package that deploys and provides the api with the wrapper solidity contracts that interact directly with the lilypad onchain adapter contracts.

## Build instructions

### 1. From npm registry

> npm install @devextralabs/cli

Then setup the ENV variables in cli/.env file:
- RPC_URL (rpc url of the testnet)
- (private key of the testnet based account that has the testnet tokens)

### 2. (from source):

we have also provided integration with the localhosted bacalau testnet along w/ lilypad stack to test the scheduling and execution of the compute jobs. this will be done in 2 steps

1. clone the library with dependencies:
> git clone --recursive https://github.com/The-Extra-Project/Gadius-CLI

2. Go to the infra/lilypad folder in order to run the bash script that will setup the local [lilypad stack](https://github.com/bacalhau-project/lilypad/blob/main/CONTRIBUTING.md).

3. Copy the addresses of the deployed contract along w/ the RPC endpoint in the .env file

4. build the CLI package:
```
npx turbo build cli

```

5. run the command

```
cd apps/cli && npm run cli

```

### 3. API calls.

```bash

gadius create-cod-point -c / --coordinates --ipfs_shp_file

gadius create-cod-polygon -c --ipfs_shp_file --username

gadius create-job-cityGML -Y --obj_file -C

```