일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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기초
- 티스토리챌린지
- SBT표준
- ethers v6
- cloud hsm
- git rebase
- 스마트컨트렉트 예약어 함수이름 중복
- rust 기초
- 러스트기초
- cloud hsm 서명
- ethers type
- ethers typescript
- 스마트컨트렉트 함수이름 중복 호출
- ethers websocket
- erc4337 contract
- redux 기초
- 컨트렉트 동일한 함수이름 호출
- Vue
- cloud hsm 사용하기
- 오블완
- Vue.js
- 체인의정석
- ambiguous function description
- 계정추상화
- erc4337
- redux toolkit 설명
- 러스트 기초
- Today
- Total
목록분류 전체보기 (526)
체인의정석
순서대로 다뤄보기 1. 조회하고자 하는 컨트렉트와 연동해준다. const testContract = await ethers.getContractAt("컨트렉트이름", "컨트렉트주소"); 2. 조회를 할 설정값을 넣어서 필터링을 해준다. const filter = { address: "컨트렉트 주소", fromBlock: 0, toBlock: 10000000, topics: [testContract.filters."이벤트이름"().topics] //Transfer().topics 이런식으로 활용 }; const logs = await ethers.provider.getLogs(filter); //filter를 적용한 로그 값을 가져온다. 3. logs를 통해 조회가 가능하지만 해당 값들은 디코딩이 되지 않..
1. zplug https://github.com/zplug/zplug GitHub - zplug/zplug: A next-generation plugin manager for zsh :hibiscus: A next-generation plugin manager for zsh - GitHub - zplug/zplug: A next-generation plugin manager for zsh github.com zplug 의 경우 zsh의 여러 플러그인을 쉽게 관리하게 도와준다고 한다. curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh 위를 통해 설치가 가능하..

git pull을 할 때 기본적으로 어떤 전략을 취해야 하는지 설정을 안해주면 아래와 같은 에러가 나게 된다. hint: You have divergent branches and need to specify how to reconcile them. hint: You can do so by running one of the following commands sometime before hint: your next pull: hint: hint: git config pull.rebase false # merge hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You ca..
map안에 await를 걸어두게 되면 실제로 동기화가 되지 않는 상태로 작동하게 된다. 블로그 참고) https://www.techiediaries.com/promise-all-map-async-await-example/ Promise.all() and map() with Async/Await by Example | Techiediaries In this quick example, we'll learn how to use Promise.all() and map() with Async/Await in JavaScript to impelemt certain scenarios that can't be implemented with for loops with async/await. Example of JavaS..
pm2 활용케이스 - Pull request 전에 dev 환경에서 테스트를 원하는 경우 다음과 같이 진행이 가능하다. 1. git status //현재 브랜치 확인 2. git checkout // 브랜치 옮기기 3. git status // 잘 옮겨 졌는지 확인 4. pm2 list //현재 경로의 pid 확인 5. pm2 restart //브랜치를 바꿨으므로 반영을 위해 재시작 6. pm2 logs //다른창에 띄워서 로그가 뜨도록 확인하고 UI를 통해서 에러가 안나는지 직접 확인 명령어 정리 1. 현재 존재하는 프로세스 확인 pm2 list 2. 특정 pid 다시 시작 pm2 restart 3. console.log를 포함하여 모니터링하기 pm2 logs 4. console.log를 포함하지 않고 ..
상황 : 데이터베이스가 있는 상황에서 이를 메모리로 옮겨야 하는 상황 makeJson의 data안에 각 쿼리문의 select 결과문을 넣어서 파일을 만들고, 해당 파일을 만들어서 filter, map등을 이용해 원래 데이터를 읽어와야 하는 상황이다. async function makeJson (filename, data) { await fs.writeFileSync(`${__dirname}/${filename}.json`, JSON.stringify(data, null, 1)); logger.log(`${filename} updated to ${__dirname}/${filename}.json`); } 1. writeFileSync 동기 처리를 하면서 파일을 생성한다. 함수에도 async를 걸어주면 동기..
1. 테스트 시 가져오는 Class의 static 함수와 일반 함수 - 일단 class를 정의할 때 static인 함수는 new를 써서 객체를 생성하지 않아도 사용이 가능하다. - static이 아니라면 new를 써서 객체를 만든 후에 접근이 가능하다. 나는 static 함수와 일반 함수 2개를 비교해야 하는데 깜빡하고 new를 안써서 해멨다... 2. Mocha로 테스트 하기 기본 템플릿 describe('test ', async() => { describe('test detail', async() => { it('should aaaa', async () => { assert.equal(); }) }); }); 3. 배열을 비교하는 경우는 deep 사용해주기 assert.deepEqual 4. 실행시에..
https://stackoverflow.com/questions/2442798/javascript-filter-vs-map-problem Javascript filter vs map problem As a continuation of my min/max across an array of objects I was wondering about the performance comparisons of filter vs map. So I put together a test on the values in my code as was going to loo... stackoverflow.com 자바스크립트에서 각 요소를 순회하며 검색하는 기능을 구현하고 있었다. map의 경우 각 요소에 접근하여 정보를 수정하는 경우 ..