Skip to content

Commit

Permalink
Add codespell in CI and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed May 9, 2023
1 parent 94a9697 commit 1cb4fa8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/spell_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Spell check

on: [push, pull_request]

jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@v1
with:
check_filenames: true
check_hidden: true
28 changes: 14 additions & 14 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@
{
"name": "starknet_estimateFee",
"summary": "estimate the fee for of StarkNet transactions",
"description": "estimates the resources required by transactions when applyed on a given state",
"description": "estimates the resources required by transactions when applied on a given state",
"params": [
{
"name": "request",
Expand Down Expand Up @@ -616,7 +616,7 @@
},
{
"name": "starknet_syncing",
"summary": "Returns an object about the sync status, or false if the node is not synching",
"summary": "Returns an object about the sync status, or false if the node is not syncing",
"params": [],
"result": {
"name": "syncing",
Expand Down Expand Up @@ -809,7 +809,7 @@
},
"EVENT": {
"title": "Event",
"descripition": "A StarkNet event",
"description": "A StarkNet event",
"allOf": [
{
"title": "Event emitter",
Expand Down Expand Up @@ -1026,7 +1026,7 @@
},
"PENDING_STATE_UPDATE": {
"title": "Pending state update",
"descripition": "Pending state update",
"description": "Pending state update",
"type": "object",
"properties": {
"old_root": {
Expand Down Expand Up @@ -1262,7 +1262,7 @@
},
"BLOCK_WITH_TX_HASHES": {
"title": "Block with transaction hashes",
"descripition": "The block object",
"description": "The block object",
"allOf": [
{
"title": "Event emitter",
Expand Down Expand Up @@ -1480,7 +1480,7 @@
},
"SIGNATURE": {
"title": "Signature",
"descripition": "A transaction signature",
"description": "A transaction signature",
"type": "array",
"items": {
"$ref": "#/components/schemas/FELT"
Expand Down Expand Up @@ -1555,7 +1555,7 @@
},
"DECLARE_TXN_V1": {
"title": "Declare Contract Transaction V1",
"descripition": "Declare Contract Transaction V1",
"description": "Declare Contract Transaction V1",
"allOf": [
{
"title": "Common transaction properties",
Expand Down Expand Up @@ -1593,7 +1593,7 @@
},
"DECLARE_TXN_V2": {
"title": "Declare Transaction V2",
"descripition": "Declare Contract Transaction V2",
"description": "Declare Contract Transaction V2",
"allOf": [
{
"title": "Declare transaction V1",
Expand Down Expand Up @@ -1630,7 +1630,7 @@
},
"BROADCASTED_DECLARE_TXN_V1": {
"title": "Broadcasted declare transaction V1",
"descripition": "mempool representation of a declare transaction",
"description": "mempool representation of a declare transaction",
"allOf": [
{
"title": "Broadcasted transaction common properties",
Expand All @@ -1656,7 +1656,7 @@
},
"BROADCASTED_DECLARE_TXN_V2": {
"title": "Broadcasted declare transaction V2",
"descripition": "mempool representation of a declare transaction V2",
"description": "mempool representation of a declare transaction V2",
"allOf": [
{
"title": "Broadcasted transaction common properties",
Expand Down Expand Up @@ -1699,7 +1699,7 @@
},
"DEPLOY_ACCOUNT_TXN": {
"title": "Deploy account transaction",
"descripition": "Deploy Account Transaction",
"description": "Deploy Account Transaction",
"description": "Deploys an account contract, charges fee from the pre-funded account addresses",
"allOf": [
{
Expand Down Expand Up @@ -1982,7 +1982,7 @@
},
"COMMON_RECEIPT_PROPERTIES": {
"title": "Common receipt properties",
"descripition": "Common properties for a transaction receipt",
"description": "Common properties for a transaction receipt",
"type": "object",
"properties": {
"transaction_hash": {
Expand Down Expand Up @@ -2418,7 +2418,7 @@
"abi": {
"title": "ABI",
"type": "string",
"descripition": "The class ABI, as supplied by the user declaring the class"
"description": "The class ABI, as supplied by the user declaring the class"
}
},
"required": [
Expand All @@ -2429,7 +2429,7 @@
},
"DEPRECATED_CONTRACT_CLASS": {
"title": "Deprecated contract class",
"descripition": "The definition of a StarkNet contract class",
"description": "The definition of a StarkNet contract class",
"type": "object",
"properties": {
"program": {
Expand Down
2 changes: 1 addition & 1 deletion validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function fetchExternalRefsFor(docToParse) {
* For a given dereferencer object, make sure its initial refs don't include refs that are already
* in the ref cache it has. So it won't try to resolve these.
*
* @param {Dereferencer} dereffer The dereferncer object
* @param {Dereferencer} dereffer The dereferencer object
* @returns The amended dereferencer.
*/
function fixRefs(dereffer) {
Expand Down

0 comments on commit 1cb4fa8

Please sign in to comment.