Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nahsi committed Feb 15, 2024
1 parent 458860f commit 89acd61
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 43 deletions.
15 changes: 4 additions & 11 deletions .fluence/aqua/deals.aqua
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
aqua Deals declares *

data Deal:
definition: string
timestamp: string
dealIdOriginal: string
dealId: string
chainNetwork: string
chainNetworkId: u64
dealIdOriginal: string
definition: string
timestamp: string

data Deals:
defaultWorker: ?Deal

func get() -> Deals:
<- Deals(
defaultWorker=?[Deal(
definition="bafkreifncwgw7vgktf7j7qectsinrkhbhxjwfdvemmrshdsgi2ydelpvs4",
timestamp="2023-09-27T12:11:50.777Z",
dealIdOriginal="0x8d9C53312f0A4ad1Ba280ac197D371a33627E3bE",
dealId="8d9c53312f0a4ad1ba280ac197d371a33627e3be",
chainNetwork="testnet",
chainNetworkId=80001
)]
defaultWorker=nil
)
21 changes: 2 additions & 19 deletions .fluence/aqua/hosts.aqua
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
aqua Hosts declares *

data SpellLocation:
hostId: string
spellId: string
workerId: string

data Host:
definition: string
installationSpells: []SpellLocation
relayId: string
timestamp: string
dummyDealId: string

data Hosts:
defaultWorker: ?Host

func get() -> Hosts:
<- Hosts(
defaultWorker=nil
)
func get() -> ?u8:
<- nil
9 changes: 9 additions & 0 deletions .fluence/env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# yaml-language-server: $schema=schemas/env.json

# Defines user project preferences

# Documentation: https://github.com/fluencelabs/cli/tree/main/docs/configs/env.md

version: 0

fluenceEnv: stage
17 changes: 9 additions & 8 deletions .fluence/workers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

# Documentation: https://github.com/fluencelabs/cli/tree/main/docs/configs/workers.md

version: 0
version: 1

deals:
defaultWorker:
definition: "bafkreifncwgw7vgktf7j7qectsinrkhbhxjwfdvemmrshdsgi2ydelpvs4"
timestamp: "2023-09-27T12:11:50.777Z"
dealIdOriginal: "0x8d9C53312f0A4ad1Ba280ac197D371a33627E3bE"
dealId: "8d9c53312f0a4ad1ba280ac197d371a33627e3be"
chainNetwork: "testnet"
chainNetworkId: 8000
testnet:
defaultWorker:
definition: bafkreifncwgw7vgktf7j7qectsinrkhbhxjwfdvemmrshdsgi2ydelpvs4
timestamp: 2023-09-27T12:11:50.777Z
dealIdOriginal: "0x8d9C53312f0A4ad1Ba280ac197D371a33627E3bE"
dealId: 8d9c53312f0a4ad1ba280ac197d371a33627e3be
chainNetwork: testnet
chainNetworkId: 8000
14 changes: 9 additions & 5 deletions fluence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@

# Documentation: https://github.com/fluencelabs/fluence-cli/tree/main/docs/configs/fluence.md

version: 4
version: 5

aquaInputPath: src/aqua/main.aqua

workers:
defaultWorker:
services: [ eth_rpc ]

deals:
defaultWorker:
minWorkers: 3
targetWorkers: 3
services:
- eth_rpc

services:
eth_rpc:
get: wasm-modules

dependencies:
npm:
"@fluencelabs/aqua-lib": 0.9.0
"@fluencelabs/spell": 0.6.5
"@fluencelabs/registry": 0.9.4

0 comments on commit 89acd61

Please sign in to comment.