{"id":15707046,"url":"https://github.com/btc415/vault_contract_next_web3","last_synced_at":"2025-04-20T14:30:57.245Z","repository":{"id":208177751,"uuid":"720993225","full_name":"BTC415/Vault_Contract_Next_Web3","owner":"BTC415","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-01T11:33:37.000Z","size":112,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-02T12:52:18.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BTC415.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-20T06:10:55.000Z","updated_at":"2024-09-02T14:38:49.000Z","dependencies_parsed_at":"2024-10-24T07:45:50.700Z","dependency_job_id":"c4e7f53a-8a31-48e5-a7ab-beb2b780a7fe","html_url":"https://github.com/BTC415/Vault_Contract_Next_Web3","commit_stats":null,"previous_names":["topcoder415/vault_contract_next_web3","dodger213/vault_contract_next_web3","btc415/vault_contract_next_web3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTC415%2FVault_Contract_Next_Web3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTC415%2FVault_Contract_Next_Web3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTC415%2FVault_Contract_Next_Web3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTC415%2FVault_Contract_Next_Web3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BTC415","download_url":"https://codeload.github.com/BTC415/Vault_Contract_Next_Web3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223829243,"owners_count":17210000,"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-10-03T20:33:12.216Z","updated_at":"2024-11-09T13:04:17.882Z","avatar_url":"https://github.com/BTC415.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vault_Contract_nextjs-web3\n\nThis is a minimalistic project to show us how we can connect to metamask using [web3-next](https://github.com/BTC415/Vault_Contract_Next_Web3) in nextjs / web3.js.\n\nThis could just as easily be done in typescript.\n\nThis project started with nexjs boilerplate by running `yarn create next-app nextjs-web3-react-metamask-connect`\n\nVideo Coming soon...\n\n- [Vault_Contract_Next_Web3](#Vault_Contract_Nextjs_Web3js)\n- [Getting Started](#getting-started)\n  - [Requirements](#requirements)\n  - [Quickstart](#quickstart)\n    - [Important localhost note](#important-localhost-note)\n- [Full Examples](#full-examples)\n- [Thank you!](#thank-you)\n\nVideo coming soon...\n\n# Getting Started\n\n## Requirements\n\n- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)\n  - You'll know you did it right if you can run `git --version` and you see a response like `git version x.x.x`\n- [Nodejs \u0026 npm](https://nodejs.org/en/)\n  - You'll know you've installed nodejs right if you can run:\n    - `node --version` And get an ouput like: `vx.x.x`\n  - You'll know you've installed npx right if you can run:\n    - `npm --version` And get an ouput like: `x.x.x`\n- [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/) instead of `npm`\n  - You'll know you've installed yarn right if you can run:\n    - `yarn --version` And get an output like: `x.x.x`\n    - You might need to install it with npm\n- [Metamask](https://metamask.io/)\n  - This is a browser extension that lets you interact with the blockchain.\n\n## Quickstart\n\n1. Clone and install dependencies\n\n```\ngit clone https://github.com//LovelyDodger/Vault_Contract_Next_Web3\ncd Vault_Contract_Next_Web3\nyarn\n```\n\n2. Then, you'll need to open up a second terminal and run:\n\n```\ngit clone https://github.com//BTC415/Vault_Contract_Next_Web3\ncd /LovelyDodger/Vault_Contract_Next_Web3\nyarn hardhat node\n```\n\nThis will deploy a sample contract and start a local hardhat blockchain.\n\n3. Connect your [metamask](https://metamask.io/) to your local hardhat blockchain.\n\n\u003e **PLEASE USE A METAMASK ACCOUNT THAT ISNT ASSOCIATED WITH ANY REAL MONEY.**\n\u003e I usually use a few different browser profiles to separate my metamasks easily.\n\nIn the output of the above command, take one of the private key accounts and [import it into your metamask.](https://metamask.zendesk.com/hc/en-us/articles/360015489331-How-to-import-an-Account)\n\nAdditionally, add your localhost with chainid 31337 to your metamask.\n\n4. Open the UI\n\nThen, back in your first terminal, run:\n\n```\nyarn dev\n```\n\n5. Hit buttons\n\nYou'll be brought to the UI after running `yarn dev` which has exactly 2 buttons. Hit `connect` then hit `execute` and you'll send a transaction to your local hardhat.\n\n### Important localhost note\n\nIf you use metamask with a local network, everytime you shut down your node, you'll need to reset your account. Settings -\u003e Advanced -\u003e Reset account. Don't do this with a metamask you have real funds in.\n\n# Thank you!\n\nIf you appreciated this, feel free to follow me or donate!\n\nETH/Polygon/Avalanche/etc Address: 0x9680201d9c93d65a3603d2088d125e955c73BD65\n\n\n# Smart Contract address\n\nThis is the address of the vault at Goerli:\n0x696dA2B5968f33F8C60e02F660e84B04709Da30b\n\nThis is the address of the distribution contract:\n0xdAd37C0FB1A095bc9D237BB4A55F5FD6eab2B54e\n\nAnd this is the DAO contract:\n0xF713C86d5e5560D5F69A1B1d1DA3E4d45e9c5F3a\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtc415%2Fvault_contract_next_web3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtc415%2Fvault_contract_next_web3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtc415%2Fvault_contract_next_web3/lists"}