Skip to content

Commit

Permalink
fix docs import paths (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leouarz authored Aug 25, 2024
1 parent 2fcb03c commit d8f7764
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions avail-js/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ On failure, a reason of failure is returned. On Success, ApplicationKeyCreated e
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -126,9 +126,9 @@ On failure, a reason of failure is returned. On Success, DataSubmitted event, tr
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -180,9 +180,9 @@ On failure, a reason of failure is returned. On Success, BlockLengthProposalSubm
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -234,9 +234,9 @@ On failure, a reason of failure is returned. On Success, ApplicationKeySet event
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -287,10 +287,10 @@ On failure, a reason of failure is returned. On Success, SubmitDataFeeModifierSe
### Minimal Example

```js
import { SDK } from "../../src/sdk";
import { Keyring } from "@polkadot/api";
import { DispatchFeeModifier, WaitFor } from "../../src/sdk/transactions";
import { Keyring } from "@polkadot/api"
import { BN } from "@polkadot/util"
import { SDK } from "avail-js-sdk"
import { WaitFor, DispatchFeeModifier } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944";
Expand Down Expand Up @@ -363,10 +363,10 @@ On failure, a reason of failure is returned. On Success, TransferEvent event, tr
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { BN } from "@polkadot/util"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -420,9 +420,9 @@ hash is returned.

```js
import { Keyring } from "@polkadot/api"
import { SDK } from "../../src/sdk"
import { WaitFor } from "../../src/sdk/transactions"
import { BN } from "@polkadot/util"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -477,8 +477,8 @@ hash is returned.

```js
import { Keyring } from "@polkadot/api"
import { SDK } from "../../src/sdk/"
import { WaitFor } from "../../src/sdk/transactions"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -537,10 +537,10 @@ On failure, a reason of failure is returned. On Success, Bonded event, transacti
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { BN } from "@polkadot/util"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -591,10 +591,10 @@ On failure, a reason of failure is returned. On Success, Bonded event, transacti
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { BN } from "@polkadot/util"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -643,9 +643,9 @@ On failure, a reason of failure is returned. On Success, Chilled event, transact
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -694,9 +694,9 @@ On failure, a reason of failure is returned. On Success, Chilled event, transact
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -746,9 +746,9 @@ On failure, a reason of failure is returned. On Success, Nominate transaction da
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -801,10 +801,10 @@ On failure, a reason of failure is returned. On Success, Unbonded event, transac
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { BN } from "@polkadot/util"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down Expand Up @@ -855,9 +855,9 @@ On failure, a reason of failure is returned. On Success, ValidatorPrefsSet event
### Minimal Example

```js
import { SDK } from "../../src/sdk"
import { Keyring } from "@polkadot/api"
import { WaitFor } from "../../src/sdk/transactions"
import { SDK } from "avail-js-sdk"
import { WaitFor } from "avail-js-sdk/sdk/transactions"

const main = async () => {
const providerEndpoint = "ws://127.0.0.1:9944"
Expand Down

0 comments on commit d8f7764

Please sign in to comment.