Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed May 14, 2021
0 parents commit e3e73df
Show file tree
Hide file tree
Showing 21 changed files with 468 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
node_modules
package-lock.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict = true
5 changes: 5 additions & 0 deletions LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
19 changes: 19 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# ipfs-interfaces <!-- omit in toc -->

> TypeScript interfaces used by IPFS internals
## Table of Contents <!-- omit in toc -->

- [Packages](#packages)
- [Contribute](#contribute)
- [License](#license)

## Packages

See the [./packages](./packages) directory for the various interfaces.

## Contribute

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-bitswap/issues)!

This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)

## License

[MIT](LICENSE)
21 changes: 21 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"lerna": "3.22.0",
"packages": [
"packages/*"
],
"version": "independent",
"command": {
"run": {
"stream": true
},
"publish": {
"message": "chore: publish",
"createRelease": "github",
"conventionalCommits": true,
"verifyAccess": false
},
"version": {
"private": false
}
}
}
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "ipfs-interfaces",
"version": "1.0.0",
"description": "",
"main": "index.js",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "lerna run build",
"lint": "lerna run lint",
"release": "lerna publish"
},
"homepage": "https://github.com/ipfs/js-ipfs-interfaces/tree/master#readme",
"bugs": "https://github.com/ipfs/js-ipfs-interfaces/issues",
"license": "(Apache-2.0 OR MIT)",
"repository": {
"type": "git",
"url": "git+https://github.com/ipfs/js-ipfs-interfaces.git"
},
"workspaces": [
"packages/*"
],
"dependencies": {
"lerna": "^4.0.0"
},
"engines": {
"npm": ">=7.0.0"
}
}
5 changes: 5 additions & 0 deletions packages/interface-blockstore/LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
19 changes: 19 additions & 0 deletions packages/interface-blockstore/LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
20 changes: 20 additions & 0 deletions packages/interface-blockstore/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# interface-blockstore <!-- omit in toc -->

> An interface for storing and retrieving blocks
## Table of Contents <!-- omit in toc -->

- [Contribute](#contribute)
- [License](#license)

## Contribute

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-bitswap/issues)!

This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)

## License

[MIT](LICENSE)
26 changes: 26 additions & 0 deletions packages/interface-blockstore/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "interface-blockstore",
"version": "0.0.1",
"description": "",
"main": "src/index.js",
"types": "dist/src/index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "aegir ts -p check && aegir lint",
"build": "aegir build"
},
"license": "(Apache-2.0 OR MIT)",
"homepage": "https://github.com/ipfs/js-ipfs-interfaces/tree/master/packages/interface-blockstore#readme",
"bugs": "https://github.com/ipfs/js-ipfs-interfaces/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/ipfs/js-ipfs-interfaces.git"
},
"dependencies": {
"interface-store": "^0.0.1",
"multiformats": "^8.0.4"
},
"devDependencies": {
"aegir": "^33.1.2"
}
}
10 changes: 10 additions & 0 deletions packages/interface-blockstore/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import {
Pair as StorePair
} from 'interface-store'
import {
CID
} from 'multiformats'

export interface Pair extends StorePair<CID, Uint8Array> {

}
Empty file.
11 changes: 11 additions & 0 deletions packages/interface-blockstore/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "aegir/src/config/tsconfig.aegir.json",
"compilerOptions": {
"outDir": "dist",
"skipLibCheck": false
},
"include": [
"test",
"src"
]
}
5 changes: 5 additions & 0 deletions packages/interface-store/LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
19 changes: 19 additions & 0 deletions packages/interface-store/LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
20 changes: 20 additions & 0 deletions packages/interface-store/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# interface-store <!-- omit in toc -->

> A generic interface for storing and retrieving data
## Table of Contents <!-- omit in toc -->

- [Contribute](#contribute)
- [License](#license)

## Contribute

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-bitswap/issues)!

This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)

## License

[MIT](LICENSE)
22 changes: 22 additions & 0 deletions packages/interface-store/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "interface-store",
"version": "0.0.1",
"description": "",
"main": "src/index.js",
"types": "dist/src/index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "aegir ts -p check && aegir lint",
"build": "aegir build"
},
"homepage": "https://github.com/ipfs/js-ipfs-interfaces/tree/master/packages/interface-store#readme",
"bugs": "https://github.com/ipfs/js-ipfs-interfaces/issues",
"license": "(Apache-2.0 OR MIT)",
"repository": {
"type": "git",
"url": "git+https://github.com/ipfs/js-ipfs-interfaces.git"
},
"devDependencies": {
"aegir": "^33.1.2"
}
}
Loading

0 comments on commit e3e73df

Please sign in to comment.