{"id":19079238,"url":"https://github.com/weavevm/lambda","last_synced_at":"2026-02-17T22:02:47.136Z","repository":{"id":245919548,"uuid":"813733149","full_name":"weaveVM/lambda","owner":"weaveVM","description":"MEM rollup (λ) on top of WeaveVM","archived":false,"fork":false,"pushed_at":"2025-01-15T09:17:05.000Z","size":158,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-30T05:41:34.021Z","etag":null,"topics":["erc-7689","mem","rollup"],"latest_commit_sha":null,"homepage":"https://lambda.pink","language":"Rust","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/weaveVM.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,"zenodo":null}},"created_at":"2024-06-11T16:24:32.000Z","updated_at":"2025-01-15T09:17:07.000Z","dependencies_parsed_at":"2024-06-24T20:46:12.009Z","dependency_job_id":"45c4bfdf-57ec-48f6-9fc8-e9856c5f0c41","html_url":"https://github.com/weaveVM/lambda","commit_stats":null,"previous_names":["weavevm/lambda"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/weaveVM/lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaveVM%2Flambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaveVM%2Flambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaveVM%2Flambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaveVM%2Flambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weaveVM","download_url":"https://codeload.github.com/weaveVM/lambda/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaveVM%2Flambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29559961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["erc-7689","mem","rollup"],"created_at":"2024-11-09T02:13:55.769Z","updated_at":"2026-02-17T22:02:47.121Z","avatar_url":"https://github.com/weaveVM.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://wvm.dev\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/weaveVM/.github/main/profile/bg.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Synopsis \nLambda (læmdə, Greek: λάμ(β)δα, lám(b)da, λ) is a [smartweave](https://github.com/ArweaveTeam/SmartWeave) execution layer as rollup on top of [WeaveVM testnet](https://wvm.dev), more precisely, an [MEM](https://mem.tech) implementation. Lambda make use of WeaveVM's DA and [Arweave](https://arweave.org) permanent storage (via WeaveVM as proxy) to facilitate highly complex smart contracts beyond EVM and solidty (bytecode machine) limitations.\n\n## Build Locally\n\n```bash\ngit clone https://github.com/weavevm/lambda.git\n\ncd lambda\n\nnpm install \u0026\u0026 npm run sequencer\n```\n\n## Lambda Terminology\n\n[Lambda calculus](https://en.wikipedia.org/wiki/Lambda_calculus) (λ-calculus) is the foundation of [Lazy Evaluation](https://en.wikipedia.org/wiki/Lazy_evaluation), the programming language theory on which SmartWeave (and thus Lambda) is built. Therefore, we decided to name this rollup \"Lambda\".\n\n## Technical Architecture\nCurrently, the sequencer is written in JavaScript with NAPI-rs bindings to facilitate a full transition to Rust in the near future.\n\n## Data Protocol Design\n\nLambda follows the data protocol outlined in [ERC-7689](https://github.com/ethereum/ERCs/pull/380/files?short_path=76e2488#diff-76e2488af7a122c34cb7c9a212513d060730dde895baa65b1ea6fbbf4e8e6216) (smart blobs) with slight modifications. Most importantly, it shares to the same data structure for ERC-7689 [transactions](https://github.com/weaveVM/blobvm-core?tab=readme-ov-file#blobvm-transactions) (types 1 and 2).\n\n### Data Differences\n\n#### Data Availability\n\nERC-7689 describes how to utilize EIP-4844 (blobs) to create a data-computation layer. In contrast, Lambda uses transaction calldata. This difference in data availability allows Lambda to be deployed on any EVM L1s and L2s, while ERC-7689 is limited to EVMs with EIP-4844 implemented, mostly restricted to L1s.\n\nCalldata offers Lambda a \"permanent\" data availability on the EVM network, while blobs are limited to ~14 days of availability.\n\n\n#### Data Archiving Transactions\n\nThis section outlines the format used by the lambda sequencer to push data to Arweave. The sequencer interfaces with Arweave using [Irys](https://irys.xyz). When indexing data from lambda into Arweave, the following JSON format is utilized to construct the tx data:\n\n```json\n{\n  \"TxId\": \"L1_txid\",\n  \"Type\": \"1 or 2\",\n  \"Caller\": \"tx_caller\",\n  \"Data\": \"tx_calldata\"\n}\n```\n\n#### Lambda Context\n\nThe Lambda context is injected by the sequencer during the lazy evaluation of a transaction. It provides a suite of useful APIs that are accessible during execution and the retroactive lazy evaluation:\n\n| method  | description | status |\n| :-------------: |:-------------:|:-------------:|\n| `lambda.msg.sender` | return the transaction sender (EOA)     |  supported       |\n| `lambda.tx.id`      | return the call's transaction id     |  supported       |\n\n## Examples\n\n#### Contract source code\n```js\nexport async function handle(state, action) {\n  const input = action.input;\n\n  if (input.function === \"increment\") {\n    state.counter += 1;\n    state.users.push(lambda.msg.sender);\n    return { state };\n  }\n}\n```\n\n#### Contract initial state\n```json\n{\n  \"counter\": 0,\n  \"users\": []\n}\n```\n\n## Lambda Sequencer\n\n\n#### Testnet sequencer endpoint: https://lambda.pink\n\n### Methods\n\n#### Transaction Type 1: deploy contract\n\n```bash\ncurl -X POST https://wvm-lambda-0755acbdae90.herokuapp.com/deploy -H \"Content-Type: application/json\" -d '{\"txid\":\"$CONTRACT_ADDRESS\"}'\n```\n\n#### Transaction Type 2: send interaction\n```bash\ncurl -X POST https://wvm-lambda-0755acbdae90.herokuapp.com/transactions -H \"Content-Type: application/json\" -d '{\"txid\":\"$INTERACTION_TXID\"}'\n```\n\n#### Type Agnostic Method: handles both types 1 and 2 automatically\n\n\n```bash\ncurl -X POST https://wvm-lambda-0755acbdae90.herokuapp.com/tx -H \"Content-Type: application/json\" -d '{\"txid\":\"$TXID\"}'\n```\n\nFor more code examples on how to interact with the Lambda sequencer (deploying contracts, sending interactions, reading state), check the code snippets available in [examples](./examples).\n\n## License\nThis repository is licensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweavevm%2Flambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweavevm%2Flambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweavevm%2Flambda/lists"}