일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
- Vue.js
- 스마트컨트렉트 함수이름 중복 호출
- 체인의정석
- ethers type
- rust 기초
- 티스토리챌린지
- ethers websocket
- erc4337 contract
- 컨트렉트 동일한 함수이름 호출
- cloud hsm 사용하기
- SBT표준
- 오블완
- 러스트 기초 학습
- 러스트 기초
- 계정추상화
- ambiguous function description
- ethers v6
- redux 기초
- erc4337
- vue기초
- cloud hsm 서명
- cloud hsm
- ethers typescript
- 러스트기초
- 스마트 컨트렉트 함수이름 중복
- git rebase
- 스마트컨트렉트 예약어 함수이름 중복
- 머신러닝기초
- redux toolkit 설명
- Vue
- Today
- Total
목록분류 전체보기 (526)
체인의정석
git 처음 사용시 이메일과 유저 이름을 설정해 주지 않으면 위와 같은 에러가 난다. 따라서 아래 명령어를 써줘야 한다. git config --global user.email "myemail@example.com" git config --global user.name "myID"

요즘 우리 팀에서는 텔레그램 봇을 통해 다양한 DAPP 관리나 모니터링 등을 하고 있다. 보아하니 매우 유용하게 사용이 가능할거 같다는 판단이 들어 이에 따라 나도 한번 텔레그램 봇을 학습해보려고 한다. * 일단 해당 내용의 경우 아래 깃허브 브랜치에 만들어 두었다. https://github.com/hyunkicho/telegrambot/tree/demo/telegrambot 1. 텔레그램에서 bot father 계정 찾고 봇 계정 만들기 먼저 텔레그램 아이디로 봇 파더 계정에게 말을 걸어서 계정을 할당받아야 한다. /start 로 말을 걸면 각 종 명령어들이 나온다. /newbot 명령어로 새로운 봇을 만들도록 시키게 되면 이름을 만들라고 시키는데 bot으로 끝이 나는 이름이면 다 오케이다. 그리고 ..
const arr1 = [ { pool_name: 'A', volume: null }, { pool_name: 'B', volume: 0.0999999972073686 } ]; // Pass a function to map const replaceNullWithZero = (arr) => { return arr.map(item => ({ ...item, volume: item.volume !== null ? item.volume : 0 })); }; console.log(replaceNullWithZero(arr1)) 다음과 같이 ...item을 하면 해당 객체가 그대로 나오지만 그 이후에 , 를 넣고 특정 요소에 대해서 정의해 주면 해당 조건대로 업데이트가 되어서 > Array [Object { poo..

https://it-timehacker.tistory.com/439 React 시작해보기 - 튜토리얼 사이트에서 기초 특징 빠르게 익히기 그간 프론트 엔드를 사용할때는 그냥 ejs, html, bootstrap 등만 사용했었는데 이젠 프론트 엔드 프레임워크를 하나쯤은 써보고 싶었다. 몇년 전부터 미루고 미루다가 드디어 react를 시작해보기로 마 it-timehacker.tistory.com 지난 번에 기본적인 문법을 익혔으니 React를 간단하게 체험해 보기 위해서 tic tac toe를 한번 보려고 한다. 리액트 공식 홈페이지의 튜토리얼이다. https://react.dev/learn/tutorial-tic-tac-toe Tutorial: Tic-Tac-Toe – React The library fo..
provider에 console.log를 찍어보니 HTTP provider가 로컬호스트로만 작동하고 해결이 안되고 있었다. 해당 부분을 보니 설정 문제인거 같은데 설정 파일을 바꾸고 체크를 해봐도 해결이 되지 않았다. 그래서 그냥 hardhat의 config를 사용하는 대신 수동으로 모두 지정해 주기로 하였다. import { BigNumber, BigNumberish, Signer } from "ethers"; import { ethers } from "hardhat"; export const basicSettings = async (): Promise => { const provider = new ethers.providers.JsonRpcProvider("RPC_URL"); const wallet ..
1. tsConfig 살펴보기 tsConfig에서 scripts 경로가 지정되어있는지 확인한다. include 안에 들어가있는지 보면된다. { "compilerOptions": { "target": "ES2017", "module": "commonjs", "declaration": true, "declarationMap": true, "sourceMap": true, "outDir": "./dist", "strict": true, "rootDirs": ["./src", "./scripts", "./test"], "esModuleInterop": true }, "exclude": ["dist", "node_modules"], "include": ["./test", "./src", "./scripts"], ..
오랜기간 ethers와 typescipt를 사용했었는데 ethers의 타입을 지정하는 부분이 많이 어려웠었다. 지금까지 알게 된 내용들을 한번 정리해 보려고 한다. 1. 컨트렉트 객체 생성 시에 타입 지정해 버리기 import { NonfungiblePositionManager } from '../typechain/NonfungiblePositionManager'; const nonfungiblePositionManager = await ethers.getContractAt("NonfungiblePositionManager", contractAddressNftManager, signer) as NonfungiblePositionManager; 위와 같은 형태로 typechain을 사용하면 여기서 기본적인..
유니스왑 V3를 보면 multicall이 내장되어 있다. 따라서 서비스를 만들 때 해당 멀티콜을 써서 다양한 트랜잭션을 보내주거나 조회해 올 수 있는데 ethers와 typescript를 사용해서 멀티콜을 하는 부분을 사용하는 부분을 기록해 두려고 한다. struct를 encode 하는 부분 참고 소스코드는 다음과 같다. const a = '0x...'; const b = '123123123123132123123'; const c = true; const myStructData = ethers.utils.AbiCoder.prototype.encode( ['address', 'uint', 'bool'], [a, b, c] ); const tx = await myContract.myFunction( mySt..