Module types

Module types 

Source
Expand description

Types used in the workspaces crate. A lot of these are types are copied over from unc_primitives since those APIs are not yet stable. Once they are, we can directly reference them here, so no changes on the library consumer side is needed. Just keep using these types defined here as-is.

Structs§

AccessKey
Access key provides limited access to an account. Each access key belongs to some account and is identified by a unique (within the account) public key. One account may have large number of access keys. Access keys allow to act on behalf of the account by restricting transactions that can be issued.
AccessKeyInfo
Similar to an AccessKey, but also has the PublicKey associated with it.
AccountDetails
Details of an Account or Contract. This is an non-exhaustive list of items that the account stores in the blockchain state.
AccountDetailsPatch
Details of an Account or Contract. This is an non-exhaustive list of items that the account stores in the blockchain state.
AccountId
Utility Account Identifier.
Chunk
ChunkHeader
The header belonging to a Chunk. This is a non-exhaustive list of members belonging to a Chunk, where newer fields can be added in the future.
CryptoHash
CryptoHash is type for storing the hash of a specific block.
FunctionCallPermission
Grants limited permission to make transactions with FunctionCallActions The permission can limit the allowed balance to be spent on the prepaid gas. It also restrict the account ID of the receiver for this function call. It also can restrict the method name for the allowed function calls.
Gas
Gas units used in the execution of transactions. For a more in depth description of how and where it can be used, visit Gas.
GasMeter
Allows you to meter the amount of gas consumed by transaction(s). Note: This only works with transactions that resolve to crate::result::ExecutionFinalResult Example
InMemorySigner
PublicKey
Public key of an account on chain. Usually created along with a SecretKey to form a keypair associated to the account.
SecretKey
Secret key of an account on chain. Usually created along with a PublicKey to form a keypair associated to the account. To generate a new keypair, use one of the creation methods found here, such as SecretKey::from_seed
UncToken

Enums§

AccessKeyPermission
Defines permissions for AccessKey
Finality
Finality of a transaction or block in which transaction is included in. For more info go to the UNC finality docs.
KeyType
Key types supported for either a SecretKey or PublicKey

Type Aliases§

BlockHeight
Height of a specific block
Nonce
Nonce is a unit used to determine the order of transactions in the pool.
ShardId
Shard index, from 0 to NUM_SHARDS - 1.