{"id":32779398,"url":"https://github.com/minterteam/minterjs-util","last_synced_at":"2025-11-04T16:06:47.005Z","repository":{"id":32704549,"uuid":"140854686","full_name":"MinterTeam/minterjs-util","owner":"MinterTeam","description":"A collection of utility functions for Minter","archived":false,"fork":false,"pushed_at":"2023-04-05T11:10:26.000Z","size":1413,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-30T12:33:28.325Z","etag":null,"topics":["blockchain","cryptocurrency","minter","utils"],"latest_commit_sha":null,"homepage":"https://minter.network","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MinterTeam.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-13T14:09:38.000Z","updated_at":"2021-12-01T11:20:33.000Z","dependencies_parsed_at":"2024-06-19T03:22:20.561Z","dependency_job_id":null,"html_url":"https://github.com/MinterTeam/minterjs-util","commit_stats":null,"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"purl":"pkg:github/MinterTeam/minterjs-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinterTeam%2Fminterjs-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinterTeam%2Fminterjs-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinterTeam%2Fminterjs-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinterTeam%2Fminterjs-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MinterTeam","download_url":"https://codeload.github.com/MinterTeam/minterjs-util/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinterTeam%2Fminterjs-util/sbom","scorecard":{"id":94781,"data":{"date":"2025-08-11","repo":{"name":"github.com/MinterTeam/minterjs-util","commit":"e71211f76eb0a6b5596587ec6dfa2805ea48c39a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test-with-coverage.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-with-coverage.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/MinterTeam/minterjs-util/test-with-coverage.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-with-coverage.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/MinterTeam/minterjs-util/test-with-coverage.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-with-coverage.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/MinterTeam/minterjs-util/test-with-coverage.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"28 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-xq7p-g2vc-g82p","Warn: Project is vulnerable to: GHSA-wrw9-m778-g6mc","Warn: Project is vulnerable to: GHSA-pp7h-53gx-mx7r","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-584q-6j8j-r5pm","Warn: Project is vulnerable to: GHSA-x6fg-f45m-jf5q","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T08:42:04.432Z","repository_id":32704549,"created_at":"2025-08-15T08:42:04.432Z","updated_at":"2025-08-15T08:42:04.432Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282668872,"owners_count":26707470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-04T02:00:05.887Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","cryptocurrency","minter","utils"],"created_at":"2025-11-04T16:06:42.882Z","updated_at":"2025-11-04T16:06:46.993Z","avatar_url":"https://github.com/MinterTeam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minterjs-util\n\n[![NPM Package](https://img.shields.io/npm/v/minterjs-util.svg?style=flat-square)](https://www.npmjs.org/package/minterjs-util)\n[![Build Status](https://img.shields.io/github/workflow/status/MinterTeam/minterjs-util/Test?label=test\u0026style=flat-square)](https://github.com/MinterTeam/minterjs-util/actions/workflows/test-with-coverage.yml)\n[![Coverage Status](https://img.shields.io/coveralls/github/MinterTeam/minterjs-util/master.svg?style=flat-square)](https://coveralls.io/github/MinterTeam/minterjs-util?branch=master)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square\u0026label=license)](https://github.com/MinterTeam/minterjs-util/blob/master/LICENSE)\n\nA collection of utility functions for Minter\n\nPlease note that this package is under active development and is subject to change.\n\nIt is complemented by the following packages:\n- [minter-js-sdk](https://github.com/MinterTeam/minter-js-sdk) complete JS solution to work with Minter\n- [minterjs-wallet](https://github.com/MinterTeam/minterjs-wallet) take care of BIP39 mnemonic phrase, private key and address\n\n## Install\n\n`npm install minterjs-util`\n\nor from browser\n\n```html\n\u003cscript src=\"https://unpkg.com/minterjs-util\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nconst pips = minterUtil.convertFromPip(1);\nconst fee = (new minterUtil.FeePrice({/* ... */})).getFeeValue('0x01');\n\u003c/script\u003e\n```\n\n### FeePrice.getFeeValue()\nParams:\n- txType: number or string, tx type\n- options: object\n- options.payload: string or Buffer, tx payload\n- options.payloadLength: number, length of payload\n- options.coinSymbol: string, coin symbol if tx is coin creation (can be replaced with `coinSymbolLength`)\n- options.coinSymbolLength: number, coin symbol length if tx is coin creation (can be replaced with `coinSymbol`)\n- options.multisendCount: number, count of recipients if tx is multisend\n\nFull example: [github.com/MinterTeam/minterjs-util/blob/master/test/fee.test.js](https://github.com/MinterTeam/minterjs-util/blob/master/test/fee.test.js)\n```\nimport { FeePrice, TX_TYPE } from 'minterjs-util';\nconst getFeeValue = (new FeePrice({/* ... */})).getFeeValue;\n\ngetFeeValue(TX_TYPE.SEND);\n// 0.01\n\ngetFeeValue(TX_TYPE.SEND, {payload: 'asé'});\n// 0.018\n\ngetFeeValue(TX_TYPE.CREATE_COIN, {coinSymbol: 'ABCDEFG'});\n// 10000\n\ngetFeeValue(TX_TYPE.CREATE_COIN, {coinSymbolLength: 6});\n// 100000\n\ngetFeeValue(TX_TYPE.MULTISEND, {deltaItemCount: 5});\n// 0.035\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminterteam%2Fminterjs-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminterteam%2Fminterjs-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminterteam%2Fminterjs-util/lists"}