Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(zink): add block and transaction properties #297

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

poltao
Copy link

@poltao poltao commented Dec 6, 2024

Resolves #289

Changes

There has some Block and Transaction Properties to do:

  • chainid() Get the current chain id.
  • number() Get the current block number.
  • blockhash(number: u64) Get the hash of one of the 256 most recent complete blocks.
  • blobhash(index: u64) Get versioned hashes.
  • basefee() Get the current block’s base fee.
  • blobbasefee() Get the current block’s blob base fee.
  • gaslimit() Get the current block gaslimit.
  • gasprice() Get the gas price of the transaction.
  • coinbase() Get the current block miner’s address.
  • prevrandao() Get the random number provided by the beacon chain.
  • timestamp() Get the current block timestamp as seconds since unix epoch.
  • gasleft() Get the remaining gas.
  • msg_data() Get the complete calldata.
  • msg_sig() first four bytes of the calldata (i.e. function identifier).
  • msg_value() number of wei sent with the message.

@poltao poltao force-pushed the issue289 branch 3 times, most recently from 6824cbc to 279baf0 Compare December 20, 2024 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block and transaction properties
1 participant