Skip to content

Instantly share code, notes, and snippets.

View Nipol's full-sized avatar
😎

yoonsung.eth Nipol

😎
View GitHub Profile
...
new UniswapV3Pool{salt: keccak256(abi.encode(token0, token1, fee))}();
...
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol";
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";
import "./StandardToken.sol";
contract UniswapV3Integration {
address public constant UNIV3_FACTORY = 0x1F98431c8aD98523631AE4a59f267346ea31F984;
const FactoryV1Json = require('@beandao/factorieth/build/contracts/FactoryV1.json');
async function main() {
const FactoryTemplate = await ethers.getContractFactory(FactoryV1Json.abi, FactoryV1Json.bytecode);
// 메인넷에 배포된 Factori.eth 주소
const Factory = await FactoryTemplate.attach('0xD9BEc768Ad2aAd84cE5AAdcA49D3334e898B2D8b');
// 토큰을 배포하고 초기화 하는데 사용될 Interface
const ABI = [
'function initialize(string memory contractVersion, string memory tokenName, string memory tokenSymbol, uint8 tokenDecimals)',
/**
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
pragma solidity ^0.8.0;
import "@beandao/contracts/interfaces/IMint.sol";
import "@beandao/contracts/interfaces/IERC173.sol";
import "@beandao/factorieth/IFactory.sol";
@Nipol
Nipol / attestation.txt
Created March 28, 2021 01:33
ZKOPRU trusted setup attestation
I contributed to the ZKOPRU Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: zk_transaction_1_2
Contributor # 120
Hash: ffc31c17 3e7bf699 37a73888 6e632e10
4ad57d90 0e76ef59 080bdedd dc24faeb
7753b9c5 18632b33 d6cc8061 ab36a9c9
0556b337 09edec9a 93ba107a 826ab3c2
@Nipol
Nipol / attestation.txt
Created March 28, 2021 01:33
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_4",
"ceremonyId": "xN7193Ldf8i0L2SfG8X4",
"time": "2021-03-28T01:33:03.647Z",
"contributionNumber": 95,
"hash": "0856ace8 d2d12386 caade9de 46743a2e\n 49e7369d e3f3e774 6c2a1b58 eb23b50d\n fd8b6c82 90726f83 6242b42d ac0960a9\n 16f96568 c8607eb6 f167f60e c0eab4c1\n"
}
@Nipol
Nipol / attestation.txt
Created March 28, 2021 01:31
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_3",
"ceremonyId": "8i9TsuUmSnqh5cLIQoFd",
"time": "2021-03-28T01:31:13.545Z",
"contributionNumber": 95,
"hash": "b15c1fd3 247fe006 4beddc18 e23bb1b4\n be44c45f ad5904c9 1837ca2c b94e629e\n 8e5978cc 382fa797 7b67b96b 7857d427\n f87b2944 4ca1d3e5 59602889 00df8247\n"
}
@Nipol
Nipol / attestation.txt
Created March 28, 2021 01:29
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_2",
"ceremonyId": "NgqtzZuK1la2dU1LiFCN",
"time": "2021-03-28T01:29:21.317Z",
"contributionNumber": 97,
"hash": "533d443b 92c6f6d3 80413fc4 8a3a1ca3\n c6233881 9ccfbaf2 5f168a06 87d81311\n 59203130 7395f86d 51cdeab7 3f6a1f57\n 66b2ab8e 335b608b 665e9efb e52578b2\n"
}
@Nipol
Nipol / attestation.txt
Created March 28, 2021 01:27
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_1",
"ceremonyId": "doQRCJe1WsgoamIs0LGJ",
"time": "2021-03-28T01:27:32.500Z",
"contributionNumber": 98,
"hash": "6e67680b cf8e8a9d e9a282a9 4bbe58c9\n 2f63d39a e54d64b3 662d8010 d3ed028d\n 58eb0a23 70a7f4c8 ab2962ba 2302c720\n 94f5a99c 2158e602 5149faf7 65832dab\n"
}
@Nipol
Nipol / attestation.txt
Created March 28, 2021 01:25
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_3_4",
"ceremonyId": "mV2D9sLAiQ1GQqfz7Bvg",
"time": "2021-03-28T01:25:41.643Z",
"contributionNumber": 98,
"hash": "841098c2 15996cc0 d7730287 7631978d\n 83dfbc2d c8b5c916 f2c3fbc3 9be391d9\n 0e182490 9164b6f9 162ad940 30e06449\n 0b23fdad a701b5d3 ea8f747e a5ecc583\n"
}