diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 7077c1d5..178c123f 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.3.1] + +### Fixed + +- `utilsTxsEvaluate`, `utilsTxsEvaluateUtxos` methods + ## [5.3.0] - 2023-04-05 ### Added diff --git a/package.json b/package.json index 5af275a8..4be7fcdd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@blockfrost/blockfrost-js", - "version": "5.3.0", + "version": "5.3.1", "description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API", "keywords": [ "blockfrost", diff --git a/src/endpoints/api/utils/txs.ts b/src/endpoints/api/utils/txs.ts index c3f7ea42..74b1307c 100644 --- a/src/endpoints/api/utils/txs.ts +++ b/src/endpoints/api/utils/txs.ts @@ -18,12 +18,12 @@ export async function utilsTxsEvaluate( this: BlockFrostAPI, transaction: Uint8Array | string, ): Promise { - let tx: Buffer; + let tx: string; if (typeof transaction === 'string') { - tx = Buffer.from(transaction, 'hex'); + tx = transaction; } else { - tx = Buffer.from(transaction); + tx = Buffer.from(transaction).toString('hex'); } return new Promise((resolve, reject) => { @@ -69,7 +69,7 @@ export async function utilsTxsEvaluateUtxos( cbor: transaction, additionalUtxoSet, }), - headers: { 'Content-type': 'application/cbor' }, + headers: { 'Content-type': 'application/json' }, }, ) .then(resp => { diff --git a/test/fixtures/endpoints.ts b/test/fixtures/endpoints.ts index b3ccb75f..835f97f1 100644 --- a/test/fixtures/endpoints.ts +++ b/test/fixtures/endpoints.ts @@ -1,47 +1,47 @@ import { BlockFrostAPI } from '../../src'; import mocks from './blockfrost'; -import { mainentUrl } from '../utils'; +import { mainnetUrl } from '../utils'; export default [ { command: (SDK: BlockFrostAPI) => SDK.root(), - path: mainentUrl('/'), + path: mainnetUrl('/'), endpointMock: mocks.root, response: mocks.root, }, { command: (SDK: BlockFrostAPI) => SDK.health(), - path: mainentUrl('/health'), + path: mainnetUrl('/health'), endpointMock: mocks.health, response: mocks.health, }, { command: (SDK: BlockFrostAPI) => SDK.healthClock(), - path: mainentUrl('/health/clock'), + path: mainnetUrl('/health/clock'), endpointMock: mocks.healthClock, response: mocks.healthClock, }, { command: (SDK: BlockFrostAPI) => SDK.network(), - path: mainentUrl('/network'), + path: mainnetUrl('/network'), endpointMock: mocks.network, response: mocks.network, }, { command: (SDK: BlockFrostAPI) => SDK.metrics(), - path: mainentUrl('/metrics'), + path: mainnetUrl('/metrics'), endpointMock: mocks.metrics, response: mocks.metrics, }, { command: (SDK: BlockFrostAPI) => SDK.metricsEndpoints(), - path: mainentUrl('/metrics/endpoints'), + path: mainnetUrl('/metrics/endpoints'), endpointMock: mocks.metricsEndpoints, response: mocks.metricsEndpoints, }, { command: (SDK: BlockFrostAPI) => SDK.genesis(), - path: mainentUrl('/genesis'), + path: mainnetUrl('/genesis'), endpointMock: mocks.ledger, response: mocks.ledger, }, @@ -50,7 +50,7 @@ export default [ SDK.accounts( 'stake1u8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkgs46q0w', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkgs46q0w', ), endpointMock: [], @@ -61,7 +61,7 @@ export default [ SDK.accountsRewards( 'stake1u9fzg77vrgfqlplkjqe9hntdcvsurpvxd60yp2fhn73002qsv9pdk', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u9fzg77vrgfqlplkjqe9hntdcvsurpvxd60yp2fhn73002qsv9pdk/rewards', ), endpointMock: [], @@ -72,7 +72,7 @@ export default [ SDK.accountsHistoryAll( 'stake1u9fzg77vrgfqlplkjqe9hntdcvsurpvxd60yp2fhn73002qsv9pdk', ), - path: mainentUrl( + path: mainnetUrl( 'accounts/stake1u9fzg77vrgfqlplkjqe9hntdcvsurpvxd60yp2fhn73002qsv9pdk/history', ), endpointMock: [], @@ -83,7 +83,7 @@ export default [ SDK.accountsDelegations( 'stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f/delegations', ), endpointMock: [], @@ -94,7 +94,7 @@ export default [ SDK.accountsDelegationsAll( 'stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f/delegations/all', ), endpointMock: [], @@ -105,7 +105,7 @@ export default [ SDK.accountsRegistrations( 'stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f/registrations', ), endpointMock: [], @@ -116,7 +116,7 @@ export default [ SDK.accountsRegistrationsAll( 'stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f/registrations/all', ), endpointMock: [], @@ -128,7 +128,7 @@ export default [ 'stake1u88xakeptjw9jwsytkjal76d07an4thvvrfx3w2kt77pw4sc5rr8k', { count: 4, page: 2 }, ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u88xakeptjw9jwsytkjal76d07an4thvvrfx3w2kt77pw4sc5rr8k/withdrawals', ), endpointMock: [], @@ -139,7 +139,7 @@ export default [ SDK.accountsWithdrawalsAll( 'stake1u88xakeptjw9jwsytkjal76d07an4thvvrfx3w2kt77pw4sc5rr8k', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u88xakeptjw9jwsytkjal76d07an4thvvrfx3w2kt77pw4sc5rr8k/withdrawals/all', ), endpointMock: [], @@ -151,7 +151,7 @@ export default [ 'stake1uyq7039vutuw8v7femqtktdu9zlhnqh3mkvvhdazft9ga2q8zdfkp', { count: 1, page: 1 }, ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1uyq7039vutuw8v7femqtktdu9zlhnqh3mkvvhdazft9ga2q8zdfkp/mirs', ), endpointMock: [], @@ -162,7 +162,7 @@ export default [ SDK.accountsMirsAll( 'stake1uyq7039vutuw8v7femqtktdu9zlhnqh3mkvvhdazft9ga2q8zdfkp', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1uyq7039vutuw8v7femqtktdu9zlhnqh3mkvvhdazft9ga2q8zdfkp/mirs', ), endpointMock: [], @@ -173,7 +173,7 @@ export default [ SDK.accountsAddresses( 'stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f/addresses', ), endpointMock: [], @@ -184,7 +184,7 @@ export default [ SDK.accountsAddressesAll( 'stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u9a3t4rgddm4expj0ucyxhxg3ft9ugk2ry6r9w69h04ea6cfj887f/addresses', ), endpointMock: [], @@ -195,7 +195,7 @@ export default [ SDK.accountsAddressesAssets( 'stake1u9e45fvvd4ujpc0kka0pnx9zqdvh9wl96nsg6sje0f5hmfq45lrja', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u9e45fvvd4ujpc0kka0pnx9zqdvh9wl96nsg6sje0f5hmfq45lrja/addresses/assets', ), endpointMock: [], @@ -206,7 +206,7 @@ export default [ SDK.accountsAddressesAssetsAll( 'stake1u9e45fvvd4ujpc0kka0pnx9zqdvh9wl96nsg6sje0f5hmfq45lrja', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u9e45fvvd4ujpc0kka0pnx9zqdvh9wl96nsg6sje0f5hmfq45lrja/addresses/assets', ), endpointMock: [], @@ -217,7 +217,7 @@ export default [ SDK.accountsRewardsAll( 'stake1u8yk3dcuj8yylwvnzz953yups6mmuvt0vtjmxl2gmgceqjqz2yfd2', ), - path: mainentUrl( + path: mainnetUrl( '/accounts/stake1u8yk3dcuj8yylwvnzz953yups6mmuvt0vtjmxl2gmgceqjqz2yfd2/rewards', ), endpointMock: [], @@ -229,7 +229,7 @@ export default [ 'addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/addresses/addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y', ), response: [], @@ -240,7 +240,7 @@ export default [ 'addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/addresses/addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y/total', ), response: [], @@ -251,7 +251,7 @@ export default [ 'addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/addresses/addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y/utxos', ), response: [], @@ -262,7 +262,7 @@ export default [ 'addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/addresses/addr1q8zu4smzyf2r2mfqjd6tc6vxf2p8rccdfk82ye3eut2udkw9etpkygj5x4kjpym5h35cvj5zw83s6nvw5fnrnck4cmvshkfm4y/utxos', ), response: [], @@ -273,7 +273,7 @@ export default [ 'addr1qywvux9d5u4cqyzrhp587sty33gt5pl5hpxmnzrw5nk5j87fdzm3eywgf7uexyytfzfcrp4hhcck7ch9kd753k33jpyqa3mzep', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/addresses/addr1qywvux9d5u4cqyzrhp587sty33gt5pl5hpxmnzrw5nk5j87fdzm3eywgf7uexyytfzfcrp4hhcck7ch9kd753k33jpyqa3mzep/transactions', ), response: [], @@ -284,21 +284,21 @@ export default [ 'addr1qywvux9d5u4cqyzrhp587sty33gt5pl5hpxmnzrw5nk5j87fdzm3eywgf7uexyytfzfcrp4hhcck7ch9kd753k33jpyqa3mzep', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/addresses/addr1qywvux9d5u4cqyzrhp587sty33gt5pl5hpxmnzrw5nk5j87fdzm3eywgf7uexyytfzfcrp4hhcck7ch9kd753k33jpyqa3mzep/transactions', ), response: [], }, { command: (SDK: BlockFrostAPI) => SDK.assets(), - path: mainentUrl('/assets'), + path: mainnetUrl('/assets'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.assetsById('123'), endpointMock: [], - path: mainentUrl('/assets/123'), + path: mainnetUrl('/assets/123'), response: [], }, { @@ -307,7 +307,7 @@ export default [ '00000002df633853f6a47465c9496721d2d5b1291b8398016c0e87ae6e7574636f696e', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/assets/00000002df633853f6a47465c9496721d2d5b1291b8398016c0e87ae6e7574636f696e/history', ), response: [], @@ -318,7 +318,7 @@ export default [ 'd894897411707efa755a76deb66d26dfd50593f2e70863e1661e98a07370616365636f696e73', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/assets/d894897411707efa755a76deb66d26dfd50593f2e70863e1661e98a07370616365636f696e73/history', ), response: [], @@ -329,7 +329,7 @@ export default [ '00000002df633853f6a47465c9496721d2d5b1291b8398016c0e87ae6e7574636f696e', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/assets/00000002df633853f6a47465c9496721d2d5b1291b8398016c0e87ae6e7574636f696e/transactions', ), response: [], @@ -340,14 +340,14 @@ export default [ '00000002df633853f6a47465c9496721d2d5b1291b8398016c0e87ae6e7574636f696e', ), endpointMock: [], - path: mainentUrl( + path: mainnetUrl( '/assets/00000002df633853f6a47465c9496721d2d5b1291b8398016c0e87ae6e7574636f696e/addresses', ), response: [], }, { command: (SDK: BlockFrostAPI) => SDK.assetsPolicyById('policyId'), - path: mainentUrl('/assets/policy/policyId'), + path: mainnetUrl('/assets/policy/policyId'), endpointMock: [], response: [], }, @@ -356,7 +356,7 @@ export default [ SDK.assetsPolicyByIdAll( '00000002df633853f6a47465c9496721d2d5b1291b8398016c0e87ae', ), - path: mainentUrl( + path: mainnetUrl( '/assets/policy/00000002df633853f6a47465c9496721d2d5b1291b8398016c0e87ae', ), endpointMock: [], @@ -364,19 +364,19 @@ export default [ }, { command: (SDK: BlockFrostAPI) => SDK.blocksLatest(), - path: mainentUrl('/blocks/latest'), + path: mainnetUrl('/blocks/latest'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.blocksLatestTxs(), - path: mainentUrl('/blocks/latest/txs'), + path: mainnetUrl('/blocks/latest/txs'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.blocksLatestTxsAll(), - path: mainentUrl('/blocks/latest/txs'), + path: mainnetUrl('/blocks/latest/txs'), endpointMock: [], response: [], }, @@ -385,7 +385,7 @@ export default [ SDK.blocks( '5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb', ), - path: mainentUrl( + path: mainnetUrl( '/blocks/5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb', ), endpointMock: [], @@ -393,39 +393,39 @@ export default [ }, { command: (SDK: BlockFrostAPI) => SDK.blocksTxs('5360435'), - path: mainentUrl('/blocks/5360435/txs'), + path: mainnetUrl('/blocks/5360435/txs'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.blocksPrevious('5360435', { count: 1 }), - path: mainentUrl('/blocks/5360435/previous'), + path: mainnetUrl('/blocks/5360435/previous'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.blocksTxs('5360435'), - path: mainentUrl('./blocks/5360435/txs'), + path: mainnetUrl('./blocks/5360435/txs'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.blocksTxsAll('5549919'), - path: mainentUrl('/blocks/5549919/txs'), + path: mainnetUrl('/blocks/5549919/txs'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.blocksAddresses('6622172'), - path: mainentUrl('/blocks/6622172/addresses'), + path: mainnetUrl('/blocks/6622172/addresses'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.blocksAddressesAll('6622172'), - path: mainentUrl('/blocks/6622172/addresses'), + path: mainnetUrl('/blocks/6622172/addresses'), endpointMock: [], response: [], }, @@ -434,7 +434,7 @@ export default [ SDK.txs( '28172ea876c3d1e691284e5179fae2feb3e69d7d41e43f8023dc380115741026', ), - path: mainentUrl( + path: mainnetUrl( '/txs/28172ea876c3d1e691284e5179fae2feb3e69d7d41e43f8023dc380115741026', ), endpointMock: [], @@ -445,7 +445,7 @@ export default [ SDK.txsUtxos( '927edb96f3386ab91b5f5d85d84cb4253c65b1c2f65fa7df25f81fab1d62987a', ), - path: mainentUrl( + path: mainnetUrl( '/txs/927edb96f3386ab91b5f5d85d84cb4253c65b1c2f65fa7df25f81fab1d62987a/utxos', ), endpointMock: [], @@ -456,7 +456,7 @@ export default [ SDK.txsWithdrawals( '9f811b021492a5544207f7b566b4e67c87f0918b9e7055ab3074d552ab18e895', ), - path: mainentUrl( + path: mainnetUrl( '/txs/9f811b021492a5544207f7b566b4e67c87f0918b9e7055ab3074d552ab18e895/withdrawals', ), endpointMock: [], @@ -467,7 +467,7 @@ export default [ SDK.txsMirs( '7b57f2cf1c442c563647ab29669c88b9116c2668d31d42526ff27ed614da1252', ), - path: mainentUrl( + path: mainnetUrl( '/txs/7b57f2cf1c442c563647ab29669c88b9116c2668d31d42526ff27ed614da1252/mirs', ), endpointMock: [], @@ -478,7 +478,7 @@ export default [ SDK.txsDelegations( 'c2120581050a1116ab38a5ac8a62d64df4cf12cf3370d22337201d36eb65fcc4', ), - path: mainentUrl( + path: mainnetUrl( '/txs/c2120581050a1116ab38a5ac8a62d64df4cf12cf3370d22337201d36eb65fcc4/delegations', ), endpointMock: [], @@ -489,7 +489,7 @@ export default [ SDK.txsPoolUpdates( '28bd5e8c342ab89d6642e446cb299058ea36256af1718e4af9326898ce4192d7', ), - path: mainentUrl( + path: mainnetUrl( '/txs/28bd5e8c342ab89d6642e446cb299058ea36256af1718e4af9326898ce4192d7/pool_updates', ), endpointMock: [], @@ -500,7 +500,7 @@ export default [ SDK.txsStakes( 'c2120581050a1116ab38a5ac8a62d64df4cf12cf3370d22337201d36eb65fcc4', ), - path: mainentUrl( + path: mainnetUrl( '/txs/c2120581050a1116ab38a5ac8a62d64df4cf12cf3370d22337201d36eb65fcc4/stakes', ), endpointMock: [], @@ -511,7 +511,7 @@ export default [ SDK.txsPoolRetires( '33770d42c7bc8a9a0bc9830ffb97941574dc61dc534796dd8614b99b6aadace4', ), - path: mainentUrl( + path: mainnetUrl( '/txs/33770d42c7bc8a9a0bc9830ffb97941574dc61dc534796dd8614b99b6aadace4/pool_retires', ), endpointMock: [], @@ -522,7 +522,7 @@ export default [ SDK.txsMetadata( 'e641005803337a553a03cf3c11a1819491a629bd7d0a3c39e4866a01b5dac36d', ), - path: mainentUrl( + path: mainnetUrl( '/txs/e641005803337a553a03cf3c11a1819491a629bd7d0a3c39e4866a01b5dac36d/metadata', ), endpointMock: [], @@ -530,7 +530,7 @@ export default [ }, { command: (SDK: BlockFrostAPI) => SDK.scripts(), - path: mainentUrl('/scripts'), + path: mainnetUrl('/scripts'), endpointMock: [], response: [], }, @@ -539,7 +539,7 @@ export default [ SDK.scriptsByHash( '4f590a3d80ae0312bad0b64d540c3ff5080e77250e9dbf5011630016', ), - path: mainentUrl( + path: mainnetUrl( '/scripts/4f590a3d80ae0312bad0b64d540c3ff5080e77250e9dbf5011630016', ), endpointMock: [], @@ -547,7 +547,7 @@ export default [ }, { command: (SDK: BlockFrostAPI) => SDK.scriptsRedeemers('script-hash'), - path: mainentUrl('scripts/script-hash/redeemers'), + path: mainnetUrl('scripts/script-hash/redeemers'), endpointMock: [], response: [], }, @@ -556,7 +556,7 @@ export default [ SDK.scriptsJson( 'fc7e9a7f604c2cd6a169433fb2de86b183b7cd478f46785701ae23a0', ), - path: mainentUrl( + path: mainnetUrl( '/scripts/fc7e9a7f604c2cd6a169433fb2de86b183b7cd478f46785701ae23a0/json', ), endpointMock: [], @@ -567,7 +567,7 @@ export default [ SDK.scriptsCbor( '4f590a3d80ae0312bad0b64d540c3ff5080e77250e9dbf5011630016', ), - path: mainentUrl( + path: mainnetUrl( '/scripts/4f590a3d80ae0312bad0b64d540c3ff5080e77250e9dbf5011630016/cbor', ), endpointMock: [], @@ -578,7 +578,7 @@ export default [ SDK.scriptsDatum( '5a595ce795815e81d22a1a522cf3987d546dc5bb016de61b002edd63a5413ec4', ), - path: mainentUrl( + path: mainnetUrl( '/scripts/datum/5a595ce795815e81d22a1a522cf3987d546dc5bb016de61b002edd63a5413ec4', ), endpointMock: [], @@ -586,49 +586,49 @@ export default [ }, { command: (SDK: BlockFrostAPI) => SDK.epochsLatest(), - path: mainentUrl('/epochs/latest'), + path: mainnetUrl('/epochs/latest'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.epochs(0), - path: mainentUrl('/epochs/0'), + path: mainnetUrl('/epochs/0'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.epochs(242), - path: mainentUrl('/epochs/242'), + path: mainnetUrl('/epochs/242'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.epochsStakes(242), - path: mainentUrl('/epochs/242/stakes'), + path: mainnetUrl('/epochs/242/stakes'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.epochsParameters(267), - path: mainentUrl('/epochs/267/parameters'), + path: mainnetUrl('/epochs/267/parameters'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.epochsLatestParameters(), - path: mainentUrl('/epochs/latest/parameters'), + path: mainnetUrl('/epochs/latest/parameters'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.epochsNext(250), - path: mainentUrl('/epochs/250/next'), + path: mainnetUrl('/epochs/250/next'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.epochsPrevious(250, { page: 1 }), - path: mainentUrl('/epochs/250/previous'), + path: mainnetUrl('/epochs/250/previous'), endpointMock: [], response: [], }, @@ -638,7 +638,7 @@ export default [ 249, 'pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), - path: mainentUrl( + path: mainnetUrl( '/epochs/249/stakes/pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), endpointMock: [], @@ -650,7 +650,7 @@ export default [ 249, 'pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), - path: mainentUrl( + path: mainnetUrl( '/epochs/249/blocks/pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), endpointMock: [], @@ -658,31 +658,31 @@ export default [ }, { command: (SDK: BlockFrostAPI) => SDK.epochsBlocks(230), - path: mainentUrl('/epochs/230/blocks'), + path: mainnetUrl('/epochs/230/blocks'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.metadataTxsLabels(), - path: mainentUrl('/metadata/txs/labels'), + path: mainnetUrl('/metadata/txs/labels'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.metadataTxsLabelCbor('1968'), - path: mainentUrl('metadata/txs/labels/1968/cbor'), + path: mainnetUrl('metadata/txs/labels/1968/cbor'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.metadataTxsLabel('1968'), - path: mainentUrl('/metadata/txs/labels/1968'), + path: mainnetUrl('/metadata/txs/labels/1968'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.mempool(), - path: mainentUrl('/mempool'), + path: mainnetUrl('/mempool'), endpointMock: [{ tx_hash: 'abc' }], response: [{ tx_hash: 'abc' }], }, @@ -691,7 +691,7 @@ export default [ SDK.mempoolByAddress( 'addr1qxlem7879m2ly03ljqldhz9jxtlkurc465hqysxr33z2a4ee3t4rc98rhcg4n0a3g60nd9f865gpy4unflgak3we53psrrk85u', ), - path: mainentUrl( + path: mainnetUrl( '/mempool/addresses/addr1qxlem7879m2ly03ljqldhz9jxtlkurc465hqysxr33z2a4ee3t4rc98rhcg4n0a3g60nd9f865gpy4unflgak3we53psrrk85u', ), endpointMock: [{ tx_hash: 'abc' }], @@ -699,19 +699,19 @@ export default [ }, { command: (SDK: BlockFrostAPI) => SDK.poolsRetiring(), - path: mainentUrl('/pools/retiring'), + path: mainnetUrl('/pools/retiring'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.poolsRetired(), - path: mainentUrl('/pools/retired'), + path: mainnetUrl('/pools/retired'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.pools(), - path: mainentUrl('/pools'), + path: mainnetUrl('/pools'), endpointMock: [], response: [], }, @@ -720,7 +720,7 @@ export default [ SDK.poolsByIdHistory( 'pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), - path: mainentUrl( + path: mainnetUrl( '/pools/pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy/history', ), endpointMock: [], @@ -731,7 +731,7 @@ export default [ SDK.poolMetadata( 'pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), - path: mainentUrl( + path: mainnetUrl( '/pools/pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy/metadata', ), endpointMock: [], @@ -742,7 +742,7 @@ export default [ SDK.poolsByIdRelays( 'pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), - path: mainentUrl( + path: mainnetUrl( '/pools/pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy/relays', ), endpointMock: [], @@ -753,7 +753,7 @@ export default [ SDK.poolsByIdDelegators( 'pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), - path: mainentUrl( + path: mainnetUrl( '/pools/pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy/delegators', ), endpointMock: [], @@ -764,7 +764,7 @@ export default [ SDK.poolsByIdBlocks( 'pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), - path: mainentUrl( + path: mainnetUrl( '/pools/pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy/blocks', ), endpointMock: [], @@ -775,7 +775,7 @@ export default [ SDK.poolsByIdUpdates( 'pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), - path: mainentUrl( + path: mainnetUrl( '/pools/pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy/updates', ), endpointMock: [], @@ -784,7 +784,7 @@ export default [ { command: (SDK: BlockFrostAPI) => SDK.poolsById('pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy'), - path: mainentUrl( + path: mainnetUrl( '/pools/pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy', ), endpointMock: [], @@ -792,13 +792,13 @@ export default [ }, { command: (SDK: BlockFrostAPI) => SDK.poolsExtended(), - path: mainentUrl('/pools/extended'), + path: mainnetUrl('/pools/extended'), endpointMock: [], response: [], }, { command: (SDK: BlockFrostAPI) => SDK.poolsExtendedAll(), - path: mainentUrl('/pools/extended'), + path: mainnetUrl('/pools/extended'), endpointMock: [], response: [], }, @@ -807,7 +807,7 @@ export default [ SDK.nutlinkAddress( 'addr1q85yx2w7ragn5sx6umgmtjpc3865s9sg59sz4rrh6f90kgwfwlzu3w8ttacqg89mkdgwshwnplj5c5n9f8dhp0h55q2q7qm63t', ), - path: mainentUrl( + path: mainnetUrl( '/nutlink/addr1q85yx2w7ragn5sx6umgmtjpc3865s9sg59sz4rrh6f90kgwfwlzu3w8ttacqg89mkdgwshwnplj5c5n9f8dhp0h55q2q7qm63t', ), endpointMock: [], @@ -819,7 +819,7 @@ export default [ 'addr1q85yx2w7ragn5sx6umgmtjpc3865s9sg59sz4rrh6f90kgwfwlzu3w8ttacqg89mkdgwshwnplj5c5n9f8dhp0h55q2q7qm63t', { count: 3 }, ), - path: mainentUrl( + path: mainnetUrl( '/nutlink/addr1q85yx2w7ragn5sx6umgmtjpc3865s9sg59sz4rrh6f90kgwfwlzu3w8ttacqg89mkdgwshwnplj5c5n9f8dhp0h55q2q7qm63t/tickers', ), endpointMock: [], @@ -830,7 +830,7 @@ export default [ SDK.nutlinkAddressTickersAll( 'addr1q85yx2w7ragn5sx6umgmtjpc3865s9sg59sz4rrh6f90kgwfwlzu3w8ttacqg89mkdgwshwnplj5c5n9f8dhp0h55q2q7qm63t', ), - path: mainentUrl( + path: mainnetUrl( '/nutlink/addr1q85yx2w7ragn5sx6umgmtjpc3865s9sg59sz4rrh6f90kgwfwlzu3w8ttacqg89mkdgwshwnplj5c5n9f8dhp0h55q2q7qm63t/tickers', ), endpointMock: [], @@ -842,7 +842,7 @@ export default [ 'addr1q85yx2w7ragn5sx6umgmtjpc3865s9sg59sz4rrh6f90kgwfwlzu3w8ttacqg89mkdgwshwnplj5c5n9f8dhp0h55q2q7qm63t', 'ADABTC', ), - path: mainentUrl( + path: mainnetUrl( '/nutlink/addr1q85yx2w7ragn5sx6umgmtjpc3865s9sg59sz4rrh6f90kgwfwlzu3w8ttacqg89mkdgwshwnplj5c5n9f8dhp0h55q2q7qm63t/tickers/ADABTC', ), endpointMock: [], @@ -855,7 +855,7 @@ export default [ 'ADAUSD', { count: 2, page: 2 }, ), - path: mainentUrl( + path: mainnetUrl( '/nutlink/addr1q85yx2w7ragn5sx6umgmtjpc3865s9sg59sz4rrh6f90kgwfwlzu3w8ttacqg89mkdgwshwnplj5c5n9f8dhp0h55q2q7qm63t/tickers/ADAUSD', ), endpointMock: [], @@ -864,7 +864,7 @@ export default [ { command: (SDK: BlockFrostAPI) => SDK.nutlinkTickers('ADAUSD', { count: 2, page: 2 }), - path: mainentUrl('/nutlink/tickers/ADAUSD'), + path: mainnetUrl('/nutlink/tickers/ADAUSD'), endpointMock: [], response: [], }, @@ -873,7 +873,7 @@ export default [ SDK.scriptsDatumCbor( '5a595ce795815e81d22a1a522cf3987d546dc5bb016de61b002edd63a5413ec4', ), - path: mainentUrl( + path: mainnetUrl( `scripts/datum/5a595ce795815e81d22a1a522cf3987d546dc5bb016de61b002edd63a5413ec4/cbor`, ), endpointMock: [], @@ -884,7 +884,7 @@ export default [ SDK.utilsTxsEvaluate( '84a8008282582098483df1666d5af7c4aca7ef28f112d225b81a34ef20b0ad4775bab0e41dbb3000825820ec6eb047f74e5412c116a819cdd43f1c27a29f2871241453019637b850461b4300018283581d710449932f9da0258d220c39f803ceb8e2c45fdc605e8dd42f35558b58821a05f5e100a1581c800df05a0cc6b6f0d28aaa1812135bd9eebfbf5e8e80fd47da9989eba14c537061636542756442696431015820419eab3b349f31a776e68b9483668b623ecf2d4895db2955705676393e7eb34d8258390198de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65a3cd1a98844e76c802d75d3271991293a99e4295c00a161521afb3ca1a478ff2e2021a0008e1820758209bf796062b42a22108e1ad01c450d4f3527d936a319a7109d3fd100280a0395e0b582054bcb22a31a100080ffbf7edbac538b1517d99fa85ec77bfac089ab8249e27080d81825820ec6eb047f74e5412c116a819cdd43f1c27a29f2871241453019637b850461b4300108258390198de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65a3cd1a98844e76c802d75d3271991293a99e4295c00a161521afb3ca1a4d6f1abd111a000d5243a30381591974591971010000332332233223232333332222233332222332232333222323332223233333333222222223233322232333322223232332232333222323332223232332233223232333332222233223322332233223322332222323223223232533530343330093333573466e1d401920042304e3055357426aae7940208cccd5cd19b875007480088c140c158d5d09aab9e500923333573466e1d40212000204f235058353059335738921035054310005a49926499263333573466e1d40112006205223333573466e1d40152004205523333573466e1d40192002205323333573466e1d401d2000205623505935305a3357389201035054310005b4992649926498cccd5cd19b8735573aa004900011980619191919191919191919191999ab9a3370e6aae75402920002333333333301a335028232323333573466e1cd55cea8012400046604060766ae854008c0b4d5d09aba25002235066353067335738921035054310006849926135573ca00226ea8004d5d0a80519a8140149aba150093335502f75ca05c6ae854020ccd540bdd728171aba1500733502804435742a00c66a05066aa0aa09aeb4d5d0a8029919191999ab9a3370e6aae754009200023350223232323333573466e1cd55cea80124000466a05466a086eb4d5d0a80118241aba135744a00446a0d46a60d666ae712401035054310006c49926135573ca00226ea8004d5d0a8011919191999ab9a3370e6aae7540092000233502833504375a6ae854008c120d5d09aba2500223506a35306b3357389201035054310006c49926135573ca00226ea8004d5d09aba250022350663530673357389201035054310006849926135573ca00226ea8004d5d0a80219a8143ae35742a00666a05066aa0aaeb88004d5d0a801181d1aba135744a00446a0c46a60c666ae71241035054310006449926135744a00226ae8940044d5d1280089aba25001135744a00226ae8940044d5d1280089aba25001135573ca00226ea8004d5d0a8011919191999ab9a3370ea00290031180f981e1aba135573ca00646666ae68cdc3a801240084603c608c6ae84d55cf280211999ab9a3370ea00690011180f18189aba135573ca00a46666ae68cdc3a80224000460426eb8d5d09aab9e500623505d35305e3357389201035054310005f49926499264984d55cea80089baa001357426ae8940088d4158d4c15ccd5ce2490350543100058499261057135055353056335738920103505435000574984d55cf280089baa001135573a6ea80044d55cea80089baa0012212330010030022001222222222212333333333300100b00a00900800700600500400300220012212330010030022001122123300100300212001122123300100300212001122123300100300212001212222300400521222230030052122223002005212222300100520011232230023758002640026aa080446666aae7c004940388cd4034c010d5d080118019aba200203f23232323333573466e1cd55cea801a4000466600e6464646666ae68cdc39aab9d5002480008cc034c0c4d5d0a80119a8098169aba135744a00446a0846a608666ae712401035054310004449926135573ca00226ea8004d5d0a801999aa805bae500a35742a00466a01eeb8d5d09aba2500223503e35303f335738921035054310004049926135744a00226aae7940044dd50009110919980080200180110009109198008018011000899aa800bae75a224464460046eac004c8004d540e888c8cccd55cf80112804919a80419aa81718031aab9d5002300535573ca00460086ae8800c0e84d5d08008891001091091198008020018900089119191999ab9a3370ea002900011a80418029aba135573ca00646666ae68cdc3a801240044a01046a06a6a606c66ae7124010350543100037499264984d55cea80089baa001121223002003112200112001232323333573466e1cd55cea8012400046600c600e6ae854008dd69aba135744a00446a05e6a606066ae71241035054310003149926135573ca00226ea80048848cc00400c00880048c8cccd5cd19b8735573aa002900011bae357426aae7940088d40acd4c0b0cd5ce2481035054310002d499261375400224464646666ae68cdc3a800a40084a00e46666ae68cdc3a8012400446a014600c6ae84d55cf280211999ab9a3370ea00690001280511a8171a981799ab9c490103505431000304992649926135573aa00226ea8004484888c00c0104488800844888004480048c8cccd5cd19b8750014800880188cccd5cd19b8750024800080188d4098d4c09ccd5ce2490350543100028499264984d55ce9baa0011220021220012001232323232323333573466e1d4005200c200b23333573466e1d4009200a200d23333573466e1d400d200823300b375c6ae854014dd69aba135744a00a46666ae68cdc3a8022400c46601a6eb8d5d0a8039bae357426ae89401c8cccd5cd19b875005480108cc048c050d5d0a8049bae357426ae8940248cccd5cd19b875006480088c050c054d5d09aab9e500b23333573466e1d401d2000230133016357426aae7940308d40acd4c0b0cd5ce2481035054310002d49926499264992649926135573aa00826aae79400c4d55cf280109aab9e500113754002424444444600e01044244444446600c012010424444444600a010244444440082444444400644244444446600401201044244444446600201201040024646464646666ae68cdc3a800a400446660106eb4d5d0a8021bad35742a0066eb4d5d09aba2500323333573466e1d400920002300a300b357426aae7940188d4070d4c074cd5ce249035054310001e499264984d55cea80189aba25001135573ca00226ea80048488c00800c888488ccc00401401000c80048c8c8cccd5cd19b875001480088c018dd71aba135573ca00646666ae68cdc3a80124000460106eb8d5d09aab9e500423501635301733573892010350543100018499264984d55cea80089baa001212230020032122300100320011122232323333573466e1cd55cea80124000466aa010600c6ae854008c014d5d09aba25002235013353014335738921035054310001549926135573ca00226ea8004448848cc00400c00844800484888c00c01084888c00801048880048004488880104888800c488880084888800480048c8c8c8cccd5cd19b8735573aa006900011999111998068018010009bae35742a0066eb8d5d0a8011bad357426ae8940088d4018d4c01ccd5ce2481035054310000849926135744a00226aae7940044dd5000893090009000911091998008020018011000889191800800911980198010010009991999111919191991199911191919199119999111191919191999111991191919191919911991199999111119191919199911199911199999999111111119911999991111199991111991199119911991199119911991199119911919191919191919191919191919191919191999911119911919111119191919191a982c0049119119119119111911192999a983c80b909a983f00091129999a983300d099838999a837a83c9840008021a9aa84480a80b11000998389991199ab9a3371200400212402122026604c60c600a605800c60c6a02a660e26601aa02a004a66a611c026604ea03000621200226605a60c66603aa03000660c600a2c2660e26604ea030006660e2666a0dea0f26a6aa11202a02c440020fc6601aa02a0042660e2666a0dea0f26a6aa11202a02c440020fc660e26601aa02a004660e26601e6603aa030006004660106a05c60c600aa028426a60fc002444a6666a60cc0342c2660e26601e6603aa030a028004660e26605a00200e6601000200626604ea0300062c2a6666a60c402c2a66a6114026644666ae68cdc480100084680847009806800a40042a66a6a10402605802a2610e022c442a66a6a1080200226112022c46442a66a6a10e0200226a6aa114026a6aa11402a0044400444a666a610002002426a610a02002444660f06602800c004660f0660686a06a60d400c01c660f0666a0ec0d200290011a9aa848009a9aa84800a80411000912999a98430080090b10b0999a83c0359981a180d00724004603400442c2660e8666a0e40ca6605c60280109001180a0011a9aa846009a9aa84600a80211000912999a984100800909a9843808009111983d1980b0030011983d1981b1a81b9836003008199a83c035800a400442c2c442611c022c266aa11202602c006602c0022a66a6a10402605802a26110022c4646442a66a6a10c020022a666a60fa6a6aa11202a00644002426a610402002444660ea66022a00c004660ea660626a06460cea00c016666a0e60cc002900110b0b1109847008b09a9aa84380a800910010980a0008b0b0b299a9a840809a815091199aa83111299a984680a99a9a83a981418148011084800884700899802181398148010008800800991a981c8009111111111005280a8983f0b110a99a9a841808008801110a99a9a842808008a999a983e00d109a984080800911299a984880998080040010a99a98488099809003001080409843808b0a99a9848809980900300109843808b0803109a984080800911299a984880998090040010a99a98488099808003001080409844008b0a99a9848809980800300109844008b08030b1109842008b1191919191299a98460099815803241012179fa042660de6605660c266036a02ca0126054a004660de6605660c266036a02c6a6aa10e02010440046054a0066605660c266036a02c002605466052660526605200ca004a0066a6aaa0d6a0084440022660de6605660c266036a02ca0126054a00a6605660c266036a02c00260546605200ca00a26a6aaa0d2a00444400626a6aaa0d0a0024440042666aaa0d0660e80046a6aaa0ce00c444002660e80046a6aa1060200844002660e80040062660e60026a6aaa0cc00a44400426a6aaa0c400244400644660446660b200400e666a0cae2800c005200222330203330570020063335063714006002900111991180100099119900099000999aa8011919a81591199a8148018008011a81300099a8151111801980100090009119b8000148008005200030221200133233553022120012253353081013003002133507a00200110015079235355505e001222330653335063029006003333506305600148008d407c488ccd5415c88d4d541f400888ccd5416c88d4d5420404008894cd4c22004ccd5cd19b87001480002280422404400c4cc028ccd5541a001800800400c00c00400400c54cd4d41c8c8d4c0a0004888888888800d40104c19c588854cd4d41d00044008884c1ac584d4d541d140048800854cd4d41c0c06800c4c198588854cd4d41c80044c00c008884c1a8588d4c0acd4c0a400488800c88cd4c12c0089894cd4d418cc058010854cd4d4190c8d4c0a800488888888894cd4d41bcccd54c0ac4800540bc8d4d5420c04004894cd4c22804ccd5cd19b8f00200f08c0108b01135074003150730022135072353550830100122001150705006232323215335350683333333574800846666ae68cdc3a8012400846666aae7d4010941b08cccd55cf9aba25005253353506c306835742a00c426a0de60ec0022a0da4a0da0d40d246666ae68cdc3a801a400446666aae7d4014941b48cccd55cf9aba25006253353506d306935742a00e426a0e060f00022a0dc4a0dc0d60d446666ae68cdc3a8022400046666aae7d40188d41bc1d4941b81ac941b526499262506a2506a2506a2506a06721335507d301b00a00116135573aa00426aae7940044dd50008b0b09a98108009100111199aa980b090009119aa98060900091a9aa8388009119aa83a00119aa98078900091a9aa83a0009119aa83b801199a9aa80700091980a24000002446602a004002466028002900000099aa98060900091a9aa8388009119aa83a001199a9aa805800919aa98080900091a9aa83a8009119aa83c0011aa80900080091199aaa805010801000919aa98080900091a9aa83a8009119aa83c0011aa808000800999aaa80280e001000a8369a98100011111111111199aa981009000911a98180011111a981a8019119a982a8011299a984280999ab9a3371e02600210e0210c02266a0fc00a00e200e400ea0ee012222444666aa602c24002a0d866aa60142400246a6aa0de0024466aa0e40046aa018002666aa602c24002446a6aa0e000444a66a60ee666aa6036240026466a04444666a6a016006440040040026a6a0120024400266a01244a66a60f200420f620020f046a6aa0e6002446601400400a00c2006266a0e0008006a0da00266aa60142400246a6aa0de002446466aa0e6006600200a640026aa0f244a66a6a0e000226aa0180064426a6aa0ea00444a66a60f866018004010266aa02200e0022600c00600424424660020060042400222424446006008224424446600400a00822424446002008224002640026aa0d8442244a66a6a0ca0022a0ce44266a0d0600800466aa600c240020080024466e0000800488d4c05800888888888894cd4d416cccd54c05c48005406c94cd4c1d0ccd5cd19b8f00c00107607513505e0011505d003210761074235301800122200223530170012220012353014001220012233702004002400244666ae68cdc4001000832032890008919a800a82ca82d11a9805000911a98070011111111111299a9a829a9999a981500590a82a90a82a90a82a90999aa980809000a80a11a980e00091299a9837a99a9837999ab9a3371e6a6066004440046a6066008440040e20e02666ae68cdc39a9819801110009a981980211000838838083809a82c8018a82c005909a980d800911a980f800911199aa980a09000911a98120011111a9814804111a98158029119299a983d99a9826002919a98268021299a983e999ab9a3371e0040020fe0fc2a00620fc40fc466a609a00840fc4a66a60fa666ae68cdc780100083f83f0a801883f099a83a00500488048a99a9a83100190a99a9a8318011099a9825001119a9825801119a9827801119a9828001119813801000904080919a98280011040809198138010009110408091119a9826802104080911299a984100999ab9a3370e00c00610802106022a66a610402666ae68cdc3802801042008418089982b002000884180884180883e0a99a9a8310009083e083e283580789931a982899ab9c491024c6600052498c8004d5418088448894cd4d41680044008884cc014008ccd54c01c48004014010004c8004d5417c88448894cd4d41640044d401800c884ccd4024014c010008ccd54c01c4800401401000448d4d40140048800448d4d40100048800888ccd5cd19b8f00200105d05c13350022253353504200221003100150411221233001003002120012212330010030022001222222222212333333333300100b00a009008007006005004003002200122123300100300220012221233300100400300220012212330010030022001122123300100300212001122123300100300212001122123300100300212001121222300300411222002112220011200121222230040052122223003005212222300200521222230010052001221233001003002200121222222230070082212222222330060090082122222223005008122222220041222222200322122222223300200900822122222223300100900820012122300200322212233300100500400320012122300200321223001003200122333573466e1c0080040c00bc8ccc00800522100488100222323230010053200135503122335350280014800088d4d540b4008894cd4c0d0ccd5cd19b8f00200903603513007001130060033200135503022335350270014800088d4d540b0008894cd4c0ccccd5cd19b8f0020070350341001130060031122320013200135502e2253353502500110032213300600230040011222200412222003122220021222200120012222222221233333333300100a00900800700600500400300220011112221233300100400300211120011200112001225335301f002100110202323232323333333574800a46666ae68cdc39aab9d5005480008cccd55cfa8029280691999aab9f50052500e233335573ea00a4a01e46666aae7cd5d128031299a9a807a99a9a807a99a9a80798061aba1500921350122233301e0030020011501021533535010300d35742a012426a02660040022a0222a02042a66a6a020646666666ae900049404c9404c9404c8d4050dd6801128098081aba150082135013300200115011150102501000d00c00b00a2500c4989402c9402c9402c9402c0204d5d1280089aba25001135573ca00226ea80048ccccccd5d20009280312803128031280311a8039bae002003120012001121223002003112200112001122533353006002215333530070022153353019333573466e3cd4c030008888008d4c03000488800806c0684ccd5cd19b8735300c00222200135300c00122200101b01a101a213018161301716213017161533353006001213017162130171610192233223370600400266e08009201400126262122230030042122230020041222001200122212333001004003002200126262611220021221223300100400312001112212330010030021120012626261220021220012001112323001001223300330020020013322332233223333333330024891cd5e6bf0500378d4f0da4e8dde6becec7621cd8cbf5cbb9b87013d4cc0048811c800df05a0cc6b6f0d28aaa1812135bd9eebfbf5e8e80fd47da9989eb0048810853706163654275640048810b5370616365427564426964003335550044891c826d9fafe1b3acf15bd250de69c04e3fc92c4493785939e069932e8900483001920e209335500648811c88269f8b051a739300fe743a7b315026f4614ce1216a4bb45d7fd0f500482209d20882748203db810920a09c012222222221233333333300100a0090080070060050040030022001111222123330010040030021112001112212330010030021120011049fd87a9fd8799f581c98de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65413101ffffd87980ff0581840000d87b80821a001500c11a16ff8875f5a2190195a1005829d87a9fd8799f581c98de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65413101ffff190196a1676164647265737358390198de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65a3cd1a98844e76c802d75d3271991293a99e4295c00a161521afb3ca', ), - path: mainentUrl(`utils/txs/evaluate`), + path: mainnetUrl(`utils/txs/evaluate`), endpointMockMethod: 'post', endpointMock: { type: 'jsonwsp/response', @@ -911,19 +911,20 @@ export default [ '84a8008282582098483df1666d5af7c4aca7ef28f112d225b81a34ef20b0ad4775bab0e41dbb3000825820ec6eb047f74e5412c116a819cdd43f1c27a29f2871241453019637b850461b4300018283581d710449932f9da0258d220c39f803ceb8e2c45fdc605e8dd42f35558b58821a05f5e100a1581c800df05a0cc6b6f0d28aaa1812135bd9eebfbf5e8e80fd47da9989eba14c537061636542756442696431015820419eab3b349f31a776e68b9483668b623ecf2d4895db2955705676393e7eb34d8258390198de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65a3cd1a98844e76c802d75d3271991293a99e4295c00a161521afb3ca1a478ff2e2021a0008e1820758209bf796062b42a22108e1ad01c450d4f3527d936a319a7109d3fd100280a0395e0b582054bcb22a31a100080ffbf7edbac538b1517d99fa85ec77bfac089ab8249e27080d81825820ec6eb047f74e5412c116a819cdd43f1c27a29f2871241453019637b850461b4300108258390198de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65a3cd1a98844e76c802d75d3271991293a99e4295c00a161521afb3ca1a4d6f1abd111a000d5243a30381591974591971010000332332233223232333332222233332222332232333222323332223233333333222222223233322232333322223232332232333222323332223232332233223232333332222233223322332233223322332222323223223232533530343330093333573466e1d401920042304e3055357426aae7940208cccd5cd19b875007480088c140c158d5d09aab9e500923333573466e1d40212000204f235058353059335738921035054310005a49926499263333573466e1d40112006205223333573466e1d40152004205523333573466e1d40192002205323333573466e1d401d2000205623505935305a3357389201035054310005b4992649926498cccd5cd19b8735573aa004900011980619191919191919191919191999ab9a3370e6aae75402920002333333333301a335028232323333573466e1cd55cea8012400046604060766ae854008c0b4d5d09aba25002235066353067335738921035054310006849926135573ca00226ea8004d5d0a80519a8140149aba150093335502f75ca05c6ae854020ccd540bdd728171aba1500733502804435742a00c66a05066aa0aa09aeb4d5d0a8029919191999ab9a3370e6aae754009200023350223232323333573466e1cd55cea80124000466a05466a086eb4d5d0a80118241aba135744a00446a0d46a60d666ae712401035054310006c49926135573ca00226ea8004d5d0a8011919191999ab9a3370e6aae7540092000233502833504375a6ae854008c120d5d09aba2500223506a35306b3357389201035054310006c49926135573ca00226ea8004d5d09aba250022350663530673357389201035054310006849926135573ca00226ea8004d5d0a80219a8143ae35742a00666a05066aa0aaeb88004d5d0a801181d1aba135744a00446a0c46a60c666ae71241035054310006449926135744a00226ae8940044d5d1280089aba25001135744a00226ae8940044d5d1280089aba25001135573ca00226ea8004d5d0a8011919191999ab9a3370ea00290031180f981e1aba135573ca00646666ae68cdc3a801240084603c608c6ae84d55cf280211999ab9a3370ea00690011180f18189aba135573ca00a46666ae68cdc3a80224000460426eb8d5d09aab9e500623505d35305e3357389201035054310005f49926499264984d55cea80089baa001357426ae8940088d4158d4c15ccd5ce2490350543100058499261057135055353056335738920103505435000574984d55cf280089baa001135573a6ea80044d55cea80089baa0012212330010030022001222222222212333333333300100b00a00900800700600500400300220012212330010030022001122123300100300212001122123300100300212001122123300100300212001212222300400521222230030052122223002005212222300100520011232230023758002640026aa080446666aae7c004940388cd4034c010d5d080118019aba200203f23232323333573466e1cd55cea801a4000466600e6464646666ae68cdc39aab9d5002480008cc034c0c4d5d0a80119a8098169aba135744a00446a0846a608666ae712401035054310004449926135573ca00226ea8004d5d0a801999aa805bae500a35742a00466a01eeb8d5d09aba2500223503e35303f335738921035054310004049926135744a00226aae7940044dd50009110919980080200180110009109198008018011000899aa800bae75a224464460046eac004c8004d540e888c8cccd55cf80112804919a80419aa81718031aab9d5002300535573ca00460086ae8800c0e84d5d08008891001091091198008020018900089119191999ab9a3370ea002900011a80418029aba135573ca00646666ae68cdc3a801240044a01046a06a6a606c66ae7124010350543100037499264984d55cea80089baa001121223002003112200112001232323333573466e1cd55cea8012400046600c600e6ae854008dd69aba135744a00446a05e6a606066ae71241035054310003149926135573ca00226ea80048848cc00400c00880048c8cccd5cd19b8735573aa002900011bae357426aae7940088d40acd4c0b0cd5ce2481035054310002d499261375400224464646666ae68cdc3a800a40084a00e46666ae68cdc3a8012400446a014600c6ae84d55cf280211999ab9a3370ea00690001280511a8171a981799ab9c490103505431000304992649926135573aa00226ea8004484888c00c0104488800844888004480048c8cccd5cd19b8750014800880188cccd5cd19b8750024800080188d4098d4c09ccd5ce2490350543100028499264984d55ce9baa0011220021220012001232323232323333573466e1d4005200c200b23333573466e1d4009200a200d23333573466e1d400d200823300b375c6ae854014dd69aba135744a00a46666ae68cdc3a8022400c46601a6eb8d5d0a8039bae357426ae89401c8cccd5cd19b875005480108cc048c050d5d0a8049bae357426ae8940248cccd5cd19b875006480088c050c054d5d09aab9e500b23333573466e1d401d2000230133016357426aae7940308d40acd4c0b0cd5ce2481035054310002d49926499264992649926135573aa00826aae79400c4d55cf280109aab9e500113754002424444444600e01044244444446600c012010424444444600a010244444440082444444400644244444446600401201044244444446600201201040024646464646666ae68cdc3a800a400446660106eb4d5d0a8021bad35742a0066eb4d5d09aba2500323333573466e1d400920002300a300b357426aae7940188d4070d4c074cd5ce249035054310001e499264984d55cea80189aba25001135573ca00226ea80048488c00800c888488ccc00401401000c80048c8c8cccd5cd19b875001480088c018dd71aba135573ca00646666ae68cdc3a80124000460106eb8d5d09aab9e500423501635301733573892010350543100018499264984d55cea80089baa001212230020032122300100320011122232323333573466e1cd55cea80124000466aa010600c6ae854008c014d5d09aba25002235013353014335738921035054310001549926135573ca00226ea8004448848cc00400c00844800484888c00c01084888c00801048880048004488880104888800c488880084888800480048c8c8c8cccd5cd19b8735573aa006900011999111998068018010009bae35742a0066eb8d5d0a8011bad357426ae8940088d4018d4c01ccd5ce2481035054310000849926135744a00226aae7940044dd5000893090009000911091998008020018011000889191800800911980198010010009991999111919191991199911191919199119999111191919191999111991191919191919911991199999111119191919199911199911199999999111111119911999991111199991111991199119911991199119911991199119911919191919191919191919191919191919191999911119911919111119191919191a982c0049119119119119111911192999a983c80b909a983f00091129999a983300d099838999a837a83c9840008021a9aa84480a80b11000998389991199ab9a3371200400212402122026604c60c600a605800c60c6a02a660e26601aa02a004a66a611c026604ea03000621200226605a60c66603aa03000660c600a2c2660e26604ea030006660e2666a0dea0f26a6aa11202a02c440020fc6601aa02a0042660e2666a0dea0f26a6aa11202a02c440020fc660e26601aa02a004660e26601e6603aa030006004660106a05c60c600aa028426a60fc002444a6666a60cc0342c2660e26601e6603aa030a028004660e26605a00200e6601000200626604ea0300062c2a6666a60c402c2a66a6114026644666ae68cdc480100084680847009806800a40042a66a6a10402605802a2610e022c442a66a6a1080200226112022c46442a66a6a10e0200226a6aa114026a6aa11402a0044400444a666a610002002426a610a02002444660f06602800c004660f0660686a06a60d400c01c660f0666a0ec0d200290011a9aa848009a9aa84800a80411000912999a98430080090b10b0999a83c0359981a180d00724004603400442c2660e8666a0e40ca6605c60280109001180a0011a9aa846009a9aa84600a80211000912999a984100800909a9843808009111983d1980b0030011983d1981b1a81b9836003008199a83c035800a400442c2c442611c022c266aa11202602c006602c0022a66a6a10402605802a26110022c4646442a66a6a10c020022a666a60fa6a6aa11202a00644002426a610402002444660ea66022a00c004660ea660626a06460cea00c016666a0e60cc002900110b0b1109847008b09a9aa84380a800910010980a0008b0b0b299a9a840809a815091199aa83111299a984680a99a9a83a981418148011084800884700899802181398148010008800800991a981c8009111111111005280a8983f0b110a99a9a841808008801110a99a9a842808008a999a983e00d109a984080800911299a984880998080040010a99a98488099809003001080409843808b0a99a9848809980900300109843808b0803109a984080800911299a984880998090040010a99a98488099808003001080409844008b0a99a9848809980800300109844008b08030b1109842008b1191919191299a98460099815803241012179fa042660de6605660c266036a02ca0126054a004660de6605660c266036a02c6a6aa10e02010440046054a0066605660c266036a02c002605466052660526605200ca004a0066a6aaa0d6a0084440022660de6605660c266036a02ca0126054a00a6605660c266036a02c00260546605200ca00a26a6aaa0d2a00444400626a6aaa0d0a0024440042666aaa0d0660e80046a6aaa0ce00c444002660e80046a6aa1060200844002660e80040062660e60026a6aaa0cc00a44400426a6aaa0c400244400644660446660b200400e666a0cae2800c005200222330203330570020063335063714006002900111991180100099119900099000999aa8011919a81591199a8148018008011a81300099a8151111801980100090009119b8000148008005200030221200133233553022120012253353081013003002133507a00200110015079235355505e001222330653335063029006003333506305600148008d407c488ccd5415c88d4d541f400888ccd5416c88d4d5420404008894cd4c22004ccd5cd19b87001480002280422404400c4cc028ccd5541a001800800400c00c00400400c54cd4d41c8c8d4c0a0004888888888800d40104c19c588854cd4d41d00044008884c1ac584d4d541d140048800854cd4d41c0c06800c4c198588854cd4d41c80044c00c008884c1a8588d4c0acd4c0a400488800c88cd4c12c0089894cd4d418cc058010854cd4d4190c8d4c0a800488888888894cd4d41bcccd54c0ac4800540bc8d4d5420c04004894cd4c22804ccd5cd19b8f00200f08c0108b01135074003150730022135072353550830100122001150705006232323215335350683333333574800846666ae68cdc3a8012400846666aae7d4010941b08cccd55cf9aba25005253353506c306835742a00c426a0de60ec0022a0da4a0da0d40d246666ae68cdc3a801a400446666aae7d4014941b48cccd55cf9aba25006253353506d306935742a00e426a0e060f00022a0dc4a0dc0d60d446666ae68cdc3a8022400046666aae7d40188d41bc1d4941b81ac941b526499262506a2506a2506a2506a06721335507d301b00a00116135573aa00426aae7940044dd50008b0b09a98108009100111199aa980b090009119aa98060900091a9aa8388009119aa83a00119aa98078900091a9aa83a0009119aa83b801199a9aa80700091980a24000002446602a004002466028002900000099aa98060900091a9aa8388009119aa83a001199a9aa805800919aa98080900091a9aa83a8009119aa83c0011aa80900080091199aaa805010801000919aa98080900091a9aa83a8009119aa83c0011aa808000800999aaa80280e001000a8369a98100011111111111199aa981009000911a98180011111a981a8019119a982a8011299a984280999ab9a3371e02600210e0210c02266a0fc00a00e200e400ea0ee012222444666aa602c24002a0d866aa60142400246a6aa0de0024466aa0e40046aa018002666aa602c24002446a6aa0e000444a66a60ee666aa6036240026466a04444666a6a016006440040040026a6a0120024400266a01244a66a60f200420f620020f046a6aa0e6002446601400400a00c2006266a0e0008006a0da00266aa60142400246a6aa0de002446466aa0e6006600200a640026aa0f244a66a6a0e000226aa0180064426a6aa0ea00444a66a60f866018004010266aa02200e0022600c00600424424660020060042400222424446006008224424446600400a00822424446002008224002640026aa0d8442244a66a6a0ca0022a0ce44266a0d0600800466aa600c240020080024466e0000800488d4c05800888888888894cd4d416cccd54c05c48005406c94cd4c1d0ccd5cd19b8f00c00107607513505e0011505d003210761074235301800122200223530170012220012353014001220012233702004002400244666ae68cdc4001000832032890008919a800a82ca82d11a9805000911a98070011111111111299a9a829a9999a981500590a82a90a82a90a82a90999aa980809000a80a11a980e00091299a9837a99a9837999ab9a3371e6a6066004440046a6066008440040e20e02666ae68cdc39a9819801110009a981980211000838838083809a82c8018a82c005909a980d800911a980f800911199aa980a09000911a98120011111a9814804111a98158029119299a983d99a9826002919a98268021299a983e999ab9a3371e0040020fe0fc2a00620fc40fc466a609a00840fc4a66a60fa666ae68cdc780100083f83f0a801883f099a83a00500488048a99a9a83100190a99a9a8318011099a9825001119a9825801119a9827801119a9828001119813801000904080919a98280011040809198138010009110408091119a9826802104080911299a984100999ab9a3370e00c00610802106022a66a610402666ae68cdc3802801042008418089982b002000884180884180883e0a99a9a8310009083e083e283580789931a982899ab9c491024c6600052498c8004d5418088448894cd4d41680044008884cc014008ccd54c01c48004014010004c8004d5417c88448894cd4d41640044d401800c884ccd4024014c010008ccd54c01c4800401401000448d4d40140048800448d4d40100048800888ccd5cd19b8f00200105d05c13350022253353504200221003100150411221233001003002120012212330010030022001222222222212333333333300100b00a009008007006005004003002200122123300100300220012221233300100400300220012212330010030022001122123300100300212001122123300100300212001122123300100300212001121222300300411222002112220011200121222230040052122223003005212222300200521222230010052001221233001003002200121222222230070082212222222330060090082122222223005008122222220041222222200322122222223300200900822122222223300100900820012122300200322212233300100500400320012122300200321223001003200122333573466e1c0080040c00bc8ccc00800522100488100222323230010053200135503122335350280014800088d4d540b4008894cd4c0d0ccd5cd19b8f00200903603513007001130060033200135503022335350270014800088d4d540b0008894cd4c0ccccd5cd19b8f0020070350341001130060031122320013200135502e2253353502500110032213300600230040011222200412222003122220021222200120012222222221233333333300100a00900800700600500400300220011112221233300100400300211120011200112001225335301f002100110202323232323333333574800a46666ae68cdc39aab9d5005480008cccd55cfa8029280691999aab9f50052500e233335573ea00a4a01e46666aae7cd5d128031299a9a807a99a9a807a99a9a80798061aba1500921350122233301e0030020011501021533535010300d35742a012426a02660040022a0222a02042a66a6a020646666666ae900049404c9404c9404c8d4050dd6801128098081aba150082135013300200115011150102501000d00c00b00a2500c4989402c9402c9402c9402c0204d5d1280089aba25001135573ca00226ea80048ccccccd5d20009280312803128031280311a8039bae002003120012001121223002003112200112001122533353006002215333530070022153353019333573466e3cd4c030008888008d4c03000488800806c0684ccd5cd19b8735300c00222200135300c00122200101b01a101a213018161301716213017161533353006001213017162130171610192233223370600400266e08009201400126262122230030042122230020041222001200122212333001004003002200126262611220021221223300100400312001112212330010030021120012626261220021220012001112323001001223300330020020013322332233223333333330024891cd5e6bf0500378d4f0da4e8dde6becec7621cd8cbf5cbb9b87013d4cc0048811c800df05a0cc6b6f0d28aaa1812135bd9eebfbf5e8e80fd47da9989eb0048810853706163654275640048810b5370616365427564426964003335550044891c826d9fafe1b3acf15bd250de69c04e3fc92c4493785939e069932e8900483001920e209335500648811c88269f8b051a739300fe743a7b315026f4614ce1216a4bb45d7fd0f500482209d20882748203db810920a09c012222222221233333333300100a0090080070060050040030022001111222123330010040030021112001112212330010030021120011049fd87a9fd8799f581c98de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65413101ffffd87980ff0581840000d87b80821a001500c11a16ff8875f5a2190195a1005829d87a9fd8799f581c98de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65413101ffff190196a1676164647265737358390198de7db6b2fb3d50d56a288b27bdcdf1e29c3247a94262dcb5172c65a3cd1a98844e76c802d75d3271991293a99e4295c00a161521afb3ca', [ [ + // this utxo is already spent on blockchain, but it will work for ogmios if passed as additional utxo set { - txId: '97b2af6dfc6a4825e934146f424cdd6ede43ff98c355d2ae3aa95b0f70b63949', - index: 3, + txId: 'ec6eb047f74e5412c116a819cdd43f1c27a29f2871241453019637b850461b43', + index: 0, }, { address: - 'addr_test1qp9zjnc775anpndl0jh3w7vyy25syfezf70m7qmleaky0fdu9mqe2tg33xyxlcqcy98w630c82cyzuwyrumn65cv57nqwxm2yd', - value: { coins: 10_000_000n }, + 'addr1qxvduldkktan65x4dg5gkfaaehc798pjg755yckuk5tjcedre5df3pzwwmyq946axfcejy5n4x0y99wqpgtp2gd0k09qgcyhcc', + value: { coins: 1_300_000_000 }, }, ], ], ), - path: mainentUrl(`utils/txs/evaluate/utxos`), + path: mainnetUrl(`utils/txs/evaluate/utxos`), endpointMockMethod: 'post', endpointMock: { type: 'jsonwsp/response', diff --git a/test/utils.ts b/test/utils.ts index ce56b6a6..9f20eac8 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -16,7 +16,7 @@ export const IPFS = new BlockFrostIPFS({ projectId: `${process.env.PROJECT_ID_IPFS}`, }); -export const mainentUrl = (path: string) => { +export const mainnetUrl = (path: string) => { return new URL( join('/api/v0/', path), 'https://cardano-mainnet.blockfrost.io',