diff --git a/.changeset/eleven-pans-look.md b/.changeset/eleven-pans-look.md
deleted file mode 100644
index d715a39..0000000
--- a/.changeset/eleven-pans-look.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-"@deltadao/nautilus": patch
----
-
-Fix error in next build
-- Fixes an error with starting compute jobs
-- Fixes `tslib` dependency issues
diff --git a/.changeset/famous-pots-deny.md b/.changeset/famous-pots-deny.md
deleted file mode 100644
index e5baf28..0000000
--- a/.changeset/famous-pots-deny.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@deltadao/nautilus": patch
----
-
-next release
diff --git a/.changeset/lucky-drinks-occur.md b/.changeset/lucky-drinks-occur.md
deleted file mode 100644
index 2879342..0000000
--- a/.changeset/lucky-drinks-occur.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@deltadao/nautilus": patch
----
-
-bump ocean.js
diff --git a/.changeset/pre.json b/.changeset/pre.json
deleted file mode 100644
index 9ba8f44..0000000
--- a/.changeset/pre.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "mode": "exit",
- "tag": "next",
- "initialVersions": {
- "docs": "0.1.0",
- "@deltadao/nautilus": "1.0.0-beta.2",
- "test": "0.0.0"
- },
- "changesets": [
- "eleven-pans-look",
- "famous-pots-deny",
- "lucky-drinks-occur",
- "small-tigers-repeat"
- ]
-}
diff --git a/.changeset/small-tigers-repeat.md b/.changeset/small-tigers-repeat.md
deleted file mode 100644
index da81804..0000000
--- a/.changeset/small-tigers-repeat.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'@deltadao/nautilus': patch
----
-
-- add stopCompute functionality
-- fix an issue with setting trusted algorithms
diff --git a/.changeset/weak-laws-study.md b/.changeset/weak-laws-study.md
deleted file mode 100644
index dda37e7..0000000
--- a/.changeset/weak-laws-study.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"docs": major
----
-
-Update docs for version 1 release
diff --git a/README.md b/README.md
deleted file mode 100644
index 8f9283e..0000000
--- a/README.md
+++ /dev/null
@@ -1,127 +0,0 @@
-
-
-
- - - -
- -- The Data Economy TypeScript Toolkit -
- -
- - -A TypeScript library enabling you to explore the Data Economy. It is built on top of [ocean.js](https://github.com/oceanprotocol/ocean.js) and offers feature complete, automated interactions with any [Ocean Protocol](https://oceanprotocol.com) ecosystem. - -## Overview -nautilus addresses many common pain points faced by developers interacting with the data economy by offering a range of features enhancing productivity and efficiency. -You will find a quick introduction on this page to get you setup with the **Data Economy TypeScript Toolkit**. - -Looking for dedicated feature documentations? Follow the links below: -- [Download](https://nautilus.delta-dao.com/docs/guides/download) -- [Compute to Data](https://nautilus.delta-dao.com/docs/guides/compute) -- [Publishing](https://nautilus.delta-dao.com/docs/guides/publish) -- [Editing](https://nautilus.delta-dao.com/docs/guides/edit) - - -## Quick Start -### 1. Setup your Signer -Firstly, create the signer you want to use with your nautilus instance. nautilus uses the ethers.js `Signer`. You can read more about possible configurations in the [official documentation](https://docs.ethers.org/v5/api/signer/). - -```ts twoslash -import { Wallet, providers } from 'ethers' -import { Nautilus } from '@deltadao/nautilus' - -const provider = new providers.JsonRpcProvider('https://rpc.dev.pontus-x.eu') // [!code focus] -const signer = new Wallet('0x...', provider) // [!code focus] -``` - -In this example we create an ethers `Wallet` from a given private key and connect to a RPC provider of our choice. - -### 2. Setup the nautilus instance -Now that you have a Signer set up, you can use it to bootstrap your nautilus client instance. - -``` ts twoslash -import { Wallet, providers } from 'ethers' -import { Nautilus } from '@deltadao/nautilus' - -const provider = new providers.JsonRpcProvider('https://rpc.dev.pontus-x.eu') -const signer = new Wallet('0x...', provider) - -const nautilus = await Nautilus.create(signer) // [!code focus] -``` - -Note, that we use the previously created Wallet and pass it to Nautilus to create the instance with this signer. - -### 3. Interact with the data economy -With the client instance bootstrapped you can now trigger any transactions or access calls supported by OceanProtocol. - -``` ts twoslash -import { Wallet, providers } from 'ethers' -import { Nautilus } from '@deltadao/nautilus' - -const provider = new providers.JsonRpcProvider('https://rpc.dev.pontus-x.eu') -const signer = new Wallet('0x...', provider) - -const nautilus = await Nautilus.create(signer) - -const accessUrl = await nautilus.access({ assetDid: 'did:op:12345'}) // [!code focus] -const data = await fetch(accessUrl) // [!code focus] -``` - -In this example we construct a one-time `accessUrl` and can then use it to fetch the data associated with the respective data service. - -## Next Steps - -For a more complete look at the nautilus interface, you can head to the [`Nautilus` Instance](https://nautilus.delta-dao.com/docs/api/Nautilus) documentation. - -Find dedicated feature documentation by following one of the links below: -- [Download](https://nautilus.delta-dao.com/docs/guides/download) -- [Compute to Data](https://nautilus.delta-dao.com/docs/guides/compute) -- [Publishing](https://nautilus.delta-dao.com/docs/guides/publish) -- [Editing](https://nautilus.delta-dao.com/docs/guides/edit) - - -If you want to jump straight into code, feel free to take a look at some of our code examples in the [nautilus-examples repository](https://github.com/deltaDAO/nautilus-examples). - -## License - -``` -Copyright ((C)) 2023 deltaDAO AG - -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. -``` diff --git a/README.md b/README.md new file mode 120000 index 0000000..351df1d --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +src/README.md \ No newline at end of file diff --git a/docs/pages/index.mdx b/docs/pages/index.mdx index a0262f2..4e7afed 100644 --- a/docs/pages/index.mdx +++ b/docs/pages/index.mdx @@ -61,10 +61,10 @@ import { HomePage } from 'vocs/components'+ + + +
+ ++ The Data Economy TypeScript Toolkit +
+ +
+ + +A TypeScript library enabling you to explore the Data Economy. It is built on top of [ocean.js](https://github.com/oceanprotocol/ocean.js) and offers feature complete, automated interactions with any [Ocean Protocol](https://oceanprotocol.com) ecosystem. + +## Overview +nautilus addresses many common pain points faced by developers interacting with the data economy by offering a range of features enhancing productivity and efficiency. +You will find a quick introduction on this page to get you setup with the **Data Economy TypeScript Toolkit**. + +Looking for dedicated feature documentations? Follow the links below: +- [Download](https://nautilus.delta-dao.com/docs/guides/download) +- [Compute to Data](https://nautilus.delta-dao.com/docs/guides/compute) +- [Publishing](https://nautilus.delta-dao.com/docs/guides/publish) +- [Editing](https://nautilus.delta-dao.com/docs/guides/edit) + + +## Quick Start +### 1. Setup your Signer +Firstly, create the signer you want to use with your nautilus instance. nautilus uses the ethers.js `Signer`. You can read more about possible configurations in the [official documentation](https://docs.ethers.org/v5/api/signer/). + +```ts twoslash +import { Wallet, providers } from 'ethers' +import { Nautilus } from '@deltadao/nautilus' + +const provider = new providers.JsonRpcProvider('https://rpc.dev.pontus-x.eu') +const signer = new Wallet('0x...', provider) +``` + +In this example we create an ethers `Wallet` from a given private key and connect to a RPC provider of our choice. + +### 2. Setup the nautilus instance +Now that you have a Signer set up, you can use it to bootstrap your nautilus client instance. + +``` ts twoslash +import { Wallet, providers } from 'ethers' +import { Nautilus } from '@deltadao/nautilus' + +const provider = new providers.JsonRpcProvider('https://rpc.dev.pontus-x.eu') +const signer = new Wallet('0x...', provider) + +const nautilus = await Nautilus.create(signer) +``` + +Note, that we use the previously created Wallet and pass it to Nautilus to create the instance with this signer. + +### 3. Interact with the data economy +With the client instance bootstrapped you can now trigger any transactions or access calls supported by OceanProtocol. + +``` ts twoslash +import { Wallet, providers } from 'ethers' +import { Nautilus } from '@deltadao/nautilus' + +const provider = new providers.JsonRpcProvider('https://rpc.dev.pontus-x.eu') +const signer = new Wallet('0x...', provider) + +const nautilus = await Nautilus.create(signer) + +const accessUrl = await nautilus.access({ assetDid: 'did:op:12345'}) +const data = await fetch(accessUrl) +``` + +In this example we construct a one-time `accessUrl` and can then use it to fetch the data associated with the respective data service. + +## Next Steps + +Find dedicated feature documentation by following one of the links below: +- [Download](https://nautilus.delta-dao.com/docs/guides/download) +- [Compute to Data](https://nautilus.delta-dao.com/docs/guides/compute) +- [Publishing](https://nautilus.delta-dao.com/docs/guides/publish) +- [Editing](https://nautilus.delta-dao.com/docs/guides/edit) + +If you want to jump straight into code, feel free to take a look at some of our code examples in the [nautilus-examples repository](https://github.com/deltaDAO/nautilus-examples). + +## License + +``` +Copyright ((C)) 2023 deltaDAO AG + +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. +``` diff --git a/src/package.json b/src/package.json index 529974d..3904fe3 100644 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "@deltadao/nautilus", "description": "A typescript library enabling automated publish & consume in Ocean Protocol ecosystems", - "version": "1.0.0-next.5", + "version": "1.0.1", "type": "module", "main": "./_cjs/index.js", "module": "./_esm/index.js", @@ -33,7 +33,9 @@ "documents": "./src/**/*.gql.ts", "generates": { "./src/@types/subgraph/api.ts": { - "plugins": ["typescript"] + "plugins": [ + "typescript" + ] }, "./src/": { "preset": "near-operation-file", @@ -41,7 +43,9 @@ "baseTypesPath": "@types/subgraph/api.ts", "extension": ".generated.ts" }, - "plugins": ["typescript-operations"], + "plugins": [ + "typescript-operations" + ], "config": { "omitOperationSuffix": true, "typesPrefix": "I"