自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 机器学习算法竞赛平台整理

机器学习算法竞赛平台整理

2022-03-07 15:13:43 1666

原创 truffle-matic/polygon交互框架

参考自:https://www.trufflesuite.com/boxes/polygonhttps://www.qikegu.com/docs/5124合约的编译和部署:使用truffle中的polygon truffle unbox,通过命令truffle unbox polygon下载框架,若出现unbox failed!报错,需要在etc/hosts中手动添加github.com的IP;安装好框架后需要touch .env,以存储MNEMONIC="<Your Mn

2021-06-22 12:56:56 2682

原创 Truffle入门学习1-合约部署与函数调用

初始化一个项目:进入项目文件夹,truffle init;编译文件:truffle compile;

2021-06-20 23:16:59 2799

原创 UniswapV2应用案例分析-beefyUniswapZap.sol

// SPDX-License-Identifier: GPLv2// This program is free software: you can redistribute it and/or modify// it under the terms of the GNU Affero General Public License as published by// the Free Software Foundation, either version 2 of the License, or/

2021-06-16 21:15:25 1388

原创 Ownable.sol

/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */contract Ownable { address public owner; event OwnershipTrans.

2021-06-15 16:13:14 345

原创 UniswapV2Router02.sol

pragma solidity =0.6.6;//导入工厂接口import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';//导入TransferHelper,里面提供一些safe转账方法,以后细看import '@uniswap/lib/contracts/libraries/TransferHelper.sol';//导入Router02接口import './interfaces/IUniswapV2Rou.

2021-06-15 14:42:45 9419 1

原创 Solidity入门学习笔记4-receive()与fallback()

摘自:https://zhuanlan.zhihu.com/p/337823524

2021-06-14 22:19:02 14106

原创 UniswapV2OracleLirary.sol

//规定版本pragma solidity >=0.5.0;//导入Pair接口import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';//导入浮点库,什么作用?import '@uniswap/lib/contracts/libraries/FixedPoint.sol';//一个记录着对计算平均价格的预言机提供了一些有帮助的方法的库// library with helper methods for o.

2021-06-14 21:38:02 679

原创 UniswapV2Library.sol

pragma solidity >=0.5.0;//导入了Pairimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';//导入了SafeMath,包含add、sub、mulimport "./SafeMath.sol";library UniswapV2Library { using SafeMath for uint; //返回分离过的token地址,用于控制按顺序分类过的交易对的返回.

2021-06-14 21:17:39 2755 2

原创 UniswapV2Pair.sol

//参考自:https://blog.csdn.net/weixin_39430411/article/details/108965855//指定版本pragma solidity =0.5.16;//导入Pair接口import './interfaces/IUniswapV2Pair.sol';//导入V2ERC20合约import './UniswapV2ERC20.sol';//导入一个数学库,包含一个min()函数,一个sqrt()函数import './libraries/M.

2021-06-14 19:40:15 5620 1

原创 Solidity入门学习笔记3-根据例子学习Solidity-秘密竞拍

//摘自:https://solidity-cn.readthedocs.io/zh/develop/solidity-by-example.html#voting//案例:简单公开拍卖//结构:每个人都可在投标期内报价,出价包含了以太币,币与出价人绑定,当出现更高出价,币返还,//投标结束后,受益人需要手动调用合约接收他的钱,合约并不能自己激活接收pragma solidity ^0.4.22;contract SimpleAuction { // 拍卖的参数。 //该参.

2021-06-13 21:33:16 304

原创 Solidity入门学习笔记2-根据例子学习Solidity-投票

摘自:https://solidity-cn.readthedocs.io/zh/develop/solidity-by-example.html#voting

2021-06-13 19:20:07 345

原创 Solidity入门学习笔记1-引用类型-数据位置

值类型该类型的变量始终进行值的传递;布尔类型整型注意除法会被截断;

2021-06-13 18:38:51 172

原创 UniswapV2ERC20.sol

pragma solidity =0.5.16;import './interfaces/IUniswapV2ERC20.sol';import './libraries/SafeMath.sol';contract UniswapV2ERC20 is IUniswapV2ERC20 { using SafeMath for uint; string public constant name = 'Uniswap V2'; string public constant .

2021-06-12 16:29:40 357

原创 Sustainable Growth and Token Economy Design:The Case of Steemit.(Moon Soo Kim and Jee Yong Chung)

今天读了一篇很水的论文,做一点笔记。文章认为加密经济与传统经济的三方面区别:1.编程经济使参与者对其高度信任,去中心化的服务器相对更能保证数据安全2.

2021-06-12 00:24:56 217

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除