EthereumEvolutionLand

EthereumEvolutionLand

Evolution Land for Ethereum

Constructor

new EthereumEvolutionLand(web3js, network)

Source:

constructor function.

Parameters:
Name Type Description
web3js object

web3js instance

network string

Methods

apostleBid(amount, tokenId, referrer) → {Promise.<PromiEvent.<any>>}

Source:

Bid apostle by RING token

Parameters:
Name Type Description
amount

RING amount

tokenId

Apostle token ID

referrer

refer address

Returns:
Type
Promise.<PromiEvent.<any>>

apostleBorn(motherTokenId)

Source:

Apostle Born without element

Parameters:
Name Type Description
motherTokenId

apostleBornAndEnhance(motherTokenId, element, level, levelUnitPrice)

Source:

Apostle Born with element

Parameters:
Name Type Description
motherTokenId
element
level
levelUnitPrice

apostleBreed(tokenId, targetTokenId, amount) → {Promise.<PromiEvent.<any>>}

Source:

Apostle reproduction in own

Parameters:
Name Type Description
tokenId
targetTokenId
amount
Returns:
Type
Promise.<PromiEvent.<any>>

apostleBreedBid(tokenId, targetTokenId, amount)

Source:

Apostle reproduction

Parameters:
Name Type Description
tokenId
targetTokenId
amount

apostleCancelBreedAuction(tokenId) → {Promise.<PromiEvent.<any>>}

Source:

Cancel apostle breed auction

Parameters:
Name Type Description
tokenId
Returns:
Type
Promise.<PromiEvent.<any>>

apostleCancelHire(tokenId)

Source:

Cancel an apostle on Renting

Parameters:
Name Type Description
tokenId

Apostle tokenId

apostleCancelSell(tokenId) → {Promise.<PromiEvent.<any>>}

Source:

Cancel the auction by apostle token ID

Parameters:
Name Type Description
tokenId

apostle token ID

Returns:
Type
Promise.<PromiEvent.<any>>

apostleClaim(tokenId) → {Promise.<PromiEvent.<any>>}

Source:

Receive apostle

Parameters:
Name Type Description
tokenId

Apostle Token ID

Returns:
Type
Promise.<PromiEvent.<any>>

apostleHire(tokenId, duration, price)

Source:

Renting apostles to work

Parameters:
Name Type Description
tokenId

Apostle TokenId

duration

Duration in second

price

Hire Price

apostleHireBid(tokenId, price)

Source:

Bid apostle on Renting

Parameters:
Name Type Description
tokenId

Apostle tokenId

price

bid price

apostleHireClaim(tokenId) → {Promise.<PromiEvent.<any>>}

Source:

Claim an apostle that expires at work

Parameters:
Name Type Description
tokenId

Apostle TokenId

Returns:
Type
Promise.<PromiEvent.<any>>

apostleRewardClaim(tokenId, nftData) → {Promise.<PromiEvent.<any>>}

Source:
Parameters:
Name Type Description
tokenId
nftData
Returns:
Type
Promise.<PromiEvent.<any>>

(async) apostleSell(tokenId, start, end, duration) → {Promise.<PromiEvent.<any>>}

Source:

Sell apostle

Parameters:
Name Type Description
tokenId

Apostle Token ID

start

auction start price

end

auction end price

duration

duration time

Returns:
Type
Promise.<PromiEvent.<any>>

apostleStopWorking(tokenId)

Source:

Stop apostle mining

Parameters:
Name Type Description
tokenId

Apostle tokenId

(async) apostleTransfer(toAddress, tokenId) → {Promise.<PromiEvent.<any>>}

Source:

Transfer apostle

Parameters:
Name Type Description
toAddress
tokenId
Returns:
Type
Promise.<PromiEvent.<any>>

apostleWork(tokenId, landTokenId, element)

Source:

Let apostle go to work

Parameters:
Name Type Description
tokenId

Apostle tokenId

landTokenId

Land tokenId

element

['gold', 'wood', 'water', 'fire' ,'soil']

bridgeInAndTie(originNftAddress, originTokenId, apostleTokenId) → {Promise.<PromiEvent.<any>>}

Source:

Bind pet

Parameters:
Name Type Description
originNftAddress
originTokenId
apostleTokenId
Returns:
Type
Promise.<PromiEvent.<any>>

buyLandContract(amount, tokenId, referrer) → {Promise.<PromiEvent.<any>>}

Source:

Bid Land Assets with Ring token.

Parameters:
Name Type Description
amount

bid price with ring token

tokenId

tokenid of land

referrer

Referrer address

