{"_id":"@57block/stellar-resource-usage","_rev":"9-4e3947e6d05785b9d946b423ef73febf","name":"@57block/stellar-resource-usage","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@57block/stellar-resource-usage","version":"0.0.1","keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"license":"MIT","_id":"@57block/stellar-resource-usage@0.0.1","maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"bin":{"dockerDev":"command.cjs"},"dist":{"shasum":"e7826ea4e23d709c34c045711b4a574085668cc3","tarball":"https://registry.npmjs.org/@57block/stellar-resource-usage/-/stellar-resource-usage-0.0.1.tgz","fileCount":11,"integrity":"sha512-IYSrAp9JYlp2JRcIvonc1VHW7o3DbWDmWdoweGqCJEVSN0ojkeFhFyZLy1+C36kSD3xUdP9c0cmOhfHv8HcYTA==","signatures":[{"sig":"MEYCIQDE4MwBv20say5qOEJXyMv15USAoj4Q2K1Pmi8NM++RIQIhAM+YYxQYldBdRilBw7/lmOCmcmxGMagBwxuuLojzlGqK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4144545},"main":"dist/main.js","type":"module","types":"index.d.ts","gitHead":"f44510e6a7f5f2f6ce453fe2c47755766e005615","private":false,"scripts":{"lint":"eslint . --fix","test":"vitest -c ./vitest.config.ts --run","build":"bun run clean && bun ./bun.build.js","clean":"rm -rf dist","start":"bun --watch test ./src/main.ts","prepare":"husky","release":"changeset publish","version":"changeset version --tag","coverage":"vitest run --coverage","changelog":"changeset","prepublishOnly":"bun run build"},"_npmUser":{"name":"sunny_bai","email":"song@57blocks.com"},"repository":{"url":"git+https://github.com/57blocks/stellar-resource-usage-report.git","type":"git"},"_npmVersion":"10.8.2","description":"[![NPM version](https://img.shields.io/npm/v/stellar-resource-usage)](https://www.npmjs.com/package/stellar-resource-usage)  [![View changelog](https://img.shields.io/badge/Explore%20Changelog-brightgreen)](https://github.com/57blocks/stellar-resource-usa","directories":{},"lint-staged":{"**/*.{js,ts,tsx}":["eslint --fix"],"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}":["prettier --write"]},"sideEffects":false,"_nodeVersion":"22.5.1","dependencies":{"bun":"^1.1.38","chalk":"^5.3.0","globals":"^15.14.0","lodash-es":"^4.17.21","tty-table":"^4.2.3","cli-table3":"^0.6.5","@colors/colors":"^1.6.0","chalk-template":"^1.1.0","@types/lodash-es":"^4.17.12","@stellar/stellar-sdk":"^13.0.0"},"_hasShrinkwrap":false,"devDependencies":{"axios":"^1.7.8","husky":"^9.1.7","eslint":"^9.16.0","vitest":"^2.1.8","prettier":"^3.4.2","@eslint/js":"^9.17.0","@types/bun":"^1.1.14","typescript":"^5.7.2","@types/node":"^22.10.1","lint-staged":"^15.2.11","@eslint/compat":"^1.2.4","@changesets/cli":"^2.27.10","@commitlint/cli":"^19.6.0","@eslint/eslintrc":"^3.2.0","@vitest/coverage-v8":"2.1.8","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@commitlint/config-conventional":"^19.6.0","@typescript-eslint/eslint-plugin":"^8.17.0"},"_npmOperationalInternal":{"tmp":"tmp/stellar-resource-usage_0.0.1_1736230619505_0.4230738008599435","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-rc.1":{"name":"@57block/stellar-resource-usage","version":"0.0.1-rc.1","keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"license":"MIT","_id":"@57block/stellar-resource-usage@0.0.1-rc.1","maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"bin":{"dockerDev":"command.cjs"},"dist":{"shasum":"5f6b8b42b8f32259cf2b44afc95111e19b90fdbf","tarball":"https://registry.npmjs.org/@57block/stellar-resource-usage/-/stellar-resource-usage-0.0.1-rc.1.tgz","fileCount":11,"integrity":"sha512-yjhbPhTuZKULIKOITF2GpxYzSN1Ygt7nSaLzZrXpRfn5EAhp0bcURYse8wzqPeZhWs6gtnYdALq3HLyKIalaOg==","signatures":[{"sig":"MEUCIF/0NsLCajuobr/oIk+5gPoDqZXRxOrsuE3RKV89wlfHAiEA3y6Bq3P/9cWxaWm101/LqQIFJ4dhC8xnjjnt2uiK/RU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4144981},"main":"dist/main.js","type":"module","types":"index.d.ts","gitHead":"e288be55e135c8c1bad4b2fbed840298fb320ce9","private":false,"scripts":{"lint":"eslint . --fix","test":"vitest -c ./vitest.config.ts --run","build":"bun run clean && bun ./bun.build.js","clean":"rm -rf dist","start":"bun --watch test ./src/main.ts","prepare":"husky","release":"changeset publish","version":"changeset version --tag","coverage":"vitest run --coverage","changelog":"changeset","prepublishOnly":"bun run build"},"_npmUser":{"name":"sunny_bai","email":"song@57blocks.com"},"repository":{"url":"git+https://github.com/57blocks/stellar-resource-usage-report.git","type":"git"},"_npmVersion":"10.8.2","description":"[![NPM version](https://img.shields.io/npm/v/@57block/stellar-resource-usage)](https://www.npmjs.com/package/@57block/stellar-resource-usage)  [![View changelog](https://img.shields.io/badge/Explore%20Changelog-brightgreen)](https://github.com/57blocks/st","directories":{},"lint-staged":{"**/*.{js,ts,tsx}":["eslint --fix"],"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}":["prettier --write"]},"sideEffects":false,"_nodeVersion":"22.5.1","dependencies":{"bun":"^1.1.38","chalk":"^5.3.0","globals":"^15.14.0","lodash-es":"^4.17.21","tty-table":"^4.2.3","cli-table3":"^0.6.5","@colors/colors":"^1.6.0","chalk-template":"^1.1.0","@types/lodash-es":"^4.17.12","@stellar/stellar-sdk":"^13.0.0"},"_hasShrinkwrap":false,"devDependencies":{"axios":"^1.7.8","husky":"^9.1.7","eslint":"^9.16.0","vitest":"^2.1.8","prettier":"^3.4.2","@eslint/js":"^9.17.0","@types/bun":"^1.1.14","typescript":"^5.7.2","@types/node":"^22.10.1","lint-staged":"^15.2.11","@eslint/compat":"^1.2.4","@changesets/cli":"^2.27.10","@commitlint/cli":"^19.6.0","@eslint/eslintrc":"^3.2.0","@vitest/coverage-v8":"2.1.8","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@commitlint/config-conventional":"^19.6.0","@typescript-eslint/eslint-plugin":"^8.17.0"},"_npmOperationalInternal":{"tmp":"tmp/stellar-resource-usage_0.0.1-rc.1_1736238128970_0.24691835277442498","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@57block/stellar-resource-usage","version":"0.0.2","keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"author":{"name":"57blocks","email":"https://github.com/57blocks"},"license":"MIT","_id":"@57block/stellar-resource-usage@0.0.2","maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"bin":{"dockerDev":"command.cjs"},"dist":{"shasum":"8591d39ade5f38970ea5370bb400da12afc342b1","tarball":"https://registry.npmjs.org/@57block/stellar-resource-usage/-/stellar-resource-usage-0.0.2.tgz","fileCount":11,"integrity":"sha512-P2n4f4iNriBL6DsW74EUIFQxEmqCbPA0haYsMG883kS2GYyTWAOxxKnU9xT4L4u2bSydsNhHwHhyWuob1mV6eQ==","signatures":[{"sig":"MEUCIBkL+mvF88jKyjxp7FRv3be9pUnm29KIzveVj99BG8nMAiEAlSY6BpW33yKAR1Dz5XKZGhHsQlmY8KZntyZzxhElQbo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3906509},"main":"dist/main.js","type":"module","types":"index.d.ts","gitHead":"5fd284a18a000334b77d10e1a2385cd9cff01ae7","private":false,"scripts":{"lint":"eslint . --fix","test":"vitest -c ./vitest.config.ts --run","build":"bun run clean && bun ./bun.build.js","clean":"rm -rf dist","start":"bun --watch test ./src/main.ts","prepare":"husky","release":"changeset publish","version":"changeset version --tag","coverage":"vitest run --coverage","changelog":"changeset","prepublishOnly":"bun run build"},"_npmUser":{"name":"sunny_bai","email":"song@57blocks.com"},"repository":{"url":"git+https://github.com/57blocks/stellar-resource-usage-report.git","type":"git"},"_npmVersion":"10.8.2","description":"A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution","directories":{},"lint-staged":{"**/*.{js,ts,tsx}":["eslint --fix"],"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}":["prettier --write"]},"sideEffects":false,"_nodeVersion":"22.5.1","dependencies":{"bun":"^1.1.38","globals":"^15.14.0","lodash-es":"^4.17.21","cli-table3":"^0.6.5","@colors/colors":"^1.6.0","@stellar/stellar-sdk":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^9.16.0","vitest":"^2.1.8","prettier":"^3.4.2","@eslint/js":"^9.17.0","@types/bun":"^1.1.14","typescript":"^5.7.2","@types/node":"^22.10.1","lint-staged":"^15.2.11","@eslint/compat":"^1.2.4","@changesets/cli":"^2.27.10","@commitlint/cli":"^19.6.0","@eslint/eslintrc":"^3.2.0","@types/lodash-es":"^4.17.12","@vitest/coverage-v8":"2.1.8","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@commitlint/config-conventional":"^19.6.0","@typescript-eslint/eslint-plugin":"^8.17.0"},"_npmOperationalInternal":{"tmp":"tmp/stellar-resource-usage_0.0.2_1737686193427_0.001193947646361826","host":"s3://npm-registry-packages-npm-production"}},"0.0.2-rc.1":{"name":"@57block/stellar-resource-usage","version":"0.0.2-rc.1","keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"author":{"name":"57blocks","email":"https://github.com/57blocks"},"license":"MIT","_id":"@57block/stellar-resource-usage@0.0.2-rc.1","maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"bin":{"dockerDev":"command.cjs"},"dist":{"shasum":"9e3bd494970ffe892bf9da58e2d8b1bdd4856da2","tarball":"https://registry.npmjs.org/@57block/stellar-resource-usage/-/stellar-resource-usage-0.0.2-rc.1.tgz","fileCount":11,"integrity":"sha512-gsz0v+ZyHBJ+ci29Sm2/NG7pwOtZi3eTrB/eQH5OmGdAD3D6ykN5N7OLutKDE+anlG54VUf0aZ0zVgbJXmstKA==","signatures":[{"sig":"MEUCIClAt0tk0sRWP7IaaqRAJCYpXmCxfQuj9bH45K4zvnyjAiEAidxdjNlo3nY5xQkkPyRUJ1SN8+/Pu3Kct2/+vuQTOds=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3907368},"main":"dist/main.js","type":"module","types":"index.d.ts","gitHead":"b72b56955bde59c3226956426daac50b9db442ca","private":false,"scripts":{"lint":"eslint . --fix","test":"vitest -c ./vitest.config.ts --run","build":"bun run clean && bun ./bun.build.js","clean":"rm -rf dist","start":"bun --watch test ./src/main.ts","prepare":"husky","release":"changeset publish","version":"changeset version --tag","coverage":"vitest run --coverage","changelog":"changeset","prepublishOnly":"bun run build"},"_npmUser":{"name":"sunny_bai","email":"song@57blocks.com"},"repository":{"url":"git+https://github.com/57blocks/stellar-resource-usage-report.git","type":"git"},"_npmVersion":"10.8.2","description":"A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution","directories":{},"lint-staged":{"**/*.{js,ts,tsx}":["eslint --fix"],"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}":["prettier --write"]},"sideEffects":false,"_nodeVersion":"22.5.1","dependencies":{"bun":"^1.1.38","globals":"^15.14.0","lodash-es":"^4.17.21","cli-table3":"^0.6.5","@colors/colors":"^1.6.0","@stellar/stellar-sdk":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^9.16.0","vitest":"^2.1.8","prettier":"^3.4.2","@eslint/js":"^9.17.0","@types/bun":"^1.1.14","typescript":"^5.7.2","@types/node":"^22.10.1","lint-staged":"^15.2.11","@eslint/compat":"^1.2.4","@changesets/cli":"^2.27.10","@commitlint/cli":"^19.6.0","@eslint/eslintrc":"^3.2.0","@types/lodash-es":"^4.17.12","@vitest/coverage-v8":"2.1.8","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@commitlint/config-conventional":"^19.6.0","@typescript-eslint/eslint-plugin":"^8.17.0"},"_npmOperationalInternal":{"tmp":"tmp/stellar-resource-usage_0.0.2-rc.1_1737706908460_0.1501556247777358","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@57block/stellar-resource-usage","version":"0.0.3","keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"author":{"name":"57blocks","email":"https://github.com/57blocks"},"license":"MIT","_id":"@57block/stellar-resource-usage@0.0.3","maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"bin":{"dockerDev":"command.cjs"},"dist":{"shasum":"481e02bfd501f541bea88e1c77797e41628a2a9a","tarball":"https://registry.npmjs.org/@57block/stellar-resource-usage/-/stellar-resource-usage-0.0.3.tgz","fileCount":11,"integrity":"sha512-AQ/9q4KQI3+ryaapTBVWqMHup2E4mrwFelOdRky1lmKD3L5olmkhzJie3OT5RmqFKDcKl64uu2Xb6Wq0tagdag==","signatures":[{"sig":"MEUCIQC3gAlkYU1J8mGKrwxDczgnDv9b8X06X6L2cNGJAiTFmgIgMBZDx7Z5m/VKNFp97ZKhPh1sS641yfxXgvP/x07PgDA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5157904},"main":"dist/main.js","type":"module","types":"index.d.ts","gitHead":"76dd17f1bcea65296960b68d1e08d5bf1865c710","private":false,"scripts":{"lint":"eslint . --fix","test":"vitest -c ./vitest.config.ts --run","build":"bun run clean && bun ./bun.build.js","clean":"rm -rf dist","start":"bun --watch test ./src/main.ts","prepare":"husky","release":"changeset publish","version":"changeset version --tag","coverage":"vitest run --coverage","changelog":"changeset","prepublishOnly":"bun run build"},"_npmUser":{"name":"sunny_bai","email":"song@57blocks.com"},"repository":{"url":"git+https://github.com/57blocks/stellar-resource-usage-report.git","type":"git"},"_npmVersion":"10.8.2","description":"A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution","directories":{},"lint-staged":{"**/*.{js,ts,tsx}":["eslint --fix"],"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}":["prettier --write"]},"sideEffects":false,"_nodeVersion":"22.5.1","dependencies":{"bun":"^1.1.38","globals":"^15.14.0","lodash-es":"^4.17.21","cli-table3":"^0.6.5","@colors/colors":"^1.6.0","@stellar/stellar-sdk":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^9.16.0","vitest":"^2.1.8","prettier":"^3.4.2","@eslint/js":"^9.17.0","@types/bun":"^1.1.14","typescript":"^5.7.2","@types/node":"^22.10.1","lint-staged":"^15.2.11","@eslint/compat":"^1.2.4","@changesets/cli":"^2.27.10","@commitlint/cli":"^19.6.0","@eslint/eslintrc":"^3.2.0","@types/lodash-es":"^4.17.12","@vitest/coverage-v8":"2.1.8","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@commitlint/config-conventional":"^19.6.0","@typescript-eslint/eslint-plugin":"^8.17.0"},"_npmOperationalInternal":{"tmp":"tmp/stellar-resource-usage_0.0.3_1743043909321_0.6148285348453664","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@57block/stellar-resource-usage","version":"1.2.0","keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"author":{"name":"57blocks","email":"https://github.com/57blocks"},"license":"MIT","_id":"@57block/stellar-resource-usage@1.2.0","maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"bin":{"dockerDev":"command.cjs"},"dist":{"shasum":"c525bcf22d277cf1cc33eb3bfc1d2ecbbc8b6cf1","tarball":"https://registry.npmjs.org/@57block/stellar-resource-usage/-/stellar-resource-usage-1.2.0.tgz","fileCount":11,"integrity":"sha512-scmH0lWAk/zHv77t4yn/hmyKg+I2I8LvB24dOtG6MbP2TPehu1rvnacbqjj8h6waiSR/PF0lnzptPFgkp3fdfQ==","signatures":[{"sig":"MEUCIHuuvvxblSG+HUF1SYhy6RyAu3g+JR06tfDRHw23U2AEAiEAmqe+fxrMuA+EcoEb7AKkP3rvU1j47UZWJEMcLsCx7Ms=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5161404},"main":"dist/main.js","type":"module","types":"index.d.ts","gitHead":"cba07ab4dbedb265e9017ceec73956fd5d8078ed","private":false,"scripts":{"lint":"eslint . --fix","test":"vitest -c ./vitest.config.ts --run","build":"bun run clean && bun ./bun.build.js","clean":"rm -rf dist","start":"bun --watch test ./src/main.ts","prepare":"husky","release":"changeset publish","version":"changeset version --tag","coverage":"vitest run --coverage","changelog":"changeset","prepublishOnly":"bun run build"},"_npmUser":{"name":"sunny_bai","email":"song@57blocks.com"},"repository":{"url":"git+https://github.com/57blocks/stellar-resource-usage-report.git","type":"git"},"_npmVersion":"10.8.2","description":"A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution","directories":{},"lint-staged":{"**/*.{js,ts,tsx}":["eslint --fix"],"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}":["prettier --write"]},"sideEffects":false,"_nodeVersion":"22.5.1","dependencies":{"bun":"^1.1.38","globals":"^15.14.0","lodash-es":"^4.17.21","cli-table3":"^0.6.5","@colors/colors":"^1.6.0","@stellar/stellar-sdk":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^9.16.0","vitest":"^2.1.8","prettier":"^3.4.2","@eslint/js":"^9.17.0","@types/bun":"^1.1.14","typescript":"^5.7.2","@types/node":"^22.10.1","lint-staged":"^15.2.11","@eslint/compat":"^1.2.4","@changesets/cli":"^2.27.10","@commitlint/cli":"^19.6.0","@eslint/eslintrc":"^3.2.0","@types/lodash-es":"^4.17.12","@vitest/coverage-v8":"2.1.8","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@commitlint/config-conventional":"^19.6.0","@typescript-eslint/eslint-plugin":"^8.17.0"},"_npmOperationalInternal":{"tmp":"tmp/stellar-resource-usage_1.2.0_1743057041481_0.4329666613845473","host":"s3://npm-registry-packages-npm-production"}},"0.0.3-rc.1":{"name":"@57block/stellar-resource-usage","version":"0.0.3-rc.1","keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"author":{"name":"57blocks","email":"https://github.com/57blocks"},"license":"MIT","_id":"@57block/stellar-resource-usage@0.0.3-rc.1","maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"bin":{"dockerDev":"command.cjs"},"dist":{"shasum":"74d695bb6f8f4eeff71d1fb0a8b7b2b81647084c","tarball":"https://registry.npmjs.org/@57block/stellar-resource-usage/-/stellar-resource-usage-0.0.3-rc.1.tgz","fileCount":11,"integrity":"sha512-FcSzSnJ+9ZxQMT8HuC4KIoGM7bzCJwWCw1X9g0Sc4y7CmQRbZpomh5qcTu+FWT6L7ta/eKho8uQKm2V0VRyFZw==","signatures":[{"sig":"MEUCICWtdBobVvOMNQbYf1P81XDXEUM5L9xnNEk8FI+G4EMXAiEAvlVc0C+IBVmm4nYrAes91ZTTgwzKbCwOj75n909uyBI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5161409},"main":"dist/main.js","type":"module","types":"index.d.ts","gitHead":"cba07ab4dbedb265e9017ceec73956fd5d8078ed","private":false,"scripts":{"lint":"eslint . --fix","test":"vitest -c ./vitest.config.ts --run","build":"bun run clean && bun ./bun.build.js","clean":"rm -rf dist","start":"bun --watch test ./src/main.ts","prepare":"husky","release":"changeset publish","version":"changeset version --tag","coverage":"vitest run --coverage","changelog":"changeset","prepublishOnly":"bun run build"},"_npmUser":{"name":"sunny_bai","email":"song@57blocks.com"},"repository":{"url":"git+https://github.com/57blocks/stellar-resource-usage-report.git","type":"git"},"_npmVersion":"10.8.2","description":"A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution","directories":{},"lint-staged":{"**/*.{js,ts,tsx}":["eslint --fix"],"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}":["prettier --write"]},"sideEffects":false,"_nodeVersion":"22.5.1","dependencies":{"bun":"^1.1.38","globals":"^15.14.0","lodash-es":"^4.17.21","cli-table3":"^0.6.5","@colors/colors":"^1.6.0","@stellar/stellar-sdk":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^9.16.0","vitest":"^2.1.8","prettier":"^3.4.2","@eslint/js":"^9.17.0","@types/bun":"^1.1.14","typescript":"^5.7.2","@types/node":"^22.10.1","lint-staged":"^15.2.11","@eslint/compat":"^1.2.4","@changesets/cli":"^2.27.10","@commitlint/cli":"^19.6.0","@eslint/eslintrc":"^3.2.0","@types/lodash-es":"^4.17.12","@vitest/coverage-v8":"2.1.8","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@commitlint/config-conventional":"^19.6.0","@typescript-eslint/eslint-plugin":"^8.17.0"},"_npmOperationalInternal":{"tmp":"tmp/stellar-resource-usage_0.0.3-rc.1_1743057137533_0.8522775514017749","host":"s3://npm-registry-packages-npm-production"}},"0.0.4-rc.1":{"name":"@57block/stellar-resource-usage","version":"0.0.4-rc.1","keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"author":{"name":"57blocks","email":"https://github.com/57blocks"},"license":"MIT","_id":"@57block/stellar-resource-usage@0.0.4-rc.1","maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"bin":{"dockerDev":"command.cjs"},"dist":{"shasum":"55c8947b2d970232cae960ca8868fd8f9149427e","tarball":"https://registry.npmjs.org/@57block/stellar-resource-usage/-/stellar-resource-usage-0.0.4-rc.1.tgz","fileCount":747,"integrity":"sha512-0kq8gooCatBp47AjTv1OFgWDCI+5Iq8tUNki0BV4vH4jXlgd4BS8Twsw/3acQQs0dFyFHGQSVQL6P0vYmcsNSw==","signatures":[{"sig":"MEUCIHGQdB5QPOPzrpbTAQVhS3bgushbV4S5Zv8lJqR5Md/vAiEAmP9v/GQkMxYrVbkOBjacuDm+XFiVkTWWGxxKWxrsu5k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1301070},"main":"dist/main.js","type":"module","types":"index.d.ts","gitHead":"21d1854bcec9471620e31c42bda2ef352ccb4a73","private":false,"scripts":{"lint":"eslint . --fix","test":"vitest -c ./vitest.config.ts --run","build":"bun run clean && bun ./bun.build.js","clean":"rm -rf dist","start":"bun --watch test ./src/main.ts","prepare":"husky","release":"changeset publish","version":"changeset version --tag","coverage":"vitest run --coverage","changelog":"changeset","prepublishOnly":"bun run build"},"_npmUser":{"name":"sunny_bai","email":"song@57blocks.com"},"repository":{"url":"git+https://github.com/57blocks/stellar-resource-usage-report.git","type":"git"},"_npmVersion":"10.8.2","description":"A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution","directories":{},"lint-staged":{"**/*.{js,ts,tsx}":["eslint --fix"],"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}":["prettier --write"]},"sideEffects":false,"_nodeVersion":"22.5.1","dependencies":{"globals":"15.14.0","lodash-es":"4.17.21","cli-table3":"0.6.5","@colors/colors":"1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"bun":"1.1.38","husky":"9.1.7","eslint":"9.16.0","vitest":"2.1.8","prettier":"3.4.2","@eslint/js":"9.17.0","@types/bun":"1.1.14","typescript":"5.7.2","@types/node":"22.10.1","lint-staged":"15.2.11","@eslint/compat":"1.2.4","@changesets/cli":"2.27.10","@commitlint/cli":"19.6.0","@eslint/eslintrc":"3.2.0","@types/lodash-es":"4.17.12","@vitest/coverage-v8":"2.1.8","eslint-plugin-import":"2.31.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","@commitlint/config-conventional":"19.6.0","@typescript-eslint/eslint-plugin":"8.17.0"},"peerDependencies":{"@stellar/stellar-sdk":"13.1.0"},"bundleDependencies":["@colors/colors","cli-table3","globals","lodash-es"],"_npmOperationalInternal":{"tmp":"tmp/stellar-resource-usage_0.0.4-rc.1_1744009704760_0.4401027227185903","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@57block/stellar-resource-usage","version":"0.0.4","description":"A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution","license":"MIT","author":{"name":"57blocks","email":"https://github.com/57blocks"},"repository":{"type":"git","url":"git+https://github.com/57blocks/stellar-resource-usage-report.git"},"sideEffects":false,"main":"dist/main.js","private":false,"type":"module","types":"index.d.ts","scripts":{"clean":"rm -rf dist","build":"bun run clean && bun ./bun.build.js","start":"bun --watch test ./src/main.ts","lint":"eslint . --fix","test":"vitest -c ./vitest.config.ts --run","coverage":"vitest run --coverage","prepare":"husky","changelog":"changeset","version":"changeset version --tag","release":"changeset publish","prepublishOnly":"bun run build"},"bin":{"dockerDev":"command.cjs"},"dependencies":{"@colors/colors":"1.6.0","cli-table3":"0.6.5","globals":"15.14.0","lodash-es":"4.17.21"},"devDependencies":{"@changesets/cli":"2.27.10","@commitlint/cli":"19.6.0","@commitlint/config-conventional":"19.6.0","@eslint/compat":"1.2.4","@eslint/eslintrc":"3.2.0","@eslint/js":"9.17.0","@types/bun":"1.1.14","@types/lodash-es":"4.17.12","@types/node":"22.10.1","@typescript-eslint/eslint-plugin":"8.17.0","@vitest/coverage-v8":"2.1.8","bun":"1.1.38","eslint":"9.16.0","eslint-config-prettier":"9.1.0","eslint-plugin-import":"2.31.0","eslint-plugin-prettier":"5.2.1","husky":"9.1.7","lint-staged":"15.2.11","prettier":"3.4.2","typescript":"5.7.2","vitest":"2.1.8"},"keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"lint-staged":{"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}":["prettier --write"],"**/*.{js,ts,tsx}":["eslint --fix"]},"peerDependencies":{"@stellar/stellar-sdk":"14.4.3"},"_id":"@57block/stellar-resource-usage@0.0.4","bundleDependencies":["@colors/colors","cli-table3","globals","lodash-es"],"gitHead":"508cca369fcd091c1ac5e99331b7dd0d3a8625ce","bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","_nodeVersion":"24.2.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-miMqFd36fxQTMmdVR5jIHoIzt/xchRzkBKGJOkpLL8CRfc3hdXfW8hmXnjazANkFoM0ChBbUKBTHe1qjEBkKPA==","shasum":"6d3cc815483e10ffeb08774a20d611b9f9c45a92","tarball":"https://registry.npmjs.org/@57block/stellar-resource-usage/-/stellar-resource-usage-0.0.4.tgz","fileCount":771,"unpackedSize":1355236,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDV4yS6+g7fQ3NGOeEjIPJCWZkcBaprV6kwAgXGKQV0OQIhAIcR5xKWmEm1hUrIT3cLAtxsA9MY/lZeNOYaG8r5rB5b"}]},"_npmUser":{"name":"sunny_bai","email":"song@57blocks.com"},"directories":{},"maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stellar-resource-usage_0.0.4_1766477672108_0.3756356186435217"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-07T06:16:59.399Z","modified":"2025-12-23T08:14:32.532Z","0.0.1":"2025-01-07T06:16:59.769Z","0.0.1-rc.1":"2025-01-07T08:22:09.190Z","0.0.2":"2025-01-24T02:36:33.706Z","0.0.2-rc.1":"2025-01-24T08:21:48.688Z","0.0.3":"2025-03-27T02:51:49.612Z","1.2.0":"2025-03-27T06:30:41.728Z","0.0.3-rc.1":"2025-03-27T06:32:17.775Z","0.0.4-rc.1":"2025-04-07T07:08:24.965Z","0.0.4":"2025-12-23T08:14:32.316Z"},"bugs":{"url":"https://github.com/57blocks/stellar-resource-usage-report/issues"},"author":{"name":"57blocks","email":"https://github.com/57blocks"},"license":"MIT","homepage":"https://github.com/57blocks/stellar-resource-usage-report#readme","keywords":["stellar","resource-usage","monitoring","cli","nodejs","typescript"],"repository":{"type":"git","url":"git+https://github.com/57blocks/stellar-resource-usage-report.git"},"description":"A library that provides convenient ways to monitor and analyze the resources consumed by smart contracts during execution","maintainers":[{"name":"jimmyzhao57blocks","email":"jimmy@57blocks.com"},{"name":"57b","email":"npm@57blocks.com"},{"name":"sunny_bai","email":"song@57blocks.com"}],"readme":"[![NPM version](https://img.shields.io/npm/v/@57block/stellar-resource-usage)](https://www.npmjs.com/package/@57block/stellar-resource-usage) \n[![View changelog](https://img.shields.io/badge/Explore%20Changelog-brightgreen)](https://github.com/57blocks/stellar-resource-usage-report/blob/main/CHANGELOG.md)\n\n# Stellar Resource Usage\n\nWelcome to Stellar Resource Usage! This tool is designed for Web3 developers working on the Stellar network, providing a convenient way to monitor and analyze the resources consumed by smart contracts during execution. This enables developers to optimize contract performance effectively.\n\n![Result table](./public/report.png)\n\n# Features Overview\n\n1. **Real-Time Resource Monitoring**: The tool monitors resource usage in real-time during smart contract execution, including `cpu_insns`, `mem_bytes` etc. for more information,see the [supported resource documentation](./docs/RESOURCE_LIMITS_DESC.md).\n\n\n1. **Detailed Report Generation**: After contract execution, the tool generates a detailed report to help developers gain deeper insights into resource usage.\n\n\n1. **Easy to use**: The amount of intrusion code is very small and it is easy to use.\n\n\n1. **Open Source Contribution**: As an open-source project, we welcome community contributions, including bug fixes, feature enhancements, and improvement suggestions.\n\n\n# Installation Guide\nTo install and run Stellar Resource Usage locally, follow these steps:\n\n\n1. Install dependencies:\n\nUsing npm:\n```sh\nnpm i @57block/stellar-resource-usage\n```\n\nUsing pnpm:\n\n```sh\npnpm add @57block/stellar-resource-usage\n```\n\nUsing bun:\n\n```sh\nbun add @57block/stellar-resource-usage\n```\n\n# Usage Instructions\n\n1. Make sure Docker Desktop is running on your system\n\n2. Start the __unlimited__ network simulator. Executing the code below will launch a [stellar/quickstart](https://github.com/stellar/quickstart) image. You can also customize your own image according to the *quickstart* if you want.\n\n _Note: Using npx requires you to install npm globally in advance, more info please refer to [npx](https://docs.npmjs.com/cli/v10/commands/npx)_\n\n```sh\nnpx dockerDev [--port=your port] # The default port is 8000 \n```\n\n3. Make sure you have seen a steady stream of *stellar-core: Synced!* logs in `step 2`. Deploy your contract once your local network is running. If you don’t know how to deploy a contract, you can check the [Stellar build doc](https://developers.stellar.org/docs/build/smart-contracts/getting-started) or the [deploy.example.ts](./deploy.example.ts) we provide for reference.\n\n4. Using `@57block/stellar-resource-usage` in your code\n\n**Scenario 1**\n\nUsing `StellarRpcServer`.\n\n```ts\nimport { Keypair, Networks, nativeToScVal, rpc, TransactionBuilder, Operation, Account } from '@stellar/stellar-sdk';\n\nconst rpcUrl = 'http://localhost:8000/rpc';\nconst keypair = Keypair.fromSecret(Bun.env.SECRET);\nconst contractId = Bun.env.CONTRACT_ID;\nconst networkPassphrase = Networks.STANDALONE;\nconst publicKey = keypair.publicKey();\nconst rpcServer = new rpc.Server(rpcUrl, { allowHttp: true });\nconst sourceAccount = await rpcServer\n  .getAccount(publicKey)\n  .then((account) => new Account(account.accountId(), account.sequenceNumber()))\n  .catch(() => {\n    throw new Error(`Issue with ${publicKey} account.`);\n  })\nconst args = [\n  nativeToScVal(150, { type: 'u32' }),\n  nativeToScVal(20, { type: 'u32' }),\n  nativeToScVal(2, { type: 'u32' }),\n  nativeToScVal(4, { type: 'u32' }),\n  nativeToScVal(1, { type: 'u32' }),\n  nativeToScVal(Buffer.alloc(71_680)),\n];\nconst tx = new TransactionBuilder(sourceAccount, {\n  fee: '0',\n  networkPassphrase,\n})\n  .addOperation(\n    Operation.invokeContractFunction({\n      contract: contractId,\n      function: 'run',\n      args,\n    })\n  )\n  .setTimeout(0)\n  .build();\n\nconst simRes = await rpcServer.simulateTransaction(tx);\nconst MAX_U32 = 2 ** 32 - 1;\nif (rpc.Api.isSimulationSuccess(simRes)) {\n  simRes.minResourceFee = MAX_U32.toString();\n  const resources = simRes.transactionData.build().resources();\n  const assembledTx = rpc\n    .assembleTransaction(tx, simRes)\n    .setSorobanData(\n      simRes.transactionData\n        .setResourceFee(100_000_000)\n        .setResources(MAX_U32, resources.readBytes(), resources.writeBytes())\n        .build()\n    )\n    .build();\n  assembledTx.sign(keypair);\n\n  await rpcServer.sendTransaction(assembledTx);\n  rpcServer.printTable();\n}\n```\n\nWhile using `@57block/stellar-resource-usage`:\n\n```ts\nimport { Keypair, Networks, nativeToScVal, rpc, TransactionBuilder, Operation, Account } from '@stellar/stellar-sdk';\n+ import { StellarRpcServer } from \"@57block/stellar-resource-usage\";\n\nconst rpcUrl = 'http://localhost:8000/rpc';\nconst keypair = Keypair.fromSecret(Bun.env.SECRET);\nconst contractId = Bun.env.CONTRACT_ID;\nconst networkPassphrase = Networks.STANDALONE;\nconst publicKey = keypair.publicKey();\n- const rpcServer = new rpc.Server(rpcUrl, { allowHttp: true });\n+ const rpcServer = new StellarRpcServer(rpcUrl, { allowHttp: true });\nconst sourceAccount = await rpcServer\n  .getAccount(publicKey)\n  .then((account) => new Account(account.accountId(), account.sequenceNumber()))\n  .catch(() => {\n    throw new Error(`Issue with ${publicKey} account.`);\n  })\nconst args = [\n  nativeToScVal(150, { type: 'u32' }),\n  nativeToScVal(20, { type: 'u32' }),\n  nativeToScVal(2, { type: 'u32' }),\n  nativeToScVal(4, { type: 'u32' }),\n  nativeToScVal(1, { type: 'u32' }),\n  nativeToScVal(Buffer.alloc(71_680)),\n];\nconst tx = new TransactionBuilder(sourceAccount, {\n  fee: '0',\n  networkPassphrase,\n})\n  .addOperation(\n    Operation.invokeContractFunction({\n      contract: contractId,\n      function: 'run',\n      args,\n    })\n  )\n  .setTimeout(0)\n  .build();\n\nconst simRes = await rpcServer.simulateTransaction(tx);\nconst MAX_U32 = 2 ** 32 - 1;\nif (rpc.Api.isSimulationSuccess(simRes)) {\n  simRes.minResourceFee = MAX_U32.toString();\n  const resources = simRes.transactionData.build().resources();\n  const assembledTx = rpc\n    .assembleTransaction(tx, simRes)\n    .setSorobanData(\n      simRes.transactionData\n        .setResourceFee(100_000_000)\n        .setResources(MAX_U32, resources.readBytes(), resources.writeBytes())\n        .build()\n    )\n    .build();\n  assembledTx.sign(keypair);\n\n  await rpcServer.sendTransaction(assembledTx);\n+ rpcServer.printTable();\n}\n```\n\n**Scenario 2**\n\nWhen you generate a typescript module using the `stellar contract bindings typescript` command, and use the `Client` in this module to call and execute the contract functions.\n<!-- Please refer to [the link](https://developers.stellar.org/docs/tools/developer-tools/cli/stellar-cli#stellar-contract-bindings-typescript) and/or [deploy.example.ts](./deploy.example.ts) if you want to learn more about **bindings**. -->\n\n```ts\nimport { Keypair } from \"@stellar/stellar-sdk\";\nimport { basicNodeSigner } from \"@stellar/stellar-sdk/contract\";\n\nimport { Client, networks } from \"yourPath/to/module\";\n\nconst callContract = async () => {\n  try {\n    const keypair = Keypair.fromSecret(Bun.env.SECRET!);\n    const pubkey = keypair.publicKey();\n\n    const { signTransaction } = basicNodeSigner(\n      keypair,\n      networks.standalone.networkPassphrase\n    );\n\n    const _contract = new Client({\n      contractId: networks.standalone.contractId,\n      networkPassphrase: networks.standalone.networkPassphrase,\n      rpcUrl: \"http://localhost:8000/soroban/rpc\",\n      publicKey: pubkey, // process.env.SOROBAN_PUBLIC_KEY,\n      allowHttp: true,\n      signTransaction,\n    });\n    const res = await _contract.run({\n      cpu: 700,\n      mem: 180,\n      set: 20,\n      get: 40,\n      events: 1,\n      _txn: Buffer.alloc(71_680),\n    });\n\n    await res.signAndSend();\n  } catch (error) {\n    console.error(error);\n  }\n};\n\ncallContract();\n\n```\n\nWhile using `@57block/stellar-resource-usage`:\n\n```ts\nimport { Keypair } from \"@stellar/stellar-sdk\";\nimport { basicNodeSigner } from \"@stellar/stellar-sdk/contract\";\n// Add ResourceUsageClient\n+ import { ResourceUsageClient } from \"@57block/stellar-resource-usage\";\nimport { Client, networks } from \"./package/typescriptBinding/src\";\n\nconst callContract = async () => {\n  try {\n    const keypair = Keypair.fromSecret(Bun.env.SECRET!);\n    const pubkey = keypair.publicKey();\n\n    const { signTransaction } = basicNodeSigner(\n      keypair,\n      networks.standalone.networkPassphrase\n    );\n\n-    const _contract = new Client({\n+    const _contract = await ResourceUsageClient<Client>(Client, {\n      contractId: networks.standalone.contractId,\n      networkPassphrase: networks.standalone.networkPassphrase,\n      rpcUrl: \"http://localhost:8000/soroban/rpc\",\n      publicKey: pubkey, // process.env.SOROBAN_PUBLIC_KEY,\n      allowHttp: true,\n      signTransaction,\n    });\n    const res = await _contract.run({\n      cpu: 700,\n      mem: 180,\n      set: 20,\n      get: 40,\n      events: 1,\n      _txn: Buffer.alloc(71_680),\n    });\n\n    await res.signAndSend();\n\n+   _contract.printTable();\n  } catch (error) {\n    console.error(error);\n  }\n};\n\ncallContract();\n```\n\n5. Execute the file\n\nFor typescript files, we recommend using [bun](https://bun.sh/) to run directly, which makes the command very simple, just execute `bun run filepath`. Then you will see the reporter in the terminal.\n\n# Support\nIf you need assistance or have any questions, you can submit issues on GitHub Issues, and we'll respond as soon as possible.\n\n# License\nThis project is open-source under the MIT License.\n\nEnhance your smart contract efficiency and speed with Stellar Resource Usage! Thank you for using this tool, and we look forward to your feedback and contributions.\n","readmeFilename":"README.md"}