전체 글

55. General Introduction To Variables & Types Variables : Variables are ussed to store information to be referenced and manipulated in a computer program Three main types of variables: Booleans, Integers, Strings Boolean : bool - true/false Integer : uint - Singed and unsigned integers of varying sizes String : string - data values that are made up of ordered sequences of characters 57. Writing ..
42. What is a Constructor in Solidity // a constructor is a special type of function // that gets called immediately upon deployment // the constructor can only be called one time // a function is just a set of instructions bundled together constructor(/*we can add arguments*/){ minter = msg.sender; //msg.sender == global variable == the person who created contract } constructor는 contract가 deplo..
드디어..! solidity를 배운다..! 31. How To Code Along In These Sections - Remix Ethereum IDE Introduction "remix.ethereum.org" 를 주소창에 입력하면 Remix IDE에 접속할 수 있다. 여기서 실습을 진행한다. Compiler 탭에서 language는 Solidity를 선택하고(default 설정이다.) DEPLOY&RUN TRANSACTIONS 탭에서는 Environment를 JavaScript VM으로 선택한다. Injected Web3는 선택하면 안된다고 한다. 그리고 Crypto-Token-Contract.sol 이라는 파일을 새로 생성하면 준비 끝! IDE: REMIX ETHEREUM stands for Int..
23. NFT & Gaming Introduction (CryptoKitties Example) In 2017, the game Cryptokitties demonstrated how non-fungible assets can be made and traded on the Ethereum blockchain. In this game, players can breed and trade Kitties - but crucially, all the Kitties exist on the blockchain, and can only be bred or traded by the player who owns them. A traditional online game stores data on a central serve..
14. https://www.coindesk.com/tech/2021/07/12/nft-marketplaces-a-beginners-guide/ NFT Marketplaces: A Beginner’s Guide NFT marketplaces allow digital collectors to buy, sell and create their own tokens that represent ownership of unique, tangible and intangible items. www.coindesk.com coindesk 라는 사이트에 올라온 NFT marketplace에 대한 문서이다. 유명한 사이트라고 하니 앞으로 리서치하거나 할 때 찾아봐야겠다! NFT marketplaces are platforms..
8. What Is A Virtual Machine (Basic Introduction) The Ethereum Virtual Machine In order to develop NFT Smart Contracts we compile down to a Virtual Machine which acts as a layer of abstraction. Virtual machines are essentially creating a level of abstraction btw the executing code and the executing machine. This layer is needed to improve the portability of software, as well as to make sure appl..
https://www.udemy.com/course/the-complete-nft-web-developer-course-zero-to-professional/ Udemy에 있는 영어로 된 NFT Marketplace를 만드는 강의를 수강하기로 했다. 영어 자막이 제공되기는 하지만 자동 생성이라 정확하지는 않다. 그래도 블록체인 쪽은 한글로 된 자료가 너무 부족해서ㅠㅠ 일단 리스닝과 리딩 공부를 겸한다고 생각하며 열심히 들어보기로 했다. 섹션 1 은 NFT에 대한 간단한 설명으로 이루어져 있는데, Ethereum 공식 docs를 찾아보래서 찾아봤더니 docs에 나와있는 얘기를 대부분 똑같이 가져와서 하는 것 같았다. https://ethereum.org/en/nft/#what-are-nfts Home | ..
Routes separate 1 https://expressjs.com/ko/guide/using-middleware.html 지금까지 사용한 라우터 app.get.. 는 application-level middleware -> Router-level middleware 사용 var express = require('express'); var app = express(); var router = express.Router(); router.get('/r1', function(req, res){ res.send('Hello /p1/r1'); }) router.get('/r2', function(req, res){ res.send('Hello /p1/r2'); }) app.use('/p1', router);..
Create module 직접 모듈을 만드는 방법. -> 코드의 복잡도를 낮출 수 있음. // sum.js function _sum(a,b){ //모듈을 사용하는 사용자에게 노출되지 않음. return a+b; } module.exports = function sum(a, b){ // 사용자(module2.js)와 sum.js 코드 간의 interface의 역할. return _sum(a,b); } //----------------------------------------------------------------- // calculator.js module.exports.sum = function(a, b){ return a+b; } module.exports.avg = function(a, b){ ..
jade extends https://jade-lang.com/reference/extends Extends | Jade Language Template Inheritance The extends keyword allows a template to extend a layout or parent template. It can then override certain pre-defined blocks of content. doctype html html head block title title Default title body block content extends ./layout.jade bl jade-lang.com Template Engine인 Jade의 extends(상속)기능 jade 파일에서 중복을..