@xchainjs/xchain-thornode

v0.1.0-alpha3
Thornode module that exposes all thornode functions using openapi-generator-cli
XChain Thornode

lint

eslint "{src,__tests__}/**/*.ts" --fix --max-warnings 0

test

jest --passWithNoTests

build

yarn clean && rollup -c

clean

rimraf lib/**

generate:types

yarn clean:types:thornode && yarn generate:types:convertToJson && yarn generate:types:thornode && yarn clean:types:tempFiles

prepublishOnly

yarn run build

clean:types:thornode

rimraf ./src/generated/thornodeApi

clean:types:tempFiles

rimraf ./input.yaml ./input.json

generate:types:thornode

TS_POST_PROCESS_FILE=./node_modules/.bin/prettier openapi-generator-cli generate -i ./input.json -g typescript-axios -o ./src/generated/thornodeApi --reserved-words-mappings in=in

generate:types:convertToJson

curl 'https://gitlab.com/thorchain/thornode/-/raw/357456ea9e71cb2e846157b169bb5581b4075d0f/openapi/openapi.yaml' > ./input.yaml && yaml2json ./input.yaml --pretty > ./input.json
npm i @xchainjs/[email protected]

Metadata

  • MIT
  • Whatever
  • THORChain
  • released 7/21/2022

Downloads