{"id":20163215,"url":"https://github.com/blockdaemon/oapp-utils-bd","last_synced_at":"2025-09-03T02:05:48.627Z","repository":{"id":218683195,"uuid":"746748226","full_name":"Blockdaemon/oapp-utils-bd","owner":"Blockdaemon","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-18T22:00:31.000Z","size":343,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-13T14:21:31.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Blockdaemon.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":"2024-01-22T15:45:00.000Z","updated_at":"2025-01-10T20:41:48.000Z","dependencies_parsed_at":"2025-01-13T14:32:01.301Z","dependency_job_id":null,"html_url":"https://github.com/Blockdaemon/oapp-utils-bd","commit_stats":null,"previous_names":["blockdaemon/oapp-utils-bd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Foapp-utils-bd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Foapp-utils-bd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Foapp-utils-bd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Foapp-utils-bd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blockdaemon","download_url":"https://codeload.github.com/Blockdaemon/oapp-utils-bd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241600493,"owners_count":19988715,"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":"2024-11-14T00:28:38.539Z","updated_at":"2025-03-03T03:11:48.205Z","avatar_url":"https://github.com/Blockdaemon.png","language":"TypeScript","readme":"# LayerZeroV2 DVN Setup\n\nThis tool sets up the Blockdaemon DVN (oracle) for an Oapp.\n\n### Requirements\n\nThis is a Typescript project. Npm as package manager and node. Tested with npm v10.2.4, node 21.5.0. We recommend using [nvm](https://github.com/nvm-sh/nvm) for node version management.\n\n## Getting started\n\nOur DVN currently supports the following chains:\n| **Chain**        | **Endpoint ID** | **Env variable NETWORK** | **DVN Address**                          |\n|------------------|-----------------|--------------------------|------------------------------------------|\n| Ethereum (mainnet) | 30101          | ethereum                 | 0x7E65BDd15C8Db8995F80aBf0D6593b57dc8BE437 |\n| Avalanche (mainnet)| 30106          | avalanche                | 0xFfe42DC3927A240f3459e5ec27EAaBD88727173E |\n| Polygon (mainnet)  | 30109          | polygon                  | 0xa6F5DDBF0Bd4D03334523465439D301080574742 |\n| Optimism (mainnet) | 30111          | optimism                 | 0x7B8a0fD9D6ae5011d5cBD3E85Ed6D5510F98c9Bf |\n| Fantom (mainnet)   | 30112          | fantom                   | 0x313328609a9C38459CaE56625FFf7F2AD6dcde3b |\n| Arbitrum (mainnet)   | 30110          | arbitrum                   | 0xddaa92ce2d2fac3f7c5eae19136e438902ab46cc |\n| BNB Smart Chain (mainnet)   | 30102          | bnb                   | 0x313328609a9c38459cae56625fff7f2ad6dcde3b |\n| Base (mainnet, lzRead only)   | 30184          | base                   | 0x41ef29f974fc9f6772654f005271c64210425391 |\n\n\n### Running the tool\n\n1. Install node 21.5.0 (using nvm: `nvm install 21.5.0 \u0026\u0026 nvm use 21.5.0`)\n\n2. Install the dependencies with `npm install`.\n\n3. Copy the environment variables with `cp .env.example .env`.\n\n4. Populate the variables, including your Blockdaemon API Key (BLOCKDAEMON_API_KEY), the private key that you will be using to sign transactions in the form of a mnemonic (MNEMONIC), the address of your LayerZero v2 application (OAPP_ADDRESS), the network you are operating on (SOURCE_NETWORK), and the destination/target network (TARGET_NETWORK). Make sure to choose a supported network, according to the above table.\n\n5. If you need, set the message library address (MESSAGE_LIB_ADDRESS). We are using the default library. [Deployed Endpoints, Message Libraries, and Executors can be consulted within LZ's official docs](https://docs.layerzero.network/v2/developers/evm/technical-reference/deployed-contracts). \n\n6. Run the main script with `npx ts-node src/main/main.ts`. The script waits two minutes before confirming a change in the oracle, to accommodate for finalization times.\n\n## FAQ\n\n#### Which chains does this tool support?\n\nA: This tool supports mainnet BD-powered DNVs: https://docs.layerzero.network/v2/developers/evm/technical-reference/dvn-addresses (BNB RPCs support to be added)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockdaemon%2Foapp-utils-bd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockdaemon%2Foapp-utils-bd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockdaemon%2Foapp-utils-bd/lists"}