-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fluence service and spell for joining events from checkpointer
Adds a fluence service and the related aqua spell to call it periodically. Additionally adds initial CI functionality and basic tests around it.
- Loading branch information
Showing
40 changed files
with
7,490 additions
and
1,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.it | ||
target | ||
.github | ||
.vscode | ||
ci-scripts | ||
.fluence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
aqua Deals declares * | ||
|
||
data Deal: | ||
dealId: string | ||
chainNetwork: string | ||
chainNetworkId: u64 | ||
dealIdOriginal: string | ||
definition: string | ||
timestamp: string | ||
|
||
data Deals: | ||
dealName: ?Deal | ||
|
||
func get() -> Deals: | ||
<- Deals( | ||
dealName=nil | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
aqua Hosts declares * | ||
|
||
func get() -> ?u8: | ||
<- nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
data ExecutionConfig: | ||
client_id: string | ||
public_key: string | ||
private_key: string | ||
ceramic_endpoint: string | ||
checkpointer_endpoint: string | ||
depin_stream_id: string | ||
proof_of_data_stream_id: string | ||
|
||
data SseResponse: | ||
error: string | ||
events: u32 | ||
|
||
service EventJoiner("event_joiner"): | ||
process_events(cfg: ExecutionConfig) -> SseResponse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# yaml-language-server: $schema=schemas/workers.json | ||
|
||
# A result of app deployment. This file is created automatically after successful deployment using `fluence workers deploy` command | ||
|
||
# Documentation: https://github.com/fluencelabs/cli/tree/main/docs/configs/workers.md | ||
|
||
version: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,6 @@ jobs: | |
run: make check-fmt | ||
- name: Check clippy | ||
run: make check-clippy | ||
- name: Check generated servers | ||
run: | | ||
make check-checkpointer | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -48,7 +45,10 @@ jobs: | |
cache-targets: false | ||
- uses: mozilla-actions/[email protected] | ||
- name: Run tests | ||
run: make test | ||
run: | | ||
make test | ||
env: | ||
DID_PRIVATE_KEY: ${{ secrets.DID_PRIVATE_KEY }} | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
.idea | ||
target | ||
.DS_Store | ||
/.fluence/secrets | ||
/.fluence/env.yaml | ||
/.fluence/schemas | ||
/.fluence/tmp | ||
**/node_modules | ||
**/target/ | ||
.repl_history | ||
/.vscode/settings.json | ||
/src/ts/src/aqua | ||
/src/js/src/aqua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"redhat.vscode-yaml", | ||
"FluenceLabs.aqua" | ||
] | ||
} |
Oops, something went wrong.