Giter Site home page Giter Site logo

collegium-bos-wk2's Introduction

Collegium-BOS-WK2

주제: 위젯을 좀 더 인터렉티브하게 만들기

1. 온라인 에디터 환경 접속하기

  1. nearpad 편집기 사이트에 접속해주세요.

2. State를 이용하여 UI에 변경을 발생시키기

  1. idknwhoru.near/widget/collegium.bos.wk2.StateWidget 위젯을 fork 해주세요.

search_state_widget

  1. switch 버튼을 클릭했을 때 turn off 메시지가 변경되는 것을 확인해주세요.

state_widget text

3. Web3 지갑 연결하기

  1. idknwhoru.near/widget/collegium.bos.wk2.Web3ConnectWidget 위젯을 fork 해주세요.

search_web3_connect_widget

  1. Connect Web3 Wallet 버튼을 클릭해주세요.

connect_web3_wallet_button

  1. MetaMask를 선택해주세요.

select_wallet

  1. MestaMask 비밀번호를 입력하고, unlock 버튼을 클릭해주세요.

unlock_metamask

  1. 지갑 정보가 변경된 것을 확인해주세요.

wallet_info

4. Ethereum 컨트랙트 사용하기

  1. idknwhoru.near/widget/collegium.bos.wk2.EthereumContractWidget 위젯을 fork 해주세요.

search_ethereum_contract_widget

  1. 화면에 아래와 같은 메시지가 표시될 경우 Sepolia로 네트워크를 변경해주세요.

chagen_sepolia_message

  1. metamask extension에서 변경할 수 있습니다.

change_seplia_network

  1. 변경된 화면을 확인해주세요.

call_price_feed_contract

Mission

아래 DeFi 애플리케이션을 구현해주세요.

  • 위젯: idknwhoru.near/widget/collegium.bos.wk2.LiquityOpenTroveSepoliaExample

  • 추가 요청 사항은 다음과 같습니다.

    • openTrove가 성공한 지갑은 closeTrove가 실행되기 전까지 이 지갑은 이미 활성화된 트로브가 있습니다. 메세지를 표시해주세요.
      • hint 1: 이미 활성화된 트로브를 알아 낼 수 있는 방법은 state.isOpenTrove === true 입니다.
    • borrowWrapper 컴포넌트의 스타일을 외부 css파일을 불러와서 적용해보세요.
      • hint 1: fetch API를 사용하세요.
      • hint 2: https://raw.githubusercontent.com/LudiumAgwn/collegium-bos-wk2/main/assets/code/liquity-widget.css를 불러와주세요.
    • openTrove 기능의 가스 비용을 최적화 하기 위해 NICR이라는 값을 계산해야 합니다. openTrove 함수에 NICR을 계산하는 기능을 추가해주세요.
      • NICR = Ether / LUSD * 100
      • hint 1: ethers.js api 기능을 사용해서 계산해주세요
      • hint 2: hint 1의 자료가 부족할 경우 이 문서를 참고해주세요.
  • 결과물 확인 안내

collegium-bos-wk2's People

Contributors

idknwhoru avatar

Watchers

 avatar  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.