Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/main-page-redesign'
Browse files Browse the repository at this point in the history
# Conflicts:
#	docs/index.md
#	docs/overview/resources.md
#	mkdocs.yml
  • Loading branch information
Denis Mazin committed Dec 24, 2021
2 parents 678920a + 22f50e3 commit 377e887
Show file tree
Hide file tree
Showing 14 changed files with 152 additions and 107 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/overview/api-reference.md → docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Use these base URLs to access our API on different networks.

`api.rarible.org or any testnet equivalent` is compatible with all blockchains supported by the Rarirble Protocol. We also use the term union to describe this compatibility case in the docs.
`api.rarible.org or any testnet equivalent` is compatible with all blockchains supported by the Rarible Protocol. We also use the term union to describe this compatibility case in the docs.

`ethereum-api.rarible.org or any testnet equivalent` is only compatible with the ethereum blockchain.

Expand Down
4 changes: 3 additions & 1 deletion docs/flow/flow-overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Flow overview
# Rarible Protocol Flow

## Overview

Rarible is currently testing this integration, aiming to release it between 8th and the 12nd of November.

Expand Down
34 changes: 34 additions & 0 deletions docs/getting-started/community.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Community and resources

## DAO

If you're a builder or you're looking to participate in the Rarible Protocol DAO, here are a few valuable places you'll find support and like-minded builders.

