Skip to content

Commit

Permalink
update symbol (#432)
Browse files Browse the repository at this point in the history
* update symbol

* typos

* add gitignore for subxt

* use main branch for avail-core
  • Loading branch information
Leouarz authored Feb 21, 2024
1 parent 673a169 commit 76d4734
Show file tree
Hide file tree
Showing 20 changed files with 5,995 additions and 128 deletions.
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

2 comments on commit 76d4734

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 76d4734 Previous: 33f7951 Ratio
commitment_builder/32 4052804574 ns/iter (± 100906736) 4325417137 ns/iter (± 81695432) 0.94
commitment_builder/64 4018561685 ns/iter (± 35644900) 4343451680 ns/iter (± 92231152) 0.93
commitment_builder/128 4356838755 ns/iter (± 3772948) 4647446215 ns/iter (± 137494514) 0.94
commitment_builder/256 2149830294 ns/iter (± 3265106) 2367397557 ns/iter (± 42776582) 0.91

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 76d4734 Previous: 909af7f Ratio
commitment_builder_32 Instructions 43503267349 ops (± 0) 43503093041 ops (± 0) 1.00
commitment_builder_32 L1 Accesses 53515352409 ops (± 0) 53514815042 ops (± 0) 1.00
commitment_builder_32 L2 Accesses 788471 ops (± 0) 700403 ops (± 0) 1.13
commitment_builder_32 RAM Accesses 76811 ops (± 0) 89904 ops (± 0) 0.85
commitment_builder_32 Estimated Cycles 53521983149 ops (± 0) 53521463697 ops (± 0) 1.00
commitment_builder_64 Instructions 41971280515 ops (± 0) 41972869826 ops (± 0) 1.00
commitment_builder_64 L1 Accesses 51406132997 ops (± 0) 51407870438 ops (± 0) 1.00
commitment_builder_64 L2 Accesses 866645 ops (± 0) 893120 ops (± 0) 0.97
commitment_builder_64 RAM Accesses 189937 ops (± 0) 191298 ops (± 0) 0.99
commitment_builder_64 Estimated Cycles 51417114017 ops (± 0) 51419031468 ops (± 0) 1.00
commitment_builder_128 Instructions 54203451654 ops (± 0) 54204175550 ops (± 0) 1.00
commitment_builder_128 L1 Accesses 68301242098 ops (± 0) 68301951624 ops (± 0) 1.00
commitment_builder_128 L2 Accesses 1275021 ops (± 0) 1258510 ops (± 0) 1.01
commitment_builder_128 RAM Accesses 258441 ops (± 0) 242507 ops (± 0) 1.07
commitment_builder_128 Estimated Cycles 68316662638 ops (± 0) 68316731919 ops (± 0) 1.00
commitment_builder_256 Instructions 31758280254 ops (± 0) 31758548180 ops (± 0) 1.00
commitment_builder_256 L1 Accesses 40833075472 ops (± 0) 40833274463 ops (± 0) 1.00
commitment_builder_256 L2 Accesses 6794485 ops (± 0) 6788005 ops (± 0) 1.00
commitment_builder_256 RAM Accesses 253594 ops (± 0) 239352 ops (± 0) 1.06
commitment_builder_256 Estimated Cycles 40875923687 ops (± 0) 40875591808 ops (± 0) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.