We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
New features have been added to Cadence in the last few releases. Update the documentation and describe the new features
Get the current block: fun getCurrentBlock(): Block
fun getCurrentBlock(): Block
Get a block at a given height: fun getBlock(at height: UInt64): Block?
fun getBlock(at height: UInt64): Block?
The block info is:
struct Block { let id: [UInt8; 32] let height: UInt64 let timestamp: UFix64 }
Also update https://docs.onflow.org/docs/faq#how-do-i-access-block-information-like-timestamp-and-block-number-in-cadence
fun toString(): String
fun toBytes(): [UInt8]
Address
fun toBigEndianBytes(): [UInt8]
((Int): Bool)
AuthAccount
PublicAccount
Void
String.decodeHex(): [Int]
String.decodeHex(): [UInt8]
AuthAccount.addPublicKey(publicKey: [Int])
AuthAccount.addPublicKey(publicKey: [UInt8])
AuthAccount.setCode(code: [Int])
AuthAccount.setCode(code: [UInt8])
unsafeRandom
The text was updated successfully, but these errors were encountered:
Add section for Roadmap and Features that are upcoming
Sorry, something went wrong.
turbolent
Successfully merging a pull request may close this issue.
Context
New features have been added to Cadence in the last few releases.
Update the documentation and describe the new features
Definition of Done
Get the current block:
fun getCurrentBlock(): Block
Get a block at a given height:
fun getBlock(at height: UInt64): Block?
The block info is:
Also update https://docs.onflow.org/docs/faq#how-do-i-access-block-information-like-timestamp-and-block-number-in-cadence
fun toString(): String
was added for all number types and addressesfun toBytes(): [UInt8]
was added toAddress
fun toBigEndianBytes(): [UInt8]
was added to all number types.Non-storable types are:
((Int): Bool)
)AuthAccount
/PublicAccount
)Void
String.decodeHex(): [Int]
→String.decodeHex(): [UInt8]
AuthAccount.addPublicKey(publicKey: [Int])
→AuthAccount.addPublicKey(publicKey: [UInt8])
AuthAccount.setCode(code: [Int])
→AuthAccount.setCode(code: [UInt8])
unsafeRandom
The text was updated successfully, but these errors were encountered: