Skip to content

Commit

Permalink
Merge pull request #144 from UniqueNetwork/fix/remove-repository-links
Browse files Browse the repository at this point in the history
Remove SDK repo links
  • Loading branch information
ashkuc authored Jan 11, 2024
2 parents 0d49029 + 712dabc commit f0fb626
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 136 deletions.
26 changes: 13 additions & 13 deletions docs/sdk/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ TBD

| Error type | Additional information |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------|
| [Bad payload](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/bad-payload.ts) | TBD |
| [Bad signature](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/bad-signature.ts) | TBD |
| [Build extrinsic](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/build-extrinsic.ts) | TBD |
| [Build query](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/build-query.ts) | TBD |
| [Codes](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/codes.ts) | TBD |
| [Connection failed](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/connection-failed.ts) | TBD |
| [Errors](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/errors.ts) | TBD |
| [Invalid signer](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/invalid-signer.ts) | TBD |
| [Not found](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/not-found.ts) | TBD |
| [Public api](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/public-api.ts) | TBD |
| [Submit extrinsic](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/submit-extrinsic.ts) | TBD |
| [Validation](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/validation.ts) | TBD |
| [Verification failed](https://github.com/UniqueNetwork/unique-sdk/blob/0cbdab33512e6e712d3e2c5cbcd54807ec6354a1/packages/substrate-client/errors/src/verification-failed.ts) | TBD |
| Bad payload | TBD |
| Bad signature | TBD |
| Build extrinsic | TBD |
| Build query | TBD |
| Codes | TBD |
| Connection failed | TBD |
| Errors | TBD |
| Invalid signer | TBD |
| Not found | TBD |
| Public api | TBD |
| Submit extrinsic | TBD |
| Validation | TBD |
| Verification failed | TBD |
61 changes: 1 addition & 60 deletions docs/sdk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ Depending on the project characteristics and the development team capabilities,
Our SDK allows integrating all Unique Network features into your web3 application without interacting with low-level API. Using SDK, you can mint collections and tokens, manage account balance, etc.
Technically, it is a REST add-on that allows you to use the same methods in a simplified form.

You can learn SDK deeply by reviewing its [repository](https://github.com/UniqueNetwork/unique-sdk/blob/master/packages/sdk/).

### Substrate REST

You can use a proxy HTTP service (Substrate REST) to implement server logic.
Expand All @@ -28,8 +26,6 @@ In general, this package is pretty close to SDK, but it provides you with more f

With Substrate REST, you can use public or self-hosted endpoints, which provides some flexibility in project and security settings.

You can learn SDK deeply by reviewing its [repository](https://github.com/UniqueNetwork/unique-sdk/blob/master/packages/rest/).

### Substrate Client

Substrate Client is a JavaScript/TypeScript library that helps to interact with Unique Network directly. This approach is recommended only for experienced developers which have already worked with blockchains. This is the most low-level package that we provide.
Expand All @@ -41,8 +37,6 @@ However, Substrate Client can also be used with any network based on the [Substr

Substrate Client is a low-lower connection tool that is easier than the WSS connection, but it requires more development and infrastructure support than SDK or Substrate REST.

You can review the Substrate Client deeper in its [repository](https://github.com/UniqueNetwork/unique-sdk/tree/master/packages/substrate-client).

## How to install

### SDK
Expand Down Expand Up @@ -129,7 +123,7 @@ const sdk = new Sdk(clientOptions);
### Substrate REST

#### Installation
Choose install approach: [Docker](#docker), [Source code](#git) or [Public endpoints](#public-endpoints).
Choose install approach: [Docker](#docker) or [Public endpoints](#public-endpoints).

##### Docker

Expand All @@ -139,34 +133,6 @@ docker run -p 3000:3000 -e CHAIN_WS_URL=wss://ws-opal.unique.network uniquenetwo

See the [hub.docker.com](https://hub.docker.com/r/uniquenetwork/web) page for more details.

#### Git

<CodeGroup>
<CodeGroupItem title="NPM" active>

```bash:no-line-numbers
git clone https://github.com/UniqueNetwork/unique-sdk
cd unique-sdk
npm install
npm run build:web
npm start
```

</CodeGroupItem>
<CodeGroupItem title="YARN">

```bash:no-line-numbers
git clone https://github.com/UniqueNetwork/unique-sdk
cd unique-sdk
yarn
yarn run build:web
yarn start
```

</CodeGroupItem>
</CodeGroup>


#### Public endpoints

You can use public endpoints for access Unique Web:
Expand Down Expand Up @@ -283,31 +249,6 @@ yarn add @unique-nft/substrate-client
</CodeGroupItem>
</CodeGroup>

**via Git:**

<CodeGroup>
<CodeGroupItem title="NPM" active>

```bash:no-line-numbers
git clone https://github.com/UniqueNetwork/unique-sdk
cd unique-sdk
npm install
npm run build:substrate-client
```

</CodeGroupItem>
<CodeGroupItem title="YARN">

```bash:no-line-numbers
git clone https://github.com/UniqueNetwork/unique-sdk
cd unique-sdk
yarn
yarn build:substrate-client
```

</CodeGroupItem>
</CodeGroup>

#### Initialization

```typescript:no-line-numbers
Expand Down
55 changes: 1 addition & 54 deletions docs/sdk/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const sdk = new Sdk(clientOptions);
## Substrate REST

### Installation
Choose install approach: [Docker](#docker), [Source code](#git) or [Public endpoints](#public-endpoints).
Choose install approach: [Docker](#docker) or [Public endpoints](#public-endpoints).

#### Docker

Expand All @@ -96,34 +96,6 @@ docker run -p 3000:3000 -e CHAIN_WS_URL=wss://ws-opal.unique.network uniquenetwo

See the [hub.docker.com](https://hub.docker.com/r/uniquenetwork/web) page for more details.

#### Git

<CodeGroup>
<CodeGroupItem title="NPM" active>

```bash:no-line-numbers
git clone https://github.com/UniqueNetwork/unique-sdk
cd unique-sdk
npm install
npm run build:web
npm start
```

</CodeGroupItem>
<CodeGroupItem title="YARN">

```bash:no-line-numbers
git clone https://github.com/UniqueNetwork/unique-sdk
cd unique-sdk
yarn
yarn run build:web
yarn start
```

</CodeGroupItem>
</CodeGroup>


#### Public endpoints

You can use public endpoints for access Unique Web:
Expand Down Expand Up @@ -240,31 +212,6 @@ yarn add @unique-nft/substrate-client
</CodeGroupItem>
</CodeGroup>

**via Git:**

<CodeGroup>
<CodeGroupItem title="NPM" active>

```bash:no-line-numbers
git clone https://github.com/UniqueNetwork/unique-sdk
cd unique-sdk
npm install
npm run build:substrate-client
```

</CodeGroupItem>
<CodeGroupItem title="YARN">

```bash:no-line-numbers
git clone https://github.com/UniqueNetwork/unique-sdk
cd unique-sdk
yarn
yarn build:substrate-client
```

</CodeGroupItem>
</CodeGroup>

### Initialization

```typescript:no-line-numbers
Expand Down
8 changes: 4 additions & 4 deletions docs/sdk/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ const signer = provider.addSeed('<seed of account>');

The following providers are supported:

* [Keyring](https://github.com/UniqueNetwork/unique-sdk/tree/master/packages/accounts/keyring)
* [KeyringLocal](https://github.com/UniqueNetwork/unique-sdk/tree/master/packages/accounts/keyring-local)
* [Polkadot extension](https://github.com/UniqueNetwork/unique-sdk/tree/master/packages/accounts/polkadot)
* [Metamask extension](https://github.com/UniqueNetwork/unique-sdk/tree/master/packages/accounts/metamask)
* Keyring
* KeyringLocal
* Polkadot extension
* Metamask extension

#### Generate new account

Expand Down
3 changes: 0 additions & 3 deletions docs/tutorials/how-to-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,6 @@ curl -X 'POST' \
</CodeGroupItem>
</CodeGroup>


The full list of the `sdk.collections` module you can check right [in the sources](https://github.com/UniqueNetwork/unique-sdk/tree/master/packages/substrate-client/tokens/methods/collection) of the `@unique/substrate-client` package.

### Change the owner of the collection

Each collection has an owner. It is defined when collection is created. However, it is possible to set a new collection owner if needed. However, you can do this **only on behalf of the collection owner** . Please check the samples below to learn how to do this.
Expand Down
2 changes: 0 additions & 2 deletions docs/tutorials/nfts-how-to-create-and-tune-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,3 @@ const {
parsed: { collectionId, limits },
} = result;
```

The full list of the `sdk.collections` module you can check right [in the sources](https://github.com/UniqueNetwork/unique-sdk/tree/master/packages/substrate-client/tokens/methods/collection) of `@unique/substrate-client` package.

0 comments on commit f0fb626

Please sign in to comment.