Skip to content

Commit

Permalink
feat: w3filecoin new client and api (#848)
Browse files Browse the repository at this point in the history
Implements new client and API based on
storacha-network/specs#71

Note that new client is filecoin spec based rather than aggregation
only. There are other roles that are not aggregator:
- `storefront` will be implemented by web3.storage/nft.storage via
`w3up`
- `aggregator` will be implemented by `w3filecoin`
- `broker` will be implemented by `spade-proxy`
- `chain` will (likely) be implemented by `w3filecoin` (reading from
spade oracle, while we might have an Oracle ourselves later on)
  • Loading branch information
vasco-santos committed Aug 9, 2023
1 parent 23bb83a commit 7a58fbe
Show file tree
Hide file tree
Showing 72 changed files with 3,128 additions and 1,579 deletions.
4 changes: 2 additions & 2 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"bootstrap-sha": "c918ffc59eafa01fbc63d5df11ba621cc1888c64",
"packages": {
"packages/access-client": {},
"packages/aggregate-api": {},
"packages/aggregate-client": {},
"packages/filecoin-api": {},
"packages/filecoin-client": {},
"packages/capabilities": {},
"packages/did-mailto": {},
"packages/upload-api": {},
Expand Down
4 changes: 2 additions & 2 deletions .github/release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packages/access-client": "15.0.0",
"packages/aggregate-api": "1.0.0",
"packages/aggregate-client": "1.0.0",
"packages/filecoin-api": "1.0.0",
"packages/filecoin-client": "1.0.0",
"packages/capabilities": "7.0.0",
"packages/upload-api": "4.1.0",
"packages/upload-client": "9.1.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Aggregate API
name: Filecoin API
env:
CI: true
FORCE_COLOR: 1
Expand All @@ -8,14 +8,14 @@ on:
branches:
- main
paths:
- 'packages/aggregate-api/**'
- '.github/workflows/aggregate-api.yml'
- 'packages/filecoin-api/**'
- '.github/workflows/filecoin-api.yml'
- 'pnpm-lock.yaml'
- '.env.tpl'
pull_request:
paths:
- 'packages/aggregate-api/**'
- '.github/workflows/aggregate-api.yml'
- 'packages/filecoin-api/**'
- '.github/workflows/filecoin-api.yml'
- 'pnpm-lock.yaml'
- '.env.tpl'
jobs:
Expand Down Expand Up @@ -44,6 +44,6 @@ jobs:
pnpm run --if-present build
- name: Lint
run: pnpm -r --filter @web3-storage/aggregate-api run lint
run: pnpm -r --filter @web3-storage/filecoin-api run lint
- name: Test
run: pnpm -r --filter @web3-storage/aggregate-api run test
run: pnpm -r --filter @web3-storage/filecoin-api run test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Aggregate Client
name: Filecoin Client
env:
CI: true
FORCE_COLOR: 1
Expand All @@ -7,13 +7,13 @@ on:
branches:
- main
paths:
- 'packages/aggregate-client/**'
- '.github/workflows/aggregate-client.yml'
- 'packages/filecoin-client/**'
- '.github/workflows/filecoin-client.yml'
- 'pnpm-lock.yaml'
pull_request:
paths:
- 'packages/aggregate-client/**'
- '.github/workflows/aggregate-client.yml'
- 'packages/filecoin-client/**'
- '.github/workflows/filecoin-client.yml'
- 'pnpm-lock.yaml'
jobs:
test:
Expand All @@ -34,5 +34,5 @@ jobs:
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build
- run: pnpm -r --filter @web3-storage/aggregate-client run lint
- run: pnpm -r --filter @web3-storage/aggregate-client run test
- run: pnpm -r --filter @web3-storage/filecoin-client run lint
- run: pnpm -r --filter @web3-storage/filecoin-client run test
18 changes: 0 additions & 18 deletions packages/aggregate-api/CHANGELOG.md

This file was deleted.

13 changes: 0 additions & 13 deletions packages/aggregate-api/src/aggregate.js

This file was deleted.

38 changes: 0 additions & 38 deletions packages/aggregate-api/src/aggregate/get.js

This file was deleted.

131 changes: 0 additions & 131 deletions packages/aggregate-api/src/aggregate/offer.js

This file was deleted.

46 changes: 0 additions & 46 deletions packages/aggregate-api/src/lib.js

This file was deleted.

11 changes: 0 additions & 11 deletions packages/aggregate-api/src/offer.js

This file was deleted.

40 changes: 0 additions & 40 deletions packages/aggregate-api/src/offer/arrange.js

This file was deleted.

Loading

0 comments on commit 7a58fbe

Please sign in to comment.