@evolutionland/apostle

1.2.2 • Public • Published

apostle

apostle contracts

create gen0 apostle

only authorized operator can do this.

gen0Apostle.createGen0Apostle(uint245 _genes, uint256 _talents)

note that limit for number of gen0 apostles is set in contract.

create gen0 auction

only authorized operator can do this.

gen0Apostle.createGen0Auction(uint256 _tokenId,
                                      uint256 _startingPriceInToken,
                                      uint256 _endingPriceInToken,
                                      uint256 _duration,
                                      uint256 _startAt,
                                      address _token))

_token is the specific token which can be used to bid for this apostle.

create apostle auction (general)

any one who owns an apostle can call this.

objectOwnership.approveAndCall(address(ApostleClockAuction), apostleTokenId, extraData)

extraData = bytes32(startingPrice) + bytes32(endingPrice) + bytes32(duration) + bytes32(seller) note that bytes32 occupy 64 bits, these 4 parts are concated as string and start with 0x.

bid apostle in ApostleClockAuction

ring.transfer(address(ApostleClockAuction), amountOfRing, extraData)

extraData = bytes32(tokenId) tokenId here is what you bid.

create siring auction

objectOwnership.approveAndCall(address(SiringClockAuction), apostleTokenId, extraData)

extraData = bytes32(startingPrice) + bytes32(endingPrice) + bytes32(duration) + bytes32(seller)

bid apostle in SiringClockAuction

ring.transfer(address(SiringClockAuction), value, extraData)

extraData = bytes32(tokenId) + bytes32(referer_address)

Readme

Keywords

Package Sidebar

Install

npm i @evolutionland/apostle

Weekly Downloads

1

Version

1.2.2

License

ISC

Unpacked Size

144 kB

Total Files

36

Last publish

Collaborators

  • jayjay1024
  • hackfisher
  • lowoee