{"id":15290556,"url":"https://github.com/solidstate-network/abdk-math-extensions","last_synced_at":"2026-01-06T11:05:18.615Z","repository":{"id":37989159,"uuid":"488789665","full_name":"solidstate-network/abdk-math-extensions","owner":"solidstate-network","description":"🧮 SolidState extensions for the ABDK Solidity libraries","archived":false,"fork":false,"pushed_at":"2022-06-19T10:52:51.000Z","size":224,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T01:09:09.474Z","etag":null,"topics":["64x64","abdk","erc20","eth","ether","ethereum","fixed-point","math","solidity","token","wow"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/solidstate-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-05T01:05:22.000Z","updated_at":"2022-05-05T22:23:04.000Z","dependencies_parsed_at":"2022-09-02T22:31:28.605Z","dependency_job_id":null,"html_url":"https://github.com/solidstate-network/abdk-math-extensions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"solidstate-network/hardhat-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidstate-network%2Fabdk-math-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidstate-network%2Fabdk-math-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidstate-network%2Fabdk-math-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidstate-network%2Fabdk-math-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidstate-network","download_url":"https://codeload.github.com/solidstate-network/abdk-math-extensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245232913,"owners_count":20581703,"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","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":["64x64","abdk","erc20","eth","ether","ethereum","fixed-point","math","solidity","token","wow"],"created_at":"2024-09-30T16:08:36.716Z","updated_at":"2026-01-06T11:05:18.609Z","avatar_url":"https://github.com/solidstate-network.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solidstate Extensions for ABDK Libraries\n\nSolidstate extensions for the `abdk-libraries-solidity` [package](https://www.npmjs.com/package/abdk-libraries-solidity). Developed as a part of the [Premia Finance smart contracts](https://github.com/Premian-Labs/premia-contracts).\n\n\u003e **Note**: Solidstate, Premia, and this package are not affiliated with ABDK.\n\n## Installation\n\nInstall the package as well as the required ABDK package as development dependencies:\n\n```bash\npnpm add -D @solidstate/abdk-math-extensions abdk-libraries-solidity\n```\n\n## Development\n\nInstall dependencies:\n\n```bash\npnpm install\n```\n\nSetup Husky to format code on commit:\n\n```bash\npnpm prepare\n```\n\nCompile contracts via Hardhat:\n\n```bash\npnpm hardhat compile\n```\n\nThe Hardhat environment relies on the following environment variables. The `dotenv` package will attempt to read them from the `.env` file, if it is present.\n\n| Key          | Description                                                   |\n| ------------ | ------------------------------------------------------------- |\n| `REPORT_GAS` | if `true`, a gas report will be generated after running tests |\n\n### Networks\n\nBy default, Hardhat uses the Hardhat Network in-process. Two additional networks, `mainnet` and `testnet` are available, and their behavior is determined by the configuration of environment variables.\n\n### Testing\n\nTest contracts via Hardhat:\n\n```bash\npnpm hardhat test\n```\n\nActivate gas usage reporting by setting the `REPORT_GAS` environment variable to `\"true\"`:\n\n```bash\nREPORT_GAS=true pnpm hardhat test\n```\n\nGenerate a code coverage report using `solidity-coverage`:\n\n```bash\npnpm hardhat coverage\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidstate-network%2Fabdk-math-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidstate-network%2Fabdk-math-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidstate-network%2Fabdk-math-extensions/lists"}