* [Discord](https://discord.gg/zqsZsEWBbN) is one of the main places where the DAO is being organized, and builders take their first steps towards building with the protocol.
* [Github](https://github.com/rarible) is where everything lives. Since we are open-source, many resources and help from other builders are available there.
* [Notion](https://rarible-protocol.notion.site/rarible-protocol/Rarible-Protocol-DAO-f89d6db21a9d4c199eb30051fceb9a0a) is the platform where we hold information for DAO members and $RARI token holders.
* [OpenAPI](https://api.rarible.org/v0.1/doc) is where we document the current API capabilities.
* [DAO Twitter](https://twitter.com/raribledao)

## Resources

* [Rarible Youtube](https://www.youtube.com/c/Rarible)
* [Rarible Twitter](https://twitter.com/rarible)
* [Rarible Hackathon Docs HackMD by Isaac](https://hackmd.io/ktJuljjGTA2TivezBXKA5g?view#Rarible-Hackathon-Docs) for Ethereum network.

## Submitting

You are welcome to suggest features and report bugs found! You can do it here:

* [Submit an issue](https://github.com/rarible/protocol/issues)
* [Submit a question or suggestion](https://github.com/rarible/protocol/discussions)

## Audits

Rarible Protocol is audited. Check this report by [ChainSecurity.com](https://chainsecurity.com/security-audit/rarible-exchange-v2-smart-contracts/).

## License

Rarible Protocol is available under [GPL v3](../LICENSE.md).

SDK and OpenAPI (with generated clients) are available under [MIT](../MIT-LICENSE.md).
File renamed without changes.
File renamed without changes.
60 changes: 21 additions & 39 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,55 +1,37 @@
# Rarible Protocol Overview
---
hide:
- toc
- feedback
---

Rarible Protocol is a tool to query, issue and trade NFTs on these blockchains:
# Rarible Protocol

- [Ethereum](./ethereum/ethereum-overview.md)
- [Flow](./flow/flow-overview.md) (WIP)
- [Tezos](./tezos/tezos-overview.md)
- Polygon (WIP, coming soon)
- Other blockchains ([tell us](https://github.com/rarible/protocol/discussions) what blockchain you want)

## Getting Started
Rarible Union Protocol is a blockchain-agnostic and decentralized tool to query, issue, and trade NFTs.

* [Quick Start](getting-started/quick-start.md) for starting using Union SDK
* [Union SDK](overview/union-sdk.md) docs and [Rarible Protocol SDK](https://github.com/rarible/sdk) repo on GitHub
* [Union API](overview/api-reference.md) reference
Learn more about Protocol usage.

See [Example App](getting-started/protocol-example.md) for more app examples.
[Protocol Overview](overview/union.md){ .md-button .md-button--primary }

## Protocol Features
***

- [query](https://github.com/rarible/sdk#querying) information about NFTs
- [mint](https://github.com/rarible/sdk#mint) (issue, create) NFTs
- trade NFTs ([sell](https://github.com/rarible/sdk#sell), [bid](https://github.com/rarible/sdk#bid), [auction](https://github.com/rarible/sdk#auction))
- [transfer](https://github.com/rarible/sdk#transfer)
- [burn](https://github.com/rarible/sdk#burn)
Explore references & resources.

## Architecture
[API Reference](api-reference.md){ .md-button }

The architecture of the Protocol:
[Union SDK](union-sdk.md){ .md-button }

![](overview/img/union_architecture.png)
***

Protocol is based on the blockchain layer (smart contracts written for every blockchain supported). These smart contracts allow users to mint and exchange tokens.
Get started with Union SDK basics.

On top of the contracts we built indexers to index part of the blockchain state. This gives us the possibility to query data about NFTs.
[Quick Start](#){ .md-button }

Then, SDKs were written to interact with smart contracts.
See the example repo to create the first application.

All these components are written for every blockchain supported and are used in [Union service](https://github.com/rarible/union-service) and [Union SDK](https://github.com/rarible/sdk)
[React Example App](https://github.com/rarible/example){ .md-button }

Applications need to integrate [Union service](https://github.com/rarible/union-service) and [Union SDK](https://github.com/rarible/sdk) to be able to interact with all blockchains in the same way.
***

## Suggestions
Take community support and additional information.

You are welcome to [suggest features](https://github.com/rarible/protocol/discussions) and [report bugs found](https://github.com/rarible/protocol/issues)!

## Audits

Rarible Protocol is audited. Check this report by [ChainSecurity.com](https://chainsecurity.com/security-audit/rarible-exchange-v2-smart-contracts/).

## License

Rarible Protocol is available under [GPL v3](LICENSE).

SDK and openapi (with generated clients) are available under [MIT](MIT-LICENSE).
[Community and resources](getting-started/community.md){ .md-button }
Binary file modified docs/overview/img/union_architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 0 additions & 21 deletions docs/overview/resources.md

This file was deleted.

36 changes: 36 additions & 0 deletions docs/overview/union.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Rarible Union Protocol

The Rarible Union Protocol is based on the blockchain layer (smart contracts written for every blockchain supported). These smart contracts allow users to mint and exchange tokens.

On top of the contracts, we built indexers to index part of the blockchain state. This gives us the possibility to query data about NFTs.

Then, SDKs were written to interact with smart contracts.

All these components are written for every blockchain supported and are used in [Union service](https://github.com/rarible/union-service) and [Union SDK](https://github.com/rarible/sdk).

Applications need to integrate Union service and Union SDK to be able to interact with all blockchains in the same way.

<figure markdown>
![Protocol architecture](img/union_architecture.png){ width="600" }
<figcaption>Protocol architecture</figcaption>
</figure>

## Features

* [Mint](https://github.com/rarible/sdk#mint) (issue, create) NFTs
* Trade NFTs ([sell](https://github.com/rarible/sdk#sell), [bid](https://github.com/rarible/sdk#bid), [auction](https://github.com/rarible/sdk#auction))
* [Transfer](https://github.com/rarible/sdk#transfer)
* [Burn](https://github.com/rarible/sdk#burn)
* [Query](https://github.com/rarible/sdk#querying) information about NFTs

See [more reasons](../getting-started/reasons.md) to build on Rarible Protocol.

## API Reference

We use different environments for blockchain networks. See actual information on [API Reference](../api-reference.md) page.

## SDK

[Rarible Protocol SDK](https://github.com/rarible/sdk) enables applications to easily interact with Rarible protocol: [query](https://github.com/rarible/sdk#querying), [issue](https://github.com/rarible/sdk#mint), [trade](https://github.com/rarible/sdk#sell) NFTs on any blockchain supported.

See more information on [Union SDK](../union-sdk.md) page.
2 changes: 1 addition & 1 deletion docs/overview/union-sdk.md → docs/union-sdk.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SDK Overview
# Union SDK

Rarible Protocol Software Development Kit enables applications to interact with Rarible protocol easily: query, issue, trade NFTs on any blockchain supported.

Expand Down
6 changes: 5 additions & 1 deletion docs/use-cases/picnic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Picnic

We use Rarible to help us identify NFTs from creators and collectors in the [Picnic] showcase. The [Rarible API] provides a few great endpoints for fetching the necessary data.
We use Rarible to help us identify NFTs from creators and collectors in the Picnic showcase. The Rarible API provides a few great endpoints for fetching the necessary data.

## API Calls

Expand All @@ -14,6 +14,7 @@ The following endpoints can be used:

Paginate through owned tokens

```ts
import axios from 'axios';

/**
Expand Down Expand Up @@ -46,11 +47,13 @@ const fetchOwnedTokens = async (owner, opts = {}) => {
return [];
}
};
```

The `byOwner` endpoint does not return token metadata. You can attempt to query this information from the blockchain directly or use another API to collect token metadata information.

You can use the `getItemMetaById` Rarible API endpoint to get token metadata. Be mindful that you’ll have to make one request per token.

```ts
import axios from 'axios';

/**
Expand All @@ -65,5 +68,6 @@ const fetchTokenMetadata = async id => {
}
return data;
};
```

If you have question, please reach out. [email protected] / [@gleuch]
94 changes: 51 additions & 43 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,63 @@ site_name: Rarible Protocol
site_description: Rarible Protocol documentation

nav:
- 'Rarible Protocol Overview': 'index.md'
- 'Overview':
- 'Reasons for using protocol': 'overview/reasons.md'
- 'API Reference': 'overview/api-reference.md'
- 'SDK': 'overview/union-sdk.md'
- 'Resources': 'overview/resources.md'
- 'FAQ': 'overview/faq.md'
- 'Glossary': 'overview/glossary.md'
- 'Home': 'index.md'
- 'Getting Started':
- 'Quick Start': 'getting-started/quick-start.md'
- 'Protocol Example': 'getting-started/protocol-example.md'
- 'Quick Start': '#'
- 'Community and resources': 'getting-started/community.md'
- 'Reasons for using protocol': 'getting-started/reasons.md'
- 'Glossary': 'getting-started/glossary.md'
- 'Rarible Union Protocol':
- 'Overview': 'overview/union.md'
- 'Ethereum':
- 'Ethereum Overview': 'ethereum/ethereum-overview.md'
- 'Contract Addresses': 'ethereum/contract-addresses.md'
- 'Smart Contracts':
- 'Smart Contracts Overview': 'ethereum/smart-contracts/smart-contracts.md'
- 'ExchangeV2':
- 'ExchangeV2 Overview': 'ethereum/smart-contracts/exchangev2-overview.md'
- 'ExchangeV2 Matching Orders': 'ethereum/smart-contracts/exchangev2-matching-orders.md'
- 'ExchangeV2 Sell and Bid': 'ethereum/smart-contracts/exchangev2-sell-bid.md'
- 'ExchangeV2 Update and Cancel': 'ethereum/smart-contracts/exchangev2-update-cancel.md'
- 'Tokens': 'ethereum/smart-contracts/tokens.md'
- 'Fees': 'ethereum/smart-contracts/fees.md'
- 'Royalties': 'ethereum/smart-contracts/royalties.md'
- 'API and Indexer':
- 'API and Indexer Overview': 'ethereum/api/ethereum-api-indexer.md'
- 'Search Items': 'ethereum/api/search-items.md'
- 'Search Orders': 'ethereum/api/search-orders.md'
- 'Create Lazy Minting': 'ethereum/api/create-lazy-minting.md'
- 'Create Orders': 'ethereum/api/create-orders.md'
- 'Ethereum SDK': 'ethereum/sdk/ethereum-sdk.md'
- 'Metadata':
- 'Ethereum Metadata': 'ethereum/metadata/ethereum-metadata.md'
- 'Example of uploading and using Metadata with IPFS': 'ethereum/metadata/ipfs-example.md'
- 'Tezos':
- 'Tezos Overview': 'tezos/tezos-overview.md'
- 'Contract Addresses': 'tezos/tezos-contract-addresses.md'
- 'Flow':
- 'Flow Overview': 'flow/flow-overview.md'
- 'API': 'api-reference.md'
- 'SDK': 'union-sdk.md'
# - 'Union SDK':
# - 'Overview': 'union-sdk/union-overview.md'
# - 'API`s': 'union-sdk/api.md'
# - 'Transfer, Mint, Burn': 'union-sdk/nft.md'
# - 'Sell, Bid, Fill': 'union-sdk/order.md'
- 'Use Cases':
- 'Picnic': 'use-cases/picnic.md'
- 'cocoNFT': 'use-cases/coconft.md'
- 'MintGate': 'use-cases/mintgate.md'
- 'EZCode SDK plugin': 'use-cases/bubblesdk.md'
- 'Setting Up Royalties on an External Collection': 'use-cases/royalties-on-a-external-collection.md'
# - 'Union SDK':
# - 'Overview': 'union-sdk/union-overview.md'
# - 'API`s': 'union-sdk/api.md'
# - 'Transfer, Mint, Burn': 'union-sdk/nft.md'
# - 'Sell, Bid, Fill': 'union-sdk/order.md'
- 'Ethereum':
- 'Ethereum Overview': 'ethereum/ethereum-overview.md'
- 'Contract Addresses': 'ethereum/contract-addresses.md'
- 'Smart Contracts':
- 'Smart Contracts Overview': 'ethereum/smart-contracts/smart-contracts.md'
- 'ExchangeV2':
- 'ExchangeV2 Overview': 'ethereum/smart-contracts/exchangev2-overview.md'
- 'ExchangeV2 Matching Orders': 'ethereum/smart-contracts/exchangev2-matching-orders.md'
- 'ExchangeV2 Sell and Bid': 'ethereum/smart-contracts/exchangev2-sell-bid.md'
- 'ExchangeV2 Update and Cancel': 'ethereum/smart-contracts/exchangev2-update-cancel.md'
- 'Tokens': 'ethereum/smart-contracts/tokens.md'
- 'Fees': 'ethereum/smart-contracts/fees.md'
- 'Royalties': 'ethereum/smart-contracts/royalties.md'
- 'API and Indexer':
- 'API and Indexer Overview': 'ethereum/api/ethereum-api-indexer.md'
- 'Search Items': 'ethereum/api/search-items.md'
- 'Search Orders': 'ethereum/api/search-orders.md'
- 'Create Lazy Minting': 'ethereum/api/create-lazy-minting.md'
- 'Create Orders': 'ethereum/api/create-orders.md'
- 'Ethereum SDK': 'ethereum/sdk/ethereum-sdk.md'
- 'Metadata':
- 'Ethereum Metadata': 'ethereum/metadata/ethereum-metadata.md'
- 'Example of uploading and using Metadata with IPFS': 'ethereum/metadata/ipfs-example.md'
- 'Tezos':
- 'Tezos Overview': 'tezos/tezos-overview.md'
- 'Contract Addresses': 'tezos/tezos-contract-addresses.md'

theme:
name: material
logo: assets/logo.png
favicon: assets/favicon.png
palette:
- scheme: default
primary: black
primary: indigo
toggle:
icon: material/toggle-switch-off-outline
name: Switch to dark mode
Expand All @@ -70,6 +71,9 @@ theme:
- navigation.sections
- search.highlight
- navigation.instant
- navigation.tabs
- navigation.tabs.sticky
- navigation.top

plugins:
- search
Expand All @@ -80,7 +84,11 @@ extra:
generator: false
social:
- icon: fontawesome/brands/discord
link: https://discord.gg/3ByePUMAvB
link: https://discord.gg/zqsZsEWBbN
- icon: fontawesome/brands/twitter
link: https://twitter.com/raribledao
- icon: fontawesome/brands/github
link: https://github.com/rarible
analytics:
provider: google
property: G-20ZJ98JPQ3
Expand Down

0 comments on commit 377e887

Please sign in to comment.