Skip to content

Commit

Permalink
Merge branch '18-update-node-client' into 'dev'
Browse files Browse the repository at this point in the history
Resolve "update node client open api to 5.0.22"

Closes #18

See merge request ergo/rosen-bridge/network-client!26
  • Loading branch information
zargarzadehm committed Sep 1, 2024
2 parents 5d1286e + 42f6025 commit 22c3066
Show file tree
Hide file tree
Showing 196 changed files with 273 additions and 226 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-cheetahs-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rosen-clients/ergo-node': minor
---

Update ergo node client to version 5.0.22
39 changes: 36 additions & 3 deletions clients/ergo-explorer/openapi-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,18 @@ components:
additionalRegisters:
type: object
additionalProperties:
type: string
required:
- serializedValue
- sigmaType
- renderedValue
type: object
properties:
serializedValue:
type: string
sigmaType:
type: string
renderedValue:
type: string
DataInputInfo1:
required:
- id
Expand Down Expand Up @@ -2489,7 +2500,18 @@ components:
additionalRegisters:
type: object
additionalProperties:
type: string
required:
- serializedValue
- sigmaType
- renderedValue
type: object
properties:
serializedValue:
type: string
sigmaType:
type: string
renderedValue:
type: string
InputInfo1:
required:
- id
Expand Down Expand Up @@ -2825,7 +2847,18 @@ components:
additionalRegisters:
type: object
additionalProperties:
type: string
required:
- serializedValue
- sigmaType
- renderedValue
type: object
properties:
serializedValue:
type: string
sigmaType:
type: string
renderedValue:
type: string
spentTransactionId:
type: string
description: Id of the transaction this output was spent by
Expand Down
49 changes: 28 additions & 21 deletions clients/ergo-node/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: '3.0.2'