Returns:
Type
Promise.<PromiEvent.<any>>

buyLandWithETHContract(tokenId, referer, value) → {Promise.<PromiEvent.<any>>}

Source:

Bid Land Assets with Ether.

Parameters:
Name Type Description
tokenId

tokenid of land

referer

Referrer address

value

bid price with ether

Returns:
Type
Promise.<PromiEvent.<any>>

buyRing(value) → {Promise.<PromiEvent.<any>>}

Source:

Buy ring token with Ether.

Parameters:
Name Type Description
value string

amount for Ether´╝î unit of measurement(wei)

Returns:
Type
Promise.<PromiEvent.<any>>

cancelAuction(tokenId) → {Promise.<PromiEvent.<any>>}

Source:

Cancel the Land being auctioned.

Parameters:
Name Type Description
tokenId string

tokenid of land

Returns:
Type
Promise.<PromiEvent.<any>>

checkAddress(address)

Source:

check address info

Parameters:
Name Type Description
address

Ethereum address

createRedPackageContract(amount, number, packetId) → {Promise.<PromiEvent.<any>>}

Source:

create a red package

Parameters:
Name Type Description
amount

amount of red package

number

number of received

packetId

packet ID

Returns:
Type
Promise.<PromiEvent.<any>>

getCurrentAccount() → {Promise.<any>}

Source:

get web3js Current address.

Returns:
Type
Promise.<any>

(async) login(address) → {Promise.<*>}

Source:

Login Evolution Land

Parameters:
Name Type Description
address

Ethereum address

Returns:
Type
Promise.<*>

lotteryFromPoint(type) → {Promise.<PromiEvent.<any>>}

Source:

Play a ticket game

Parameters:
Name Type Default Description
type small

['small':playWithSmallTicket , 'large': playWithLargeTicket]

Returns:
Type
Promise.<PromiEvent.<any>>

redeemRing(amount, id) → {Promise.<PromiEvent.<any>>}

Source:

Redemption of unexpired ring.

Parameters:
Name Type Description
amount

penalty Kton amount

id

deposit ID

Returns:
Type
Promise.<PromiEvent.<any>>

resourceClaim(tokenId) → {Promise.<PromiEvent.<any>>}

Source:

claim resource on the Land

Parameters:
Name Type Description
tokenId
Returns:
Type
Promise.<PromiEvent.<any>>

saveRing(amount, month) → {Promise.<PromiEvent.<any>>}

Source:

Lock ring token to get Kton token

Parameters:
Name Type Description
amount

ring amount

month

Locking time(unit: month)

Returns:
Type
Promise.<PromiEvent.<any>>

sellRing(amount) → {Promise.<PromiEvent.<any>>}

Source:

Convert Ring token to Ether via bancor exchange

Parameters:
Name Type Description
amount

ring token amount

Returns:
Type
Promise.<PromiEvent.<any>>

transferFromLand(from, to, tokenId) → {*}

Source:

tansfer the Land

Parameters:
Name Type Description
from address

sender address

to address

receiver

tokenId string

Land token ID

Returns:
Type
*

(async) triggerContract(methodName, abiKey, abiString, contractParams, sendParams) → {Promise.<PromiEvent.<any>>}

Source:

Interact with a contract.

Parameters:
Name Type Description
methodName string

contract method name

abiKey string

If the contract exists in the configuration file, you can use the key in the configuration to get it directly.

abiString json

ethereum ABI json

contractParams

contract function with arguments

sendParams

web3js send() arguments

Returns:
Type
Promise.<PromiEvent.<any>>

untiePetToken(petTokenId) → {Promise.<PromiEvent.<any>>}

Source:

Unbind pet

Parameters:
Name Type Description
petTokenId
Returns:
Type
Promise.<PromiEvent.<any>>

updateTesterRole(_nonce, _testerCodeHash, _hashmessage, _v, _r, _s) → {Promise.<PromiEvent.<any>>}

Source:

Binding tester code

Parameters:
Name Type Description
_nonce
_testerCodeHash
_hashmessage
_v
_r
_s
Returns:
Type
Promise.<PromiEvent.<any>>

withdrawBankRing(id) → {Promise.<PromiEvent.<any>>}

Source:

Redemption ring without penalty kton

Parameters:
Name Type Description
id

deposit ID

Returns:
Type
Promise.<PromiEvent.<any>>

withdrawRing(nonce, value, hash, v, r, s) → {Promise.<PromiEvent.<any>>}

Source:

Withdraw ring from the channel

Parameters:
Name Type Description
nonce
value
hash
v
r
s
Returns:
Type
Promise.<PromiEvent.<any>>