| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
- 머신러닝기초
- rust 기초
- ethers type
- 러스트 기초
- Vue.js
- 티스토리챌린지
- 체인의정석
- 컨트렉트 동일한 함수이름 호출
- 러스트 기초 학습
- 러스트기초
- SBT표준
- cloud hsm
- 오블완
- 스마트 컨트렉트 함수이름 중복
- redux toolkit 설명
- erc4337
- ethers v6
- cloud hsm 서명
- git rebase
- 스마트컨트렉트 함수이름 중복 호출
- ambiguous function description
- 스마트컨트렉트 예약어 함수이름 중복
- 계정추상화
- cloud hsm 사용하기
- ethers typescript
- Vue
- vue기초
- ethers websocket
- redux 기초
- erc4337 contract
- Today
- Total
목록전체 글 (529)
체인의정석
TypeScript 모듈을 만든 후 jest로 테스트 코드를 작성할때 계속해서 에러가 발생. module의 위치를 알 수 없는 에러가 발생. https://kulshekhar.github.io/ts-jest/docs/getting-started/paths-mapping/ Paths mapping | ts-jest If you use "baseUrl" and "paths" options in your tsconfig file, you should make sure the "moduleNameMapper" option in your Jest config is setup accordingly. kulshekhar.github.io 다음과 같이 jest.confi.js에서 moudule name Mapper를 ..
처음부터 전략패턴을 사용하도록 설계할 수는 없음. 따라서 다음 서적을 읽으면 리팩터링을 잘할 수 있다. 서적 추천) Classic 한 오래된 책 - 10년이 지나도 유효한 책 패턴을 활용한 리팩터링 (패턴으로 리팩터링을 해 나가는것) http://www.yes24.com/Product/Goods/14752528 패턴을 활용한 리팩터링 - YES24 www.yes24.com 자바는 정적언어라서 리팩터링이 잘 된다. 리팩터링을 하기 쉽지만 자바스크립트는 어렵다. 상속을 하나에서 받아와서 하려면 인터페이스에서 메소드 하나만 추가하면 다 바꾸어야 한다. 따라서 상속을 쓸 때도 동작을 추가하고 인터페이스를 하나 더 두어서 분리 시킨다. 단일책임원칙도 이에 해당된다. 단일책임 원칙을 지켜야 한다. 역할을 구분하게 ..
velog.io/@mingtorr/node.js-%EC%97%90%EC%84%9C-api%EC%9A%94%EC%B2%AD%ED%95%98%EA%B8%B0 node.js 에서 api요청하기 보통 클라이언트 단에서 fetch를 통해 api를 요청하지만 서버단에서 api를 요청해야 하는 상황에 직면했다. velog.io request 모듈을 사용하여 요청 진행 www.npmjs.com/package/request request Simplified HTTP request client. www.npmjs.com
fetch는 XMLHttpRequest 형태의 API를 노드에서 직접적으로 받아서 쓸 때 사용한다. 다음과 같은 코인 가격정보를 가져오는 예시에서 사용하였다. observablehq.com/@jflatow/compound-price-feed Compound Price Feed Prices Current Current prices on : Percentage deviation in on-chain prices (from reported prices): Historical Price vs Block* Events Posters Anyone may post, this one is run by Compound: World Appendix observablehq.com Motivation Instead of im..
medium.com/compound-finance/supplying-assets-to-the-compound-protocol-ec2cf5df5aa Supplying Assets to the Compound Protocol Learn how to supply assets to the Compound protocol through JSON RPC and proxy smart contracts medium.com The function first creates references to the production instances of Dai and cDAI contracts using our interface definitions. Then the function logs the exchange rate an..
1. abstarct => 컨트렉트에 있는 함수 중에 전부 또는 하나라도 { } 와 같이 내용이 없고 정의가 안 되어 있는 경우 abstarct를 써주어야 한다. 인터페이스와의 차이는? : 인터페이스는 함수의 내용이 있으면 안되고 상속을 받으면 안되며, 모든 함수는 external로 가시성을 설정해 주어야 한다. 또한 생성자를 선언할 수 없으며, 상태변수도 선언하면 안된다. docs.soliditylang.org/en/v0.6.6/contracts.html?highlight=contract%20abstract#abstract-contracts Contracts — Solidity 0.6.6 documentation State variables can be declared as constant or imm..
AAVE의 경우 테스트넷을 잉요한 유동성 풀 테스트 환경이 매우 잘 되어 있었다. testnet.aave.com/markets Aave - Open Source Liquidity Protocol Aave is an Open Source Protocol to create Non-Custodial Liquidity Markets to earn interest on deposits and borrow assets with a variable or stable interest rate. The protocol is designed for easy integration into your products and services. testnet.aave.com Stable 으로 대출 및 예치가 가능한것을 볼 수 있었..
github.com/Devilla/eth-arbitrage/blob/master/contracts/Arbitrage.sol Devilla/eth-arbitrage A DeFi Arbitrage Bot with DyDx Flashloans. Contribute to Devilla/eth-arbitrage development by creating an account on GitHub. github.com 위 소스코드를 분석하였다. 일단 주소값을 보면 kovan test network와 연결된 소스임을 확인 할 수 있었다. pool에는 DyDx주소를 두어서 인식을 시켜주고, 각각 등록된 화폐를 넣어준다. 여기서 tokenToMarketId는 등록된 토큰에 해당된다. 만약 새로운 종류의 토큰을 등록하고 싶다면..