{"id":25407637,"url":"https://github.com/base/op-viem","last_synced_at":"2025-04-04T19:15:11.013Z","repository":{"id":189222858,"uuid":"680268087","full_name":"base/op-viem","owner":"base","description":"Viem extensions for the Op Stack","archived":false,"fork":false,"pushed_at":"2024-08-13T10:11:22.000Z","size":1109,"stargazers_count":359,"open_issues_count":30,"forks_count":251,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-03-29T10:02:24.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://opviem.sh","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/base.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2023-08-18T18:58:10.000Z","updated_at":"2025-03-25T04:01:03.000Z","dependencies_parsed_at":"2024-01-03T03:05:34.957Z","dependency_job_id":"f4c05a3e-a52f-4ae3-93c5-006eb29e2ec8","html_url":"https://github.com/base/op-viem","commit_stats":null,"previous_names":["wilsoncusack/minimal-bridge","wilsoncusack/op-stack-tools","wilsoncusack/op-viem","base-org/op-viem","base/op-viem"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fop-viem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fop-viem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fop-viem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Fop-viem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/base","download_url":"https://codeload.github.com/base/op-viem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234923,"owners_count":20905854,"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":[],"created_at":"2025-02-16T07:10:06.523Z","updated_at":"2025-04-04T19:15:10.993Z","avatar_url":"https://github.com/base.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr/\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://op-viem-site.vercel.app/\"\u003e\n  \u003ch1\u003eOP Viem\u003c/h1\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Viem Extension for OP Stack Chains\n\u003cp\u003e\n\n\u003cbr\u003e\n\n## 🚨 DEPRECATION WARNING 🚨\n\nWith the upstreaming of most op-viem features into [Viem](https://viem.sh/op-stack) consider this library deprecated. We recommend using [Viem's native OP Stack support](https://viem.sh/op-stack) instead.\n\n## Features\n\n- Simplifies cross L1 \u0026 L2 interactions\n- Seamless extension to [Viem](https://github.com/wagmi-dev/viem)\n- TypeScript ready\n- Test suite running against [forked](https://ethereum.org/en/glossary/#fork) Ethereum network\n\n## Overview\n\n```ts\n// import modules\nimport { createWalletClient, createPublicClient, custom, http } from 'viem'\nimport { privateKeyToAccount } from 'viem/accounts'\nimport { mainnet, base } from 'viem/chains'\nimport { baseAddresses } from 'op-viem/chains'\nimport { walletL1OpStackActions, publicL1OpStackActions, publicL2OpStackActions } from 'op-viem'\n\n// create clients\nexport const opStackL1WalletClient = createWalletClient({\n  chain: mainnet,\n  transport: custom(window.ethereum)\n}).extend(walletL1OpStackActions)\n\nexport const opStackL1PublicClient = createPublicClient({\n  chain: mainnet,\n  transport: http()\n}).extend(publicL1OpStackActions)\n\nexport const opStackL2PublicClient = createPublicClient({\n  chain: base,\n  transport: http()\n}).extend(publicL2OpStackActions)\n\n// perform an action\nopStackL1PublicClient.getOutputForL2Block(blockNumber: 2725977n, ...baseAddresses)\n```\n\n## Community\n\nCheck out the following places for more viem-related content:\n\n- Follow [@wilsoncusack](https://twitter.com/wilsoncusack) Twitter for project updates\n\n## Contributing\n\nIf you're interested in contributing, please read the [contributing docs](CONTRIBUTING.md) **before submitting a pull request**.\n\n## Authors\n\n- [@wilsoncusack](https://github.com/wilsoncusack) (wilsoncusack.eth [Twitter](https://twitter.com/wilsoncusack))\n- [@zencephalon](https://github.com/zencephalon) (zencephalon.eth, [Twitter](https://twitter.com/zencephalon))\n- [@roninjin10](https://github.com/roninjin10) (fucory.eth, [Twitter](https://twitter.com/FUCORY))\n\n## License\n\n[MIT](LICENSE.md) License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Fop-viem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbase%2Fop-viem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Fop-viem/lists"}