Align with intro and links to other parts (#751)
* Align with intro and links to other parts * Bump deps
This commit is contained in:
@@ -8,8 +8,19 @@ module.exports = {
|
||||
themeConfig: {
|
||||
displayAllHeaders: true,
|
||||
nav: [
|
||||
{ text: 'Polkadot/Substrate Apps', link: 'https://polkadot.js.org/apps/' },
|
||||
{ text: 'Project family', link: 'https://polkadot.js.org/' },
|
||||
{
|
||||
text: 'Documentation',
|
||||
items: [
|
||||
{ text: 'API Reference (this)', link: 'https://polkadot.js.org/api/' },
|
||||
{ text: 'Utility Reference', link: 'https://polkadot.js.org/common/' },
|
||||
{ text: 'UI Libs Reference', link: 'https://polkadot.js.org/ui/' },
|
||||
]
|
||||
},
|
||||
{ text: 'GitHub', link: 'https://github.com/polkadot-js/api' }
|
||||
],
|
||||
search: false,
|
||||
sidebar: [
|
||||
{
|
||||
title: 'Examples (Promise API)',
|
||||
|
||||
@@ -1 +1,9 @@
|
||||
$accentColor = #fd8824
|
||||
$textColor = #2c3e50
|
||||
|
||||
.home .hero .description,
|
||||
.home .feature h2,
|
||||
.home .feature p {
|
||||
color: $textColor
|
||||
opacity: 0.75
|
||||
}
|
||||
|
||||
+31
-2
@@ -1,6 +1,35 @@
|
||||
# Polkadot Javascript API
|
||||
---
|
||||
home: true
|
||||
heroText:
|
||||
tagline:
|
||||
# Bringing JavaScript to the Polkadot world.
|
||||
# actionText: Repository Overview
|
||||
# actionLink: /REPOS.md
|
||||
features:
|
||||
- title: API
|
||||
details: A powerful dynamic API that allows chain interactions with transparent encoding and decoding.
|
||||
- title: Substrate defaults
|
||||
details: An overview of the various default methods, state entries and RPCs for Substrate-based chains.
|
||||
- title: Types
|
||||
details: Various type interfaces to make using returned values from API calls transparent in your code.
|
||||
|
||||
You can query a node and interact with the Polkadot network using Javascript. This guide describes the Polkadot Javascript API.
|
||||
footer: Apache-2 Licensed | Copyright © 2017-2019 polkadot-js authors and contributors
|
||||
---
|
||||
|
||||
## Welcome
|
||||
|
||||
The API provides application developers the ability to query a node and interact with the Polkadot or Substrate chains using Javascript. Here you will find documentation and examples to get you started.
|
||||
|
||||
::: tip Examples
|
||||
In a rush and just want examples? [Jump right in](/examples/promise/) and get a handle on using the API in your projects.
|
||||
:::
|
||||
|
||||
## Available packages
|
||||
|
||||
This repository split up into a number of internal packages, namely -
|
||||
|
||||
- [api](api/README.md) Promise and RxJS-based APIs
|
||||
- [types](types/README.md) Type encoding and decoding wrappers
|
||||
|
||||
## The Polkadot Project
|
||||
|
||||
|
||||
@@ -36,6 +36,6 @@
|
||||
"@polkadot/rpc-rx": "^0.45.20",
|
||||
"@polkadot/storage": "^0.45.20",
|
||||
"@polkadot/types": "^0.45.20",
|
||||
"@polkadot/util-crypto": "^0.34.35"
|
||||
"@polkadot/util-crypto": "^0.34.36"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@
|
||||
"@polkadot/jsonrpc": "^0.45.20",
|
||||
"@polkadot/rpc-provider": "^0.45.20",
|
||||
"@polkadot/types": "^0.45.20",
|
||||
"@polkadot/util": "^0.34.35"
|
||||
"@polkadot/util": "^0.34.36"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/keyring": "^0.34.35",
|
||||
"@polkadot/keyring": "^0.34.36",
|
||||
"@polkadot/storage": "^0.45.20",
|
||||
"@polkadot/util": "^0.34.35",
|
||||
"@polkadot/util-crypto": "^0.34.35",
|
||||
"@polkadot/util": "^0.34.36",
|
||||
"@polkadot/util-crypto": "^0.34.36",
|
||||
"@types/nock": "^9.3.1",
|
||||
"eventemitter3": "^3.1.0",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/types": "^0.45.20",
|
||||
"@polkadot/util": "^0.34.35"
|
||||
"@polkadot/util": "^0.34.36"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/keyring": "^0.34.35",
|
||||
"@polkadot/keyring": "^0.34.36",
|
||||
"@polkadot/types": "^0.45.20",
|
||||
"@polkadot/util": "^0.34.35",
|
||||
"@polkadot/util-crypto": "^0.34.35"
|
||||
"@polkadot/util": "^0.34.36",
|
||||
"@polkadot/util-crypto": "^0.34.36"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/keyring": "^0.34.35",
|
||||
"@polkadot/util": "^0.34.35",
|
||||
"@polkadot/keyring": "^0.34.36",
|
||||
"@polkadot/util": "^0.34.36",
|
||||
"core-js": "^2.6.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1429,14 +1429,14 @@
|
||||
typescript "^3.3.3333"
|
||||
vuepress "^1.0.0-alpha.40"
|
||||
|
||||
"@polkadot/keyring@^0.34.35":
|
||||
version "0.34.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.34.35.tgz#77d09b2ab22e07dd544574451e48e16956a2cda1"
|
||||
integrity sha512-E85kIZDY+SLzNgwQ5dWS8GOMaX6djq1PKVj+v5B2Oii9plNJRh7vXOf/127IWMcSC3gNG6Gen3SxquM5/vkbFw==
|
||||
"@polkadot/keyring@^0.34.36":
|
||||
version "0.34.36"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.34.36.tgz#cc88802a6128dee8850874226e5bdef2ca22952f"
|
||||
integrity sha512-AWf4mIWokVLInEOfEBOZ8MnPbMs04V22kjIJ3tcYuantUUc947dW39lKKgSY8R3qF37Y5VU/ILmBzOBy6cvLCg==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.3.4"
|
||||
"@polkadot/util" "^0.34.35"
|
||||
"@polkadot/util-crypto" "^0.34.35"
|
||||
"@polkadot/util" "^0.34.36"
|
||||
"@polkadot/util-crypto" "^0.34.36"
|
||||
"@types/bs58" "^4.0.0"
|
||||
bs58 "^4.0.1"
|
||||
|
||||
@@ -1450,14 +1450,14 @@
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.54.tgz#cac6a12809f886fb7698bfbf3ffb27b793f7745d"
|
||||
integrity sha512-wYiJZ62v0IyG7jO6nQ7XsxHiYJH1i0x3BuHPiV/LiAq4QSX0LVv0q3SbN7hwrEDb4kmHtHkKpF9iXV8fKLFH2w==
|
||||
|
||||
"@polkadot/util-crypto@^0.34.35":
|
||||
version "0.34.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.34.35.tgz#82b04d2e5903ca315bda0f22438b026162963c70"
|
||||
integrity sha512-n6zzswFnsG62cZMAliV/VIZUDiW0gKjCrjMaiT9ozzZ9TUjUDNLbFtJ++15vp3s0cl4mnluhGXZKuWRjqhQIHw==
|
||||
"@polkadot/util-crypto@^0.34.36":
|
||||
version "0.34.36"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.34.36.tgz#d58d8ef3d1501cc6dd87f11a092e3c27791c5b67"
|
||||
integrity sha512-DMUhMhIPDmduV1Rw+aVP1zP7SIn3C3utRcleMriSWlqWZJGA8D5xMQUW8samOLee+Ev7pPO5QrnCQOmFY6+tpQ==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.3.4"
|
||||
"@polkadot/schnorrkel-js" "^0.1.2-2"
|
||||
"@polkadot/util" "^0.34.35"
|
||||
"@polkadot/util" "^0.34.36"
|
||||
"@types/bip39" "^2.4.2"
|
||||
"@types/pbkdf2" "^3.0.0"
|
||||
"@types/secp256k1" "^3.5.0"
|
||||
@@ -1470,10 +1470,10 @@
|
||||
tweetnacl "^1.0.1"
|
||||
xxhashjs "^0.2.2"
|
||||
|
||||
"@polkadot/util@^0.34.35":
|
||||
version "0.34.35"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.34.35.tgz#e395ac8faaae0f8b57419e0e775c0d6ef1f9f3ae"
|
||||
integrity sha512-zbU8EPuxg4Ig7Ugyan6ZZM92SShxKSLAc0aoY8bGvufDkZAtl2wQqBEpip/JjJ6DIHDHrx7lEWeZTdQ67Ad8Bg==
|
||||
"@polkadot/util@^0.34.36":
|
||||
version "0.34.36"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.34.36.tgz#eeb699202d9e3dfb7e64277ef5179334f1d97737"
|
||||
integrity sha512-BTDvWeieW5hZABK54kt37e+f8GfmnfwGdNaKI1AKZA4p7Ms5iRCKMVRTSx3p69zLT10KChOlhUPGgdr/AlFFtg==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.3.4"
|
||||
"@types/bn.js" "^4.11.4"
|
||||
|
||||
Reference in New Issue
Block a user