Skip to content
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
11 changes: 11 additions & 0 deletions .github/workflows/synapse-sdk-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Ensure the label exists before creating or finding an issue.
gh label create "synapse-sdk-update" \
--description "Synapse SDK update failures" \
--color "0366d6" --force

# Comment on existing open issue if one exists; otherwise create a new one
EXISTING=$(gh issue list --label "synapse-sdk-update" --state open --json number --jq '.[0].number')
if [ -n "$EXISTING" ]; then
Expand All @@ -115,3 +120,9 @@ jobs:
--label "synapse-sdk-update,bug" \
--body-file issue-body.md
fi

- name: Fail workflow on build failure
if: ${{ always() && steps.build.outcome == 'failure' }}
run: |
echo "::error::Build failed with the latest Synapse SDK. See the Build project step for details."
exit 1
113 changes: 40 additions & 73 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@filecoin-foundation/ui-filecoin": "^0.9.0",
"@filoz/synapse-sdk": "^1.1.1",
"@filoz/synapse-sdk": "^2.0.2",
"@headlessui/react": "^2.2.9",
"@phosphor-icons/react": "^2.1.10",
"@radix-ui/react-accordion": "^1.2.12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const synapse = Synapse.create({
const data = new TextEncoder().encode(\`🚀 Welcome to decentralized storage on Filecoin Onchain Cloud! Onchain Proof of Data Possession ensures your data is always verifiable.\`)

const { transaction } = await synapse.storage.prepare({
dataSize: BigInt(data.length),
pieceSizes: [BigInt(data.byteLength)],
})

if (transaction) {
Expand Down
Loading