Giter VIP home page Giter VIP logo

bos.contracts's People

Contributors

abourget avatar arhag avatar b1bart avatar brianjohnson5972 avatar bytemaster avatar deniscarriere avatar elmato avatar eosbixin avatar flash65536 avatar heifner avatar igorls avatar jgiszczak avatar josephjguerra avatar justfortest2 avatar kesar avatar kj4ezj avatar larryk85 avatar maodaishan avatar moskvanaft avatar pursonchen avatar qianxiaofeng avatar tbfleming avatar thaipanda avatar thomasbcox avatar vchengsong avatar vlbos avatar vonhenry avatar vvvictorlee avatar winlin avatar zorba80 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bos.contracts's Issues

低保功能,通过多签修改低保的门槛问题

目前系统默认的每个账户的低保是:cpu:20ms、net:10kib;如果想对低保账户进行设置的话,需要多签setminguar操作,但是这个action最大允许设置cpu:100us、net:100byte,步长是10;这样的话就会导致咱们无法调大低保资源的参数,只能缩小,并且很小

bidname 规则修改

修改方案短账户名竞标基本准则

* 根据短名长度分组级别(<4为一组,其他同一长度为一组)。 同一长度按出价排名;
* 每24小时(onclock 出块时间为准)每一个长度排名前n名拍买成交(n为短名长度,n<4为n=1)。

修改规则

* 同一组内 上次交易关闭时间一天时间后才继续处理
* 同一组内 按最后竞拍时间超过24小时,按出价排名,取排名前n个(n为短名长度,n<4为n=1)
* 同一组24小时内出价不参与排名
每24小时(onclock 出块时间为准)检查每一组是否满足上述条件,满足则执行,
执行后,更新检查时间。

#现有EOS实现短账户名竞拍功能

eosio.system合约规则:

* 	距离上一次全网短名成交已经超过24小时;
* 	成交的短名需要在全网竞价中排名最高;
* 	成交的短名需要有超过24小时无人再出价;
* 	每次出价必须加价超过10%;
* 	第一次成交将在EOS主网激活14天后开始;

基本逻辑

在eosio.system.cpp上的bidname操作 ,用于注册您的出价。 它强制执行名称出价的若干规则:

* 检查它是否真的是一个顶级后缀(类似顶级域名),没有“.”;
* 拒绝其他token的代币符号而不是EOS;
* 检查具有出价短名的帐户是否已存在;
* 检查该短名的拍卖是否仍然开放;
* 检查报价是否高于0,并且比之前的报价高出至少10%;
* 投标人无法提高自己的出价;
* 退出的投标人报价退款。

在producer_pay.cpp上的onblock上有一个每分钟运行的代码块并检查:

* 主网激活14天后;
* 如果上次短名拍卖成功关闭时间超过一天;
* 如果当前最后一个竞拍的时间超过24小时 ;
* 如果满足上述所有条件,设置新短名的关闭时间,并在拍卖出价表上将最高出价设置为负值 。 负值表示短名竞拍成功,已授于竞拍者。

在newaccount操作中,也在eosio.system.cpp上 :

* 	应用常见的新帐户规则,但检查帐户是否具有高级名称后缀;
* 	如果是,请检查后缀的名称出价表;
* 	如果该后缀的拍卖已经结束(负投标价值)且新帐户创建者帐户等于该后缀的最高出价者帐户,则仅允许新帐户创建。
* 	在高级名称声明后,从出价表中删除出价。
* 	因此,在声明优质名称帐户后,将为此帐户保留具有相应后缀的整个命名空间。
* 	如果您拥有赢得的帐户(例如, eos高级名称),则只有您或您的代理人可以创建以.eos结尾的新帐户。
* 	最多包含13个字符(包括点)仍然适用。 因此,优质名称越短,它可以创建更多的子帐户。

BUILD FAIL

BOS build 安装成功,bos.cdt build 安装成功 ,执行 contracts的 build.sh 失败 ,错误信息如下:
CMake Error at /usr/local/eosio.cdt/lib64/cmake/eosio.cdt/eosio.cdt-config.cmake:5 (include):
include could not find load file:

EosioWasmToolchain

Call Stack (most recent call first):
CMakeLists.txt:9 (find_package)

CMake Error at CMakeLists.txt:23 (message):
Found eosio.cdt version but it does not satisfy version requirements:
version '' is invalid

Please use eosio.cdt version 2.0.x

-- Configuring incomplete, errors occurred!
See also "/opt/bos.contracts/build/CMakeFiles/CMakeOutput.log".

build fail with bosio.cdt

built and installed latest bosio.cdt
clone bos/contracts, do cmake and make.
some error happened, it's literally the same with EOSIO#180, and its solution works.
please fix it if possible. thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.