{"id":26469761,"url":"https://github.com/ocdbytes/hypersdk","last_synced_at":"2026-04-16T15:02:17.345Z","repository":{"id":186838660,"uuid":"675799260","full_name":"ocdbytes/HyperSDK","owner":"ocdbytes","description":"Hyper Bridge Project: Seamlessly links Base \u0026 Optimism blockchains via Layer Zero Router. Swap native \u0026 wrapped tokens effortlessly. Empowers devs with user-friendly SDK for cross-chain interaction. Unlocking DeFi potential \u0026 blockchain adoption.","archived":false,"fork":false,"pushed_at":"2023-09-01T04:09:11.000Z","size":1860,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-02T19:44:08.967Z","etag":null,"topics":["base-l2","defi","layerzero","optimism-l2","sdk","solidity","typescript","uniswap"],"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/ocdbytes.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}},"created_at":"2023-08-07T18:48:46.000Z","updated_at":"2023-08-15T22:38:56.000Z","dependencies_parsed_at":"2023-08-07T23:39:53.314Z","dependency_job_id":"d429f0ff-c48e-43d1-b736-a794842233b0","html_url":"https://github.com/ocdbytes/HyperSDK","commit_stats":null,"previous_names":["arun89-crypto/hypersdk","ocdbytes/hypersdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ocdbytes/HyperSDK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FHyperSDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FHyperSDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FHyperSDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FHyperSDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocdbytes","download_url":"https://codeload.github.com/ocdbytes/HyperSDK/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FHyperSDK/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31891038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["base-l2","defi","layerzero","optimism-l2","sdk","solidity","typescript","uniswap"],"created_at":"2025-03-19T17:09:19.065Z","updated_at":"2026-04-16T15:02:17.291Z","avatar_url":"https://github.com/ocdbytes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HyperSDK 🌀\n\n[![](https://img.shields.io/badge/made%20by-w3Ts0ckeT_eth-blue.svg?style=flat-square)](https://arunjangra.vercel.app)\n[![](https://img.shields.io/badge/project-HyperSDK-blue.svg?style=flat-square)]()\n[![](https://img.shields.io/badge/status-stable-brightgreen.svg?style=flat-square)]()\n\nHyper Bridge Project: Seamlessly links Base \u0026 Optimism blockchains via Layer Zero Router. Swap native \u0026 wrapped tokens effortlessly. Empowers devs with user-friendly SDK for cross-chain interaction. Unlocking DeFi potential \u0026 blockchain adoption.\n\n**[NATIVE TO WRAPPED NATIVE SWAPPER]**\n\n**Cross Chain Swap Time** : `10 sec` to `1 min`\n\n## Simple to use\n\n```ts\nimport { HyperSwapper } from '@arun89-crypto/hypersdk';\nimport { ethers } from 'ethers';\n\nconst main = async () =\u003e {\n  // Declaring the providers\n  const provider1 = new ethers.JsonRpcProvider(RPC_OPT);\n  const provider2 = new ethers.JsonRpcProvider(RPC_BASE);\n\n  // Declaring the signers\n  const signer1 = new ethers.Wallet(P_KEY, provider1);\n  const signer2 = new ethers.Wallet(P_KEY, provider2);\n\n  // Initiating the swapper\n  const swapper = new HyperSwapper({\n    rpc_url_1: RPC_OPT, // RPC URL : chain 1\n    rpc_url_2: RPC_BASE, // RPC URL : chain 2\n    name_1: 'OPTIMISM', // Chain 1 Name\n    name_2: 'BASE', // Chain 2 Name\n    signer1: signer1, // Signer : chain 1\n    signer2: signer2, // Signer : chain 2\n  });\n\n  // Swapping from Optimism -\u003e Base\n  const swap = await swapper.Swap1to2('0.0001');\n\n  console.log(swap);\n  /*\n  Returns :\n\n  interface SwapResult {\n    result: TransactionResult;\n    TransactionHash?: string;\n    TransactionData?: string;\n  }\n\n  enum TransactionResult {\n    ACCEPTED,\n    REJECTED,\n  }\n  */\n};\n```\n\n## Supported Chains (Testnet)\n\n- Optimism Göerli\n- Base Göerli\n- Polygon Mumbai (Coming soon .....)\n- Ethereum Göerli (Coming soon .....)\n\n## Tech Stack\n\n- Typescript\n- Solidity\n- EthersJS\n- Layer Zero\n- UniswapV3\n\n## How to install ?\n\n```sh\nnpm i @arun89-crypto/hypersdk\n--\nyarn add @arun89-crypto/hypersdk\n```\n\n## Config\n\n| Param     | Optional | Description               |\n| :-------- | :------- | :------------------------ |\n| rpc_url_1 | `true`   | RPC URL for chain 1       |\n| rpc_url_2 | `true`   | RPC URL for chain 2       |\n| name_1    | `true`   | Name of chain 1           |\n| name_2    | `true`   | Name of chain 2           |\n| signer_1  | `true`   | Ethers Signer for chain 1 |\n| signer_2  | `true`   | Ethers Signer for chain 2 |\n\n## Functions\n\n| Name                                  | Params                          | Description                                              |\n| :------------------------------------ | :------------------------------ | :------------------------------------------------------- |\n| Swap1to2                              | `_amount:string` `Eg : \"0.001\"` | Swap assets from chain 1 to chain 2                      |\n| Swap2to1                              | `_amount:string` `Eg : \"0.001\"` | Swap assets from chain 2 to chain 1                      |\n| \\_estimateFeeFrom1to2                 |                                 | Return the estimated relayer fee from chain 1 to chain 2 |\n| \\_estimateFeeFrom2to1                 |                                 | Return the estimated relayer fee from chain 2 to chain 1 |\n| \\_getTransactionStatusLZ_1            | `txn_hash:string`               | Return the transaction status for chain 1                |\n| \\_getTransactionStatusLZ_2            | `txn_hash:string`               | Return the transaction status for chain 2                |\n| \\_getFullTransactionStatusLZ_1        | `txn_hash:string`               | Return the full transaction status for chain 1           |\n| \\_getFullTransactionStatusLZ_2        | `txn_hash:string`               | Return the full transaction status for chain 2           |\n| getNativeWrappedTokenAddressChain1    |                                 | Return the tWETH address for chain 1                     |\n| getNativeWrappedTokenAddressChain2    |                                 | Return the tWETH address for chain 2                     |\n| getNativeWrappedTokenBalanceContract1 |                                 | Return the tWETH balance for chain 1 contract            |\n| getNativeWrappedTokenBalanceContract2 |                                 | Return the tWETH balance for chain 2 contract            |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fhypersdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focdbytes%2Fhypersdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fhypersdk/lists"}