일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- redux toolkit 설명
- cloud hsm 사용하기
- 러스트기초
- ethers type
- 스마트 컨트렉트 함수이름 중복
- 머신러닝기초
- 스마트컨트렉트 예약어 함수이름 중복
- SBT표준
- 러스트 기초
- erc4337
- erc4337 contract
- vue기초
- 계정추상화
- cloud hsm 서명
- ethers websocket
- rust 기초
- ethers v6
- 러스트 기초 학습
- 스마트컨트렉트 함수이름 중복 호출
- ethers typescript
- git rebase
- 체인의정석
- Vue
- 티스토리챌린지
- 컨트렉트 동일한 함수이름 호출
- ambiguous function description
- 오블완
- cloud hsm
- redux 기초
- Today
- Total
목록분류 전체보기 (526)
체인의정석
출저 : https://ethereum.stackexchange.com/questions/111916/hardhat-test-returns-transaction-instead-of-return-value const shareTokenAddress = await liqminter.connect(actorA).callStatic.createPair([...]) callStatic is a read-only operation and will not consume any Ether. It simulates what would happen in a transaction, but discards all the state changes when it is done. 2. 이벤트를 쓰는 경우 You need to us..
컨트렉트의 가독성을 높이기 위해서 opensea의 seaport 코드를 참고하여 분석을 진행하였다. 먼저 오픈씨의 메인 컨트렉트가 상속 받는 Consideration 컨트렉트이다. https://github.com/ProjectOpenSea/seaport/blob/main/contracts/lib/Consideration.sol GitHub - ProjectOpenSea/seaport: Seaport is a marketplace protocol for safely and efficiently buying and selling NFTs. Seaport is a marketplace protocol for safely and efficiently buying and selling NFTs. - GitHub..
일단 call 과 delegate call의 경우 관리자가 다른 컨트렉트를 통해서 원래 관리자 함수가 있는 컨트렉트에서 관리자 함수를 호출 할 때 사용할 필요가 있었다. https://eun97.tistory.com/entry/Solidity-call-delegateCall [Solidity] call, delegateCall 모든 call들은 특정 주소의 다른 컨트랙트를 데이터, 가스, 이더와 함께 특정 함수를 호출합니다. 어떤 호출이냐에 따라 msg.sender나 변동 storage가 바뀌므로 기본 방식을 이해하고 사용하심이 바 eun97.tistory.com 먼저 call을 쓸 때 "Warning: Return value of low-level calls not used" 경고 문구가 나왔는데, c..
https://ethereum.stackexchange.com/questions/82259/what-is-the-difference-between-the-constant-and-immutable-keywords-in-solidity What is the difference between the constant and immutable keywords in Solidity? What is the difference between the constant and immutable keywords in Solidity and how do I use them? ethereum.stackexchange.com a) For a constant variable, the expression assigned to it i..

Solidity를 오랜만에 보고 있기 때문에 최신 코딩 스타일을 참고하기 위해 소스들을 살펴보았다. https://github.com/ProjectOpenSea/seaport/tree/main/contracts GitHub - ProjectOpenSea/seaport: Seaport is a marketplace protocol for safely and efficiently buying and selling NFTs. Seaport is a marketplace protocol for safely and efficiently buying and selling NFTs. - GitHub - ProjectOpenSea/seaport: Seaport is a marketplace protocol for sa..
const bigNumberChainId = await exchangeCore.getChainId(); chainId = ethers.BigNumber.from(bigNumberChainId).toNumber(); 다음과 같이 ChainID를 조회하는 경우 bignumber가 나오는 경우에서 위와 같이 bigNumber를 먼저 구한 후 .toNumber()를 해주면 숫자형으로 바뀐다. 일반적인 decimal과 관련된 경우 소수점을 표시하고 싶은 경우 아래와 같이 바꿔서 표시해 줄 수 있다. https://ethereum.stackexchange.com/questions/101356/how-to-convert-bignumber-to-normal-number-using-ethers-js How to conv..
먼저 solidity에서 enum을 정의하는 부분은 다음과 같이 진행한다. 소스는 오픈씨의 새로나온 Seaport의 스타일을 참고하여 다루었다. 먼저 컨트렉트 부분이다. enum을 정의하는 경로는 따로 만들어서 관리하였다. solidity에서 컨트렉트를 배포할 때는 어차피 통합되어 배포되기 때문에 요즘 스타일은 이런식을 많이 쓰는 것 같다. Sturct 및 enum에 부분을 다음과 같이 따로 구현하였다. /** Side 0: order is made from seller 1: order is made from buyer */ enum Side { SELL, BUY } 여기에 있는 테스트 코드는 다음과 같이 작성하였다. it("check test Enum", async function () { consol..

EIP712 형태의 서명에서 domain separator를 할 때 체인아이디가 들어가야 하기 때문에 이를 위해서 체인아이디를 통일 시키는 방법을 알아 보았다. 먼저 하드햇 네트워크 실행의 경우 npx hardhat node 를 입력하면 테스트 네트워크가 노드 형태로 올라가게 된다. 여기서 공개키와 비밀키가 같이 나오므로 나온 비밀키를 메타마스크에 임포트 시켜서 메타마스크 연결이 가능하다. lambda256@lambda256-ethan% npx hardhat node You are using a version of Node.js that is not supported by Hardhat, and it may work incorrectly, or not work at all. Please, make sur..