mirror of https://github.com/embarklabs/embark.git
Page:
Solidity
Pages
API Documentation
Configuration
DApp Development
Deploying to the testnet
Home
Install on Linux
Install on OSX
Installation
Integrating other Frameworks
Releasing to IPFS
Releasing to any webserver
Releasing with Meteor
Solidity
Test Driven Development
Web3
new contract build and deploy sequence proposal
1
Solidity
Iuri Matias edited this page 2015-06-21 09:43:59 -04:00
Table of Contents
see full details about Solidity here.
Contracts Reference
block.coinbase
(address
): current block miner's addressblock.difficulty
(uint
): current block difficultyblock.gaslimit
(uint
): current block gaslimitblock.number
(uint
): current block numberblock.blockhash
(function(uint) returns (bytes32)
): hash of the given blockblock.timestamp
(uint
): current block timestampmsg.data
(bytes
): complete calldatamsg.gas
(uint
): remaining gasmsg.sender
(address
): sender of the message (current call)msg.value
(uint
): number of wei sent with the messagenow
(uint
): current block timestamp (alias forblock.timestamp
)tx.gasprice
(uint
): gas price of the transactiontx.origin
(address
): sender of the transaction (full call chain)sha3(...) returns (bytes32)
: compute the SHA3 hash of the (tightly packed) argumentssha256(...) returns (bytes32)
: compute the SHA256 hash of the (tightly packed) argumentsripemd160(...) returns (bytes20)
: compute RIPEMD of 256 the (tightly packed) argumentsecrecover(bytes32, byte, bytes32, bytes32) returns (address)
: recover public key from elliptic curve signaturethis
(current contract's type): the current contract, explicitly convertible toaddress
super
: the contract one level higher in the inheritance hierarchysuicide(address)
: suicide the current contract, sending its funds to the given address<address>.balance
: balance of the address in Wei<address>.send(uint256) returns (bool)
: send given amount of Wei to address, returnsfalse
on failure.