| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 체인의정석
- redux 기초
- Vue.js
- ethers v6
- cloud hsm
- 러스트 기초 학습
- git rebase
- ambiguous function description
- 스마트컨트렉트 예약어 함수이름 중복
- 스마트 컨트렉트 함수이름 중복
- 러스트 기초
- SBT표준
- 계정추상화
- Vue
- erc4337 contract
- 오블완
- cloud hsm 사용하기
- 스마트컨트렉트 함수이름 중복 호출
- 티스토리챌린지
- cloud hsm 서명
- 머신러닝기초
- erc4337
- redux toolkit 설명
- ethers typescript
- vue기초
- 컨트렉트 동일한 함수이름 호출
- 러스트기초
- ethers websocket
- rust 기초
- ethers type
- Today
- Total
목록전체 글 (529)
체인의정석
money-legos.studydefi.com/#/dydx money-legos docs money-legos.studydefi.com solo Margin contract를 이용하여 flash loan사용 가능. 1. X 만큼의 토큰을 Withdraw로 빌린다. 2. Call a function (이미 진행됨) 3. X + 2wei 만큼을 Deoposit으로 갚는다 이 3개를 한번에 시킨다. docs.dydx.exchange/#introduction dYdX Documentation docs.dydx.exchange dydx 공식 문서 However, if you write smart contracts, then our protocol documentation would be useful to you:..
assert 는 설정된 가스리미티를 초과시켜서 중단 => 절대 변해선 안되는 값에 대한 체크를 할때만 활용 나머지는 require require는 로직 실행 중간에 중단하고 리턴 가스비가 더 조금 소모됨 + 에러메세지 사용가능
forum.openzeppelin.com/t/importing-openzeppelin-contracts-in-remix/1420
truffle을 이용하여 배포하거나 open-zeppelin의 표준에 맞춰서 스마트컨트렉트를 테스트/배포해야하는 경우 erc20 파일을 일일히 가져오기 보다는 www.npmjs.com/package/@openzeppelin/contracts @openzeppelin/contracts Secure Smart Contract library for Solidity www.npmjs.com 다음과 같은 npm 라이브러리를 사용하면 더 편하다.
우선 truffle 배포 시 하나의 파일만 배포하는것은 다음과 같이한다. truffle은 오랜만에 써보는데 배포까지는 무조건 truffle로 하는게 편한것 같다. ropsten testnet에 배포하는 법 바뀌는 solidity code가 있을 경우 truffle compile 후에 배포한다. truffle migrate -f 4 --to 4 --network ropsten 이렇게 되면 4번의 migration파일만 migrate된다. 배포가 끝나게 되면 build 경로 아래에 있는 contracts안에 배포 정보가 나오게 된다. .json 파일로 되어 있는데 이걸 그대로 복사하면 된다. 이때 유의해야 할 점은 const fs = require('fs'); const contractABI = JSON.p..
express generator 를 다음과 같이 npx로 실행하니 해결이 되었다. npx express-generator stackoverflow.com/questions/23002448/express-command-not-found Express command not found For some reason after installing Express globally on my machine with npm install -g express if I cd into a directory and try to run express I get the following error: express: command not found. ... stackoverflow.com
1. 파일 첨부기능 다음과 같이 파일을 올릴시 파일의 해시값을 바로 보여주는 기능을 연결하였다. 일단 이 기능을 하고 난 후 블록체인에 저장버튼을 양쪽 사용자가 같이 누르게 되면 DB값을 변화시켜 블록체인에 저장시키게 만드는 식으로 개발할 예정이다. $("#contract").change(function(e){ e.preventDefault() if($("#contract").val()){ let form = $("#add_board")[0]; console.log("form",form); let formData = new FormData(form); console.log("formData",formData); // formData.append("bidx",$("#bidx").val()) $.ajax({..
1. 정보 조회해오는 화면을 2개로 안만들고 1개로 만든 후 상황에 따라서 다르게 뜨게 만들어 가는 중이므로, append가 연속해서 일어나는 오류가 일어났다. 이를 해결하기 위해 $("#contract_view_check").val("Y");를 추가하여 해결하였다. 서버사이드 function getboardInfo(args){ console.log("getboardInfo",args); $.ajax({ type: "POST", url : 'tech/getboardInfo', data : {"bidx" :args.item.board_idx}, success: function(r){ if(r.success){ console.log("응답",r) let board_idx = r.data[0].board_id..