Giter Club home page Giter Club logo

uad-ui-launch's Introduction

uad-ui

Personal fork being updated because Vercel offers personal plans for free https://github.com/pavlovcik/uad-ui-launch

Getting Started

Cloning etc..

after git clone the project make sure to run

git submodule update --init --recursive --remote

You need to create .env file inside the contracts folder with at least the ALCHEMY_API_KEY and the MNEMONIC filled. Indeed MNEMONIC will be used to deploy locally and the first account will be the admin on all the smart contracts.

DEV ONLY Running a local node that forks the mainnet

yarn start:dev
copy paste contracts/artifact/types inside frontend/contracts
// run the faucet task see below
we have to find the address of the ubiquitydollar copy paste the address inside frontend/pages/index.tsx
cd frontend
yarn && yarn build && yarn start

Running a local node that forks the mainnet

then run

yarn install && yarn start

it will create a file inside frontend/src called uad-contracts-deployment.json where you can find all the address of the deployed contracts

it will launch a local node on port 8545 you can check the log in the root file local.node.log after the node is launched it will build and run the front on port 3000

Configure metamask

make sure to switch to the hardhat network on metamask

then run the faucet to get some token on your address. You will need the UAD_MANAGER_ADDRESS that you can find in the output of the yarn start

cd contracts
npx hardhat --network localhost faucet --receiver YOUR_ETH_ADDRESS --manager UAD_MANAGER_ADDRESS

Coding with typed object that represents the smart contract

to get the types from the smart contracts you can import from contracts/artifacts/types

import {UbiquityAlgorithmicDollar} from "../artifacts/types/UbiquityAlgorithmicDollar";

const token = (await ethers.getContractAt(
  "UbiquityAlgorithmicDollar",
  uAD.address
)) as UbiquityAlgorithmicDollar;

const [sender] = await ethers.getSigners();

const tx = await token.transfer("0x000000000", 100);

uad-ui-launch's People

Contributors

0x4007 avatar zgorizzo69 avatar maikelmclauflin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.