Test nodejs image (#3921)

* Test nodejs image

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>

* minor changes

* v in version

* version in swagger.yaml
This commit is contained in:
Marko 2019-08-26 14:27:33 +02:00 committed by GitHub
parent c475f25786
commit e3a97b0981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 153 additions and 155 deletions

View File

@ -373,12 +373,12 @@ jobs:
steps: steps:
- checkout - checkout
- run: - run:
name: Test RPC endpoints agsainst swagger documentation name: Test RPC endpoints against swagger documentation
command: | command: |
set -x set -x
export PATH=~/.local/bin:$PATH export PATH=~/.local/bin:$PATH
# install node 11.15 and dredd # install node and dredd
./scripts/get_nodejs.sh ./scripts/get_nodejs.sh
# build the binaries with a proper version of Go # build the binaries with a proper version of Go

View File

@ -27,10 +27,10 @@ Instead, we use `git remote` to add the fork as a new remote for the original re
For instance, to create a fork and work on a branch of it, I would: For instance, to create a fork and work on a branch of it, I would:
* Create the fork on github, using the fork button. - Create the fork on github, using the fork button.
* Go to the original repo checked out locally (i.e. `$GOPATH/src/github.com/tendermint/tendermint`) - Go to the original repo checked out locally (i.e. `$GOPATH/src/github.com/tendermint/tendermint`)
* `git remote rename origin upstream` - `git remote rename origin upstream`
* `git remote add origin git@github.com:ebuchman/basecoin.git` - `git remote add origin git@github.com:ebuchman/basecoin.git`
Now `origin` refers to my fork and `upstream` refers to the tendermint version. Now `origin` refers to my fork and `upstream` refers to the tendermint version.
So I can `git push -u origin master` to update my fork, and make pull requests to tendermint from there. So I can `git push -u origin master` to update my fork, and make pull requests to tendermint from there.
@ -38,8 +38,8 @@ Of course, replace `ebuchman` with your git handle.
To pull in updates from the origin repo, run To pull in updates from the origin repo, run
* `git fetch upstream` - `git fetch upstream`
* `git rebase upstream/master` (or whatever branch you want) - `git rebase upstream/master` (or whatever branch you want)
## Dependencies ## Dependencies
@ -148,8 +148,7 @@ easy to reference the pull request where a change was introduced.
all issues all issues
- run `bash ./scripts/authors.sh` to get a list of authors since the latest - run `bash ./scripts/authors.sh` to get a list of authors since the latest
release, and add the github aliases of external contributors to the top of release, and add the github aliases of external contributors to the top of
the changelog. To lookup an alias from an email, try `bash the changelog. To lookup an alias from an email, try `bash ./scripts/authors.sh <email>`
./scripts/authors.sh <email>`
- reset the `CHANGELOG_PENDING.md` - reset the `CHANGELOG_PENDING.md`
- bump versions - bump versions
4. push your changes with prepared release details to `vX.X` (this will trigger the release `vX.X.0`) 4. push your changes with prepared release details to `vX.X` (this will trigger the release `vX.X.0`)
@ -187,7 +186,7 @@ includes its continuous integration status using a badge in the `README.md`.
### RPC Testing ### RPC Testing
If you contribute to the RPC endpoints it's important to document your changes in the [Swagger file](./docs/spec/rpc/swagger.yaml) If you contribute to the RPC endpoints it's important to document your changes in the [Swagger file](./docs/spec/rpc/swagger.yaml)
To test your changes you should install `nodejs` version `v11.15.*` and run: To test your changes you should install `nodejs` and run:
```bash ```bash
npm i -g dredd npm i -g dredd

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: "0.32.1" version: "Master"
title: RPC client for Tendermint title: RPC client for Tendermint
description: A REST interface for state queries, transaction generation and broadcasting. description: A REST interface for state queries, transaction generation and broadcasting.
license: license:
@ -60,11 +60,11 @@ paths:
200: 200:
description: empty answer description: empty answer
schema: schema:
$ref: '#/definitions/BroadcastTxResponse' $ref: "#/definitions/BroadcastTxResponse"
500: 500:
description: empty error description: empty error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/broadcast_tx_async: /broadcast_tx_async:
get: get:
summary: Returns right away, with no response. Does not wait for CheckTx nor DeliverTx results. summary: Returns right away, with no response. Does not wait for CheckTx nor DeliverTx results.
@ -101,11 +101,11 @@ paths:
200: 200:
description: empty answer description: empty answer
schema: schema:
$ref: '#/definitions/BroadcastTxResponse' $ref: "#/definitions/BroadcastTxResponse"
500: 500:
description: empty error description: empty error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/broadcast_tx_commit: /broadcast_tx_commit:
get: get:
summary: Returns with the responses from CheckTx and DeliverTx. summary: Returns with the responses from CheckTx and DeliverTx.
@ -140,11 +140,11 @@ paths:
200: 200:
description: empty answer description: empty answer
schema: schema:
$ref: '#/definitions/BroadcastTxCommitResponse' $ref: "#/definitions/BroadcastTxCommitResponse"
500: 500:
description: empty error description: empty error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/subscribe: /subscribe:
get: get:
summary: Subscribe for events via WebSocket. summary: Subscribe for events via WebSocket.
@ -285,11 +285,11 @@ paths:
200: 200:
description: empty answer description: empty answer
schema: schema:
$ref: '#/definitions/EmptyResponse' $ref: "#/definitions/EmptyResponse"
500: 500:
description: empty error description: empty error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/unsubscribe: /unsubscribe:
get: get:
summary: Unsubscribe from event on Websocket summary: Unsubscribe from event on Websocket
@ -328,11 +328,11 @@ paths:
200: 200:
description: empty answer description: empty answer
schema: schema:
$ref: '#/definitions/EmptyResponse' $ref: "#/definitions/EmptyResponse"
500: 500:
description: empty error description: empty error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/unsubscribe_all: /unsubscribe_all:
get: get:
summary: Unsubscribe from all events via WebSocket summary: Unsubscribe from all events via WebSocket
@ -347,11 +347,11 @@ paths:
200: 200:
description: empty answer description: empty answer
schema: schema:
$ref: '#/definitions/EmptyResponse' $ref: "#/definitions/EmptyResponse"
500: 500:
description: empty error description: empty error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/health: /health:
get: get:
summary: Node heartbeat summary: Node heartbeat
@ -366,11 +366,11 @@ paths:
200: 200:
description: empty answer description: empty answer
schema: schema:
$ref: '#/definitions/EmptyResponse' $ref: "#/definitions/EmptyResponse"
500: 500:
description: empty error description: empty error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/status: /status:
get: get:
summary: Node Status summary: Node Status
@ -385,11 +385,11 @@ paths:
200: 200:
description: Status of the node description: Status of the node
schema: schema:
$ref: '#/definitions/StatusResponse' $ref: "#/definitions/StatusResponse"
500: 500:
description: empty error description: empty error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/net_info: /net_info:
get: get:
summary: Network informations summary: Network informations
@ -404,11 +404,11 @@ paths:
200: 200:
description: empty answer description: empty answer
schema: schema:
$ref: '#/definitions/NetInfoResponse' $ref: "#/definitions/NetInfoResponse"
500: 500:
description: empty error description: empty error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/blockchain: /blockchain:
get: get:
summary: Get block headers for minHeight <= height <= maxHeight. summary: Get block headers for minHeight <= height <= maxHeight.
@ -434,11 +434,11 @@ paths:
200: 200:
description: Block headers, returned in descending order (highest first). description: Block headers, returned in descending order (highest first).
schema: schema:
$ref: '#/definitions/BlockchainResponse' $ref: "#/definitions/BlockchainResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/block: /block:
get: get:
summary: Get block at a specified height summary: Get block at a specified height
@ -460,11 +460,11 @@ paths:
200: 200:
description: Block informations. description: Block informations.
schema: schema:
$ref: '#/definitions/BlockResponse' $ref: "#/definitions/BlockResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/block_results: /block_results:
get: get:
summary: Get block results at a specified height summary: Get block results at a specified height
@ -486,11 +486,11 @@ paths:
200: 200:
description: Block results. description: Block results.
schema: schema:
$ref: '#/definitions/BlockResultsResponse' $ref: "#/definitions/BlockResultsResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/commit: /commit:
get: get:
summary: Get commit results at a specified height summary: Get commit results at a specified height
@ -512,11 +512,11 @@ paths:
200: 200:
description: Commit results. description: Commit results.
schema: schema:
$ref: '#/definitions/CommitResponse' $ref: "#/definitions/CommitResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/validators: /validators:
get: get:
summary: Get validator set at a specified height summary: Get validator set at a specified height
@ -538,11 +538,11 @@ paths:
200: 200:
description: Commit results. description: Commit results.
schema: schema:
$ref: '#/definitions/ValidatorsResponse' $ref: "#/definitions/ValidatorsResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/genesis: /genesis:
get: get:
summary: Get Genesis summary: Get Genesis
@ -557,11 +557,11 @@ paths:
200: 200:
description: Genesis results. description: Genesis results.
schema: schema:
$ref: '#/definitions/GenesisResponse' $ref: "#/definitions/GenesisResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/dump_consensus_state: /dump_consensus_state:
get: get:
summary: Get consensus state summary: Get consensus state
@ -576,11 +576,11 @@ paths:
200: 200:
description: consensus state results. description: consensus state results.
schema: schema:
$ref: '#/definitions/DumpConsensusResponse' $ref: "#/definitions/DumpConsensusResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/consensus_state: /consensus_state:
get: get:
summary: Get consensus state summary: Get consensus state
@ -595,11 +595,11 @@ paths:
200: 200:
description: consensus state results. description: consensus state results.
schema: schema:
$ref: '#/definitions/ConsensusStateResponse' $ref: "#/definitions/ConsensusStateResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/consensus_params: /consensus_params:
get: get:
summary: Get consensus parameters summary: Get consensus parameters
@ -621,11 +621,11 @@ paths:
200: 200:
description: consensus parameters results. description: consensus parameters results.
schema: schema:
$ref: '#/definitions/ConsensusParamsResponse' $ref: "#/definitions/ConsensusParamsResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/unconfirmed_txs: /unconfirmed_txs:
get: get:
summary: Get the list of unconfirmed transactions summary: Get the list of unconfirmed transactions
@ -646,11 +646,11 @@ paths:
200: 200:
description: List of unconfirmed transactions description: List of unconfirmed transactions
schema: schema:
$ref: '#/definitions/UnconfirmedTransactionsResponse' $ref: "#/definitions/UnconfirmedTransactionsResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/num_unconfirmed_txs: /num_unconfirmed_txs:
get: get:
summary: Get data about unconfirmed transactions summary: Get data about unconfirmed transactions
@ -665,11 +665,11 @@ paths:
200: 200:
description: status about unconfirmed transactions description: status about unconfirmed transactions
schema: schema:
$ref: '#/definitions/NumUnconfirmedTransactionsResponse' $ref: "#/definitions/NumUnconfirmedTransactionsResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/tx_search: /tx_search:
get: get:
summary: Search for transactions summary: Search for transactions
@ -712,11 +712,11 @@ paths:
200: 200:
description: List of unconfirmed transactions description: List of unconfirmed transactions
schema: schema:
$ref: '#/definitions/TxSearchResponse' $ref: "#/definitions/TxSearchResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/tx: /tx:
get: get:
summary: Get transactions by hash summary: Get transactions by hash
@ -745,11 +745,11 @@ paths:
200: 200:
description: Get a transaction description: Get a transaction
schema: schema:
$ref: '#/definitions/TxResponse' $ref: "#/definitions/TxResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/abci_info: /abci_info:
get: get:
summary: Get some info about the application. summary: Get some info about the application.
@ -764,11 +764,11 @@ paths:
200: 200:
description: Get some info about the application. description: Get some info about the application.
schema: schema:
$ref: '#/definitions/ABCIInfoResponse' $ref: "#/definitions/ABCIInfoResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/abci_query: /abci_query:
get: get:
summary: Query the application for some information. summary: Query the application for some information.
@ -810,11 +810,11 @@ paths:
200: 200:
description: Response of the submitted query description: Response of the submitted query
schema: schema:
$ref: '#/definitions/ABCIQueryResponse' $ref: "#/definitions/ABCIQueryResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
/broadcast_evidence: /broadcast_evidence:
get: get:
@ -837,12 +837,11 @@ paths:
200: 200:
description: Broadcast evidence of the misbehavior. description: Broadcast evidence of the misbehavior.
schema: schema:
$ref: '#/definitions/BroadcastEvidenceResponse' $ref: "#/definitions/BroadcastEvidenceResponse"
500: 500:
description: Error description: Error
schema: schema:
$ref: '#/definitions/ErrorResponse' $ref: "#/definitions/ErrorResponse"
definitions: definitions:
JSONRPC: JSONRPC:
@ -857,7 +856,7 @@ definitions:
EmptyResponse: EmptyResponse:
description: Empty Response description: Empty Response
allOf: allOf:
- $ref: '#/definitions/JSONRPC' - $ref: "#/definitions/JSONRPC"
- type: object - type: object
properties: properties:
result: result:
@ -866,7 +865,7 @@ definitions:
ErrorResponse: ErrorResponse:
description: Error Response description: Error Response
allOf: allOf:
- $ref: '#/definitions/JSONRPC' - $ref: "#/definitions/JSONRPC"
- type: object - type: object
properties: properties:
error: error:
@ -897,7 +896,7 @@ definitions:
type: object type: object
properties: properties:
protocol_version: protocol_version:
$ref: '#/definitions/ProtocolVersion' $ref: "#/definitions/ProtocolVersion"
id: id:
type: string type: string
x-example: "5576458aef205977e18fd50b274e9b5d9014525a" x-example: "5576458aef205977e18fd50b274e9b5d9014525a"
@ -951,7 +950,7 @@ definitions:
type: string type: string
x-example: "5D6A51A8E9899C44079C6AF90618BA0369070E6E" x-example: "5D6A51A8E9899C44079C6AF90618BA0369070E6E"
pub_key: pub_key:
$ref: '#/definitions/PubKey' $ref: "#/definitions/PubKey"
voting_power: voting_power:
type: string type: string
x-example: "0" x-example: "0"
@ -960,19 +959,19 @@ definitions:
type: object type: object
properties: properties:
node_info: node_info:
$ref: '#/definitions/NodeInfo' $ref: "#/definitions/NodeInfo"
sync_info: sync_info:
$ref: '#/definitions/SyncInfo' $ref: "#/definitions/SyncInfo"
validator_info: validator_info:
$ref: '#/definitions/ValidatorInfo' $ref: "#/definitions/ValidatorInfo"
StatusResponse: StatusResponse:
description: Status Response description: Status Response
allOf: allOf:
- $ref: '#/definitions/JSONRPC' - $ref: "#/definitions/JSONRPC"
- type: object - type: object
properties: properties:
result: result:
$ref: '#/definitions/Status' $ref: "#/definitions/Status"
Monitor: Monitor:
type: object type: object
properties: properties:
@ -1040,23 +1039,23 @@ definitions:
type: string type: string
x-example: "168901057956119" x-example: "168901057956119"
SendMonitor: SendMonitor:
$ref: '#/definitions/Monitor' $ref: "#/definitions/Monitor"
RecvMonitor: RecvMonitor:
$ref: '#/definitions/Monitor' $ref: "#/definitions/Monitor"
Channels: Channels:
type: array type: array
items: items:
$ref: '#/definitions/Channel' $ref: "#/definitions/Channel"
Peer: Peer:
type: object type: object
properties: properties:
node_info: node_info:
$ref: '#/definitions/NodeInfo' $ref: "#/definitions/NodeInfo"
is_outbound: is_outbound:
type: boolean type: boolean
x-example: true x-example: true
connection_status: connection_status:
$ref: '#/definitions/ConnectionStatus' $ref: "#/definitions/ConnectionStatus"
remote_ip: remote_ip:
type: string type: string
x-example: "95.179.155.35" x-example: "95.179.155.35"
@ -1077,15 +1076,15 @@ definitions:
peers: peers:
type: array type: array
items: items:
$ref: '#/definitions/Peer' $ref: "#/definitions/Peer"
NetInfoResponse: NetInfoResponse:
description: NetInfo Response description: NetInfo Response
allOf: allOf:
- $ref: '#/definitions/JSONRPC' - $ref: "#/definitions/JSONRPC"
- type: object - type: object
properties: properties:
result: result:
$ref: '#/definitions/NetInfo' $ref: "#/definitions/NetInfo"
BlockID: BlockID:
required: required:
- "hash" - "hash"
@ -1154,7 +1153,7 @@ definitions:
type: string type: string
x-example: "3" x-example: "3"
last_block_id: last_block_id:
$ref: '#/definitions/BlockID' $ref: "#/definitions/BlockID"
last_commit_hash: last_commit_hash:
type: string type: string
x-example: "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812" x-example: "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812"
@ -1208,9 +1207,9 @@ definitions:
type: object type: object
properties: properties:
block_id: block_id:
$ref: '#/definitions/BlockMetaId' $ref: "#/definitions/BlockMetaId"
header: header:
$ref: '#/definitions/BlockMetaHeader' $ref: "#/definitions/BlockMetaHeader"
Blockchain: Blockchain:
type: object type: object
required: required:
@ -1223,15 +1222,15 @@ definitions:
block_metas: block_metas:
type: "array" type: "array"
items: items:
$ref: '#/definitions/BlockMeta' $ref: "#/definitions/BlockMeta"
BlockchainResponse: BlockchainResponse:
description: Blockchain info description: Blockchain info
allOf: allOf:
- $ref: '#/definitions/JSONRPC' - $ref: "#/definitions/JSONRPC"
- type: object - type: object
properties: properties:
result: result:
$ref: '#/definitions/Blockchain' $ref: "#/definitions/Blockchain"
Commit: Commit:
required: required:
- "type" - "type"
@ -1253,7 +1252,7 @@ definitions:
type: string type: string
x-example: "0" x-example: "0"
block_id: block_id:
$ref: '#/definitions/BlockID' $ref: "#/definitions/BlockID"
timestamp: timestamp:
type: string type: string
x-example: "2019-08-01T11:39:38.867269833Z" x-example: "2019-08-01T11:39:38.867269833Z"
@ -1270,30 +1269,30 @@ definitions:
type: object type: object
properties: properties:
header: header:
$ref: '#/definitions/BlockMetaHeader' $ref: "#/definitions/BlockMetaHeader"
data: data:
type: array type: array
items: items:
type: string type: string
x-example: 'yQHwYl3uCkKoo2GaChRnd+THLQ2RM87nEZrE19910Z28ABIUWW/t8AtIMwcyU0sT32RcMDI9GF0aEAoFdWF0b20SBzEwMDAwMDASEwoNCgV1YXRvbRIEMzEwMRCd8gEaagom61rphyEDoJPxlcjRoNDtZ9xMdvs+lRzFaHe2dl2P5R2yVCWrsHISQKkqX5H1zXAIJuC57yw0Yb03Fwy75VRip0ZBtLiYsUqkOsPUoQZAhDNP+6LY+RUwz/nVzedkF0S29NZ32QXdGv0=' x-example: "yQHwYl3uCkKoo2GaChRnd+THLQ2RM87nEZrE19910Z28ABIUWW/t8AtIMwcyU0sT32RcMDI9GF0aEAoFdWF0b20SBzEwMDAwMDASEwoNCgV1YXRvbRIEMzEwMRCd8gEaagom61rphyEDoJPxlcjRoNDtZ9xMdvs+lRzFaHe2dl2P5R2yVCWrsHISQKkqX5H1zXAIJuC57yw0Yb03Fwy75VRip0ZBtLiYsUqkOsPUoQZAhDNP+6LY+RUwz/nVzedkF0S29NZ32QXdGv0="
evidence: evidence:
type: array type: array
items: items:
$ref: '#/definitions/Evidence' $ref: "#/definitions/Evidence"
last_commit: last_commit:
type: object type: object
properties: properties:
block_id: block_id:
$ref: '#/definitions/BlockID' $ref: "#/definitions/BlockID"
precommits: precommits:
type: array type: array
items: items:
$ref: '#/definitions/Commit' $ref: "#/definitions/Commit"
Validator: Validator:
type: object type: object
properties: properties:
pub_key: pub_key:
$ref: '#/definitions/PubKey' $ref: "#/definitions/PubKey"
voting_power: voting_power:
type: number type: number
address: address:
@ -1310,31 +1309,31 @@ definitions:
total_voting_power: total_voting_power:
type: number type: number
validator: validator:
$ref: '#/definitions/Validator' $ref: "#/definitions/Validator"
BlockComplete: BlockComplete:
type: object type: object
properties: properties:
block_meta: block_meta:
$ref: '#/definitions/BlockMeta' $ref: "#/definitions/BlockMeta"
block: block:
$ref: '#/definitions/Block' $ref: "#/definitions/Block"
BlockResponse: BlockResponse:
description: Blockc info description: Blockc info
allOf: allOf:
- $ref: '#/definitions/JSONRPC' - $ref: "#/definitions/JSONRPC"
- type: object - type: object
properties: properties:
result: result:
$ref: '#/definitions/BlockComplete' $ref: "#/definitions/BlockComplete"
Tag: Tag:
type: object type: object
properties: properties:
key: key:
type: string type: string
example: 'YWN0aW9u' example: "YWN0aW9u"
value: value:
type: string type: string
example: 'c2VuZA==' example: "c2VuZA=="
################## FROM NOW ON NEEDS REFACTOR ################## ################## FROM NOW ON NEEDS REFACTOR ##################
BlockResultsResponse: BlockResultsResponse:
type: "object" type: "object"
@ -1371,7 +1370,7 @@ definitions:
properties: properties:
log: log:
type: "string" type: "string"
example: "[{\"msg_index\":\"0\",\"success\":true,\"log\":\"\"}]" example: '[{"msg_index":"0","success":true,"log":""}]'
gasWanted: gasWanted:
type: "string" type: "string"
example: "25629" example: "25629"
@ -2349,7 +2348,7 @@ definitions:
properties: properties:
log: log:
type: "string" type: "string"
example: "[{\"msg_index\":\"0\",\"success\":true,\"log\":\"\"}]" example: '[{"msg_index":"0","success":true,"log":""}]'
gasWanted: gasWanted:
type: "string" type: "string"
example: "200000" example: "200000"
@ -2450,7 +2449,7 @@ definitions:
properties: properties:
log: log:
type: "string" type: "string"
example: "[{\"msg_index\":\"0\",\"success\":true,\"log\":\"\"}]" example: '[{"msg_index":"0","success":true,"log":""}]'
gasWanted: gasWanted:
type: "string" type: "string"
example: "200000" example: "200000"
@ -2497,7 +2496,7 @@ definitions:
properties: properties:
data: data:
type: "string" type: "string"
example: "{\"size\":0}" example: '{"size":0}'
version: version:
type: string type: string
example: "0.16.1" example: "0.16.1"

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
VERSION=v11.15.0 VERSION=v12.9.0
NODE_FULL=node-${VERSION}-linux-x64 NODE_FULL=node-${VERSION}-linux-x64
mkdir -p ~/.local/bin mkdir -p ~/.local/bin
@ -10,5 +10,5 @@ tar -xzf ~/.local/node/${NODE_FULL}.tar.gz -C ~/.local/node/
ln -s ~/.local/node/${NODE_FULL}/bin/node ~/.local/bin/node ln -s ~/.local/node/${NODE_FULL}/bin/node ~/.local/bin/node
ln -s ~/.local/node/${NODE_FULL}/bin/npm ~/.local/bin/npm ln -s ~/.local/node/${NODE_FULL}/bin/npm ~/.local/bin/npm
export PATH=~/.local/bin:$PATH export PATH=~/.local/bin:$PATH
npm i -g dredd@11.0.1 npm i -g dredd
ln -s ~/.local/node/${NODE_FULL}/bin/dredd ~/.local/bin/dredd ln -s ~/.local/node/${NODE_FULL}/bin/dredd ~/.local/bin/dredd