info:
version: '5.0.21'
version: '5.0.22'
title: Ergo Node API
description: API docs for Ergo Node. Models are shared between all Ergo products
contact:
Expand Down Expand Up @@ -445,7 +445,7 @@ components:
description: Transaction inputs
type: array
items:
$ref: '#/components/schemas/ErgoTransactionInput'
$ref: '#/components/schemas/IndexedErgoBox'
dataInputs:
description: Transaction data inputs
type: array
Expand All @@ -455,7 +455,7 @@ components:
description: Transaction outputs
type: array
items:
$ref: '#/components/schemas/ErgoTransactionOutput'
$ref: '#/components/schemas/IndexedErgoBox'
inclusionHeight:
description: Height of a block the transaction was included in
type: integer
Expand Down Expand Up @@ -3118,7 +3118,7 @@ paths:
application/json:
schema:
type: string
example: '"02c9e71790399816b3e40b2207e9ade19a9b7fe0600186cfb8e2b115bfdb34b57f38cd3c9f2890d11720eb3bb993993f00ededf812a590d2993df094a7ca4f0213e4820e1ab831eed5dc5c72665396d3a01d2a12900f1c3ab77700b284ae24fa8e8f7754f86f2282c795db6b0b17df1c29cc0552e59d01f7d777c638a813333277271c2f8b4d99d01ff0e6ee8695697bdd5b568089395620d7198c6093ce8bc59b928611b1b12452c05addaa42f4beff6a0a6fe90000000380d0dbc3f40210090402040005c801040205c8010500040004000e2003faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04d807d601e4c6a70408d602b2a5730000d603e4c6a70601d604e4c6a7080ed605e4c6a70505d606e4c6a70705d60795720399c1a7c1720299c17202c1a7eb027201d1ededededededededed93c27202c2a793e4c672020408720193e4c6720205059572039d9c72057eb272047301000573029d9c72057eb2720473030005730494e4c672020601720393e4c672020705720693e4c67202080e720493e4c67202090ec5a79572039072079c720672059272079c72067205917207730595ef720393b1db630872027306d801d608b2db63087202730700ed938c7208017308938c7208027206c8df35000508cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba0405c8a8c105010105dc8b020e0266608cdea8baf0380008cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba04c8df350000c0843d1005040004000e36100204a00b08cd0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ea02d192a39a8cc7a701730073011001020402d19683030193a38cc7b2a57300000193c2b2a57301007473027303830108cdeeac93b1a57304c8df350000"'
example: '02c9e71790399816b3e40b2207e9ade19a9b7fe0600186cfb8e2b115bfdb34b57f38cd3c9f2890d11720eb3bb993993f00ededf812a590d2993df094a7ca4f0213e4820e1ab831eed5dc5c72665396d3a01d2a12900f1c3ab77700b284ae24fa8e8f7754f86f2282c795db6b0b17df1c29cc0552e59d01f7d777c638a813333277271c2f8b4d99d01ff0e6ee8695697bdd5b568089395620d7198c6093ce8bc59b928611b1b12452c05addaa42f4beff6a0a6fe90000000380d0dbc3f40210090402040005c801040205c8010500040004000e2003faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04d807d601e4c6a70408d602b2a5730000d603e4c6a70601d604e4c6a7080ed605e4c6a70505d606e4c6a70705d60795720399c1a7c1720299c17202c1a7eb027201d1ededededededededed93c27202c2a793e4c672020408720193e4c6720205059572039d9c72057eb272047301000573029d9c72057eb2720473030005730494e4c672020601720393e4c672020705720693e4c67202080e720493e4c67202090ec5a79572039072079c720672059272079c72067205917207730595ef720393b1db630872027306d801d608b2db63087202730700ed938c7208017308938c7208027206c8df35000508cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba0405c8a8c105010105dc8b020e0266608cdea8baf0380008cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba04c8df350000c0843d1005040004000e36100204a00b08cd0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ea02d192a39a8cc7a701730073011001020402d19683030193a38cc7b2a57300000193c2b2a57301007473027303830108cdeeac93b1a57304c8df350000'
responses:
'200':
description: JSON with ID of the new transaction
Expand Down Expand Up @@ -3176,7 +3176,7 @@ paths:
application/json:
schema:
type: string
example: '"02c9e71790399816b3e40b2207e9ade19a9b7fe0600186cfb8e2b115bfdb34b57f38cd3c9f2890d11720eb3bb993993f00ededf812a590d2993df094a7ca4f0213e4820e1ab831eed5dc5c72665396d3a01d2a12900f1c3ab77700b284ae24fa8e8f7754f86f2282c795db6b0b17df1c29cc0552e59d01f7d777c638a813333277271c2f8b4d99d01ff0e6ee8695697bdd5b568089395620d7198c6093ce8bc59b928611b1b12452c05addaa42f4beff6a0a6fe90000000380d0dbc3f40210090402040005c801040205c8010500040004000e2003faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04d807d601e4c6a70408d602b2a5730000d603e4c6a70601d604e4c6a7080ed605e4c6a70505d606e4c6a70705d60795720399c1a7c1720299c17202c1a7eb027201d1ededededededededed93c27202c2a793e4c672020408720193e4c6720205059572039d9c72057eb272047301000573029d9c72057eb2720473030005730494e4c672020601720393e4c672020705720693e4c67202080e720493e4c67202090ec5a79572039072079c720672059272079c72067205917207730595ef720393b1db630872027306d801d608b2db63087202730700ed938c7208017308938c7208027206c8df35000508cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba0405c8a8c105010105dc8b020e0266608cdea8baf0380008cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba04c8df350000c0843d1005040004000e36100204a00b08cd0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ea02d192a39a8cc7a701730073011001020402d19683030193a38cc7b2a57300000193c2b2a57301007473027303830108cdeeac93b1a57304c8df350000"'
example: '02c9e71790399816b3e40b2207e9ade19a9b7fe0600186cfb8e2b115bfdb34b57f38cd3c9f2890d11720eb3bb993993f00ededf812a590d2993df094a7ca4f0213e4820e1ab831eed5dc5c72665396d3a01d2a12900f1c3ab77700b284ae24fa8e8f7754f86f2282c795db6b0b17df1c29cc0552e59d01f7d777c638a813333277271c2f8b4d99d01ff0e6ee8695697bdd5b568089395620d7198c6093ce8bc59b928611b1b12452c05addaa42f4beff6a0a6fe90000000380d0dbc3f40210090402040005c801040205c8010500040004000e2003faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04d807d601e4c6a70408d602b2a5730000d603e4c6a70601d604e4c6a7080ed605e4c6a70505d606e4c6a70705d60795720399c1a7c1720299c17202c1a7eb027201d1ededededededededed93c27202c2a793e4c672020408720193e4c6720205059572039d9c72057eb272047301000573029d9c72057eb2720473030005730494e4c672020601720393e4c672020705720693e4c67202080e720493e4c67202090ec5a79572039072079c720672059272079c72067205917207730595ef720393b1db630872027306d801d608b2db63087202730700ed938c7208017308938c7208027206c8df35000508cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba0405c8a8c105010105dc8b020e0266608cdea8baf0380008cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba04c8df350000c0843d1005040004000e36100204a00b08cd0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ea02d192a39a8cc7a701730073011001020402d19683030193a38cc7b2a57300000193c2b2a57301007473027303830108cdeeac93b1a57304c8df350000'
responses:
'200':
description: JSON with ID of the new transaction
Expand Down Expand Up @@ -3307,7 +3307,7 @@ paths:
application/json:
schema:
type: string
example: '"100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301"'
example: '100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301'
responses:
'200':
description: Ergo transaction
Expand Down Expand Up @@ -3407,7 +3407,7 @@ paths:
application/json:
schema:
type: string
example: '"100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301"'
example: '100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301'
responses:
'200':
description: Unconfirmed transaction output boxes that correspond to given ErgoTree hex
Expand Down Expand Up @@ -3681,7 +3681,7 @@ paths:
application/json:
schema:
type: string
example: '"127.0.0.1:5673"'
example: '127.0.0.1:5673'
responses:
'200':
description: Attempt to connect to the peer
Expand Down Expand Up @@ -3792,7 +3792,7 @@ paths:
application/json:
schema:
type: string
example: '"7e1e79dd4936bdc7d09f4ba9212849136b589fba4bcf4263a0961a95b65d08cb16"'
example: '7e1e79dd4936bdc7d09f4ba9212849136b589fba4bcf4263a0961a95b65d08cb16'
default:
description: Error
content:
Expand Down Expand Up @@ -3841,7 +3841,7 @@ paths:
schema:
description: Encoded Ergo Address
type: string
example: '"3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"'
example: '3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt'
responses:
'200':
description: Address validity with validation error
Expand Down Expand Up @@ -3953,7 +3953,7 @@ paths:
application/json:
schema:
type: string
example: '"100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301"'
example: '100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301'
responses:
'200':
description: Ergo address
Expand Down Expand Up @@ -3988,7 +3988,7 @@ paths:
application/json:
schema:
type: string
example: '"83375fd213cfd7dfd984ce1901d62c302a1db53160b416674c8da1a393a6bbc316"'
example: '83375fd213cfd7dfd984ce1901d62c302a1db53160b416674c8da1a393a6bbc316'
default:
description: Error
content:
Expand All @@ -4008,15 +4008,15 @@ paths:
application/json:
schema:
type: string
example: '"7yaASMijGEGTbttYHg1MrXnWB8EbzjJnFLSWvmNoHrXV"'
example: '7yaASMijGEGTbttYHg1MrXnWB8EbzjJnFLSWvmNoHrXV'
responses:
'200':
description: Base16-encoded 32 byte hash
content:
application/json:
schema:
type: string
example: '"6ed54addddaf10fe8fcda330bd443a57914fbce38a9fa27248b07e361cc76a41"'
example: '6ed54addddaf10fe8fcda330bd443a57914fbce38a9fa27248b07e361cc76a41'
default:
description: Error
content:
Expand Down Expand Up @@ -6046,10 +6046,10 @@ paths:
required: true
content:
application/json:
description: adderess associated with transactions
description: address associated with transactions
schema:
type: string
example: '"3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"'
example: '3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt'
parameters:
- in: query
name: offset
Expand Down Expand Up @@ -6082,7 +6082,7 @@ paths:
$ref: '#/components/schemas/IndexedErgoTransaction'
total:
type: integer
description: Total count of retreived transactions
description: Total count of retrieved transactions
'404':
description: No transactions found for wanted address
content:
Expand Down Expand Up @@ -6339,7 +6339,7 @@ paths:
description: adderess associated with boxes
schema:
type: string
example: '"3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"'
example: '3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt'
parameters:
- in: query
name: offset
Expand Down Expand Up @@ -6399,7 +6399,7 @@ paths:
description: adderess associated with unspent boxes
schema:
type: string
example: '"3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"'
example: '3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt'
parameters:
- in: query
name: offset
Expand Down Expand Up @@ -6431,6 +6431,13 @@ paths:
schema:
type: boolean
default: false
- in: query
name: excludeMempoolSpent
required: false
description: if true exclude spent inputs from mempool
schema:
type: boolean
default: false
responses:
'200':
description: unspent boxes associated with wanted address
Expand Down Expand Up @@ -6507,7 +6514,7 @@ paths:
description: hex encoded ergotree
schema:
type: string
example: '"100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301"'
example: '100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301'
parameters:
- in: query
name: offset
Expand Down Expand Up @@ -6561,7 +6568,7 @@ paths:
description: hex encoded ergotree
schema:
type: string
example: '"100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301"'
example: '100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301'
parameters:
- in: query
name: offset
Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/api/ergoNodeAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type {
GetHeaderIdsParams,
Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/aDDigest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/addressHolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { ErgoAddress } from './ergoAddress';

Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/addressValidity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { ErgoAddress } from './ergoAddress';

Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/andPredicate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { ScanningPredicate } from './scanningPredicate';
import { bigIntsScanningPredicate } from './scanningPredicate';
Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/andPredicateAllOf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/

export type AndPredicateAllOf = { [key: string]: any };
Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/andPredicateAllOfTwo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { ScanningPredicate } from './scanningPredicate';

Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/apiError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { Digest32 } from './digest32';

Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/assetIssueRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { ErgoAddress } from './ergoAddress';
import { bigIntsErgoAddress } from './ergoAddress';
Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/avlTreeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { Digest32 } from './digest32';

Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/balanceInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { BalanceInfoTokensItem } from './balanceInfoTokensItem';

Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/balanceInfoTokensItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { ModifierId } from './modifierId';

Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/balancesSnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/
import type { Asset } from './asset';

Expand Down
2 changes: 1 addition & 1 deletion clients/ergo-node/src/types/blacklistedPeers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Do not edit manually.
* Ergo Node API
* API docs for Ergo Node. Models are shared between all Ergo products
* OpenAPI spec version: 5.0.21
* OpenAPI spec version: 5.0.22
*/

export interface BlacklistedPeers {
Expand Down
Loading

0 comments on commit 22c3066

Please sign in to comment.