{"id":21470610,"url":"https://github.com/manifoldfinance/gwei-monads","last_synced_at":"2026-04-20T09:05:00.610Z","repository":{"id":103410833,"uuid":"315972916","full_name":"manifoldfinance/gwei-monads","owner":"manifoldfinance","description":"Monadic Ethereum Transaction Pricing Module","archived":false,"fork":false,"pushed_at":"2020-11-25T15:04:14.000Z","size":453,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-15T17:03:23.128Z","etag":null,"topics":["ethereum","gwei","monadic-interface","monads","solidity","transaction-pricing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manifoldfinance.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-11-25T15:03:12.000Z","updated_at":"2020-11-25T15:04:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b00d926-4dc6-49be-9937-59c27d1f64c0","html_url":"https://github.com/manifoldfinance/gwei-monads","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/manifoldfinance/gwei-monads","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fgwei-monads","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fgwei-monads/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fgwei-monads/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fgwei-monads/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manifoldfinance","download_url":"https://codeload.github.com/manifoldfinance/gwei-monads/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manifoldfinance%2Fgwei-monads/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32040364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["ethereum","gwei","monadic-interface","monads","solidity","transaction-pricing"],"created_at":"2024-11-23T09:28:30.610Z","updated_at":"2026-04-20T09:05:00.586Z","avatar_url":"https://github.com/manifoldfinance.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# fist-full-of-monads\n\n![nodejs](https://github.com/evoprotocol/fist-full-of-monads/workflows/nodejs/badge.svg)\n\n\n## Abstract\n\n`fist-full-of-monads` module enables transaction-dependent computation to be composed without executing the transaction or specifying the Web3 Provider until later.\n\nThe requirements for a transaction, particularly gas costs, can be checked in the client code rather than in a protocol library. This is used for benchmarking `yGwei`/`GasEVO`.\n\n## Usage\n\n\u003e Support for multiple architectures \n\n### using ES6\n\n```javascript\nimport Transaction from 'fist-full-of-monads';\nimport * as utils from 'fist-full-of-monads/lib/utils';\n```\n\n### using ES5\n\n```javascript\nvar Transaction = require('fist-full-of-monads');\nvar utils = require('fist-full-of-monads');\n\nconst httpProvider = new Web3.providers.HttpProvider('http://localhost:8545');\nconst tx = Transaction({\n  options: {\n    from: '0xe8d3266f3c4f083ab8864b5e04aea7b087044e49',\n    to: '0x7967c4f4512195ba83ae8f08ca30f7b145be6cf8',\n    value: 1000000,\n  },\n});\n\nconst minedTx = tx.map((txhash, provider) =\u003e utils.waitForReceipt(txhash, provider));\nconst gas = await minedTx.getQuickestGasEstimate(httpProvider);\n\nminedTx.transact(httpProvider)\n  .then((receipt) =\u003e {\n    ...\n  })\n```\n\n### as a library\n```javascript\n\nfunction transferTokens(sender, to, amount) {\n  const web3 = new Web3();\n  const TokenContract = web3.eth.contract(Token.abi).at(Token.address);\n  const data = TokenContract.transfer.getData(to, amount);\n  const options = { data, from: sender, to: Token.address };\n  return Transaction({ options });\n}\n\nconst tx = transferTokens(\n  '0xe8d3266f3c4f083ab8864b5e04aea7b087044e49',\n  '0x7967c4f4512195ba83ae8f08ca30f7b145be6cf8',\n  1000000\n);\n\nconst txhash = await tx.transact(provider);\n```\n\n## Citation\n\u003cpre\u003e\n@incollection{evoprotocol,\n    title      = {fist-full-of-monadss},\n    year       = {2020},\n    booktitle  = {Transactional Benchmarking in Ethereum Virtual Machine},\n    series     = {EVO Protocol},\n    source      = {https://github.com/evoprotocol/fist-full-of-monads},\n}\n\u003c/pre\u003e\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldfinance%2Fgwei-monads","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanifoldfinance%2Fgwei-monads","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldfinance%2Fgwei-monads/lists"}