Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
marine-js-version:
description: "@fluencelabs/marine-js version"
type: string
ref:
description: "git ref to checkout to"
type: string
default: "master"
outputs:
fluence-js-version:
description: "@fluencelabs/fluence version"
Expand All @@ -35,6 +39,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: fluencelabs/fluence-js
ref: ${{ inputs.ref }}

- uses: pnpm/action-setup@v2.2.4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
marine-js-version:
description: "@fluencelabs/marine-js version"
type: string
ref:
description: "git ref to checkout to"
type: string
default: "master"

env:
RUST_PEER_IMAGE: "${{ inputs.rust-peer-image }}"
Expand Down Expand Up @@ -59,6 +63,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: fluencelabs/fluence-js
ref: ${{ inputs.ref }}

- name: Pull rust-peer image
run: docker pull $RUST_PEER_IMAGE
Expand Down
2 changes: 1 addition & 1 deletion packages/fluence-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluencelabs/fluence",
"version": "0.27.1",
"version": "0.27.2",
"description": "TypeScript implementation of Fluence Peer",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
Expand Down
17 changes: 13 additions & 4 deletions packages/fluence-js/src/__test__/integration/avm.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ describe('Avm spec', () => {
(call %init_peer_id% ("peer" "timeout") [1000 arg] $result)
(call %init_peer_id% ("op" "identity") ["fast_result"] $result)
)
(call %init_peer_id% ("return" "return") [$result.$[0]])
(seq
(canon %init_peer_id% $result #result)
(call %init_peer_id% ("return" "return") [#result.$[0]])
)
)
)
`;
Expand Down Expand Up @@ -121,13 +124,19 @@ describe('Avm spec', () => {
(call "invalid_peer" ("op" "identity") ["never"] $ok_or_err)
)
(xor
(match $ok_or_err.$[0] "timeout_msg"
(ap "failed_with_timeout" $result)
(seq
(canon %init_peer_id% $ok_or_err #ok_or_err)
(match #ok_or_err.$[0] "timeout_msg"
(ap "failed_with_timeout" $result)
)
)
(ap "impossible happened" $result)
)
)
(call %init_peer_id% ("return" "return") [$result.$[0]])
(seq
(canon %init_peer_id% $result #result)
(call %init_peer_id% ("return" "return") [#result.$[0]])
)
)
)
`;
Expand Down