mirror of https://github.com/embarklabs/embark.git
Created Solidity (markdown)
parent
2bf2dbf95c
commit
b2b92c0aee
|
@ -0,0 +1,26 @@
|
|||
see full details about Solidity [here](https://github.com/ethereum/wiki/wiki/Solidity-Tutorial).
|
||||
|
||||
## Contracts Reference
|
||||
|
||||
- `block.coinbase` (`address`): current block miner's address
|
||||
- `block.difficulty` (`uint`): current block difficulty
|
||||
- `block.gaslimit` (`uint`): current block gaslimit
|
||||
- `block.number` (`uint`): current block number
|
||||
- `block.blockhash` (`function(uint) returns (bytes32)`): hash of the given block
|
||||
- `block.timestamp` (`uint`): current block timestamp
|
||||
- `msg.data` (`bytes`): complete calldata
|
||||
- `msg.gas` (`uint`): remaining gas
|
||||
- `msg.sender` (`address`): sender of the message (current call)
|
||||
- `msg.value` (`uint`): number of wei sent with the message
|
||||
- `now` (`uint`): current block timestamp (alias for `block.timestamp`)
|
||||
- `tx.gasprice` (`uint`): gas price of the transaction
|
||||
- `tx.origin` (`address`): sender of the transaction (full call chain)
|
||||
- `sha3(...) returns (bytes32)`: compute the SHA3 hash of the (tightly packed) arguments
|
||||
- `sha256(...) returns (bytes32)`: compute the SHA256 hash of the (tightly packed) arguments
|
||||
- `ripemd160(...) returns (bytes20)`: compute RIPEMD of 256 the (tightly packed) arguments
|
||||
- `ecrecover(bytes32, byte, bytes32, bytes32) returns (address)`: recover public key from elliptic curve signature
|
||||
- `this` (current contract's type): the current contract, explicitly convertible to `address`
|
||||
- `super`: the contract one level higher in the inheritance hierarchy
|
||||
- `suicide(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, returns `false` on failure.
|
Loading…
Reference in New Issue