Skip to content

Commit

Permalink
Merge pull request #53 from Zondax/dev
Browse files Browse the repository at this point in the history
New Release
  • Loading branch information
emmanuelm41 authored May 20, 2024
2 parents 7ae6569 + 442e4f4 commit 871aca8
Show file tree
Hide file tree
Showing 9 changed files with 3,614 additions and 292 deletions.
3 changes: 3 additions & 0 deletions chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ chains:
- id: 'astr'
name: 'Astar'
url: "wss://astar.api.onfinality.io/public-ws"
- id: 'wsd-local'
name: 'Westend Local'
url: "ws://85.208.51.8:36003"
61 changes: 59 additions & 2 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Chains'
/node/props:
post:
summary: Retrieve node properties
description: Retrieve and cache node properties like decimals, token symbol, chain spec, etc
parameters:
- name: chainId
in: path
required: true
description: Ticket of the chain
schema:
type: string
responses:
'200':
description: Chain metadata
content:
application/json:
schema:
$ref: '#/components/schemas/ChainProps'
'404':
description: Chain not found
/node/metadata/flush:
post:
summary: Flush cache
Expand Down Expand Up @@ -57,7 +77,27 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ChainConfig'
$ref: '#/components/schemas/Metadata'
'404':
description: Chain not found
/node/metadata/hash:
post:
summary: Retrieve metadata digest hash
description: Retrieve hash of metadata + chain props, required to create the CheckMetadataHash signed extension
parameters:
- name: chainId
in: path
required: true
description: Ticket of the chain
schema:
type: string
responses:
'200':
description: Chain metadata digest hash
content:
application/json:
schema:
$ref: '#/components/schemas/MetadataHash'
'404':
description: Chain not found
/transaction/metadata:
Expand Down Expand Up @@ -97,6 +137,12 @@ components:
shortenedMetadata:
type: string
description: Tx shortened metadata on hex format
MetadataHash:
type: object
properties:
metadataHash:
type: string
description: Metadata digest hash
TxPayload:
required:
- txBlob
Expand All @@ -119,7 +165,18 @@ components:
- dot
- dot-hub
- bnc

ChainProps:
properties:
base58Prefix:
type: number
decimals:
type: number
tokenSymbol:
type: string
specName:
type: string
specVersion:
type: number
ChainConfig:
required:
- id
Expand Down
Loading

0 comments on commit 871aca8

Please sign in to comment.