Apostle contracts for Evolution Land
npm install @evolutionland/apostle``python`
gen0Apostle.createGen0Apostle(uint245 _genes, uint256 _talents)
note that limit for number of gen0 apostles is set in contract.
python
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.$3
any one who owns an apostle can call this.
`python
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.$3
`python
ring.transfer(address(ApostleClockAuction), amountOfRing, extraData)
`
extraData = bytes32(tokenId)
tokenId here is what you bid.
$3
`python
objectOwnership.approveAndCall(address(SiringClockAuction), apostleTokenId, extraData)
`
extraData = bytes32(startingPrice) + bytes32(endingPrice) + bytes32(duration) + bytes32(seller)$3
`python
ring.transfer(address(SiringClockAuction), value, extraData)
`
extraData = bytes32(tokenId) + bytes32(referer_address)`