일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- ethers type
- ethers websocket
- ethers v6
- 스마트 컨트렉트 함수이름 중복
- erc4337 contract
- 스마트컨트렉트 예약어 함수이름 중복
- redux toolkit 설명
- 스마트컨트렉트 함수이름 중복 호출
- 러스트기초
- 러스트 기초 학습
- 머신러닝기초
- 컨트렉트 동일한 함수이름 호출
- 체인의정석
- 티스토리챌린지
- ethers typescript
- rust 기초
- Vue
- 계정추상화
- cloud hsm 서명
- 오블완
- redux 기초
- ambiguous function description
- 러스트 기초
- cloud hsm 사용하기
- vue기초
- Vue.js
- erc4337
- SBT표준
- git rebase
- cloud hsm
- Today
- Total
목록2023/07/20 (3)
체인의정석
오랜기간 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..

hardhat config 에서 먼저 다음과 같이 네트워크와 프라이빗 키를 넣어준다. wemixTest: { url: 'https://api.test.wemix.com', accounts: [process.env.PRIVATE_KEY!,process.env.PRIVATE_KEY2!], } 해당 private key에 대한 public key를 불러오려면 다음과 같이 쓰면 된다. const signer = await ethers.getSigners(); console.log("getSigner:", signer[0].address); console.log("getSigner:", signer[1].address); 그리고 해당 signer의 경우 const contractName = await ethers..