Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update symbol #432

Merged
merged 4 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 66 additions & 66 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ There you can learn how to:
- Running Avail Benchmarks


## Interract with the chain
You can find on this repository many example on how to interract with any avail chain.
## interact with the chain
You can find on this repository many example on how to interact with any avail chain.
- In the avail-js folder, you will find our wrapper for polkadot js including multiple helpers.
- The example folder contains some examples using node-js and an example web app to setup the extension.
- In the avail-subxt folder, you will find our fork of subxt with some example on usage.
Expand Down
4 changes: 2 additions & 2 deletions avail-js/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h1><a href="#md:avail-js">Avail-js</a></h1>
<p>Library to connect to Avail</p>
<a id="md:introduction" class="tsd-anchor"></a>
<h2><a href="#md:introduction">Introduction</a></h2>
<p>The simplest way to interract with the avail chain.</p>
<p>The simplest way to interact with the avail chain.</p>
<a id="md:installation" class="tsd-anchor"></a>
<h2><a href="#md:installation">Installation</a></h2>
<p>Pre-requisites: <a href="https://nodejs.org/en/download/">Node.js</a></p>
Expand All @@ -71,7 +71,7 @@ <h2><a href="#md:examples">Examples</a></h2>
<a id="md:goals" class="tsd-anchor"></a>
<h2><a href="#md:goals">Goals</a></h2>
<ul>
<li>Provide an easy way to interract with avail</li>
<li>Provide an easy way to interact with avail</li>
<li>Facilitate account management</li>
<li>Add utility helpers</li>
<li>Still expose polkadot-js</li>
Expand Down
2 changes: 1 addition & 1 deletion avail-js/examples/next-example/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function Home() {
chain: api.runtimeChain.toString(),
specVersion: api.runtimeVersion.specVersion.toNumber(),
tokenDecimals: api.registry.chainDecimals[0] || 18,
tokenSymbol: api.registry.chainTokens[0] || "AVL",
tokenSymbol: api.registry.chainTokens[0] || "AVAIL",
genesisHash: api.genesisHash.toHex(),
ss58Format: isNumber(api.registry.chainSS58) ? api.registry.chainSS58 : 0,
chainType: "substrate" as "substrate",
Expand Down
4 changes: 2 additions & 2 deletions avail-js/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Library to connect to Avail

## Introduction

The simplest way to interract with the avail chain.
The simplest way to interact with the avail chain.

## Installation

Expand All @@ -26,7 +26,7 @@ npm install avail-js-sdk

## Goals

- Provide an easy way to interract with avail
- Provide an easy way to interact with avail
- Facilitate account management
- Add utility helpers
- Still expose polkadot-js
Expand Down
2 changes: 1 addition & 1 deletion avail-js/src/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const decodeHexAppId = (value: `0x${string}`): string => {
/**
* Extracts the data from a da submission
*
* @param {ApiPromise} api the api to interract with the chain.
* @param {ApiPromise} api the api to interact with the chain.
* @param {string} blockHash the hash of the block to query at.
* @param {string} extrinsicHash the hash of the extrinsic to query at.
* @return {Promise<string>} the bytes representing the data
Expand Down
3 changes: 1 addition & 2 deletions avail-subxt/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
target
Cargo.lock
target
Loading
Loading