mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
Expose block random seed and timestamp to contract ABI (#1630)
* Expose block random seed and timestamp to contract ABI * Add tests * Bump spec version
This commit is contained in:
committed by
Sergei Pepyakin
parent
eb6dc0394e
commit
fb0f4dfb03
@@ -281,6 +281,18 @@ This function serializes the address of the caller into the scratch buffer.
|
||||
|
||||
**complexity**: Assuming that the address is of constant size, this function has constant complexity.
|
||||
|
||||
## ext_random_seed
|
||||
|
||||
This function serializes the current block's random seed into the scratch buffer.
|
||||
|
||||
**complexity**: Assuming that the random seed is of constant size, this function has constant complexity.
|
||||
|
||||
## ext_now
|
||||
|
||||
This function serializes the current block's timestamp into the scratch buffer.
|
||||
|
||||
**complexity**: Assuming that the timestamp is of constant size, this function has constant complexity.
|
||||
|
||||
## ext_input_size
|
||||
|
||||
**complexity**: This function is of constant complexity.
|
||||
|
||||
Reference in New Issue
Block a user