diff --git a/clients/ergo-explorer/openapi-v1.yaml b/clients/ergo-explorer/openapi-v1.yaml index ec581f6..d93ceb4 100644 --- a/clients/ergo-explorer/openapi-v1.yaml +++ b/clients/ergo-explorer/openapi-v1.yaml @@ -732,6 +732,47 @@ paths: application/json: schema: $ref: '#/components/schemas/UnknownErr' + /api/v1/boxes/unspent/unconfirmed/byAddress/{p1}: + get: + operationId: getApiV1BoxesUnspentUnconfirmedByaddressP1 + parameters: + - name: p1 + in: path + required: true + schema: + type: string + - name: sortDirection + in: query + required: false + schema: + type: string + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MOutputInfo' + '404': + description: Not found + content: + application/json: + schema: + $ref: '#/components/schemas/NotFound' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/BadRequest' + default: + description: Unknown error + content: + application/json: + schema: + $ref: '#/components/schemas/UnknownErr' /api/v1/boxes/unspent/byAddress/{p1}: get: operationId: getApiV1BoxesUnspentByaddressP1 @@ -1852,6 +1893,40 @@ paths: application/json: schema: $ref: '#/components/schemas/UnknownErr' + /api/v1/ergotree/convert: + post: + operationId: postApiV1ErgotreeConvert + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ErgoTreeConversionRequest' + required: true + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErgoTreeHuman' + '404': + description: Not found + content: + application/json: + schema: + $ref: '#/components/schemas/NotFound' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/BadRequest' + default: + description: Unknown error + content: + application/json: + schema: + $ref: '#/components/schemas/UnknownErr' components: schemas: AssetInfo: @@ -2245,6 +2320,26 @@ components: type: integer outputCost: type: integer + ErgoTreeConversionRequest: + required: + - hashed + type: object + properties: + hashed: + type: string + description: Hashed value of ergo script + ErgoTreeHuman: + required: + - constants + - script + type: object + properties: + constants: + type: string + description: Constants use in ergo script + script: + type: string + description: Human readable ergo script FullBlockInfo: required: - header @@ -2339,6 +2434,8 @@ components: - outputCreatedAt - outputSettledAt - ergoTree + - ergoTreeConstants + - ergoTreeScript - address - additionalRegisters type: object @@ -2378,6 +2475,10 @@ components: ergoTree: type: string description: Hex-encoded string + ergoTreeConstants: + type: string + ergoTreeScript: + type: string address: type: string description: Decoded address of the corresponding box holder @@ -2551,6 +2652,64 @@ components: - type: array items: $ref: '#/components/schemas/TransactionInfo' + MOutputInfo: + required: + - boxId + - transactionId + - value + - index + - creationHeight + - ergoTree + - address + - additionalRegisters + - mainChain + type: object + properties: + boxId: + type: string + description: Id of the box + transactionId: + type: string + description: Id of the transaction that created the box + blockId: + type: string + description: Id of the block a box included in + value: + type: integer + description: Value of the box in nanoERG + format: int64 + index: + type: integer + description: Index of the output in a transaction + globalIndex: + type: integer + description: Global index of the output in the blockchain + format: int64 + creationHeight: + type: integer + description: Height at which the box was created + settlementHeight: + type: integer + description: Height at which the box got fixed in blockchain + ergoTree: + type: string + description: Serialized ergo tree + address: + type: string + description: An address derived from ergo tree + assets: + type: array + items: + $ref: '#/components/schemas/AssetInstanceInfo' + additionalRegisters: + type: object + additionalProperties: + type: string + spentTransactionId: + type: string + description: Id of the transaction this output was spent by + mainChain: + type: boolean MinerInfo: required: - address @@ -2616,6 +2775,8 @@ components: - creationHeight - settlementHeight - ergoTree + - ergoTreeConstants + - ergoTreeScript - address - additionalRegisters - mainChain @@ -2650,6 +2811,10 @@ components: ergoTree: type: string description: Serialized ergo tree + ergoTreeConstants: + type: string + ergoTreeScript: + type: string address: type: string description: An address derived from ergo tree diff --git a/clients/ergo-explorer/package.json b/clients/ergo-explorer/package.json index c5abd9d..1046f97 100644 --- a/clients/ergo-explorer/package.json +++ b/clients/ergo-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@rosen-clients/ergo-explorer", - "version": "1.0.3", + "version": "1.1.0", "description": "A client library for Ergo Explorer", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/clients/ergo-explorer/src/v1/api/ergoExplorerAPIV1.ts b/clients/ergo-explorer/src/v1/api/ergoExplorerAPIV1.ts index 52c19ff..e7fbbab 100644 --- a/clients/ergo-explorer/src/v1/api/ergoExplorerAPIV1.ts +++ b/clients/ergo-explorer/src/v1/api/ergoExplorerAPIV1.ts @@ -25,6 +25,8 @@ import type { GetApiV1BoxesUnspentByergotreeP1Params, GetApiV1BoxesUnspentByergotreetemplatehashP1Params, GetApiV1BoxesByaddressP1Params, + MOutputInfo, + GetApiV1BoxesUnspentUnconfirmedByaddressP1Params, GetApiV1BoxesUnspentByaddressP1Params, GetApiV1BoxesByglobalindexStreamParams, BoxAssetsQuery, @@ -59,6 +61,8 @@ import type { GetApiV1MempoolTransactionsByaddressP1Params, NetworkState, NetworkStats, + ErgoTreeHuman, + ErgoTreeConversionRequest, } from '../types'; import { @@ -68,6 +72,7 @@ import { bigIntsListOutputInfo, bigIntsItemsOutputInfo, bigIntsOutputInfo, + bigIntsMOutputInfo, bigIntsItemsTokenInfo, bigIntsTokenInfo, bigIntsItemsAssetInfo, @@ -83,6 +88,7 @@ import { bigIntsItemsUTransactionInfo, bigIntsNetworkState, bigIntsNetworkStats, + bigIntsErgoTreeHuman, } from '../types'; import { createAxiosInstance, JsonFieldBigintFactory } from '../../axios'; @@ -278,6 +284,18 @@ export const getErgoExplorerAPIV1 = (url: string) => { }); }; + const getApiV1BoxesUnspentUnconfirmedByaddressP1 = ( + p1: string, + params?: GetApiV1BoxesUnspentUnconfirmedByaddressP1Params + ) => { + return instance({ + url: `/api/v1/boxes/unspent/unconfirmed/byAddress/${p1}`, + method: 'get', + params, + transformResponse: JsonFieldBigintFactory(bigIntsMOutputInfo), + }); + }; + const getApiV1BoxesUnspentByaddressP1 = ( p1: string, params?: GetApiV1BoxesUnspentByaddressP1Params @@ -575,6 +593,18 @@ export const getErgoExplorerAPIV1 = (url: string) => { }); }; + const postApiV1ErgotreeConvert = ( + ergoTreeConversionRequest: ErgoTreeConversionRequest + ) => { + return instance({ + url: `/api/v1/ergotree/convert`, + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data: ergoTreeConversionRequest, + transformResponse: JsonFieldBigintFactory(bigIntsErgoTreeHuman), + }); + }; + return { getApiV1TransactionsP1, getApiV1TransactionsByinputsscripttemplatehashP1, @@ -592,6 +622,7 @@ export const getErgoExplorerAPIV1 = (url: string) => { getApiV1BoxesUnspentByergotreeP1, getApiV1BoxesUnspentByergotreetemplatehashP1, getApiV1BoxesByaddressP1, + getApiV1BoxesUnspentUnconfirmedByaddressP1, getApiV1BoxesUnspentByaddressP1, getApiV1BoxesByglobalindexStream, postApiV1BoxesUnspentSearchUnion, @@ -618,6 +649,7 @@ export const getErgoExplorerAPIV1 = (url: string) => { getApiV1Info, getApiV1Networkstate, getApiV1Networkstats, + postApiV1ErgotreeConvert, }; }; @@ -755,6 +787,15 @@ export type GetApiV1BoxesByaddressP1Result = NonNullable< > > >; +export type GetApiV1BoxesUnspentUnconfirmedByaddressP1Result = NonNullable< + Awaited< + ReturnType< + ReturnType< + typeof getErgoExplorerAPIV1 + >['getApiV1BoxesUnspentUnconfirmedByaddressP1'] + > + > +>; export type GetApiV1BoxesUnspentByaddressP1Result = NonNullable< Awaited< ReturnType< @@ -917,3 +958,10 @@ export type GetApiV1NetworkstatsResult = NonNullable< ReturnType['getApiV1Networkstats']> > >; +export type PostApiV1ErgotreeConvertResult = NonNullable< + Awaited< + ReturnType< + ReturnType['postApiV1ErgotreeConvert'] + > + > +>; diff --git a/clients/ergo-explorer/src/v1/types/ergoTreeConversionRequest.ts b/clients/ergo-explorer/src/v1/types/ergoTreeConversionRequest.ts new file mode 100644 index 0000000..fb2a987 --- /dev/null +++ b/clients/ergo-explorer/src/v1/types/ergoTreeConversionRequest.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v6.15.0 🍺 + * Do not edit manually. + * Ergo Explorer API v1 + * OpenAPI spec version: 1.0 + */ + +export interface ErgoTreeConversionRequest { + /** Hashed value of ergo script */ + hashed: string; +} +export const bigIntsErgoTreeConversionRequest = []; diff --git a/clients/ergo-explorer/src/v1/types/ergoTreeHuman.ts b/clients/ergo-explorer/src/v1/types/ergoTreeHuman.ts new file mode 100644 index 0000000..98e7d82 --- /dev/null +++ b/clients/ergo-explorer/src/v1/types/ergoTreeHuman.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v6.15.0 🍺 + * Do not edit manually. + * Ergo Explorer API v1 + * OpenAPI spec version: 1.0 + */ + +export interface ErgoTreeHuman { + /** Constants use in ergo script */ + constants: string; + /** Human readable ergo script */ + script: string; +} +export const bigIntsErgoTreeHuman = []; diff --git a/clients/ergo-explorer/src/v1/types/getApiV1BoxesUnspentUnconfirmedByaddressP1Params.ts b/clients/ergo-explorer/src/v1/types/getApiV1BoxesUnspentUnconfirmedByaddressP1Params.ts new file mode 100644 index 0000000..2e2056f --- /dev/null +++ b/clients/ergo-explorer/src/v1/types/getApiV1BoxesUnspentUnconfirmedByaddressP1Params.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v6.15.0 🍺 + * Do not edit manually. + * Ergo Explorer API v1 + * OpenAPI spec version: 1.0 + */ + +export type GetApiV1BoxesUnspentUnconfirmedByaddressP1Params = { + sortDirection?: string; +}; +export const bigIntsGetApiV1BoxesUnspentUnconfirmedByaddressP1Params = []; diff --git a/clients/ergo-explorer/src/v1/types/index.ts b/clients/ergo-explorer/src/v1/types/index.ts index c8af2c0..127c860 100644 --- a/clients/ergo-explorer/src/v1/types/index.ts +++ b/clients/ergo-explorer/src/v1/types/index.ts @@ -25,6 +25,8 @@ export * from './dataInputInfo'; export * from './dataInputInfo1'; export * from './dataInputInfoAdditionalRegisters'; export * from './epochInfo'; +export * from './ergoTreeConversionRequest'; +export * from './ergoTreeHuman'; export * from './fullBlockInfo'; export * from './getApiV1AddressesP1BalanceConfirmedParams'; export * from './getApiV1AddressesP1TransactionsParams'; @@ -48,6 +50,7 @@ export * from './getApiV1BoxesUnspentByglobalindexStreamParams'; export * from './getApiV1BoxesUnspentBylastepochsStreamParams'; export * from './getApiV1BoxesUnspentBytokenidP1Params'; export * from './getApiV1BoxesUnspentStreamParams'; +export * from './getApiV1BoxesUnspentUnconfirmedByaddressP1Params'; export * from './getApiV1MempoolTransactionsByaddressP1Params'; export * from './getApiV1TokensParams'; export * from './getApiV1TokensSearchParams'; @@ -69,6 +72,8 @@ export * from './listBlockInfo'; export * from './listBlockSummaryV1'; export * from './listOutputInfo'; export * from './listTransactionInfo'; +export * from './mOutputInfo'; +export * from './mOutputInfoAdditionalRegisters'; export * from './minerInfo'; export * from './networkState'; export * from './networkStats'; diff --git a/clients/ergo-explorer/src/v1/types/inputInfo.ts b/clients/ergo-explorer/src/v1/types/inputInfo.ts index 94573f8..a6f6ee0 100644 --- a/clients/ergo-explorer/src/v1/types/inputInfo.ts +++ b/clients/ergo-explorer/src/v1/types/inputInfo.ts @@ -33,6 +33,8 @@ export interface InputInfo { outputSettledAt: number; /** Hex-encoded string */ ergoTree: string; + ergoTreeConstants: string; + ergoTreeScript: string; /** Decoded address of the corresponding box holder */ address: string; assets?: AssetInstanceInfo[]; diff --git a/clients/ergo-explorer/src/v1/types/mOutputInfo.ts b/clients/ergo-explorer/src/v1/types/mOutputInfo.ts new file mode 100644 index 0000000..8f89d3a --- /dev/null +++ b/clients/ergo-explorer/src/v1/types/mOutputInfo.ts @@ -0,0 +1,50 @@ +/** + * Generated by orval v6.15.0 🍺 + * Do not edit manually. + * Ergo Explorer API v1 + * OpenAPI spec version: 1.0 + */ +import type { AssetInstanceInfo } from './assetInstanceInfo'; +import { bigIntsAssetInstanceInfo } from './assetInstanceInfo'; +import type { MOutputInfoAdditionalRegisters } from './mOutputInfoAdditionalRegisters'; + +import { bigIntsMOutputInfoAdditionalRegisters } from './mOutputInfoAdditionalRegisters'; + +export interface MOutputInfo { + /** Id of the box */ + boxId: string; + /** Id of the transaction that created the box */ + transactionId: string; + /** Id of the block a box included in */ + blockId?: string; + /** Value of the box in nanoERG */ + value: bigint; + /** Index of the output in a transaction */ + index: number; + /** Global index of the output in the blockchain */ + globalIndex?: bigint; + /** Height at which the box was created */ + creationHeight: number; + /** Height at which the box got fixed in blockchain */ + settlementHeight?: number; + /** Serialized ergo tree */ + ergoTree: string; + /** An address derived from ergo tree */ + address: string; + assets?: AssetInstanceInfo[]; + additionalRegisters: MOutputInfoAdditionalRegisters; + /** Id of the transaction this output was spent by */ + spentTransactionId?: string; + mainChain: boolean; +} + +export const bigIntsMOutputInfo = [ + 'value', + 'globalIndex', + ...bigIntsAssetInstanceInfo.map((item) => + item === '' ? 'assets' : `assets.${item}` + ), + ...bigIntsMOutputInfoAdditionalRegisters.map((item) => + item === '' ? 'additionalRegisters' : `additionalRegisters.${item}` + ), +]; diff --git a/clients/ergo-explorer/src/v1/types/mOutputInfoAdditionalRegisters.ts b/clients/ergo-explorer/src/v1/types/mOutputInfoAdditionalRegisters.ts new file mode 100644 index 0000000..f695d79 --- /dev/null +++ b/clients/ergo-explorer/src/v1/types/mOutputInfoAdditionalRegisters.ts @@ -0,0 +1,9 @@ +/** + * Generated by orval v6.15.0 🍺 + * Do not edit manually. + * Ergo Explorer API v1 + * OpenAPI spec version: 1.0 + */ + +export type MOutputInfoAdditionalRegisters = { [key: string]: string }; +export const bigIntsMOutputInfoAdditionalRegisters = []; diff --git a/clients/ergo-explorer/src/v1/types/outputInfo.ts b/clients/ergo-explorer/src/v1/types/outputInfo.ts index 1f3b854..6e0012e 100644 --- a/clients/ergo-explorer/src/v1/types/outputInfo.ts +++ b/clients/ergo-explorer/src/v1/types/outputInfo.ts @@ -29,6 +29,8 @@ export interface OutputInfo { settlementHeight: number; /** Serialized ergo tree */ ergoTree: string; + ergoTreeConstants: string; + ergoTreeScript: string; /** An address derived from ergo tree */ address: string; assets?: AssetInstanceInfo[]; diff --git a/clients/ergo-node/openapi.yaml b/clients/ergo-node/openapi.yaml index b226fe8..134d0ba 100644 --- a/clients/ergo-node/openapi.yaml +++ b/clients/ergo-node/openapi.yaml @@ -1,7 +1,7 @@ openapi: '3.0.2' info: - version: '5.0.10' + version: '5.0.21' title: Ergo Node API description: API docs for Ergo Node. Models are shared between all Ergo products contact: @@ -96,6 +96,17 @@ components: bytes: $ref: '#/components/schemas/HexString' + SnapshotsInfo: + type: object + required: + - availableManifests + properties: + availableManifests: + description: Map of available manifests height -> manifestId + type: array + items: + type: object + ErgoTransactionOutput: type: object required: @@ -231,74 +242,54 @@ components: type: string description: Name of the token, if any - IndexedErgoBox: # FIXME: Should be fixed after updating ErgoNode (network-client local-git #8) - type: object - description: Box indexed with extra information - required: - - value - - ergoTree - - additionalRegisters - - creationHeight - - address - - inclusionHeight - - globalIndex - properties: - boxId: - $ref: '#/components/schemas/TransactionBoxId' - value: - description: Amount of Ergo token - type: integer - format: int64 - minimum: 0 - example: 147 - ergoTree: - $ref: '#/components/schemas/ErgoTree' - creationHeight: - description: Height the output was created at - type: integer - format: int32 - example: 9149 - assets: - description: Assets list in the transaction - type: array - items: - $ref: '#/components/schemas/Asset' - additionalRegisters: - $ref: '#/components/schemas/Registers' - transactionId: - $ref: '#/components/schemas/TransactionId' - index: - description: Index in the transaction outputs - type: integer - format: int32 - address: - $ref: '#/components/schemas/ErgoAddress' - spentTransactionId: - description: Transaction which created the box - nullable: true - $ref: '#/components/schemas/ModifierId' - inclusionHeight: - description: The height the transaction containing the box was included in a block at - type: integer - format: int32 - minimum: 0 - example: 147 - globalIndex: - description: Global index of the output in the blockchain - type: integer - format: int64 - minimum: 0 - example: 83927 + IndexedErgoBox: + allOf: + - $ref: '#/components/schemas/ErgoTransactionOutput' + - type: object + description: Box indexed with extra information + required: + - address + - spentTransactionId + - spendingHeight + - inclusionHeight + - globalIndex + properties: + address: + $ref: '#/components/schemas/ErgoAddress' + spentTransactionId: + description: Transaction which spent the box + nullable: true + $ref: '#/components/schemas/ModifierId' + spendingHeight: + description: The height the box was spent at + type: integer + format: int32 + minimum: 0 + example: 147 + nullable: true + inclusionHeight: + description: The height the transaction containing the box was included in a block at + type: integer + format: int32 + minimum: 0 + example: 147 + globalIndex: + description: Global index of the output in the blockchain + type: integer + format: int64 + minimum: 0 + example: 83927 IndexedToken: type: object description: Token indexed with extra information - required: -id - -boxId - -emissionAmount - -name - -description - -decimals + required: + - id + - boxId + - emissionAmount + - name + - description + - decimals properties: id: description: Id of the token @@ -353,31 +344,32 @@ components: ErgoTransaction: type: object - description: Ergo transaction + description: ErgoTransaction is an atomic operation which changes UTXO state. required: - inputs - dataInputs - outputs properties: id: + description: Id of the transaction $ref: '#/components/schemas/TransactionId' inputs: - description: Inputs of the transaction + description: Inputs, that will be spent by this transaction type: array items: $ref: '#/components/schemas/ErgoTransactionInput' dataInputs: - description: Data inputs of the transaction + description: Read-only inputs, that are not going to be spent by transaction. type: array items: $ref: '#/components/schemas/ErgoTransactionDataInput' outputs: - description: Outputs of the transaction + description: Outputs of the transaction, i.e. box candidates to be created by this transaction. type: array items: $ref: '#/components/schemas/ErgoTransactionOutput' size: - description: Size in bytes + description: Size of ErgoTransaction in bytes type: integer format: int32 @@ -1533,6 +1525,10 @@ components: $ref: '#/components/schemas/BlockHeader' BlockHeader: + description: Header of a block. + It authenticates link to a previous block, other block sections + (transactions, UTXO set transformation proofs, extension), UTXO set, votes for blockchain parameters + to be changed and proof-of-work related data. type: object required: - id @@ -1550,27 +1546,37 @@ components: - votes properties: id: + description: Block id $ref: '#/components/schemas/ModifierId' timestamp: + description: Block generation time reported by a miner $ref: '#/components/schemas/Timestamp' version: + description: Protocol version used to generate the block $ref: '#/components/schemas/Version' adProofsRoot: + description: Digest of UTXO set transformation proofs $ref: '#/components/schemas/Digest32' stateRoot: + description: AVL+ tree digest of UTXO set (after the block is applied) $ref: '#/components/schemas/ADDigest' transactionsRoot: + description: Merkle tree digest of transactions in the block (BlockTransactions section) $ref: '#/components/schemas/Digest32' nBits: + description: Proof-of-work target (difficulty encoded) type: integer format: int64 minimum: 0 example: 19857408 extensionHash: + description: Merkle tree digest of the extension section of the block $ref: '#/components/schemas/Digest32' powSolutions: + description: Solution for the proof-of-work puzzle $ref: '#/components/schemas/PowSolutions' height: + description: Height of the block (genesis block height == 1) type: integer format: int32 minimum: 0 @@ -1581,19 +1587,24 @@ components: parentId: $ref: '#/components/schemas/ModifierId' votes: + description: Votes for changing system parameters $ref: '#/components/schemas/Votes' size: - description: Size in bytes + description: Size of the header in bytes type: integer format: int32 extensionId: + description: Hash of the extension section of the block == hash(modifier type id, header id, extensionHash) $ref: '#/components/schemas/ModifierId' transactionsId: + description: Hash of the transactions section of the block == hash(modifier type id, header id, transactionsRoot) $ref: '#/components/schemas/ModifierId' adProofsId: + description: Hash of the UTXO set transformation proofs section of the block == hash(modifier type id, header id, adProofsRoot) $ref: '#/components/schemas/ModifierId' BlockTransactions: + description: Section of a block which contains transactions. type: object required: - headerId @@ -1601,11 +1612,13 @@ components: - size properties: headerId: + description: Identifier of a header of a corresponding block $ref: '#/components/schemas/ModifierId' transactions: + description: Transactions of the block $ref: '#/components/schemas/Transactions' size: - description: Size in bytes + description: Size in bytes of all block transactions type: integer format: int32 @@ -1618,10 +1631,13 @@ components: - size properties: headerId: + description: Identifier of a header of the block which contains the proofs $ref: '#/components/schemas/ModifierId' proofBytes: + description: Serialized bytes of the authenticated dictionary proof $ref: '#/components/schemas/SerializedAdProof' digest: + description: Hash of the proofBytes $ref: '#/components/schemas/Digest32' size: description: Size in bytes @@ -1629,6 +1645,7 @@ components: format: int32 Extension: + description: Section of a block which contains extension data. type: object required: - headerId @@ -1636,8 +1653,10 @@ components: - fields properties: headerId: + description: Identifier of a header of a corresponding block $ref: '#/components/schemas/ModifierId' digest: + description: Root hash (aka digest) merkelized list of key-value records $ref: '#/components/schemas/Digest32' fields: description: List of key-value records @@ -1647,6 +1666,7 @@ components: $ref: '#/components/schemas/KeyValueItem' KeyValueItem: + description: Key-value record represented as a pair of hex strings in an array. type: array items: $ref: '#/components/schemas/HexString' @@ -2051,6 +2071,10 @@ components: description: Blacklisted node address NodeInfo: + description: Data container for /info API request output. + Contains information about node's state and configuration. + Contains data about best block, best header, state, etc. + Best block is the block with the maximum height. type: object required: - name @@ -2076,76 +2100,91 @@ components: - parameters properties: name: + description: Node's (peer) self-chosen name from config type: string example: my-node-1 appVersion: + description: Node's application version type: string example: 0.0.1 fullHeight: type: integer format: int32 - description: Can be 'null' if state is empty (no full block is applied since node launch) + description: Height of the best block known to the node. + Can be 'null' if state is empty (no full block is applied since node launch) minimum: 0 example: 667 nullable: true headersHeight: type: integer format: int32 - description: Can be 'null' if state is empty (no header applied since node launch) + description: + The height of the best header (i.e. the one with the maximum height). + Can be 'null' if state is empty (no header applied since node launch) minimum: 0 example: 667 nullable: true maxPeerHeight: type: integer format: int32 - description: Maximum block height of connected peers. Can be 'null' if state is empty (no peer connected since node launch) + description: Maximum block height of connected peers. + Can be 'null' if state is empty (no peer connected since node launch) minimum: 0 example: 706162 nullable: true bestFullHeaderId: type: string - description: Can be 'null' if no full block is applied since node launch + description: Best full-block id (header id of such block). + Can be 'null' if no full block is applied since node launch. nullable: true allOf: - $ref: '#/components/schemas/ModifierId' previousFullHeaderId: type: string - description: Can be 'null' if no full block is applied since node launch + description: + Header id of the parent block of the best full-block (i.e. previous block in the blockchain). + Can be 'null' if no full block is applied since node launch nullable: true allOf: - $ref: '#/components/schemas/ModifierId' bestHeaderId: type: string - description: Can be 'null' if no header applied since node launch + description: Best header ID (hex representation). + Can be 'null' if no header applied since node launch. nullable: true allOf: - $ref: '#/components/schemas/ModifierId' stateRoot: type: string nullable: true - description: Can be 'null' if state is empty (no full block is applied since node launch) + description: Current UTXO set digest. + Can be 'null' if state is empty (no full block is applied since node launch) example: 'dab9da11fc216660e974842cc3b7705e62ebb9e0bf5ff78e53f9cd40abadd117' stateType: + description: Whether the node is storing UTXO set or only its digest. + Equals `digest` if only digest is stored, `utxo` if full UTXO set is stored. type: string enum: - digest - utxo stateVersion: - description: Can be 'null' if no full block is applied since node launch + description: Id of a block where UTXO set digest is taken from. + Can be 'null' if no full block is applied since node launch. type: string example: 'fab9da11fc216660e974842cc3b7705e62ebb9e0bf5ff78e53f9cd40abadd117' nullable: true isMining: + description: Whether the node is mining (i.e. generating blocks). type: boolean example: true peersCount: type: integer - description: Number of connected peers + description: Number of peers this node is connected with. format: int32 minimum: 0 example: 327 unconfirmedCount: - description: Current unconfirmed transactions count + description: Number of unconfirmed transactions in the mempool. type: integer format: int32 minimum: 0 @@ -2156,8 +2195,8 @@ components: minimum: 0 nullable: true example: 667 - description: > - Difficulty on current bestFullHeaderId. Can be 'null' if no full block is applied since node launch. + description: Difficulty on current bestFullHeaderId. + Can be 'null' if no full block is applied since node launch. Difficulty is a BigInt integer. currentTime: type: integer @@ -2166,26 +2205,28 @@ components: - $ref: '#/components/schemas/Timestamp' launchTime: type: integer - description: Time when the node was started + description: When the node was launched (in Java time format, UNIX time * 1000). allOf: - $ref: '#/components/schemas/Timestamp' headersScore: type: integer - description: Can be 'null' if no headers is applied since node launch. headersScore is a BigInt integer. + description: Cumulative difficulty of best headers-chain. + Can be 'null' if no headers is applied since node launch. headersScore is a BigInt integer. nullable: true fullBlocksScore: type: integer - description: Can be 'null' if no full block is applied since node launch. fullBlocksScore is a BigInt integer. + description: Cumulative difficulty of best full blocks chain. + Can be 'null' if no full block is applied since node launch. fullBlocksScore is a BigInt integer. nullable: true genesisBlockId: type: string - description: Can be 'null' if genesis blocks is not produced yet + description: Header id of genesis block. Can be 'null' if genesis blocks is not produced yet. nullable: true allOf: - $ref: '#/components/schemas/ModifierId' parameters: type: object - description: current parameters + description: System parameters which could be readjusted via collective miners decision. $ref: '#/components/schemas/Parameters' eip27Supported: type: boolean @@ -2197,6 +2238,7 @@ components: description: Publicly accessible url of node which exposes restApi in firewall Parameters: + description: System parameters which could be readjusted via collective miners decision. type: object required: - height @@ -2310,7 +2352,7 @@ components: example: '02a7955281885bf0f0ca4a48678848cad8dc5b328ce8bc1d4481d041c98e891ff3' Transactions: - description: Ergo transaction objects + description: List of ErgoTransaction objects type: array items: $ref: '#/components/schemas/ErgoTransaction' @@ -2476,6 +2518,7 @@ components: type: string ApiError: + description: Error response from API type: object required: - error @@ -2488,7 +2531,7 @@ components: example: 500 reason: type: string - description: String error code + description: Error message explaining the reason of the error example: 'Internal server error' detail: type: string @@ -2498,7 +2541,9 @@ components: paths: /blocks: get: - summary: Get the Array of header ids + summary: + Get an array of header ids (hex encoded) for the given range of blockchain block heights. + Returns a page of the whole list starting from `offset` and containing `limit` items. operationId: getHeaderIds tags: - blocks @@ -2516,7 +2561,7 @@ paths: - in: query name: offset required: false - description: The number of items in list to skip + description: The first block height to include in the list schema: type: integer format: int32 @@ -2566,7 +2611,7 @@ paths: /blocks/at/{blockHeight}: get: - summary: Get the header ids at a given height + summary: Get header ids at the given height operationId: getFullBlockAt tags: - blocks @@ -2574,7 +2619,7 @@ paths: - in: path name: blockHeight required: true - description: Height of a wanted block + description: Height of a block to retrieve header ids schema: type: integer format: int32 @@ -2608,7 +2653,7 @@ paths: /blocks/chainSlice: get: - summary: Get headers in a specified range + summary: Get headers in a specified range of heights operationId: getChainSlice tags: - blocks @@ -2616,7 +2661,7 @@ paths: - in: query name: fromHeight required: false - description: Min header height + description: Min header height (start of the range) schema: type: integer format: int32 @@ -2624,7 +2669,7 @@ paths: - in: query name: toHeight required: false - description: Max header height (best header height by default) + description: Max header height of the range (last header height then omitted) schema: type: integer format: int32 @@ -2648,7 +2693,7 @@ paths: /blocks/{headerId}: get: - summary: Get the full block info by a given signature + summary: Get the full block info by a given header id operationId: getFullBlockById tags: - blocks @@ -2657,12 +2702,12 @@ paths: - in: path name: headerId required: true - description: ID of a wanted block + description: ID of the header the wanted block schema: type: string responses: '200': - description: Block object + description: Block object representing the full block data content: application/json: schema: @@ -2680,9 +2725,45 @@ paths: schema: $ref: '#/components/schemas/ApiError' + /blocks/headerIds: + post: + summary: Get full blocks by given header ids + operationId: getFullBlockByIds + tags: + - blocks + requestBody: + required: true + content: + application/json: + schema: + type: array + items: + type: string + responses: + '200': + description: Full blocks corresponding to ids provided + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FullBlock' + '404': + description: No block exist for every id provided + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + /blocks/{headerId}/header: get: - summary: Get the block header info by a given signature + summary: Get the block header info by a given header id operationId: getBlockHeaderById tags: - blocks @@ -2792,7 +2873,7 @@ paths: - in: path name: count required: true - description: count of a wanted block headers + description: a number of block headers to return schema: type: number responses: @@ -3034,10 +3115,10 @@ paths: requestBody: required: true content: - text/plain: + application/json: schema: type: string - example: '02c9e71790399816b3e40b2207e9ade19a9b7fe0600186cfb8e2b115bfdb34b57f38cd3c9f2890d11720eb3bb993993f00ededf812a590d2993df094a7ca4f0213e4820e1ab831eed5dc5c72665396d3a01d2a12900f1c3ab77700b284ae24fa8e8f7754f86f2282c795db6b0b17df1c29cc0552e59d01f7d777c638a813333277271c2f8b4d99d01ff0e6ee8695697bdd5b568089395620d7198c6093ce8bc59b928611b1b12452c05addaa42f4beff6a0a6fe90000000380d0dbc3f40210090402040005c801040205c8010500040004000e2003faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04d807d601e4c6a70408d602b2a5730000d603e4c6a70601d604e4c6a7080ed605e4c6a70505d606e4c6a70705d60795720399c1a7c1720299c17202c1a7eb027201d1ededededededededed93c27202c2a793e4c672020408720193e4c6720205059572039d9c72057eb272047301000573029d9c72057eb2720473030005730494e4c672020601720393e4c672020705720693e4c67202080e720493e4c67202090ec5a79572039072079c720672059272079c72067205917207730595ef720393b1db630872027306d801d608b2db63087202730700ed938c7208017308938c7208027206c8df35000508cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba0405c8a8c105010105dc8b020e0266608cdea8baf0380008cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba04c8df350000c0843d1005040004000e36100204a00b08cd0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ea02d192a39a8cc7a701730073011001020402d19683030193a38cc7b2a57300000193c2b2a57301007473027303830108cdeeac93b1a57304c8df350000' + example: '"02c9e71790399816b3e40b2207e9ade19a9b7fe0600186cfb8e2b115bfdb34b57f38cd3c9f2890d11720eb3bb993993f00ededf812a590d2993df094a7ca4f0213e4820e1ab831eed5dc5c72665396d3a01d2a12900f1c3ab77700b284ae24fa8e8f7754f86f2282c795db6b0b17df1c29cc0552e59d01f7d777c638a813333277271c2f8b4d99d01ff0e6ee8695697bdd5b568089395620d7198c6093ce8bc59b928611b1b12452c05addaa42f4beff6a0a6fe90000000380d0dbc3f40210090402040005c801040205c8010500040004000e2003faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04d807d601e4c6a70408d602b2a5730000d603e4c6a70601d604e4c6a7080ed605e4c6a70505d606e4c6a70705d60795720399c1a7c1720299c17202c1a7eb027201d1ededededededededed93c27202c2a793e4c672020408720193e4c6720205059572039d9c72057eb272047301000573029d9c72057eb2720473030005730494e4c672020601720393e4c672020705720693e4c67202080e720493e4c67202090ec5a79572039072079c720672059272079c72067205917207730595ef720393b1db630872027306d801d608b2db63087202730700ed938c7208017308938c7208027206c8df35000508cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba0405c8a8c105010105dc8b020e0266608cdea8baf0380008cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba04c8df350000c0843d1005040004000e36100204a00b08cd0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ea02d192a39a8cc7a701730073011001020402d19683030193a38cc7b2a57300000193c2b2a57301007473027303830108cdeeac93b1a57304c8df350000"' responses: '200': description: JSON with ID of the new transaction @@ -3095,7 +3176,7 @@ paths: application/json: schema: type: string - example: '02c9e71790399816b3e40b2207e9ade19a9b7fe0600186cfb8e2b115bfdb34b57f38cd3c9f2890d11720eb3bb993993f00ededf812a590d2993df094a7ca4f0213e4820e1ab831eed5dc5c72665396d3a01d2a12900f1c3ab77700b284ae24fa8e8f7754f86f2282c795db6b0b17df1c29cc0552e59d01f7d777c638a813333277271c2f8b4d99d01ff0e6ee8695697bdd5b568089395620d7198c6093ce8bc59b928611b1b12452c05addaa42f4beff6a0a6fe90000000380d0dbc3f40210090402040005c801040205c8010500040004000e2003faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04d807d601e4c6a70408d602b2a5730000d603e4c6a70601d604e4c6a7080ed605e4c6a70505d606e4c6a70705d60795720399c1a7c1720299c17202c1a7eb027201d1ededededededededed93c27202c2a793e4c672020408720193e4c6720205059572039d9c72057eb272047301000573029d9c72057eb2720473030005730494e4c672020601720393e4c672020705720693e4c67202080e720493e4c67202090ec5a79572039072079c720672059272079c72067205917207730595ef720393b1db630872027306d801d608b2db63087202730700ed938c7208017308938c7208027206c8df35000508cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba0405c8a8c105010105dc8b020e0266608cdea8baf0380008cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba04c8df350000c0843d1005040004000e36100204a00b08cd0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ea02d192a39a8cc7a701730073011001020402d19683030193a38cc7b2a57300000193c2b2a57301007473027303830108cdeeac93b1a57304c8df350000' + example: '"02c9e71790399816b3e40b2207e9ade19a9b7fe0600186cfb8e2b115bfdb34b57f38cd3c9f2890d11720eb3bb993993f00ededf812a590d2993df094a7ca4f0213e4820e1ab831eed5dc5c72665396d3a01d2a12900f1c3ab77700b284ae24fa8e8f7754f86f2282c795db6b0b17df1c29cc0552e59d01f7d777c638a813333277271c2f8b4d99d01ff0e6ee8695697bdd5b568089395620d7198c6093ce8bc59b928611b1b12452c05addaa42f4beff6a0a6fe90000000380d0dbc3f40210090402040005c801040205c8010500040004000e2003faf2cb329f2e90d6d23b58d91bbb6c046aa143261cc21f52fbe2824bfcbf04d807d601e4c6a70408d602b2a5730000d603e4c6a70601d604e4c6a7080ed605e4c6a70505d606e4c6a70705d60795720399c1a7c1720299c17202c1a7eb027201d1ededededededededed93c27202c2a793e4c672020408720193e4c6720205059572039d9c72057eb272047301000573029d9c72057eb2720473030005730494e4c672020601720393e4c672020705720693e4c67202080e720493e4c67202090ec5a79572039072079c720672059272079c72067205917207730595ef720393b1db630872027306d801d608b2db63087202730700ed938c7208017308938c7208027206c8df35000508cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba0405c8a8c105010105dc8b020e0266608cdea8baf0380008cd030c8f9c4dc08f3c006fa85a47c9156dedbede000a8b764c6e374fd097e873ba04c8df350000c0843d1005040004000e36100204a00b08cd0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ea02d192a39a8cc7a701730073011001020402d19683030193a38cc7b2a57300000193c2b2a57301007473027303830108cdeeac93b1a57304c8df350000"' responses: '200': description: JSON with ID of the new transaction @@ -4422,6 +4503,25 @@ paths: type: integer format: int32 default: -1 + - in: query + name: limit + required: false + description: amount of elements to retrieve + schema: + type: integer + format: int32 + minimum: 1 + default: 500 + maximum: 2500 + - in: query + name: offset + required: false + description: The number of items in list to skip + schema: + type: integer + format: int32 + minimum: 0 + default: 0 get: security: - ApiKeyAuth: [api_key] @@ -4514,6 +4614,25 @@ paths: type: integer format: int32 default: -1 + - in: query + name: limit + required: false + description: amount of elements to retrieve + schema: + type: integer + format: int32 + minimum: 1 + default: 500 + maximum: 2500 + - in: query + name: offset + required: false + description: The number of items in list to skip + schema: + type: integer + format: int32 + minimum: 0 + default: 0 get: security: - ApiKeyAuth: [api_key] @@ -5067,6 +5186,42 @@ paths: schema: $ref: '#/components/schemas/ApiError' + /utxo/withPool/byIds: + post: + summary: Get boxes for ids provided, from UTXO or the mempool. + operationId: getBoxWithPoolByIds + tags: + - utxo + requestBody: + required: true + content: + application/json: + schema: + type: array + items: + type: string + responses: + '200': + description: Box object + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ErgoTransactionOutput' + '404': + description: No any box exists for every id provided + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + /utxo/withPool/byIdBinary/{boxId}: get: summary: Get serialized box in Base16 encoding by an identifier, considering also the mempool. @@ -5100,6 +5255,26 @@ paths: schema: $ref: '#/components/schemas/ApiError' + /utxo/getSnapshotsInfo: + get: + summary: Get information about locally stored UTXO snapshots + operationId: getSnapshotsInfo + tags: + - utxo + responses: + '200': + description: A list of saved snapshots + content: + application/json: + schema: + $ref: '#/components/schemas/SnapshotsInfo' + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + /utxo/genesis: get: summary: Get genesis boxes (boxes existed before the very first block) @@ -5178,7 +5353,7 @@ paths: $ref: '#/components/schemas/SourceHolder' responses: '200': - description: Ergo address derived from source + description: P2SH address derived from source content: application/json: schema: @@ -5412,6 +5587,25 @@ paths: type: integer format: int32 default: -1 + - in: query + name: limit + required: false + description: amount of elements to retrieve + schema: + type: integer + format: int32 + minimum: 1 + default: 500 + maximum: 2500 + - in: query + name: offset + required: false + description: The number of items in list to skip + schema: + type: integer + format: int32 + minimum: 0 + default: 0 get: security: - ApiKeyAuth: [api_key] @@ -5479,6 +5673,25 @@ paths: type: integer format: int32 default: -1 + - in: query + name: limit + required: false + description: amount of elements to retrieve + schema: + type: integer + format: int32 + minimum: 1 + default: 500 + maximum: 2500 + - in: query + name: offset + required: false + description: The number of items in list to skip + schema: + type: integer + format: int32 + minimum: 0 + default: 0 get: security: - ApiKeyAuth: [api_key] @@ -5538,6 +5751,41 @@ paths: schema: $ref: '#/components/schemas/ApiError' + /scan/p2sRule: + post: + security: + - ApiKeyAuth: [api_key] + summary: Create and register a scan to track P2S address provided + operationId: scriptP2SRule + tags: + - scan + requestBody: + required: true + content: + application/json: + schema: + type: string + example: '4MQyML64GnzMxZgm' + responses: + '200': + description: Id of custom scan generated and registered + content: + application/json: + schema: + $ref: '#/components/schemas/ScanId' + '400': + description: Bad source + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + /wallet/generateCommitments: post: security: @@ -5703,7 +5951,7 @@ paths: /blockchain/indexedHeight: get: - summary: Get current block height the indexer is at + summary: Get current indexed block height. (The indexer has processed all blocks up to this height.) operationId: getIndexedHeight tags: - blockchain @@ -5800,7 +6048,8 @@ paths: application/json: description: adderess associated with transactions schema: - $ref: '#/components/schemas/ErgoAddress' + type: string + example: '"3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"' parameters: - in: query name: offset @@ -5953,6 +6202,130 @@ paths: schema: $ref: '#/components/schemas/ApiError' + /blockchain/box/byTokenId/{tokenId}: + get: + summary: Retrieve boxes by an associated token id + operationId: getBoxesByTokenId + tags: + - blockchain + parameters: + - in: path + name: tokenId + required: true + description: id of the token + schema: + $ref: '#/components/schemas/ModifierId' + - in: query + name: offset + required: false + description: amount of elements to skip from the start + schema: + type: integer + format: int32 + default: 0 + - in: query + name: limit + required: false + description: amount of elements to retrieve + schema: + type: integer + format: int32 + default: 5 + responses: + '200': + description: boxes associated with wanted token + content: + application/json: + schema: + type: object + properties: + items: + type: array + description: Array of boxes + items: + $ref: '#/components/schemas/IndexedErgoBox' + total: + type: integer + description: Total number of retreived boxes + '404': + description: No boxes found for wanted token + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + + /blockchain/box/unspent/byTokenId/{tokenId}: + get: + summary: Retrieve unspent boxes by an associated token id + operationId: getBoxesByTokenIdUnspent + tags: + - blockchain + parameters: + - in: path + name: tokenId + required: true + description: id of the token + schema: + $ref: '#/components/schemas/ModifierId' + - in: query + name: offset + required: false + description: amount of elements to skip from the start + schema: + type: integer + format: int32 + default: 0 + - in: query + name: limit + required: false + description: amount of elements to retrieve + schema: + type: integer + format: int32 + default: 5 + - in: query + name: sortDirection + required: false + description: desc = new boxes first ; asc = old boxes first + schema: + type: string + default: desc + - in: query + name: includeUnconfirmed + required: false + description: if true include unconfirmed transactions from mempool + schema: + type: boolean + default: false + responses: + '200': + description: unspent boxes associated with wanted token + content: + application/json: + schema: + type: array + description: Array of boxes + items: + $ref: '#/components/schemas/IndexedErgoBox' + '404': + description: No unspent boxes found for wanted token + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + default: + description: Error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + /blockchain/box/byAddress: post: summary: Retrieve boxes by their associated address @@ -5965,7 +6338,8 @@ paths: application/json: description: adderess associated with boxes schema: - $ref: '#/components/schemas/ErgoAddress' + type: string + example: '"3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"' parameters: - in: query name: offset @@ -6021,10 +6395,11 @@ paths: requestBody: required: true content: - text/plain: + application/json: description: adderess associated with unspent boxes schema: - $ref: '#/components/schemas/ErgoAddress' + type: string + example: '"3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"' parameters: - in: query name: offset @@ -6049,6 +6424,13 @@ paths: schema: type: string default: desc + - in: query + name: includeUnconfirmed + required: false + description: if true include unconfirmed transactions from mempool + schema: + type: boolean + default: false responses: '200': description: unspent boxes associated with wanted address @@ -6121,11 +6503,11 @@ paths: requestBody: required: true content: - text/plain: + application/json: description: hex encoded ergotree schema: type: string - example: '100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301' + example: '"100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301"' parameters: - in: query name: offset @@ -6179,7 +6561,7 @@ paths: description: hex encoded ergotree schema: type: string - example: '100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301' + example: '"100204a00b08cd021cf943317b0fdb50f60892a46b9132b9ced337c7de79248b104b293d9f1f078eea02d192a39a8cc7a70173007301"' parameters: - in: query name: offset @@ -6204,6 +6586,13 @@ paths: schema: type: string default: desc + - in: query + name: includeUnconfirmed + required: false + description: if true include unconfirmed transactions from mempool + schema: + type: boolean + default: false responses: '200': description: unspent boxes with wanted ergotree @@ -6275,10 +6664,11 @@ paths: requestBody: required: true content: - text/plain: + application/json: description: adderess with balance schema: - $ref: '#/components/schemas/ErgoAddress' + type: string + example: '"3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"' responses: '200': description: balance information diff --git a/clients/ergo-node/package.json b/clients/ergo-node/package.json index 44ef307..3bffefe 100644 --- a/clients/ergo-node/package.json +++ b/clients/ergo-node/package.json @@ -1,6 +1,6 @@ { "name": "@rosen-clients/ergo-node", - "version": "1.0.4", + "version": "1.1.0", "description": "A client library for Ergo Node", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/clients/ergo-node/src/api/ergoNodeAPI.ts b/clients/ergo-node/src/api/ergoNodeAPI.ts index b9d2164..e1e5dbc 100644 --- a/clients/ergo-node/src/api/ergoNodeAPI.ts +++ b/clients/ergo-node/src/api/ergoNodeAPI.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { GetHeaderIdsParams, @@ -92,6 +92,9 @@ import type { GetTxsByAddressParams, ModifierId, GetTxRangeParams, + GetBoxesByTokenId200, + GetBoxesByTokenIdParams, + GetBoxesByTokenIdUnspentParams, GetBoxesByAddress200, GetBoxesByAddressParams, GetBoxesByAddressUnspentParams, @@ -154,6 +157,7 @@ import { bigIntsIndexedErgoTransaction, bigIntsGetTxsByAddress200, bigIntsModifierId, + bigIntsGetBoxesByTokenId200, bigIntsGetBoxesByAddress200, bigIntsGetBoxesByErgoTree200, bigIntsGetBoxesByErgoTreeUnspent200, @@ -166,7 +170,7 @@ import { createAxiosInstance, JsonFieldBigintFactory } from '../axios'; export const getErgoNodeAPI = (url: string) => { const instance = createAxiosInstance(url); /** - * @summary Get the Array of header ids + * @summary Get an array of header ids (hex encoded) for the given range of blockchain block heights. Returns a page of the whole list starting from `offset` and containing `limit` items. */ const getHeaderIds = (params?: GetHeaderIdsParams) => { return instance({ @@ -189,7 +193,7 @@ export const getErgoNodeAPI = (url: string) => { }; /** - * @summary Get the header ids at a given height + * @summary Get header ids at the given height */ const getFullBlockAt = (blockHeight: number) => { return instance({ @@ -199,7 +203,7 @@ export const getErgoNodeAPI = (url: string) => { }; /** - * @summary Get headers in a specified range + * @summary Get headers in a specified range of heights */ const getChainSlice = (params?: GetChainSliceParams) => { return instance({ @@ -211,7 +215,7 @@ export const getErgoNodeAPI = (url: string) => { }; /** - * @summary Get the full block info by a given signature + * @summary Get the full block info by a given header id */ const getFullBlockById = (headerId: string) => { return instance({ @@ -222,7 +226,20 @@ export const getErgoNodeAPI = (url: string) => { }; /** - * @summary Get the block header info by a given signature + * @summary Get full blocks by given header ids + */ + const getFullBlockByIds = (getFullBlockByIdsBody: string[]) => { + return instance({ + url: `/blocks/headerIds`, + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data: getFullBlockByIdsBody, + transformResponse: JsonFieldBigintFactory(bigIntsFullBlock), + }); + }; + + /** + * @summary Get the block header info by a given header id */ const getBlockHeaderById = (headerId: string) => { return instance({ @@ -354,7 +371,7 @@ export const getErgoNodeAPI = (url: string) => { return instance({ url: `/transactions/bytes`, method: 'post', - headers: { 'Content-Type': 'text/plain' }, + headers: { 'Content-Type': 'application/json' }, data: sendTransactionAsBytesBody, transformResponse: JsonFieldBigintFactory(bigIntsTransactionId), }); @@ -1130,6 +1147,19 @@ export const getErgoNodeAPI = (url: string) => { }); }; + /** + * @summary Get boxes for ids provided, from UTXO or the mempool. + */ + const getBoxWithPoolByIds = (getBoxWithPoolByIdsBody: string[]) => { + return instance({ + url: `/utxo/withPool/byIds`, + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data: getBoxWithPoolByIdsBody, + transformResponse: JsonFieldBigintFactory(bigIntsErgoTransactionOutput), + }); + }; + /** * @summary Get serialized box in Base16 encoding by an identifier, considering also the mempool. */ @@ -1141,6 +1171,16 @@ export const getErgoNodeAPI = (url: string) => { }); }; + /** + * @summary Get information about locally stored UTXO snapshots + */ + const getSnapshotsInfo = () => { + return instance({ + url: `/utxo/getSnapshotsInfo`, + method: 'get', + }); + }; + /** * @summary Get genesis boxes (boxes existed before the very first block) */ @@ -1290,6 +1330,19 @@ export const getErgoNodeAPI = (url: string) => { }); }; + /** + * @summary Create and register a scan to track P2S address provided + */ + const scriptP2SRule = (scriptP2SRuleBody: string) => { + return instance({ + url: `/scan/p2sRule`, + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data: scriptP2SRuleBody, + transformResponse: JsonFieldBigintFactory(bigIntsScanId), + }); + }; + /** * @summary Generate signature commitments for inputs of an unsigned transaction */ @@ -1361,7 +1414,7 @@ export const getErgoNodeAPI = (url: string) => { }; /** - * @summary Get current block height the indexer is at + * @summary Get current indexed block height. (The indexer has processed all blocks up to this height.) */ const getIndexedHeight = () => { return instance({ @@ -1397,14 +1450,14 @@ export const getErgoNodeAPI = (url: string) => { * @summary Retrieve transactions by their associated address */ const getTxsByAddress = ( - ergoAddress: ErgoAddress, + getTxsByAddressBody: string, params?: GetTxsByAddressParams ) => { return instance({ url: `/blockchain/transaction/byAddress`, method: 'post', headers: { 'Content-Type': 'application/json' }, - data: ergoAddress, + data: getTxsByAddressBody, params, transformResponse: JsonFieldBigintFactory(bigIntsGetTxsByAddress200), }); @@ -1433,18 +1486,48 @@ export const getErgoNodeAPI = (url: string) => { }); }; + /** + * @summary Retrieve boxes by an associated token id + */ + const getBoxesByTokenId = ( + tokenId: ModifierId, + params?: GetBoxesByTokenIdParams + ) => { + return instance({ + url: `/blockchain/box/byTokenId/${tokenId}`, + method: 'get', + params, + transformResponse: JsonFieldBigintFactory(bigIntsGetBoxesByTokenId200), + }); + }; + + /** + * @summary Retrieve unspent boxes by an associated token id + */ + const getBoxesByTokenIdUnspent = ( + tokenId: ModifierId, + params?: GetBoxesByTokenIdUnspentParams + ) => { + return instance({ + url: `/blockchain/box/unspent/byTokenId/${tokenId}`, + method: 'get', + params, + transformResponse: JsonFieldBigintFactory(bigIntsIndexedErgoBox), + }); + }; + /** * @summary Retrieve boxes by their associated address */ const getBoxesByAddress = ( - ergoAddress: ErgoAddress, + getBoxesByAddressBody: string, params?: GetBoxesByAddressParams ) => { return instance({ url: `/blockchain/box/byAddress`, method: 'post', headers: { 'Content-Type': 'application/json' }, - data: ergoAddress, + data: getBoxesByAddressBody, params, transformResponse: JsonFieldBigintFactory(bigIntsGetBoxesByAddress200), }); @@ -1454,14 +1537,14 @@ export const getErgoNodeAPI = (url: string) => { * @summary Retrieve unspent boxes by their associated address */ const getBoxesByAddressUnspent = ( - ergoAddress: ErgoAddress, + getBoxesByAddressUnspentBody: string, params?: GetBoxesByAddressUnspentParams ) => { return instance({ url: `/blockchain/box/unspent/byAddress`, method: 'post', - headers: { 'Content-Type': 'text/plain' }, - data: ergoAddress, + headers: { 'Content-Type': 'application/json' }, + data: getBoxesByAddressUnspentBody, params, transformResponse: JsonFieldBigintFactory(bigIntsIndexedErgoBox), }); @@ -1489,7 +1572,7 @@ export const getErgoNodeAPI = (url: string) => { return instance({ url: `/blockchain/box/byErgoTree`, method: 'post', - headers: { 'Content-Type': 'text/plain' }, + headers: { 'Content-Type': 'application/json' }, data: getBoxesByErgoTreeBody, params, transformResponse: JsonFieldBigintFactory(bigIntsGetBoxesByErgoTree200), @@ -1529,12 +1612,12 @@ export const getErgoNodeAPI = (url: string) => { /** * @summary Retrieve confirmed and unconfirmed balance of an address */ - const getAddressBalanceTotal = (ergoAddress: ErgoAddress) => { + const getAddressBalanceTotal = (getAddressBalanceTotalBody: string) => { return instance({ url: `/blockchain/balance`, method: 'post', - headers: { 'Content-Type': 'text/plain' }, - data: ergoAddress, + headers: { 'Content-Type': 'application/json' }, + data: getAddressBalanceTotalBody, transformResponse: JsonFieldBigintFactory( bigIntsGetAddressBalanceTotal200 ), @@ -1547,6 +1630,7 @@ export const getErgoNodeAPI = (url: string) => { getFullBlockAt, getChainSlice, getFullBlockById, + getFullBlockByIds, getBlockHeaderById, getBlockTransactionsById, getProofForTx, @@ -1623,7 +1707,9 @@ export const getErgoNodeAPI = (url: string) => { getBoxById, getBoxByIdBinary, getBoxWithPoolById, + getBoxWithPoolByIds, getBoxWithPoolByIdBinary, + getSnapshotsInfo, genesisBoxes, scriptP2SAddress, scriptP2SHAddress, @@ -1636,6 +1722,7 @@ export const getErgoNodeAPI = (url: string) => { listUnspentScans, listSpentScans, scanStopTracking, + scriptP2SRule, generateCommitments, extractHints, addBox, @@ -1648,6 +1735,8 @@ export const getErgoNodeAPI = (url: string) => { getTxsByAddress, getTxRange, getBoxByIndex, + getBoxesByTokenId, + getBoxesByTokenIdUnspent, getBoxesByAddress, getBoxesByAddressUnspent, getBoxRange, @@ -1677,6 +1766,9 @@ export type GetChainSliceResult = NonNullable< export type GetFullBlockByIdResult = NonNullable< Awaited['getFullBlockById']>> >; +export type GetFullBlockByIdsResult = NonNullable< + Awaited['getFullBlockByIds']>> +>; export type GetBlockHeaderByIdResult = NonNullable< Awaited['getBlockHeaderById']>> >; @@ -2000,11 +2092,17 @@ export type GetBoxByIdBinaryResult = NonNullable< export type GetBoxWithPoolByIdResult = NonNullable< Awaited['getBoxWithPoolById']>> >; +export type GetBoxWithPoolByIdsResult = NonNullable< + Awaited['getBoxWithPoolByIds']>> +>; export type GetBoxWithPoolByIdBinaryResult = NonNullable< Awaited< ReturnType['getBoxWithPoolByIdBinary']> > >; +export type GetSnapshotsInfoResult = NonNullable< + Awaited['getSnapshotsInfo']>> +>; export type GenesisBoxesResult = NonNullable< Awaited['genesisBoxes']>> >; @@ -2041,6 +2139,9 @@ export type ListSpentScansResult = NonNullable< export type ScanStopTrackingResult = NonNullable< Awaited['scanStopTracking']>> >; +export type ScriptP2SRuleResult = NonNullable< + Awaited['scriptP2SRule']>> +>; export type GenerateCommitmentsResult = NonNullable< Awaited['generateCommitments']>> >; @@ -2077,6 +2178,14 @@ export type GetTxRangeResult = NonNullable< export type GetBoxByIndexResult = NonNullable< Awaited['getBoxByIndex']>> >; +export type GetBoxesByTokenIdResult = NonNullable< + Awaited['getBoxesByTokenId']>> +>; +export type GetBoxesByTokenIdUnspentResult = NonNullable< + Awaited< + ReturnType['getBoxesByTokenIdUnspent']> + > +>; export type GetBoxesByAddressResult = NonNullable< Awaited['getBoxesByAddress']>> >; diff --git a/clients/ergo-node/src/types/aDDigest.ts b/clients/ergo-node/src/types/aDDigest.ts index 81f1147..cd88748 100644 --- a/clients/ergo-node/src/types/aDDigest.ts +++ b/clients/ergo-node/src/types/aDDigest.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/addressHolder.ts b/clients/ergo-node/src/types/addressHolder.ts index 0dbb33e..df8e712 100644 --- a/clients/ergo-node/src/types/addressHolder.ts +++ b/clients/ergo-node/src/types/addressHolder.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoAddress } from './ergoAddress'; diff --git a/clients/ergo-node/src/types/addressValidity.ts b/clients/ergo-node/src/types/addressValidity.ts index b3f6452..2e5970f 100644 --- a/clients/ergo-node/src/types/addressValidity.ts +++ b/clients/ergo-node/src/types/addressValidity.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoAddress } from './ergoAddress'; diff --git a/clients/ergo-node/src/types/andPredicate.ts b/clients/ergo-node/src/types/andPredicate.ts index 494bea5..772fb28 100644 --- a/clients/ergo-node/src/types/andPredicate.ts +++ b/clients/ergo-node/src/types/andPredicate.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ScanningPredicate } from './scanningPredicate'; import { bigIntsScanningPredicate } from './scanningPredicate'; diff --git a/clients/ergo-node/src/types/andPredicateAllOf.ts b/clients/ergo-node/src/types/andPredicateAllOf.ts index 86ed598..a66971f 100644 --- a/clients/ergo-node/src/types/andPredicateAllOf.ts +++ b/clients/ergo-node/src/types/andPredicateAllOf.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type AndPredicateAllOf = { [key: string]: any }; diff --git a/clients/ergo-node/src/types/andPredicateAllOfTwo.ts b/clients/ergo-node/src/types/andPredicateAllOfTwo.ts index 045608d..ecc3577 100644 --- a/clients/ergo-node/src/types/andPredicateAllOfTwo.ts +++ b/clients/ergo-node/src/types/andPredicateAllOfTwo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ScanningPredicate } from './scanningPredicate'; diff --git a/clients/ergo-node/src/types/apiError.ts b/clients/ergo-node/src/types/apiError.ts index f96ac0e..24b85b9 100644 --- a/clients/ergo-node/src/types/apiError.ts +++ b/clients/ergo-node/src/types/apiError.ts @@ -3,13 +3,16 @@ * Do not edit manually. * Ergo Node API * API docs for Ergo Node. Models are shared between all Ergo products - * OpenAPI spec version: 5.0.10 + * OpenAPI spec version: 5.0.21 */ +/** + * Error response from API + */ export interface ApiError { /** Error code */ error: number; - /** String error code */ + /** Error message explaining the reason of the error */ reason: string; /** Detailed error description */ detail: string | null; diff --git a/clients/ergo-node/src/types/asset.ts b/clients/ergo-node/src/types/asset.ts index 77214c8..1ed441f 100644 --- a/clients/ergo-node/src/types/asset.ts +++ b/clients/ergo-node/src/types/asset.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { Digest32 } from './digest32'; diff --git a/clients/ergo-node/src/types/assetIssueRequest.ts b/clients/ergo-node/src/types/assetIssueRequest.ts index 8ed7c64..e6561db 100644 --- a/clients/ergo-node/src/types/assetIssueRequest.ts +++ b/clients/ergo-node/src/types/assetIssueRequest.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoAddress } from './ergoAddress'; import { bigIntsErgoAddress } from './ergoAddress'; diff --git a/clients/ergo-node/src/types/avlTreeData.ts b/clients/ergo-node/src/types/avlTreeData.ts index 8443b1c..10903dc 100644 --- a/clients/ergo-node/src/types/avlTreeData.ts +++ b/clients/ergo-node/src/types/avlTreeData.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { Digest32 } from './digest32'; diff --git a/clients/ergo-node/src/types/balanceInfo.ts b/clients/ergo-node/src/types/balanceInfo.ts index e91aa19..4c6e80a 100644 --- a/clients/ergo-node/src/types/balanceInfo.ts +++ b/clients/ergo-node/src/types/balanceInfo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { BalanceInfoTokensItem } from './balanceInfoTokensItem'; diff --git a/clients/ergo-node/src/types/balanceInfoTokensItem.ts b/clients/ergo-node/src/types/balanceInfoTokensItem.ts index 4695a7a..35110e2 100644 --- a/clients/ergo-node/src/types/balanceInfoTokensItem.ts +++ b/clients/ergo-node/src/types/balanceInfoTokensItem.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ModifierId } from './modifierId'; diff --git a/clients/ergo-node/src/types/balancesSnapshot.ts b/clients/ergo-node/src/types/balancesSnapshot.ts index 3aff524..719f5bd 100644 --- a/clients/ergo-node/src/types/balancesSnapshot.ts +++ b/clients/ergo-node/src/types/balancesSnapshot.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { Asset } from './asset'; diff --git a/clients/ergo-node/src/types/blacklistedPeers.ts b/clients/ergo-node/src/types/blacklistedPeers.ts index 85931be..d2abe43 100644 --- a/clients/ergo-node/src/types/blacklistedPeers.ts +++ b/clients/ergo-node/src/types/blacklistedPeers.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface BlacklistedPeers { diff --git a/clients/ergo-node/src/types/blockADProofs.ts b/clients/ergo-node/src/types/blockADProofs.ts index 1d9a9a5..2ec3b13 100644 --- a/clients/ergo-node/src/types/blockADProofs.ts +++ b/clients/ergo-node/src/types/blockADProofs.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ModifierId } from './modifierId'; import { bigIntsModifierId } from './modifierId'; @@ -14,8 +14,11 @@ import type { Digest32 } from './digest32'; import { bigIntsDigest32 } from './digest32'; export interface BlockADProofs { + /** Identifier of a header of the block which contains the proofs */ headerId: ModifierId; + /** Serialized bytes of the authenticated dictionary proof */ proofBytes: SerializedAdProof; + /** Hash of the proofBytes */ digest: Digest32; /** Size in bytes */ size: number; diff --git a/clients/ergo-node/src/types/blockHeader.ts b/clients/ergo-node/src/types/blockHeader.ts index 369d0df..5659a67 100644 --- a/clients/ergo-node/src/types/blockHeader.ts +++ b/clients/ergo-node/src/types/blockHeader.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ModifierId } from './modifierId'; import { bigIntsModifierId } from './modifierId'; @@ -21,24 +21,41 @@ import type { Votes } from './votes'; import { bigIntsVotes } from './votes'; +/** + * Header of a block. It authenticates link to a previous block, other block sections (transactions, UTXO set transformation proofs, extension), UTXO set, votes for blockchain parameters to be changed and proof-of-work related data. + */ export interface BlockHeader { + /** Block id */ id: ModifierId; + /** Block generation time reported by a miner */ timestamp: Timestamp; + /** Protocol version used to generate the block */ version: Version; + /** Digest of UTXO set transformation proofs */ adProofsRoot: Digest32; + /** AVL+ tree digest of UTXO set (after the block is applied) */ stateRoot: ADDigest; + /** Merkle tree digest of transactions in the block (BlockTransactions section) */ transactionsRoot: Digest32; + /** Proof-of-work target (difficulty encoded) */ nBits: bigint; + /** Merkle tree digest of the extension section of the block */ extensionHash: Digest32; + /** Solution for the proof-of-work puzzle */ powSolutions: PowSolutions; + /** Height of the block (genesis block height == 1) */ height: number; difficulty: string; parentId: ModifierId; + /** Votes for changing system parameters */ votes: Votes; - /** Size in bytes */ + /** Size of the header in bytes */ size?: number; + /** Hash of the extension section of the block == hash(modifier type id, header id, extensionHash) */ extensionId?: ModifierId; + /** Hash of the transactions section of the block == hash(modifier type id, header id, transactionsRoot) */ transactionsId?: ModifierId; + /** Hash of the UTXO set transformation proofs section of the block == hash(modifier type id, header id, adProofsRoot) */ adProofsId?: ModifierId; } diff --git a/clients/ergo-node/src/types/blockHeaderWithoutPow.ts b/clients/ergo-node/src/types/blockHeaderWithoutPow.ts index f166605..bd2f819 100644 --- a/clients/ergo-node/src/types/blockHeaderWithoutPow.ts +++ b/clients/ergo-node/src/types/blockHeaderWithoutPow.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ModifierId } from './modifierId'; import { bigIntsModifierId } from './modifierId'; diff --git a/clients/ergo-node/src/types/blockSignature.ts b/clients/ergo-node/src/types/blockSignature.ts index 209a29a..bfa70ec 100644 --- a/clients/ergo-node/src/types/blockSignature.ts +++ b/clients/ergo-node/src/types/blockSignature.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/blockTransactions.ts b/clients/ergo-node/src/types/blockTransactions.ts index 93b66c7..34d9e54 100644 --- a/clients/ergo-node/src/types/blockTransactions.ts +++ b/clients/ergo-node/src/types/blockTransactions.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ModifierId } from './modifierId'; import { bigIntsModifierId } from './modifierId'; @@ -11,10 +11,15 @@ import type { Transactions } from './transactions'; import { bigIntsTransactions } from './transactions'; +/** + * Section of a block which contains transactions. + */ export interface BlockTransactions { + /** Identifier of a header of a corresponding block */ headerId: ModifierId; + /** Transactions of the block */ transactions: Transactions; - /** Size in bytes */ + /** Size in bytes of all block transactions */ size: number; } diff --git a/clients/ergo-node/src/types/boxesRequestHolder.ts b/clients/ergo-node/src/types/boxesRequestHolder.ts index 6ded76c..c10fefa 100644 --- a/clients/ergo-node/src/types/boxesRequestHolder.ts +++ b/clients/ergo-node/src/types/boxesRequestHolder.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { BoxesRequestHolderTargetAssetsItemItem } from './boxesRequestHolderTargetAssetsItemItem'; diff --git a/clients/ergo-node/src/types/boxesRequestHolderTargetAssetsItemItem.ts b/clients/ergo-node/src/types/boxesRequestHolderTargetAssetsItemItem.ts index a7c6777..b76ca59 100644 --- a/clients/ergo-node/src/types/boxesRequestHolderTargetAssetsItemItem.ts +++ b/clients/ergo-node/src/types/boxesRequestHolderTargetAssetsItemItem.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/burnTokensRequest.ts b/clients/ergo-node/src/types/burnTokensRequest.ts index 6f29b92..bb346a6 100644 --- a/clients/ergo-node/src/types/burnTokensRequest.ts +++ b/clients/ergo-node/src/types/burnTokensRequest.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { Asset } from './asset'; diff --git a/clients/ergo-node/src/types/candidateBlock.ts b/clients/ergo-node/src/types/candidateBlock.ts index 762eeac..2b3e7dd 100644 --- a/clients/ergo-node/src/types/candidateBlock.ts +++ b/clients/ergo-node/src/types/candidateBlock.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { Digest32 } from './digest32'; import { bigIntsDigest32 } from './digest32'; diff --git a/clients/ergo-node/src/types/checkWallet.ts b/clients/ergo-node/src/types/checkWallet.ts index 931b828..1710890 100644 --- a/clients/ergo-node/src/types/checkWallet.ts +++ b/clients/ergo-node/src/types/checkWallet.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface CheckWallet { diff --git a/clients/ergo-node/src/types/commitment.ts b/clients/ergo-node/src/types/commitment.ts index e806068..8b89bdd 100644 --- a/clients/ergo-node/src/types/commitment.ts +++ b/clients/ergo-node/src/types/commitment.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { CommitmentHint } from './commitmentHint'; import { bigIntsCommitmentHint } from './commitmentHint'; diff --git a/clients/ergo-node/src/types/commitmentHint.ts b/clients/ergo-node/src/types/commitmentHint.ts index 0d783de..a8e39e9 100644 --- a/clients/ergo-node/src/types/commitmentHint.ts +++ b/clients/ergo-node/src/types/commitmentHint.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type CommitmentHint = diff --git a/clients/ergo-node/src/types/commitmentType.ts b/clients/ergo-node/src/types/commitmentType.ts index db34d2d..289b92e 100644 --- a/clients/ergo-node/src/types/commitmentType.ts +++ b/clients/ergo-node/src/types/commitmentType.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type CommitmentType = diff --git a/clients/ergo-node/src/types/commitmentWithSecret.ts b/clients/ergo-node/src/types/commitmentWithSecret.ts index 36057ec..a885984 100644 --- a/clients/ergo-node/src/types/commitmentWithSecret.ts +++ b/clients/ergo-node/src/types/commitmentWithSecret.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { Commitment } from './commitment'; diff --git a/clients/ergo-node/src/types/connectedPeer.ts b/clients/ergo-node/src/types/connectedPeer.ts index 72ea66c..44f7166 100644 --- a/clients/ergo-node/src/types/connectedPeer.ts +++ b/clients/ergo-node/src/types/connectedPeer.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { Timestamp } from './timestamp'; diff --git a/clients/ergo-node/src/types/connectedPeerByModifierId.ts b/clients/ergo-node/src/types/connectedPeerByModifierId.ts index d1bb8be..dec0163 100644 --- a/clients/ergo-node/src/types/connectedPeerByModifierId.ts +++ b/clients/ergo-node/src/types/connectedPeerByModifierId.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ConnectedPeer } from './connectedPeer'; diff --git a/clients/ergo-node/src/types/containsAssetPredicate.ts b/clients/ergo-node/src/types/containsAssetPredicate.ts index 563a954..69c1e49 100644 --- a/clients/ergo-node/src/types/containsAssetPredicate.ts +++ b/clients/ergo-node/src/types/containsAssetPredicate.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ScanningPredicate } from './scanningPredicate'; import { bigIntsScanningPredicate } from './scanningPredicate'; diff --git a/clients/ergo-node/src/types/containsAssetPredicateAllOf.ts b/clients/ergo-node/src/types/containsAssetPredicateAllOf.ts index dad597b..060c30f 100644 --- a/clients/ergo-node/src/types/containsAssetPredicateAllOf.ts +++ b/clients/ergo-node/src/types/containsAssetPredicateAllOf.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type ContainsAssetPredicateAllOf = { [key: string]: any }; diff --git a/clients/ergo-node/src/types/containsAssetPredicateAllOfTwo.ts b/clients/ergo-node/src/types/containsAssetPredicateAllOfTwo.ts index 1ac2cd6..2fec8dc 100644 --- a/clients/ergo-node/src/types/containsAssetPredicateAllOfTwo.ts +++ b/clients/ergo-node/src/types/containsAssetPredicateAllOfTwo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type ContainsAssetPredicateAllOfTwo = { diff --git a/clients/ergo-node/src/types/containsPredicate.ts b/clients/ergo-node/src/types/containsPredicate.ts index 1f1e154..4ed972f 100644 --- a/clients/ergo-node/src/types/containsPredicate.ts +++ b/clients/ergo-node/src/types/containsPredicate.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ScanningPredicate } from './scanningPredicate'; import { bigIntsScanningPredicate } from './scanningPredicate'; diff --git a/clients/ergo-node/src/types/containsPredicateAllOf.ts b/clients/ergo-node/src/types/containsPredicateAllOf.ts index 5aa51d7..12da391 100644 --- a/clients/ergo-node/src/types/containsPredicateAllOf.ts +++ b/clients/ergo-node/src/types/containsPredicateAllOf.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type ContainsPredicateAllOf = { [key: string]: any }; diff --git a/clients/ergo-node/src/types/containsPredicateAllOfTwo.ts b/clients/ergo-node/src/types/containsPredicateAllOfTwo.ts index 71d6cf0..18fc2aa 100644 --- a/clients/ergo-node/src/types/containsPredicateAllOfTwo.ts +++ b/clients/ergo-node/src/types/containsPredicateAllOfTwo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type ContainsPredicateAllOfTwo = { diff --git a/clients/ergo-node/src/types/cryptoResult.ts b/clients/ergo-node/src/types/cryptoResult.ts index 89e4593..c2839de 100644 --- a/clients/ergo-node/src/types/cryptoResult.ts +++ b/clients/ergo-node/src/types/cryptoResult.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SigmaBoolean } from './sigmaBoolean'; diff --git a/clients/ergo-node/src/types/deriveKey.ts b/clients/ergo-node/src/types/deriveKey.ts index 41acdcf..98b5dcb 100644 --- a/clients/ergo-node/src/types/deriveKey.ts +++ b/clients/ergo-node/src/types/deriveKey.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface DeriveKey { diff --git a/clients/ergo-node/src/types/deriveKeyResult.ts b/clients/ergo-node/src/types/deriveKeyResult.ts index 396a525..858ecf1 100644 --- a/clients/ergo-node/src/types/deriveKeyResult.ts +++ b/clients/ergo-node/src/types/deriveKeyResult.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoAddress } from './ergoAddress'; diff --git a/clients/ergo-node/src/types/deriveNextKeyResult.ts b/clients/ergo-node/src/types/deriveNextKeyResult.ts index e653915..af1c9e0 100644 --- a/clients/ergo-node/src/types/deriveNextKeyResult.ts +++ b/clients/ergo-node/src/types/deriveNextKeyResult.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoAddress } from './ergoAddress'; diff --git a/clients/ergo-node/src/types/dhtSecret.ts b/clients/ergo-node/src/types/dhtSecret.ts index 5528436..1dc4c28 100644 --- a/clients/ergo-node/src/types/dhtSecret.ts +++ b/clients/ergo-node/src/types/dhtSecret.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/digest32.ts b/clients/ergo-node/src/types/digest32.ts index a45e01a..df6c122 100644 --- a/clients/ergo-node/src/types/digest32.ts +++ b/clients/ergo-node/src/types/digest32.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/dlogCommitment.ts b/clients/ergo-node/src/types/dlogCommitment.ts index e45e035..8ac03e8 100644 --- a/clients/ergo-node/src/types/dlogCommitment.ts +++ b/clients/ergo-node/src/types/dlogCommitment.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/dlogSecret.ts b/clients/ergo-node/src/types/dlogSecret.ts index 2ccf20f..667a421 100644 --- a/clients/ergo-node/src/types/dlogSecret.ts +++ b/clients/ergo-node/src/types/dlogSecret.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/emissionInfo.ts b/clients/ergo-node/src/types/emissionInfo.ts index 9aac52a..e843811 100644 --- a/clients/ergo-node/src/types/emissionInfo.ts +++ b/clients/ergo-node/src/types/emissionInfo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/emissionScripts.ts b/clients/ergo-node/src/types/emissionScripts.ts index 8b1e642..deee954 100644 --- a/clients/ergo-node/src/types/emissionScripts.ts +++ b/clients/ergo-node/src/types/emissionScripts.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/equalsPredicate.ts b/clients/ergo-node/src/types/equalsPredicate.ts index 252def0..4e481fb 100644 --- a/clients/ergo-node/src/types/equalsPredicate.ts +++ b/clients/ergo-node/src/types/equalsPredicate.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ScanningPredicate } from './scanningPredicate'; import { bigIntsScanningPredicate } from './scanningPredicate'; diff --git a/clients/ergo-node/src/types/equalsPredicateAllOf.ts b/clients/ergo-node/src/types/equalsPredicateAllOf.ts index 3a2e4b7..bf66187 100644 --- a/clients/ergo-node/src/types/equalsPredicateAllOf.ts +++ b/clients/ergo-node/src/types/equalsPredicateAllOf.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type EqualsPredicateAllOf = { [key: string]: any }; diff --git a/clients/ergo-node/src/types/equalsPredicateAllOfTwo.ts b/clients/ergo-node/src/types/equalsPredicateAllOfTwo.ts index bb6d595..5af81c4 100644 --- a/clients/ergo-node/src/types/equalsPredicateAllOfTwo.ts +++ b/clients/ergo-node/src/types/equalsPredicateAllOfTwo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type EqualsPredicateAllOfTwo = { diff --git a/clients/ergo-node/src/types/ergoAddress.ts b/clients/ergo-node/src/types/ergoAddress.ts index 9f7e720..f85ca1a 100644 --- a/clients/ergo-node/src/types/ergoAddress.ts +++ b/clients/ergo-node/src/types/ergoAddress.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/ergoLikeContext.ts b/clients/ergo-node/src/types/ergoLikeContext.ts index e71f40d..3ec7264 100644 --- a/clients/ergo-node/src/types/ergoLikeContext.ts +++ b/clients/ergo-node/src/types/ergoLikeContext.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { AvlTreeData } from './avlTreeData'; import { bigIntsAvlTreeData } from './avlTreeData'; diff --git a/clients/ergo-node/src/types/ergoLikeContextExtension.ts b/clients/ergo-node/src/types/ergoLikeContextExtension.ts index 5929b9d..c30b7af 100644 --- a/clients/ergo-node/src/types/ergoLikeContextExtension.ts +++ b/clients/ergo-node/src/types/ergoLikeContextExtension.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/ergoLikeTransaction.ts b/clients/ergo-node/src/types/ergoLikeTransaction.ts index 2bdb7f8..b6cee26 100644 --- a/clients/ergo-node/src/types/ergoLikeTransaction.ts +++ b/clients/ergo-node/src/types/ergoLikeTransaction.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ModifierId } from './modifierId'; import { bigIntsModifierId } from './modifierId'; diff --git a/clients/ergo-node/src/types/ergoTransaction.ts b/clients/ergo-node/src/types/ergoTransaction.ts index 3d3b859..80b39ce 100644 --- a/clients/ergo-node/src/types/ergoTransaction.ts +++ b/clients/ergo-node/src/types/ergoTransaction.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionId } from './transactionId'; import { bigIntsTransactionId } from './transactionId'; @@ -16,17 +16,18 @@ import type { ErgoTransactionOutput } from './ergoTransactionOutput'; import { bigIntsErgoTransactionOutput } from './ergoTransactionOutput'; /** - * Ergo transaction + * ErgoTransaction is an atomic operation which changes UTXO state. */ export interface ErgoTransaction { + /** Id of the transaction */ id?: TransactionId; - /** Inputs of the transaction */ + /** Inputs, that will be spent by this transaction */ inputs: ErgoTransactionInput[]; - /** Data inputs of the transaction */ + /** Read-only inputs, that are not going to be spent by transaction. */ dataInputs: ErgoTransactionDataInput[]; - /** Outputs of the transaction */ + /** Outputs of the transaction, i.e. box candidates to be created by this transaction. */ outputs: ErgoTransactionOutput[]; - /** Size in bytes */ + /** Size of ErgoTransaction in bytes */ size?: number; } diff --git a/clients/ergo-node/src/types/ergoTransactionDataInput.ts b/clients/ergo-node/src/types/ergoTransactionDataInput.ts index 9dfa1d8..b4f669f 100644 --- a/clients/ergo-node/src/types/ergoTransactionDataInput.ts +++ b/clients/ergo-node/src/types/ergoTransactionDataInput.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionBoxId } from './transactionBoxId'; diff --git a/clients/ergo-node/src/types/ergoTransactionInput.ts b/clients/ergo-node/src/types/ergoTransactionInput.ts index 841eb64..2f51bab 100644 --- a/clients/ergo-node/src/types/ergoTransactionInput.ts +++ b/clients/ergo-node/src/types/ergoTransactionInput.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionBoxId } from './transactionBoxId'; import { bigIntsTransactionBoxId } from './transactionBoxId'; diff --git a/clients/ergo-node/src/types/ergoTransactionOutput.ts b/clients/ergo-node/src/types/ergoTransactionOutput.ts index fbebee6..b0e627f 100644 --- a/clients/ergo-node/src/types/ergoTransactionOutput.ts +++ b/clients/ergo-node/src/types/ergoTransactionOutput.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionBoxId } from './transactionBoxId'; import { bigIntsTransactionBoxId } from './transactionBoxId'; diff --git a/clients/ergo-node/src/types/ergoTransactionUnsignedInput.ts b/clients/ergo-node/src/types/ergoTransactionUnsignedInput.ts index 2e7689e..3896f97 100644 --- a/clients/ergo-node/src/types/ergoTransactionUnsignedInput.ts +++ b/clients/ergo-node/src/types/ergoTransactionUnsignedInput.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionBoxId } from './transactionBoxId'; import { bigIntsTransactionBoxId } from './transactionBoxId'; diff --git a/clients/ergo-node/src/types/ergoTransactionUnsignedInputExtension.ts b/clients/ergo-node/src/types/ergoTransactionUnsignedInputExtension.ts index 300e5a1..3c09fa2 100644 --- a/clients/ergo-node/src/types/ergoTransactionUnsignedInputExtension.ts +++ b/clients/ergo-node/src/types/ergoTransactionUnsignedInputExtension.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SValue } from './sValue'; diff --git a/clients/ergo-node/src/types/ergoTree.ts b/clients/ergo-node/src/types/ergoTree.ts index 0139718..e3dfc58 100644 --- a/clients/ergo-node/src/types/ergoTree.ts +++ b/clients/ergo-node/src/types/ergoTree.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/ergoTreeObject.ts b/clients/ergo-node/src/types/ergoTreeObject.ts index 1cf23a6..ba9ae47 100644 --- a/clients/ergo-node/src/types/ergoTreeObject.ts +++ b/clients/ergo-node/src/types/ergoTreeObject.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface ErgoTreeObject { diff --git a/clients/ergo-node/src/types/executeScript.ts b/clients/ergo-node/src/types/executeScript.ts index 5055b23..c3f9d8d 100644 --- a/clients/ergo-node/src/types/executeScript.ts +++ b/clients/ergo-node/src/types/executeScript.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ExecuteScriptNamedConstants } from './executeScriptNamedConstants'; import { bigIntsExecuteScriptNamedConstants } from './executeScriptNamedConstants'; diff --git a/clients/ergo-node/src/types/executeScriptNamedConstants.ts b/clients/ergo-node/src/types/executeScriptNamedConstants.ts index ab55631..0bcf386 100644 --- a/clients/ergo-node/src/types/executeScriptNamedConstants.ts +++ b/clients/ergo-node/src/types/executeScriptNamedConstants.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/extension.ts b/clients/ergo-node/src/types/extension.ts index 703d30b..2ca2def 100644 --- a/clients/ergo-node/src/types/extension.ts +++ b/clients/ergo-node/src/types/extension.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ModifierId } from './modifierId'; import { bigIntsModifierId } from './modifierId'; @@ -13,8 +13,13 @@ import type { KeyValueItem } from './keyValueItem'; import { bigIntsKeyValueItem } from './keyValueItem'; +/** + * Section of a block which contains extension data. + */ export interface Extension { + /** Identifier of a header of a corresponding block */ headerId: ModifierId; + /** Root hash (aka digest) merkelized list of key-value records */ digest: Digest32; /** List of key-value records */ fields: KeyValueItem[] | null; diff --git a/clients/ergo-node/src/types/feeHistogram.ts b/clients/ergo-node/src/types/feeHistogram.ts index 364d043..23e9a8a 100644 --- a/clients/ergo-node/src/types/feeHistogram.ts +++ b/clients/ergo-node/src/types/feeHistogram.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { FeeHistogramBin } from './feeHistogramBin'; diff --git a/clients/ergo-node/src/types/feeHistogramBin.ts b/clients/ergo-node/src/types/feeHistogramBin.ts index c9b30f4..4e8713a 100644 --- a/clients/ergo-node/src/types/feeHistogramBin.ts +++ b/clients/ergo-node/src/types/feeHistogramBin.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/fullBlock.ts b/clients/ergo-node/src/types/fullBlock.ts index 21f4ffe..535a686 100644 --- a/clients/ergo-node/src/types/fullBlock.ts +++ b/clients/ergo-node/src/types/fullBlock.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { BlockHeader } from './blockHeader'; import { bigIntsBlockHeader } from './blockHeader'; diff --git a/clients/ergo-node/src/types/generateCommitmentsRequest.ts b/clients/ergo-node/src/types/generateCommitmentsRequest.ts index 9243f20..75692d8 100644 --- a/clients/ergo-node/src/types/generateCommitmentsRequest.ts +++ b/clients/ergo-node/src/types/generateCommitmentsRequest.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { UnsignedErgoTransaction } from './unsignedErgoTransaction'; import { bigIntsUnsignedErgoTransaction } from './unsignedErgoTransaction'; diff --git a/clients/ergo-node/src/types/generateCommitmentsRequestSecrets.ts b/clients/ergo-node/src/types/generateCommitmentsRequestSecrets.ts index 54df920..cf375d8 100644 --- a/clients/ergo-node/src/types/generateCommitmentsRequestSecrets.ts +++ b/clients/ergo-node/src/types/generateCommitmentsRequestSecrets.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { DlogSecret } from './dlogSecret'; import { bigIntsDlogSecret } from './dlogSecret'; diff --git a/clients/ergo-node/src/types/getAddressBalanceTotal200.ts b/clients/ergo-node/src/types/getAddressBalanceTotal200.ts index 71eacf7..b680c08 100644 --- a/clients/ergo-node/src/types/getAddressBalanceTotal200.ts +++ b/clients/ergo-node/src/types/getAddressBalanceTotal200.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { BalanceInfo } from './balanceInfo'; diff --git a/clients/ergo-node/src/types/getBoxRangeParams.ts b/clients/ergo-node/src/types/getBoxRangeParams.ts index 1d469b7..31d9fa4 100644 --- a/clients/ergo-node/src/types/getBoxRangeParams.ts +++ b/clients/ergo-node/src/types/getBoxRangeParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetBoxRangeParams = { diff --git a/clients/ergo-node/src/types/getBoxesByAddress200.ts b/clients/ergo-node/src/types/getBoxesByAddress200.ts index 105f5f2..493e8ff 100644 --- a/clients/ergo-node/src/types/getBoxesByAddress200.ts +++ b/clients/ergo-node/src/types/getBoxesByAddress200.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { IndexedErgoBox } from './indexedErgoBox'; diff --git a/clients/ergo-node/src/types/getBoxesByAddressParams.ts b/clients/ergo-node/src/types/getBoxesByAddressParams.ts index 2a96a09..763e367 100644 --- a/clients/ergo-node/src/types/getBoxesByAddressParams.ts +++ b/clients/ergo-node/src/types/getBoxesByAddressParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetBoxesByAddressParams = { diff --git a/clients/ergo-node/src/types/getBoxesByAddressUnspentParams.ts b/clients/ergo-node/src/types/getBoxesByAddressUnspentParams.ts index 6c36d43..838a28b 100644 --- a/clients/ergo-node/src/types/getBoxesByAddressUnspentParams.ts +++ b/clients/ergo-node/src/types/getBoxesByAddressUnspentParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetBoxesByAddressUnspentParams = { @@ -19,5 +19,9 @@ export type GetBoxesByAddressUnspentParams = { * desc = new boxes first ; asc = old boxes first */ sortDirection?: string; + /** + * if true include unconfirmed transactions from mempool + */ + includeUnconfirmed?: boolean; }; export const bigIntsGetBoxesByAddressUnspentParams = []; diff --git a/clients/ergo-node/src/types/getBoxesByErgoTree200.ts b/clients/ergo-node/src/types/getBoxesByErgoTree200.ts index 0520721..611f07b 100644 --- a/clients/ergo-node/src/types/getBoxesByErgoTree200.ts +++ b/clients/ergo-node/src/types/getBoxesByErgoTree200.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { IndexedErgoBox } from './indexedErgoBox'; diff --git a/clients/ergo-node/src/types/getBoxesByErgoTreeParams.ts b/clients/ergo-node/src/types/getBoxesByErgoTreeParams.ts index 6af280d..fd422e7 100644 --- a/clients/ergo-node/src/types/getBoxesByErgoTreeParams.ts +++ b/clients/ergo-node/src/types/getBoxesByErgoTreeParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetBoxesByErgoTreeParams = { diff --git a/clients/ergo-node/src/types/getBoxesByErgoTreeUnspent200.ts b/clients/ergo-node/src/types/getBoxesByErgoTreeUnspent200.ts index 86e973d..85b1ca0 100644 --- a/clients/ergo-node/src/types/getBoxesByErgoTreeUnspent200.ts +++ b/clients/ergo-node/src/types/getBoxesByErgoTreeUnspent200.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { IndexedErgoBox } from './indexedErgoBox'; diff --git a/clients/ergo-node/src/types/getBoxesByErgoTreeUnspentParams.ts b/clients/ergo-node/src/types/getBoxesByErgoTreeUnspentParams.ts index f16d691..7bf3426 100644 --- a/clients/ergo-node/src/types/getBoxesByErgoTreeUnspentParams.ts +++ b/clients/ergo-node/src/types/getBoxesByErgoTreeUnspentParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetBoxesByErgoTreeUnspentParams = { @@ -19,5 +19,9 @@ export type GetBoxesByErgoTreeUnspentParams = { * desc = new boxes first ; asc = old boxes first */ sortDirection?: string; + /** + * if true include unconfirmed transactions from mempool + */ + includeUnconfirmed?: boolean; }; export const bigIntsGetBoxesByErgoTreeUnspentParams = []; diff --git a/clients/ergo-node/src/types/getBoxesByTokenId200.ts b/clients/ergo-node/src/types/getBoxesByTokenId200.ts new file mode 100644 index 0000000..89574e0 --- /dev/null +++ b/clients/ergo-node/src/types/getBoxesByTokenId200.ts @@ -0,0 +1,23 @@ +/** + * Generated by orval v6.15.0 🍺 + * 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 + */ +import type { IndexedErgoBox } from './indexedErgoBox'; + +import { bigIntsIndexedErgoBox } from './indexedErgoBox'; + +export type GetBoxesByTokenId200 = { + /** Array of boxes */ + items?: IndexedErgoBox[]; + /** Total number of retreived boxes */ + total?: number; +}; + +export const bigIntsGetBoxesByTokenId200 = [ + ...bigIntsIndexedErgoBox.map((item) => + item === '' ? 'items' : `items.${item}` + ), +]; diff --git a/clients/ergo-node/src/types/getBoxesByTokenIdParams.ts b/clients/ergo-node/src/types/getBoxesByTokenIdParams.ts new file mode 100644 index 0000000..c6c6950 --- /dev/null +++ b/clients/ergo-node/src/types/getBoxesByTokenIdParams.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v6.15.0 🍺 + * 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 + */ + +export type GetBoxesByTokenIdParams = { + /** + * amount of elements to skip from the start + */ + offset?: number; + /** + * amount of elements to retrieve + */ + limit?: number; +}; +export const bigIntsGetBoxesByTokenIdParams = []; diff --git a/clients/ergo-node/src/types/getBoxesByTokenIdUnspentParams.ts b/clients/ergo-node/src/types/getBoxesByTokenIdUnspentParams.ts new file mode 100644 index 0000000..2dcb483 --- /dev/null +++ b/clients/ergo-node/src/types/getBoxesByTokenIdUnspentParams.ts @@ -0,0 +1,27 @@ +/** + * Generated by orval v6.15.0 🍺 + * 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 + */ + +export type GetBoxesByTokenIdUnspentParams = { + /** + * amount of elements to skip from the start + */ + offset?: number; + /** + * amount of elements to retrieve + */ + limit?: number; + /** + * desc = new boxes first ; asc = old boxes first + */ + sortDirection?: string; + /** + * if true include unconfirmed transactions from mempool + */ + includeUnconfirmed?: boolean; +}; +export const bigIntsGetBoxesByTokenIdUnspentParams = []; diff --git a/clients/ergo-node/src/types/getChainSliceParams.ts b/clients/ergo-node/src/types/getChainSliceParams.ts index 700663e..f23bb84 100644 --- a/clients/ergo-node/src/types/getChainSliceParams.ts +++ b/clients/ergo-node/src/types/getChainSliceParams.ts @@ -3,16 +3,16 @@ * Do not edit manually. * Ergo Node API * API docs for Ergo Node. Models are shared between all Ergo products - * OpenAPI spec version: 5.0.10 + * OpenAPI spec version: 5.0.21 */ export type GetChainSliceParams = { /** - * Min header height + * Min header height (start of the range) */ fromHeight?: number; /** - * Max header height (best header height by default) + * Max header height of the range (last header height then omitted) */ toHeight?: number; }; diff --git a/clients/ergo-node/src/types/getExpectedWaitTimeParams.ts b/clients/ergo-node/src/types/getExpectedWaitTimeParams.ts index b743996..685640e 100644 --- a/clients/ergo-node/src/types/getExpectedWaitTimeParams.ts +++ b/clients/ergo-node/src/types/getExpectedWaitTimeParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetExpectedWaitTimeParams = { diff --git a/clients/ergo-node/src/types/getFeeHistogramParams.ts b/clients/ergo-node/src/types/getFeeHistogramParams.ts index 3657c3a..4e529d5 100644 --- a/clients/ergo-node/src/types/getFeeHistogramParams.ts +++ b/clients/ergo-node/src/types/getFeeHistogramParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetFeeHistogramParams = { diff --git a/clients/ergo-node/src/types/getHeaderIdsParams.ts b/clients/ergo-node/src/types/getHeaderIdsParams.ts index cfd4208..cd82254 100644 --- a/clients/ergo-node/src/types/getHeaderIdsParams.ts +++ b/clients/ergo-node/src/types/getHeaderIdsParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetHeaderIdsParams = { @@ -12,7 +12,7 @@ export type GetHeaderIdsParams = { */ limit?: number; /** - * The number of items in list to skip + * The first block height to include in the list */ offset?: number; }; diff --git a/clients/ergo-node/src/types/getIndexedHeight200.ts b/clients/ergo-node/src/types/getIndexedHeight200.ts index f010596..ae181cc 100644 --- a/clients/ergo-node/src/types/getIndexedHeight200.ts +++ b/clients/ergo-node/src/types/getIndexedHeight200.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetIndexedHeight200 = { diff --git a/clients/ergo-node/src/types/getRecommendedFeeParams.ts b/clients/ergo-node/src/types/getRecommendedFeeParams.ts index 309ab37..7450711 100644 --- a/clients/ergo-node/src/types/getRecommendedFeeParams.ts +++ b/clients/ergo-node/src/types/getRecommendedFeeParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetRecommendedFeeParams = { diff --git a/clients/ergo-node/src/types/getTxRangeParams.ts b/clients/ergo-node/src/types/getTxRangeParams.ts index 03e6a00..d8bdf13 100644 --- a/clients/ergo-node/src/types/getTxRangeParams.ts +++ b/clients/ergo-node/src/types/getTxRangeParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetTxRangeParams = { diff --git a/clients/ergo-node/src/types/getTxsByAddress200.ts b/clients/ergo-node/src/types/getTxsByAddress200.ts index 720a08d..ffb6e64 100644 --- a/clients/ergo-node/src/types/getTxsByAddress200.ts +++ b/clients/ergo-node/src/types/getTxsByAddress200.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { IndexedErgoTransaction } from './indexedErgoTransaction'; diff --git a/clients/ergo-node/src/types/getTxsByAddressParams.ts b/clients/ergo-node/src/types/getTxsByAddressParams.ts index 8e02c8a..18b5361 100644 --- a/clients/ergo-node/src/types/getTxsByAddressParams.ts +++ b/clients/ergo-node/src/types/getTxsByAddressParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetTxsByAddressParams = { diff --git a/clients/ergo-node/src/types/getUnconfirmedTransactionOutputBoxesByErgoTreeParams.ts b/clients/ergo-node/src/types/getUnconfirmedTransactionOutputBoxesByErgoTreeParams.ts index 3b13b1d..8163bce 100644 --- a/clients/ergo-node/src/types/getUnconfirmedTransactionOutputBoxesByErgoTreeParams.ts +++ b/clients/ergo-node/src/types/getUnconfirmedTransactionOutputBoxesByErgoTreeParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetUnconfirmedTransactionOutputBoxesByErgoTreeParams = { diff --git a/clients/ergo-node/src/types/getUnconfirmedTransactionOutputBoxesByRegistersParams.ts b/clients/ergo-node/src/types/getUnconfirmedTransactionOutputBoxesByRegistersParams.ts index 0624e5f..7a1ca74 100644 --- a/clients/ergo-node/src/types/getUnconfirmedTransactionOutputBoxesByRegistersParams.ts +++ b/clients/ergo-node/src/types/getUnconfirmedTransactionOutputBoxesByRegistersParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetUnconfirmedTransactionOutputBoxesByRegistersParams = { diff --git a/clients/ergo-node/src/types/getUnconfirmedTransactionsByErgoTreeParams.ts b/clients/ergo-node/src/types/getUnconfirmedTransactionsByErgoTreeParams.ts index 22ed171..812b902 100644 --- a/clients/ergo-node/src/types/getUnconfirmedTransactionsByErgoTreeParams.ts +++ b/clients/ergo-node/src/types/getUnconfirmedTransactionsByErgoTreeParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetUnconfirmedTransactionsByErgoTreeParams = { diff --git a/clients/ergo-node/src/types/getUnconfirmedTransactionsParams.ts b/clients/ergo-node/src/types/getUnconfirmedTransactionsParams.ts index 628d3ec..49c2fb6 100644 --- a/clients/ergo-node/src/types/getUnconfirmedTransactionsParams.ts +++ b/clients/ergo-node/src/types/getUnconfirmedTransactionsParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type GetUnconfirmedTransactionsParams = { diff --git a/clients/ergo-node/src/types/hexString.ts b/clients/ergo-node/src/types/hexString.ts index 94ea888..a3332d8 100644 --- a/clients/ergo-node/src/types/hexString.ts +++ b/clients/ergo-node/src/types/hexString.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/hintExtractionRequest.ts b/clients/ergo-node/src/types/hintExtractionRequest.ts index 08b6300..e8c84bc 100644 --- a/clients/ergo-node/src/types/hintExtractionRequest.ts +++ b/clients/ergo-node/src/types/hintExtractionRequest.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoTransaction } from './ergoTransaction'; import { bigIntsErgoTransaction } from './ergoTransaction'; diff --git a/clients/ergo-node/src/types/index.ts b/clients/ergo-node/src/types/index.ts index 0305026..b1e0383 100644 --- a/clients/ergo-node/src/types/index.ts +++ b/clients/ergo-node/src/types/index.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export * from './aDDigest'; @@ -84,6 +84,9 @@ export * from './getBoxesByErgoTree200'; export * from './getBoxesByErgoTreeParams'; export * from './getBoxesByErgoTreeUnspent200'; export * from './getBoxesByErgoTreeUnspentParams'; +export * from './getBoxesByTokenId200'; +export * from './getBoxesByTokenIdParams'; +export * from './getBoxesByTokenIdUnspentParams'; export * from './getChainSliceParams'; export * from './getExpectedWaitTimeParams'; export * from './getFeeHistogramParams'; @@ -100,6 +103,7 @@ export * from './getUnconfirmedTransactionsParams'; export * from './hexString'; export * from './hintExtractionRequest'; export * from './indexedErgoBox'; +export * from './indexedErgoBoxAllOf'; export * from './indexedErgoTransaction'; export * from './indexedToken'; export * from './initWallet'; @@ -162,6 +166,8 @@ export * from './sigmaBooleanThresholdPredicate'; export * from './sigmaBooleanThresholdPredicateAllOf'; export * from './sigmaBooleanThresholdPredicateAllOfTwo'; export * from './sigmaHeader'; +export * from './snapshotsInfo'; +export * from './snapshotsInfoAvailableManifestsItem'; export * from './sourceHolder'; export * from './spendingProof'; export * from './spendingProofBytes'; diff --git a/clients/ergo-node/src/types/indexedErgoBox.ts b/clients/ergo-node/src/types/indexedErgoBox.ts index 814fae2..ed7a847 100644 --- a/clients/ergo-node/src/types/indexedErgoBox.ts +++ b/clients/ergo-node/src/types/indexedErgoBox.ts @@ -3,69 +3,16 @@ * Do not edit manually. * Ergo Node API * API docs for Ergo Node. Models are shared between all Ergo products - * OpenAPI spec version: 5.0.10 + * OpenAPI spec version: 5.0.21 */ -import type { TransactionBoxId } from './transactionBoxId'; -import { bigIntsTransactionBoxId } from './transactionBoxId'; -import type { ErgoTree } from './ergoTree'; -import { bigIntsErgoTree } from './ergoTree'; -import type { Asset } from './asset'; -import { bigIntsAsset } from './asset'; -import type { Registers } from './registers'; -import { bigIntsRegisters } from './registers'; -import type { TransactionId } from './transactionId'; -import { bigIntsTransactionId } from './transactionId'; -import type { ErgoAddress } from './ergoAddress'; -import { bigIntsErgoAddress } from './ergoAddress'; -import type { ModifierId } from './modifierId'; +import type { ErgoTransactionOutput } from './ergoTransactionOutput'; +import { bigIntsErgoTransactionOutput } from './ergoTransactionOutput'; +import type { IndexedErgoBoxAllOf } from './indexedErgoBoxAllOf'; -import { bigIntsModifierId } from './modifierId'; - -/** - * Box indexed with extra information - */ -export interface IndexedErgoBox { - boxId?: TransactionBoxId; - /** Amount of Ergo token */ - value: bigint; - ergoTree: ErgoTree; - /** Height the output was created at */ - creationHeight: number; - /** Assets list in the transaction */ - assets?: Asset[]; - additionalRegisters: Registers; - transactionId?: TransactionId; - /** Index in the transaction outputs */ - index?: number; - address: ErgoAddress; - /** Transaction which created the box */ - spentTransactionId?: ModifierId; - /** The height the transaction containing the box was included in a block at */ - inclusionHeight: number; - /** Global index of the output in the blockchain */ - globalIndex: bigint; -} +import { bigIntsIndexedErgoBoxAllOf } from './indexedErgoBoxAllOf'; +export type IndexedErgoBox = ErgoTransactionOutput & IndexedErgoBoxAllOf; export const bigIntsIndexedErgoBox = [ - ...bigIntsTransactionBoxId.map((item) => - item === '' ? 'boxId' : `boxId.${item}` - ), - 'value', - ...bigIntsErgoTree.map((item) => - item === '' ? 'ergoTree' : `ergoTree.${item}` - ), - ...bigIntsAsset.map((item) => (item === '' ? 'assets' : `assets.${item}`)), - ...bigIntsRegisters.map((item) => - item === '' ? 'additionalRegisters' : `additionalRegisters.${item}` - ), - ...bigIntsTransactionId.map((item) => - item === '' ? 'transactionId' : `transactionId.${item}` - ), - ...bigIntsErgoAddress.map((item) => - item === '' ? 'address' : `address.${item}` - ), - ...bigIntsModifierId.map((item) => - item === '' ? 'spentTransactionId' : `spentTransactionId.${item}` - ), - 'globalIndex', + ...bigIntsErgoTransactionOutput, + ...bigIntsIndexedErgoBoxAllOf, ]; diff --git a/clients/ergo-node/src/types/indexedErgoBoxAllOf.ts b/clients/ergo-node/src/types/indexedErgoBoxAllOf.ts new file mode 100644 index 0000000..1f758cd --- /dev/null +++ b/clients/ergo-node/src/types/indexedErgoBoxAllOf.ts @@ -0,0 +1,37 @@ +/** + * Generated by orval v6.15.0 🍺 + * 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 + */ +import type { ErgoAddress } from './ergoAddress'; +import { bigIntsErgoAddress } from './ergoAddress'; +import type { ModifierId } from './modifierId'; + +import { bigIntsModifierId } from './modifierId'; + +/** + * Box indexed with extra information + */ +export type IndexedErgoBoxAllOf = { + address: ErgoAddress; + /** Transaction which spent the box */ + spentTransactionId: ModifierId; + /** The height the box was spent at */ + spendingHeight: number | null; + /** The height the transaction containing the box was included in a block at */ + inclusionHeight: number; + /** Global index of the output in the blockchain */ + globalIndex: bigint; +}; + +export const bigIntsIndexedErgoBoxAllOf = [ + ...bigIntsErgoAddress.map((item) => + item === '' ? 'address' : `address.${item}` + ), + ...bigIntsModifierId.map((item) => + item === '' ? 'spentTransactionId' : `spentTransactionId.${item}` + ), + 'globalIndex', +]; diff --git a/clients/ergo-node/src/types/indexedErgoTransaction.ts b/clients/ergo-node/src/types/indexedErgoTransaction.ts index c992212..c0c2ab1 100644 --- a/clients/ergo-node/src/types/indexedErgoTransaction.ts +++ b/clients/ergo-node/src/types/indexedErgoTransaction.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionId } from './transactionId'; import { bigIntsTransactionId } from './transactionId'; diff --git a/clients/ergo-node/src/types/indexedToken.ts b/clients/ergo-node/src/types/indexedToken.ts index 116f1ae..d614754 100644 --- a/clients/ergo-node/src/types/indexedToken.ts +++ b/clients/ergo-node/src/types/indexedToken.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ModifierId } from './modifierId'; @@ -14,17 +14,17 @@ import { bigIntsModifierId } from './modifierId'; */ export interface IndexedToken { /** Id of the token */ - id?: ModifierId; + id: ModifierId; /** Id of the box that created the token */ - boxId?: ModifierId; + boxId: ModifierId; /** The total supply of the token */ - emissionAmount?: bigint; + emissionAmount: bigint; /** The name of the token */ - name?: string; + name: string; /** The description of the token */ - description?: string; + description: string; /** The number of decimals the token supports */ - decimals?: number; + decimals: number; } export const bigIntsIndexedToken = [ diff --git a/clients/ergo-node/src/types/initWallet.ts b/clients/ergo-node/src/types/initWallet.ts index 4ae028f..68579de 100644 --- a/clients/ergo-node/src/types/initWallet.ts +++ b/clients/ergo-node/src/types/initWallet.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface InitWallet { diff --git a/clients/ergo-node/src/types/initWalletResult.ts b/clients/ergo-node/src/types/initWalletResult.ts index 00d5001..d2abd35 100644 --- a/clients/ergo-node/src/types/initWalletResult.ts +++ b/clients/ergo-node/src/types/initWalletResult.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface InitWalletResult { diff --git a/clients/ergo-node/src/types/inputHints.ts b/clients/ergo-node/src/types/inputHints.ts index 59f2425..76abcd1 100644 --- a/clients/ergo-node/src/types/inputHints.ts +++ b/clients/ergo-node/src/types/inputHints.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { InputHintsItem } from './inputHintsItem'; diff --git a/clients/ergo-node/src/types/inputHintsItem.ts b/clients/ergo-node/src/types/inputHintsItem.ts index 8a62150..b1d8b6d 100644 --- a/clients/ergo-node/src/types/inputHintsItem.ts +++ b/clients/ergo-node/src/types/inputHintsItem.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { CommitmentWithSecret } from './commitmentWithSecret'; import { bigIntsCommitmentWithSecret } from './commitmentWithSecret'; diff --git a/clients/ergo-node/src/types/keyValueItem.ts b/clients/ergo-node/src/types/keyValueItem.ts index c110ca6..1e967fa 100644 --- a/clients/ergo-node/src/types/keyValueItem.ts +++ b/clients/ergo-node/src/types/keyValueItem.ts @@ -3,11 +3,14 @@ * Do not edit manually. * Ergo Node API * API docs for Ergo Node. Models are shared between all Ergo products - * OpenAPI spec version: 5.0.10 + * OpenAPI spec version: 5.0.21 */ import type { HexString } from './hexString'; import { bigIntsHexString } from './hexString'; +/** + * Key-value record represented as a pair of hex strings in an array. + */ export type KeyValueItem = HexString[]; export const bigIntsKeyValueItem = [...bigIntsHexString]; diff --git a/clients/ergo-node/src/types/listSpentScansParams.ts b/clients/ergo-node/src/types/listSpentScansParams.ts index ccaef8b..e5f6d5b 100644 --- a/clients/ergo-node/src/types/listSpentScansParams.ts +++ b/clients/ergo-node/src/types/listSpentScansParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type ListSpentScansParams = { @@ -23,5 +23,13 @@ export type ListSpentScansParams = { * Maximum box inclusion height, -1 means unlimited */ maxInclusionHeight?: number; + /** + * amount of elements to retrieve + */ + limit?: number; + /** + * The number of items in list to skip + */ + offset?: number; }; export const bigIntsListSpentScansParams = []; diff --git a/clients/ergo-node/src/types/listUnspentScansParams.ts b/clients/ergo-node/src/types/listUnspentScansParams.ts index 96d59af..f243a68 100644 --- a/clients/ergo-node/src/types/listUnspentScansParams.ts +++ b/clients/ergo-node/src/types/listUnspentScansParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type ListUnspentScansParams = { @@ -23,5 +23,13 @@ export type ListUnspentScansParams = { * Maximum box inclusion height, -1 means unlimited */ maxInclusionHeight?: number; + /** + * amount of elements to retrieve + */ + limit?: number; + /** + * The number of items in list to skip + */ + offset?: number; }; export const bigIntsListUnspentScansParams = []; diff --git a/clients/ergo-node/src/types/merkleProof.ts b/clients/ergo-node/src/types/merkleProof.ts index 67bcd4d..a18f844 100644 --- a/clients/ergo-node/src/types/merkleProof.ts +++ b/clients/ergo-node/src/types/merkleProof.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { MerkleProofLevelsItemItem } from './merkleProofLevelsItemItem'; diff --git a/clients/ergo-node/src/types/merkleProofLevelsItemItem.ts b/clients/ergo-node/src/types/merkleProofLevelsItemItem.ts index c293ab6..236c416 100644 --- a/clients/ergo-node/src/types/merkleProofLevelsItemItem.ts +++ b/clients/ergo-node/src/types/merkleProofLevelsItemItem.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type MerkleProofLevelsItemItem = string | number; diff --git a/clients/ergo-node/src/types/modifierId.ts b/clients/ergo-node/src/types/modifierId.ts index e269d46..8673f65 100644 --- a/clients/ergo-node/src/types/modifierId.ts +++ b/clients/ergo-node/src/types/modifierId.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/nipopowProof.ts b/clients/ergo-node/src/types/nipopowProof.ts index 0861980..44a00f2 100644 --- a/clients/ergo-node/src/types/nipopowProof.ts +++ b/clients/ergo-node/src/types/nipopowProof.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { PopowHeader } from './popowHeader'; import { bigIntsPopowHeader } from './popowHeader'; diff --git a/clients/ergo-node/src/types/nodeInfo.ts b/clients/ergo-node/src/types/nodeInfo.ts index 4a6a108..292d1f1 100644 --- a/clients/ergo-node/src/types/nodeInfo.ts +++ b/clients/ergo-node/src/types/nodeInfo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { NodeInfoStateType } from './nodeInfoStateType'; import { bigIntsNodeInfoStateType } from './nodeInfoStateType'; @@ -11,45 +11,51 @@ import type { Parameters } from './parameters'; import { bigIntsParameters } from './parameters'; +/** + * Data container for /info API request output. Contains information about node's state and configuration. Contains data about best block, best header, state, etc. Best block is the block with the maximum height. + */ export interface NodeInfo { + /** Node's (peer) self-chosen name from config */ name: string; + /** Node's application version */ appVersion: string; - /** Can be 'null' if state is empty (no full block is applied since node launch) */ + /** Height of the best block known to the node. Can be 'null' if state is empty (no full block is applied since node launch) */ fullHeight: number | null; - /** Can be 'null' if state is empty (no header applied since node launch) */ + /** The height of the best header (i.e. the one with the maximum height). Can be 'null' if state is empty (no header applied since node launch) */ headersHeight: number | null; /** Maximum block height of connected peers. Can be 'null' if state is empty (no peer connected since node launch) */ maxPeerHeight: number | null; - /** Can be 'null' if no full block is applied since node launch */ + /** Best full-block id (header id of such block). Can be 'null' if no full block is applied since node launch. */ bestFullHeaderId: string | null; - /** Can be 'null' if no full block is applied since node launch */ + /** Header id of the parent block of the best full-block (i.e. previous block in the blockchain). Can be 'null' if no full block is applied since node launch */ previousFullHeaderId: string | null; - /** Can be 'null' if no header applied since node launch */ + /** Best header ID (hex representation). Can be 'null' if no header applied since node launch. */ bestHeaderId: string | null; - /** Can be 'null' if state is empty (no full block is applied since node launch) */ + /** Current UTXO set digest. Can be 'null' if state is empty (no full block is applied since node launch) */ stateRoot: string | null; + /** Whether the node is storing UTXO set or only its digest. Equals `digest` if only digest is stored, `utxo` if full UTXO set is stored. */ stateType: NodeInfoStateType; - /** Can be 'null' if no full block is applied since node launch */ + /** Id of a block where UTXO set digest is taken from. Can be 'null' if no full block is applied since node launch. */ stateVersion: string | null; + /** Whether the node is mining (i.e. generating blocks). */ isMining: boolean; - /** Number of connected peers */ + /** Number of peers this node is connected with. */ peersCount: number; - /** Current unconfirmed transactions count */ + /** Number of unconfirmed transactions in the mempool. */ unconfirmedCount: number; - /** Difficulty on current bestFullHeaderId. Can be 'null' if no full block is applied since node launch. Difficulty is a BigInt integer. - */ + /** Difficulty on current bestFullHeaderId. Can be 'null' if no full block is applied since node launch. Difficulty is a BigInt integer. */ difficulty: number | null; /** Current internal node time */ currentTime: number; - /** Time when the node was started */ + /** When the node was launched (in Java time format, UNIX time * 1000). */ launchTime: number; - /** Can be 'null' if no headers is applied since node launch. headersScore is a BigInt integer. */ + /** Cumulative difficulty of best headers-chain. Can be 'null' if no headers is applied since node launch. headersScore is a BigInt integer. */ headersScore: number | null; - /** Can be 'null' if no full block is applied since node launch. fullBlocksScore is a BigInt integer. */ + /** Cumulative difficulty of best full blocks chain. Can be 'null' if no full block is applied since node launch. fullBlocksScore is a BigInt integer. */ fullBlocksScore: number | null; - /** Can be 'null' if genesis blocks is not produced yet */ + /** Header id of genesis block. Can be 'null' if genesis blocks is not produced yet. */ genesisBlockId: string | null; - /** current parameters */ + /** System parameters which could be readjusted via collective miners decision. */ parameters: Parameters; /** Whether EIP-27 locked in */ eip27Supported?: boolean; diff --git a/clients/ergo-node/src/types/nodeInfoStateType.ts b/clients/ergo-node/src/types/nodeInfoStateType.ts index d5c6e08..a9d6bb4 100644 --- a/clients/ergo-node/src/types/nodeInfoStateType.ts +++ b/clients/ergo-node/src/types/nodeInfoStateType.ts @@ -3,9 +3,12 @@ * Do not edit manually. * Ergo Node API * API docs for Ergo Node. Models are shared between all Ergo products - * OpenAPI spec version: 5.0.10 + * OpenAPI spec version: 5.0.21 */ +/** + * Whether the node is storing UTXO set or only its digest. Equals `digest` if only digest is stored, `utxo` if full UTXO set is stored. + */ export type NodeInfoStateType = (typeof NodeInfoStateType)[keyof typeof NodeInfoStateType]; diff --git a/clients/ergo-node/src/types/orPredicate.ts b/clients/ergo-node/src/types/orPredicate.ts index cb64a6c..d2d2a7c 100644 --- a/clients/ergo-node/src/types/orPredicate.ts +++ b/clients/ergo-node/src/types/orPredicate.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ScanningPredicate } from './scanningPredicate'; import { bigIntsScanningPredicate } from './scanningPredicate'; diff --git a/clients/ergo-node/src/types/orPredicateAllOf.ts b/clients/ergo-node/src/types/orPredicateAllOf.ts index 2b47316..7d3d1a0 100644 --- a/clients/ergo-node/src/types/orPredicateAllOf.ts +++ b/clients/ergo-node/src/types/orPredicateAllOf.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type OrPredicateAllOf = { [key: string]: any }; diff --git a/clients/ergo-node/src/types/orPredicateAllOfTwo.ts b/clients/ergo-node/src/types/orPredicateAllOfTwo.ts index 2af11b5..0d2ee77 100644 --- a/clients/ergo-node/src/types/orPredicateAllOfTwo.ts +++ b/clients/ergo-node/src/types/orPredicateAllOfTwo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ScanningPredicate } from './scanningPredicate'; diff --git a/clients/ergo-node/src/types/parameters.ts b/clients/ergo-node/src/types/parameters.ts index 000689a..40add1e 100644 --- a/clients/ergo-node/src/types/parameters.ts +++ b/clients/ergo-node/src/types/parameters.ts @@ -3,12 +3,15 @@ * Do not edit manually. * Ergo Node API * API docs for Ergo Node. Models are shared between all Ergo products - * OpenAPI spec version: 5.0.10 + * OpenAPI spec version: 5.0.21 */ import type { Version } from './version'; import { bigIntsVersion } from './version'; +/** + * System parameters which could be readjusted via collective miners decision. + */ export interface Parameters { /** Height when current parameters were considered(not actual height). Can be '0' if state is empty */ height: number; diff --git a/clients/ergo-node/src/types/passphraseMatch.ts b/clients/ergo-node/src/types/passphraseMatch.ts index 188461f..b982cc8 100644 --- a/clients/ergo-node/src/types/passphraseMatch.ts +++ b/clients/ergo-node/src/types/passphraseMatch.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface PassphraseMatch { diff --git a/clients/ergo-node/src/types/paymentRequest.ts b/clients/ergo-node/src/types/paymentRequest.ts index e52c70f..3981350 100644 --- a/clients/ergo-node/src/types/paymentRequest.ts +++ b/clients/ergo-node/src/types/paymentRequest.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoAddress } from './ergoAddress'; import { bigIntsErgoAddress } from './ergoAddress'; diff --git a/clients/ergo-node/src/types/peer.ts b/clients/ergo-node/src/types/peer.ts index 87c5bc0..68bb1ca 100644 --- a/clients/ergo-node/src/types/peer.ts +++ b/clients/ergo-node/src/types/peer.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { Timestamp } from './timestamp'; import { bigIntsTimestamp } from './timestamp'; diff --git a/clients/ergo-node/src/types/peerConnectionType.ts b/clients/ergo-node/src/types/peerConnectionType.ts index 0fbf5f5..cc87dc7 100644 --- a/clients/ergo-node/src/types/peerConnectionType.ts +++ b/clients/ergo-node/src/types/peerConnectionType.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type PeerConnectionType = diff --git a/clients/ergo-node/src/types/peerMode.ts b/clients/ergo-node/src/types/peerMode.ts index d5b30d2..862eaa2 100644 --- a/clients/ergo-node/src/types/peerMode.ts +++ b/clients/ergo-node/src/types/peerMode.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface PeerMode { diff --git a/clients/ergo-node/src/types/peersStatus.ts b/clients/ergo-node/src/types/peersStatus.ts index 5772fa7..4a209d8 100644 --- a/clients/ergo-node/src/types/peersStatus.ts +++ b/clients/ergo-node/src/types/peersStatus.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface PeersStatus { diff --git a/clients/ergo-node/src/types/popowHeader.ts b/clients/ergo-node/src/types/popowHeader.ts index f6a7015..6447989 100644 --- a/clients/ergo-node/src/types/popowHeader.ts +++ b/clients/ergo-node/src/types/popowHeader.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { BlockHeader } from './blockHeader'; import { bigIntsBlockHeader } from './blockHeader'; diff --git a/clients/ergo-node/src/types/powSolutions.ts b/clients/ergo-node/src/types/powSolutions.ts index 76a450d..ae421c2 100644 --- a/clients/ergo-node/src/types/powSolutions.ts +++ b/clients/ergo-node/src/types/powSolutions.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/preHeader.ts b/clients/ergo-node/src/types/preHeader.ts index 6fff9ca..85ba169 100644 --- a/clients/ergo-node/src/types/preHeader.ts +++ b/clients/ergo-node/src/types/preHeader.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { Timestamp } from './timestamp'; import { bigIntsTimestamp } from './timestamp'; diff --git a/clients/ergo-node/src/types/proofOfUpcomingTransactions.ts b/clients/ergo-node/src/types/proofOfUpcomingTransactions.ts index 5693fdd..186ad03 100644 --- a/clients/ergo-node/src/types/proofOfUpcomingTransactions.ts +++ b/clients/ergo-node/src/types/proofOfUpcomingTransactions.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { MerkleProof } from './merkleProof'; diff --git a/clients/ergo-node/src/types/registers.ts b/clients/ergo-node/src/types/registers.ts index 7a5a82a..1524e9f 100644 --- a/clients/ergo-node/src/types/registers.ts +++ b/clients/ergo-node/src/types/registers.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SValue } from './sValue'; diff --git a/clients/ergo-node/src/types/requestedInfo.ts b/clients/ergo-node/src/types/requestedInfo.ts index 4654b36..f4726f3 100644 --- a/clients/ergo-node/src/types/requestedInfo.ts +++ b/clients/ergo-node/src/types/requestedInfo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface RequestedInfo { diff --git a/clients/ergo-node/src/types/requestedInfoByModifierId.ts b/clients/ergo-node/src/types/requestedInfoByModifierId.ts index e0e22fd..696a2c5 100644 --- a/clients/ergo-node/src/types/requestedInfoByModifierId.ts +++ b/clients/ergo-node/src/types/requestedInfoByModifierId.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { RequestedInfo } from './requestedInfo'; diff --git a/clients/ergo-node/src/types/requestsHolder.ts b/clients/ergo-node/src/types/requestsHolder.ts index 34cc249..0dcbfcc 100644 --- a/clients/ergo-node/src/types/requestsHolder.ts +++ b/clients/ergo-node/src/types/requestsHolder.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { RequestsHolderRequestsItem } from './requestsHolderRequestsItem'; diff --git a/clients/ergo-node/src/types/requestsHolderRequestsItem.ts b/clients/ergo-node/src/types/requestsHolderRequestsItem.ts index 6429a0b..5f087f5 100644 --- a/clients/ergo-node/src/types/requestsHolderRequestsItem.ts +++ b/clients/ergo-node/src/types/requestsHolderRequestsItem.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { PaymentRequest } from './paymentRequest'; import { bigIntsPaymentRequest } from './paymentRequest'; diff --git a/clients/ergo-node/src/types/restoreWallet.ts b/clients/ergo-node/src/types/restoreWallet.ts index e102fcc..e0d98ef 100644 --- a/clients/ergo-node/src/types/restoreWallet.ts +++ b/clients/ergo-node/src/types/restoreWallet.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface RestoreWallet { diff --git a/clients/ergo-node/src/types/rewardAddress.ts b/clients/ergo-node/src/types/rewardAddress.ts index e3718ae..da141a1 100644 --- a/clients/ergo-node/src/types/rewardAddress.ts +++ b/clients/ergo-node/src/types/rewardAddress.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoAddress } from './ergoAddress'; diff --git a/clients/ergo-node/src/types/rewardPubKey.ts b/clients/ergo-node/src/types/rewardPubKey.ts index 0f10a7a..0ff28c1 100644 --- a/clients/ergo-node/src/types/rewardPubKey.ts +++ b/clients/ergo-node/src/types/rewardPubKey.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface RewardPubKey { diff --git a/clients/ergo-node/src/types/sValue.ts b/clients/ergo-node/src/types/sValue.ts index ce25898..82dca73 100644 --- a/clients/ergo-node/src/types/sValue.ts +++ b/clients/ergo-node/src/types/sValue.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/scan.ts b/clients/ergo-node/src/types/scan.ts index b0fd2c9..5d310d6 100644 --- a/clients/ergo-node/src/types/scan.ts +++ b/clients/ergo-node/src/types/scan.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ScanWalletInteraction } from './scanWalletInteraction'; import { bigIntsScanWalletInteraction } from './scanWalletInteraction'; diff --git a/clients/ergo-node/src/types/scanId.ts b/clients/ergo-node/src/types/scanId.ts index 42af681..e7a5540 100644 --- a/clients/ergo-node/src/types/scanId.ts +++ b/clients/ergo-node/src/types/scanId.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface ScanId { diff --git a/clients/ergo-node/src/types/scanIdBoxId.ts b/clients/ergo-node/src/types/scanIdBoxId.ts index 6a5c213..6b57c89 100644 --- a/clients/ergo-node/src/types/scanIdBoxId.ts +++ b/clients/ergo-node/src/types/scanIdBoxId.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionBoxId } from './transactionBoxId'; diff --git a/clients/ergo-node/src/types/scanIdsBox.ts b/clients/ergo-node/src/types/scanIdsBox.ts index a5f593c..e7cea84 100644 --- a/clients/ergo-node/src/types/scanIdsBox.ts +++ b/clients/ergo-node/src/types/scanIdsBox.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoTransactionOutput } from './ergoTransactionOutput'; diff --git a/clients/ergo-node/src/types/scanRequest.ts b/clients/ergo-node/src/types/scanRequest.ts index 8ded7f9..78dd212 100644 --- a/clients/ergo-node/src/types/scanRequest.ts +++ b/clients/ergo-node/src/types/scanRequest.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ScanRequestWalletInteraction } from './scanRequestWalletInteraction'; import { bigIntsScanRequestWalletInteraction } from './scanRequestWalletInteraction'; diff --git a/clients/ergo-node/src/types/scanRequestWalletInteraction.ts b/clients/ergo-node/src/types/scanRequestWalletInteraction.ts index 2d019fb..44bde4a 100644 --- a/clients/ergo-node/src/types/scanRequestWalletInteraction.ts +++ b/clients/ergo-node/src/types/scanRequestWalletInteraction.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type ScanRequestWalletInteraction = diff --git a/clients/ergo-node/src/types/scanWalletInteraction.ts b/clients/ergo-node/src/types/scanWalletInteraction.ts index 3bcfd1c..78a5446 100644 --- a/clients/ergo-node/src/types/scanWalletInteraction.ts +++ b/clients/ergo-node/src/types/scanWalletInteraction.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type ScanWalletInteraction = diff --git a/clients/ergo-node/src/types/scanningPredicate.ts b/clients/ergo-node/src/types/scanningPredicate.ts index 7d4c25b..64fc22c 100644 --- a/clients/ergo-node/src/types/scanningPredicate.ts +++ b/clients/ergo-node/src/types/scanningPredicate.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface ScanningPredicate { diff --git a/clients/ergo-node/src/types/scriptBytes.ts b/clients/ergo-node/src/types/scriptBytes.ts index dff3f6d..c4170fd 100644 --- a/clients/ergo-node/src/types/scriptBytes.ts +++ b/clients/ergo-node/src/types/scriptBytes.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { HexString } from './hexString'; diff --git a/clients/ergo-node/src/types/secretProven.ts b/clients/ergo-node/src/types/secretProven.ts index 31751c7..c17e943 100644 --- a/clients/ergo-node/src/types/secretProven.ts +++ b/clients/ergo-node/src/types/secretProven.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SecretProvenHint } from './secretProvenHint'; import { bigIntsSecretProvenHint } from './secretProvenHint'; diff --git a/clients/ergo-node/src/types/secretProvenHint.ts b/clients/ergo-node/src/types/secretProvenHint.ts index 728787e..83fcb49 100644 --- a/clients/ergo-node/src/types/secretProvenHint.ts +++ b/clients/ergo-node/src/types/secretProvenHint.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type SecretProvenHint = diff --git a/clients/ergo-node/src/types/serializedAdProof.ts b/clients/ergo-node/src/types/serializedAdProof.ts index 9de5dad..916a8e4 100644 --- a/clients/ergo-node/src/types/serializedAdProof.ts +++ b/clients/ergo-node/src/types/serializedAdProof.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/serializedBox.ts b/clients/ergo-node/src/types/serializedBox.ts index 6e8c4e8..7ac2297 100644 --- a/clients/ergo-node/src/types/serializedBox.ts +++ b/clients/ergo-node/src/types/serializedBox.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionBoxId } from './transactionBoxId'; import { bigIntsTransactionBoxId } from './transactionBoxId'; diff --git a/clients/ergo-node/src/types/sigmaBoolean.ts b/clients/ergo-node/src/types/sigmaBoolean.ts index bf71379..e359dce 100644 --- a/clients/ergo-node/src/types/sigmaBoolean.ts +++ b/clients/ergo-node/src/types/sigmaBoolean.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { HexString } from './hexString'; diff --git a/clients/ergo-node/src/types/sigmaBooleanAndPredicate.ts b/clients/ergo-node/src/types/sigmaBooleanAndPredicate.ts index 05c3e7a..db5f240 100644 --- a/clients/ergo-node/src/types/sigmaBooleanAndPredicate.ts +++ b/clients/ergo-node/src/types/sigmaBooleanAndPredicate.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SigmaBoolean } from './sigmaBoolean'; import { bigIntsSigmaBoolean } from './sigmaBoolean'; diff --git a/clients/ergo-node/src/types/sigmaBooleanAndPredicateAllOf.ts b/clients/ergo-node/src/types/sigmaBooleanAndPredicateAllOf.ts index 30a14ea..2772b3b 100644 --- a/clients/ergo-node/src/types/sigmaBooleanAndPredicateAllOf.ts +++ b/clients/ergo-node/src/types/sigmaBooleanAndPredicateAllOf.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type SigmaBooleanAndPredicateAllOf = { [key: string]: any }; diff --git a/clients/ergo-node/src/types/sigmaBooleanAndPredicateAllOfTwo.ts b/clients/ergo-node/src/types/sigmaBooleanAndPredicateAllOfTwo.ts index 4a2e974..74f2dbb 100644 --- a/clients/ergo-node/src/types/sigmaBooleanAndPredicateAllOfTwo.ts +++ b/clients/ergo-node/src/types/sigmaBooleanAndPredicateAllOfTwo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SigmaBoolean } from './sigmaBoolean'; diff --git a/clients/ergo-node/src/types/sigmaBooleanOrPredicate.ts b/clients/ergo-node/src/types/sigmaBooleanOrPredicate.ts index aa551f4..e8720c4 100644 --- a/clients/ergo-node/src/types/sigmaBooleanOrPredicate.ts +++ b/clients/ergo-node/src/types/sigmaBooleanOrPredicate.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SigmaBoolean } from './sigmaBoolean'; import { bigIntsSigmaBoolean } from './sigmaBoolean'; diff --git a/clients/ergo-node/src/types/sigmaBooleanOrPredicateAllOf.ts b/clients/ergo-node/src/types/sigmaBooleanOrPredicateAllOf.ts index 6e02447..181e5b7 100644 --- a/clients/ergo-node/src/types/sigmaBooleanOrPredicateAllOf.ts +++ b/clients/ergo-node/src/types/sigmaBooleanOrPredicateAllOf.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type SigmaBooleanOrPredicateAllOf = { [key: string]: any }; diff --git a/clients/ergo-node/src/types/sigmaBooleanOrPredicateAllOfTwo.ts b/clients/ergo-node/src/types/sigmaBooleanOrPredicateAllOfTwo.ts index 8c49d96..3b06e34 100644 --- a/clients/ergo-node/src/types/sigmaBooleanOrPredicateAllOfTwo.ts +++ b/clients/ergo-node/src/types/sigmaBooleanOrPredicateAllOfTwo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SigmaBoolean } from './sigmaBoolean'; diff --git a/clients/ergo-node/src/types/sigmaBooleanThresholdPredicate.ts b/clients/ergo-node/src/types/sigmaBooleanThresholdPredicate.ts index 8b90508..e7bb8bb 100644 --- a/clients/ergo-node/src/types/sigmaBooleanThresholdPredicate.ts +++ b/clients/ergo-node/src/types/sigmaBooleanThresholdPredicate.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SigmaBoolean } from './sigmaBoolean'; import { bigIntsSigmaBoolean } from './sigmaBoolean'; diff --git a/clients/ergo-node/src/types/sigmaBooleanThresholdPredicateAllOf.ts b/clients/ergo-node/src/types/sigmaBooleanThresholdPredicateAllOf.ts index 22efcef..895008f 100644 --- a/clients/ergo-node/src/types/sigmaBooleanThresholdPredicateAllOf.ts +++ b/clients/ergo-node/src/types/sigmaBooleanThresholdPredicateAllOf.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type SigmaBooleanThresholdPredicateAllOf = { [key: string]: any }; diff --git a/clients/ergo-node/src/types/sigmaBooleanThresholdPredicateAllOfTwo.ts b/clients/ergo-node/src/types/sigmaBooleanThresholdPredicateAllOfTwo.ts index 9892a34..a99950c 100644 --- a/clients/ergo-node/src/types/sigmaBooleanThresholdPredicateAllOfTwo.ts +++ b/clients/ergo-node/src/types/sigmaBooleanThresholdPredicateAllOfTwo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SigmaBoolean } from './sigmaBoolean'; diff --git a/clients/ergo-node/src/types/sigmaHeader.ts b/clients/ergo-node/src/types/sigmaHeader.ts index 0b02c02..2a59083 100644 --- a/clients/ergo-node/src/types/sigmaHeader.ts +++ b/clients/ergo-node/src/types/sigmaHeader.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ModifierId } from './modifierId'; import { bigIntsModifierId } from './modifierId'; diff --git a/clients/ergo-node/src/types/snapshotsInfo.ts b/clients/ergo-node/src/types/snapshotsInfo.ts new file mode 100644 index 0000000..8de2d32 --- /dev/null +++ b/clients/ergo-node/src/types/snapshotsInfo.ts @@ -0,0 +1,21 @@ +/** + * Generated by orval v6.15.0 🍺 + * 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 + */ +import type { SnapshotsInfoAvailableManifestsItem } from './snapshotsInfoAvailableManifestsItem'; + +import { bigIntsSnapshotsInfoAvailableManifestsItem } from './snapshotsInfoAvailableManifestsItem'; + +export interface SnapshotsInfo { + /** Map of available manifests height -> manifestId */ + availableManifests: SnapshotsInfoAvailableManifestsItem[]; +} + +export const bigIntsSnapshotsInfo = [ + ...bigIntsSnapshotsInfoAvailableManifestsItem.map((item) => + item === '' ? 'availableManifests' : `availableManifests.${item}` + ), +]; diff --git a/clients/ergo-node/src/types/snapshotsInfoAvailableManifestsItem.ts b/clients/ergo-node/src/types/snapshotsInfoAvailableManifestsItem.ts new file mode 100644 index 0000000..11181ea --- /dev/null +++ b/clients/ergo-node/src/types/snapshotsInfoAvailableManifestsItem.ts @@ -0,0 +1,10 @@ +/** + * Generated by orval v6.15.0 🍺 + * 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 + */ + +export type SnapshotsInfoAvailableManifestsItem = { [key: string]: any }; +export const bigIntsSnapshotsInfoAvailableManifestsItem = []; diff --git a/clients/ergo-node/src/types/sourceHolder.ts b/clients/ergo-node/src/types/sourceHolder.ts index d894174..c61a588 100644 --- a/clients/ergo-node/src/types/sourceHolder.ts +++ b/clients/ergo-node/src/types/sourceHolder.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface SourceHolder { diff --git a/clients/ergo-node/src/types/spendingProof.ts b/clients/ergo-node/src/types/spendingProof.ts index f8a8ee6..c5971ce 100644 --- a/clients/ergo-node/src/types/spendingProof.ts +++ b/clients/ergo-node/src/types/spendingProof.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SpendingProofBytes } from './spendingProofBytes'; import { bigIntsSpendingProofBytes } from './spendingProofBytes'; diff --git a/clients/ergo-node/src/types/spendingProofBytes.ts b/clients/ergo-node/src/types/spendingProofBytes.ts index 0680293..5f19f7f 100644 --- a/clients/ergo-node/src/types/spendingProofBytes.ts +++ b/clients/ergo-node/src/types/spendingProofBytes.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/spendingProofExtension.ts b/clients/ergo-node/src/types/spendingProofExtension.ts index b1b7320..9cc847a 100644 --- a/clients/ergo-node/src/types/spendingProofExtension.ts +++ b/clients/ergo-node/src/types/spendingProofExtension.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { SValue } from './sValue'; diff --git a/clients/ergo-node/src/types/syncInfo.ts b/clients/ergo-node/src/types/syncInfo.ts index 91aed14..78b40e5 100644 --- a/clients/ergo-node/src/types/syncInfo.ts +++ b/clients/ergo-node/src/types/syncInfo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { PeerMode } from './peerMode'; diff --git a/clients/ergo-node/src/types/timestamp.ts b/clients/ergo-node/src/types/timestamp.ts index 4ce7f80..cca8afa 100644 --- a/clients/ergo-node/src/types/timestamp.ts +++ b/clients/ergo-node/src/types/timestamp.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/trackInfo.ts b/clients/ergo-node/src/types/trackInfo.ts index 0fbe05d..595b91a 100644 --- a/clients/ergo-node/src/types/trackInfo.ts +++ b/clients/ergo-node/src/types/trackInfo.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TrackInfoRequested } from './trackInfoRequested'; import { bigIntsTrackInfoRequested } from './trackInfoRequested'; diff --git a/clients/ergo-node/src/types/trackInfoReceived.ts b/clients/ergo-node/src/types/trackInfoReceived.ts index 20fdc0a..98820ba 100644 --- a/clients/ergo-node/src/types/trackInfoReceived.ts +++ b/clients/ergo-node/src/types/trackInfoReceived.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ConnectedPeerByModifierId } from './connectedPeerByModifierId'; diff --git a/clients/ergo-node/src/types/trackInfoRequested.ts b/clients/ergo-node/src/types/trackInfoRequested.ts index adae06b..37cd2d2 100644 --- a/clients/ergo-node/src/types/trackInfoRequested.ts +++ b/clients/ergo-node/src/types/trackInfoRequested.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { RequestedInfoByModifierId } from './requestedInfoByModifierId'; diff --git a/clients/ergo-node/src/types/transactionBoxId.ts b/clients/ergo-node/src/types/transactionBoxId.ts index 84a6738..c6b8e77 100644 --- a/clients/ergo-node/src/types/transactionBoxId.ts +++ b/clients/ergo-node/src/types/transactionBoxId.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/transactionHintsBag.ts b/clients/ergo-node/src/types/transactionHintsBag.ts index e96dc69..8aebddd 100644 --- a/clients/ergo-node/src/types/transactionHintsBag.ts +++ b/clients/ergo-node/src/types/transactionHintsBag.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { InputHints } from './inputHints'; diff --git a/clients/ergo-node/src/types/transactionId.ts b/clients/ergo-node/src/types/transactionId.ts index 6fb1839..55bcea2 100644 --- a/clients/ergo-node/src/types/transactionId.ts +++ b/clients/ergo-node/src/types/transactionId.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/transactionSigningRequest.ts b/clients/ergo-node/src/types/transactionSigningRequest.ts index 04ba707..726f3f2 100644 --- a/clients/ergo-node/src/types/transactionSigningRequest.ts +++ b/clients/ergo-node/src/types/transactionSigningRequest.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { UnsignedErgoTransaction } from './unsignedErgoTransaction'; import { bigIntsUnsignedErgoTransaction } from './unsignedErgoTransaction'; diff --git a/clients/ergo-node/src/types/transactionSigningRequestSecrets.ts b/clients/ergo-node/src/types/transactionSigningRequestSecrets.ts index 4028f58..4a74aee 100644 --- a/clients/ergo-node/src/types/transactionSigningRequestSecrets.ts +++ b/clients/ergo-node/src/types/transactionSigningRequestSecrets.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { DlogSecret } from './dlogSecret'; import { bigIntsDlogSecret } from './dlogSecret'; diff --git a/clients/ergo-node/src/types/transactions.ts b/clients/ergo-node/src/types/transactions.ts index 8789ae5..a2b19b7 100644 --- a/clients/ergo-node/src/types/transactions.ts +++ b/clients/ergo-node/src/types/transactions.ts @@ -3,14 +3,14 @@ * Do not edit manually. * Ergo Node API * API docs for Ergo Node. Models are shared between all Ergo products - * OpenAPI spec version: 5.0.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoTransaction } from './ergoTransaction'; import { bigIntsErgoTransaction } from './ergoTransaction'; /** - * Ergo transaction objects + * List of ErgoTransaction objects */ export type Transactions = ErgoTransaction[]; export const bigIntsTransactions = [...bigIntsErgoTransaction]; diff --git a/clients/ergo-node/src/types/unlockWallet.ts b/clients/ergo-node/src/types/unlockWallet.ts index 1e1a2d7..49e98ef 100644 --- a/clients/ergo-node/src/types/unlockWallet.ts +++ b/clients/ergo-node/src/types/unlockWallet.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export interface UnlockWallet { diff --git a/clients/ergo-node/src/types/unsignedErgoTransaction.ts b/clients/ergo-node/src/types/unsignedErgoTransaction.ts index 0ad0265..6909fda 100644 --- a/clients/ergo-node/src/types/unsignedErgoTransaction.ts +++ b/clients/ergo-node/src/types/unsignedErgoTransaction.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionId } from './transactionId'; import { bigIntsTransactionId } from './transactionId'; diff --git a/clients/ergo-node/src/types/version.ts b/clients/ergo-node/src/types/version.ts index ad23d82..e7d17ad 100644 --- a/clients/ergo-node/src/types/version.ts +++ b/clients/ergo-node/src/types/version.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/votes.ts b/clients/ergo-node/src/types/votes.ts index 72a3c56..dce1a75 100644 --- a/clients/ergo-node/src/types/votes.ts +++ b/clients/ergo-node/src/types/votes.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/walletBox.ts b/clients/ergo-node/src/types/walletBox.ts index 2524a5e..079367a 100644 --- a/clients/ergo-node/src/types/walletBox.ts +++ b/clients/ergo-node/src/types/walletBox.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ErgoTransactionOutput } from './ergoTransactionOutput'; import { bigIntsErgoTransactionOutput } from './ergoTransactionOutput'; diff --git a/clients/ergo-node/src/types/walletBoxesParams.ts b/clients/ergo-node/src/types/walletBoxesParams.ts index 3ddfc47..c229a16 100644 --- a/clients/ergo-node/src/types/walletBoxesParams.ts +++ b/clients/ergo-node/src/types/walletBoxesParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type WalletBoxesParams = { @@ -23,5 +23,13 @@ export type WalletBoxesParams = { * Maximum box inclusion height, -1 means unlimited */ maxInclusionHeight?: number; + /** + * amount of elements to retrieve + */ + limit?: number; + /** + * The number of items in list to skip + */ + offset?: number; }; export const bigIntsWalletBoxesParams = []; diff --git a/clients/ergo-node/src/types/walletGetTransactionParams.ts b/clients/ergo-node/src/types/walletGetTransactionParams.ts index feee24c..a9c4fa4 100644 --- a/clients/ergo-node/src/types/walletGetTransactionParams.ts +++ b/clients/ergo-node/src/types/walletGetTransactionParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type WalletGetTransactionParams = { diff --git a/clients/ergo-node/src/types/walletRescanBody.ts b/clients/ergo-node/src/types/walletRescanBody.ts index 28cd136..f9f0e5a 100644 --- a/clients/ergo-node/src/types/walletRescanBody.ts +++ b/clients/ergo-node/src/types/walletRescanBody.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type WalletRescanBody = { diff --git a/clients/ergo-node/src/types/walletStatus.ts b/clients/ergo-node/src/types/walletStatus.ts index 50eeaa3..f359058 100644 --- a/clients/ergo-node/src/types/walletStatus.ts +++ b/clients/ergo-node/src/types/walletStatus.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ /** diff --git a/clients/ergo-node/src/types/walletTransaction.ts b/clients/ergo-node/src/types/walletTransaction.ts index dd7b137..2cdaa81 100644 --- a/clients/ergo-node/src/types/walletTransaction.ts +++ b/clients/ergo-node/src/types/walletTransaction.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { TransactionId } from './transactionId'; import { bigIntsTransactionId } from './transactionId'; diff --git a/clients/ergo-node/src/types/walletTransactionsByScanIdParams.ts b/clients/ergo-node/src/types/walletTransactionsByScanIdParams.ts index b8ae174..6d1029d 100644 --- a/clients/ergo-node/src/types/walletTransactionsByScanIdParams.ts +++ b/clients/ergo-node/src/types/walletTransactionsByScanIdParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type WalletTransactionsByScanIdParams = { diff --git a/clients/ergo-node/src/types/walletTransactionsParams.ts b/clients/ergo-node/src/types/walletTransactionsParams.ts index f1d2101..341ea25 100644 --- a/clients/ergo-node/src/types/walletTransactionsParams.ts +++ b/clients/ergo-node/src/types/walletTransactionsParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type WalletTransactionsParams = { diff --git a/clients/ergo-node/src/types/walletUnspentBoxesParams.ts b/clients/ergo-node/src/types/walletUnspentBoxesParams.ts index 46dfbdf..2a09104 100644 --- a/clients/ergo-node/src/types/walletUnspentBoxesParams.ts +++ b/clients/ergo-node/src/types/walletUnspentBoxesParams.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ export type WalletUnspentBoxesParams = { @@ -23,5 +23,13 @@ export type WalletUnspentBoxesParams = { * Maximum box inclusion height, -1 means unlimited */ maxInclusionHeight?: number; + /** + * amount of elements to retrieve + */ + limit?: number; + /** + * The number of items in list to skip + */ + offset?: number; }; export const bigIntsWalletUnspentBoxesParams = []; diff --git a/clients/ergo-node/src/types/workMessage.ts b/clients/ergo-node/src/types/workMessage.ts index 9b8092c..3295113 100644 --- a/clients/ergo-node/src/types/workMessage.ts +++ b/clients/ergo-node/src/types/workMessage.ts @@ -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.10 + * OpenAPI spec version: 5.0.21 */ import type { ProofOfUpcomingTransactions } from './proofOfUpcomingTransactions';