-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add synapse-core and change sdk to viem client #289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hugomrdias
wants to merge
16
commits into
master
Choose a base branch
from
hugomrdias/core
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b902a8a
docs: fix navigation
hugomrdias 20bc9f2
feat: synapse core initial commit with chains, errors and abis
hugomrdias 82322a3
feat: refactor Synapse SDK to use viem for client management and remo…
hugomrdias ba3a4f7
chore: update project configuration and dependencies
hugomrdias 534f5a1
chore: remove unnecessary shell configuration from CI workflow
hugomrdias ec20463
chore: update test commands in package.json for consistency
hugomrdias 3afa0a2
fix: patch viem to exposes private key and fix session key tests
hugomrdias 5c9df0f
chore: configure bash as the script shell for test execution in CI wo…
hugomrdias e74d1eb
chore: update test file matching patterns in package.json
hugomrdias 471494a
chore: update test command structure in package.json
hugomrdias afba7bf
chore: streamline test execution in CI workflow
hugomrdias a3b7a8b
chore: update test command quotes in package.json
hugomrdias 4a8773e
chore: update package.json dependencies for synapse-core and synapse-sdk
hugomrdias 496cc21
chore: setup core ci
hugomrdias 950ac9c
docs: update README.md to enhance SDK description
hugomrdias 16f7b12
chore: comment out test execution in CI workflow
hugomrdias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,3 +1,4 @@ | ||
{ | ||
"packages/synapse-sdk": "0.31.1" | ||
"packages/synapse-sdk": "0.31.1", | ||
"packages/synapse-core": "0.0.1" | ||
} |
This file contains hidden or 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 hidden or 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,41 @@ | ||
name: synapse-core | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "packages/synapse-core/**" | ||
- .github/workflows/synapse-core.yml | ||
pull_request: | ||
paths: | ||
- "packages/synapse-core/**" | ||
- .github/workflows/synapse-core.yml | ||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node: [lts/*, current] | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v5 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: latest | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v5 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Playwright for Windows | ||
if: matrix.os == 'windows-latest' | ||
run: pnpx playwright install winldd | ||
- name: Install Dependencies | ||
run: pnpm install | ||
# - name: Run tests | ||
# run: pnpm -r --filter @filoz/synapse-core run test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? not ready yet? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no tests in core yet |
||
# shell: bash | ||
- name: Check docs build | ||
run: pnpm -r --filter docs run build |
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -11,3 +11,4 @@ filecoin-project-*/ | |
# VIM | ||
*.swp | ||
.env | ||
.wireit/ |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,32 @@ | ||
# Synapse Core | ||
|
||
[](https://nodei.co/npm/@filoz/synapse-core/) | ||
|
||
> A JavaScript/TypeScript SDK for interacting with Filecoin Synapse - a smart-contract based marketplace for storage and other services in the Filecoin ecosystem. | ||
|
||
## Overview | ||
|
||
TODO | ||
|
||
## Installation | ||
|
||
```bash | ||
pnpm install @filoz/synapse-core [email protected] | ||
``` | ||
|
||
Note: `viem` is a peer dependency and must be installed separately. | ||
|
||
## Docs | ||
|
||
Check the documentation [website](https://synapse.filecoin.services/) | ||
|
||
## Contributing | ||
|
||
Read contributing [guidelines](../../.github/CONTRIBUTING.md). | ||
|
||
[](https://codespaces.new/FilOzone/synapse-sdk) | ||
|
||
## License | ||
|
||
Dual-licensed: [MIT](../../LICENSE.md), [Apache Software License v2](../../LICENSE.md) by way of the | ||
[Permissive License Stack](https://protocol.ai/blog/announcing-the-permissive-license-stack/). |
This file contains hidden or 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,108 @@ | ||
{ | ||
"name": "@filoz/synapse-core", | ||
"version": "0.0.1", | ||
"description": "JavaScript Standard Library for Filecoin Onchain Cloud", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/FilOzone/synapse-sdk.git" | ||
}, | ||
"keywords": [ | ||
"filecoin", | ||
"synapse", | ||
"filecoin pay", | ||
"filecoin onchain cloud", | ||
"web3" | ||
], | ||
"author": "Hugo Dias <[email protected]>", | ||
"license": "Apache-2.0 OR MIT", | ||
"bugs": { | ||
"url": "https://github.com/FilOzone/synapse-sdk/issues" | ||
}, | ||
"homepage": "https://github.com/FilOzone/synapse-sdk/tree/main/packages/synapse-core", | ||
"type": "module", | ||
"main": "dist/src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"default": "./dist/src/index.js" | ||
}, | ||
"./chains": { | ||
"types": "./dist/src/chains.d.ts", | ||
"default": "./dist/src/chains.js" | ||
}, | ||
"./utils": { | ||
"types": "./dist/src/utils.d.ts", | ||
"default": "./dist/src/utils.js" | ||
} | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"chains": [ | ||
"./dist/src/chains" | ||
], | ||
"utils": [ | ||
"./dist/src/utils" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"dist/src", | ||
"dist/src/**/*.d.ts", | ||
"dist/src/**/*.d.ts.map" | ||
], | ||
"scripts": { | ||
"generate-abi": "wagmi generate", | ||
"build": "wireit", | ||
"lint": "wireit", | ||
"test": "pnpm run lint && pnpm run test:node", | ||
"test:node": "playwright-test 'src/test/**/*.test.ts' --mode node", | ||
"test:browser": "playwright-test 'src/test/**/*.test.ts' --assets ./src/test/mocks" | ||
}, | ||
"wireit": { | ||
"build": { | ||
"command": "tsc --build --pretty", | ||
"clean": "if-file-deleted", | ||
"files": [ | ||
"src/**/*.ts", | ||
"tsconfig.json" | ||
], | ||
"output": [ | ||
"dist/**" | ||
] | ||
}, | ||
"lint": { | ||
"command": "biome check --no-errors-on-unmatched --files-ignore-unknown=true .", | ||
"files": [ | ||
"src/**/*.ts", | ||
"../../biome.json" | ||
], | ||
"output": [], | ||
"dependencies": [ | ||
"build" | ||
] | ||
} | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "~2.2.5", | ||
"@types/mocha": "^10.0.10", | ||
"@types/node": "^24.6.2", | ||
"@wagmi/cli": "^2.6.0", | ||
"mocha": "^11.7.4", | ||
"playwright-test": "^14.1.12", | ||
"typescript": "5.9.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"msw": { | ||
"workerDirectory": [ | ||
"src/test/mocks" | ||
] | ||
}, | ||
"peerDependencies": { | ||
"ethers": "6.x", | ||
"viem": "2.x" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs the rest of the config copied down